/* ============================================================
   STEP in Hong Kong — ITS Education Asia
   Stylesheet: css/step.css
   ============================================================ */

/* ── CSS custom properties (brand tokens) ── */
:root {
  --its-navy:   #003366;
  --its-blue:   #0066CC;
  --its-sky:    #1a9de0;
  --its-light:  #E8F4F8;
  --its-border: #d0dde8;
  --its-orange: #CC6600;
  --its-text:   #333333;
  --its-muted:  #666666;
  --max-w:      1200px;
}

/* ── Reset & base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  color: var(--its-text);
  background: #fff;
}

a {
  color: var(--its-blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  color: var(--its-navy);
}

/* ── Hero banner ── */
.page-hero {
  background: linear-gradient(135deg, #003a7a 0%, #0055aa 45%, #1a7bbf 100%);
  padding: 32px 24px 36px;
}

.page-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 10px;
}

.page-hero h1 {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
  /* max-width: 760px; */
}

.page-hero .lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  /* max-width: 640px; */
  margin-bottom: 20px;
}

/* ── Enquire Now button (ghost/outline style) ── */
.btn-enquire {
  display: inline-block;
  background: transparent;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 11px 28px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.15s, border-color 0.15s;
}
.btn-enquire:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
  text-decoration: none;
}

/* ── Quick-nav button bar (below hero) ── */
.quick-nav {
  background: #f5f8fb;
  border-bottom: 1px solid var(--its-border);
  padding: 10px 24px;
}

.quick-nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-qnav {
  display: inline-block;
  background: var(--its-sky);
  color: #fff;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}
.btn-qnav:hover {
  background: #0077b8;
  color: #fff;
  text-decoration: none;
}

/* ── Page content wrapper ── */
.page-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px 24px 44px;
}

/* ── Section headings ── */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--its-navy);
  margin-bottom: 14px;
  line-height: 1.3;
}

/* ── Content blocks ── */
.content-block {
  margin-bottom: 24px;
}

.content-block p {
  margin-bottom: 12px;
  font-size: 1.05rem;
  color: var(--its-text);
  line-height: 1.75;
}
.content-block p:last-child {
  margin-bottom: 0;
}

/* ── Note / warning box ── */
.note-box {
  background: #fffbf0;
  border: 1px solid #e8d89a;
  border-radius: 4px;
  padding: 13px 16px;
  margin: 14px 0 0;
  font-size: 1rem;
  color: var(--its-text);
  line-height: 1.6;
}
.note-box strong {
  color: #7a5000;
}

/* ── Current Status banner ── */
.status-banner {
  background: #D2E6FC;
  border-radius: 6px;
  padding: 20px 24px 18px;
  text-align: center;
}

.status-banner .status-label {
  display: inline-block;
  background: var(--its-orange);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 11px;
  border-radius: 3px;
  margin-bottom: 12px;
}

.status-banner .status-msg {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--its-navy);
  line-height: 1.35;
}

.status-sub {
  margin-top: 12px;
  font-size: 14px;
  color: var(--its-text);
  line-height: 1.6;
}

/* ── Queries button ── */
.btn-queries {
  display: inline-block;
  background: #088ECF;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 26px;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 12px;
  transition: background 0.15s;
}
.btn-queries:hover {
  background: #0677ae;
  color: #fff;
  text-decoration: none;
}

/* ── Key Information facts grid ── */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 6px;
}

.fact-item {
  background: #fff;
  border: 1px solid var(--its-border);
  border-radius: 4px;
  padding: 13px 15px;
}

.fact-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--its-blue);
  margin-bottom: 4px;
}

.fact-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--its-navy);
  line-height: 1.35;
}

.fact-sub {
  font-size: 0.9rem;
  color: var(--its-muted);
  margin-top: 3px;
}

/* ── Section divider ── */
.section-divider {
  border: none;
  border-top: 1px solid var(--its-border);
  margin: 24px 0;
}

/* ── Exam fee table ── */
.table-wrap {
  overflow-x: auto;
  margin: 14px 0 6px;
}

table.its-table {
  width: 100%;
  border-collapse: collapse;
  /* font-size: 14px; */
}

table.its-table th {
  background: var(--its-sky);
  color: #fff;
  padding: 13px 20px;
  text-align: center;
  font-weight: 700;
  /* font-size: 14px; */
  letter-spacing: 0.01em;
}

table.its-table th:first-child {
  border-right: 1px solid rgba(255, 255, 255, 0.3);
}

table.its-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--its-border);
  color: var(--its-text);
  text-align: center;
}

table.its-table td:first-child {
  border-right: 1px solid var(--its-border);
  text-align: center;
}

table.its-table tbody tr:nth-child(even) td {
  background: #f4f8fb;
}

table.its-table tbody tr:last-child td {
  border-bottom: none;
}

table.its-table td:last-child {
  font-weight: 700;
  color: var(--its-text);
}

/* ── Related links list ── */
.related-list {
  list-style: none;
  margin: 12px 0 0;
}

.related-list li {
  border-bottom: 1px solid var(--its-border);
  padding: 9px 0;
}

.related-list li:first-child {
  border-top: 1px solid var(--its-border);
}

.related-list a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--its-blue);
}

.related-list a::before {
  content: '› ';
}

.related-list a:hover {
  color: var(--its-navy);
}

/* ── Responsive — mobile ── */
@media (max-width: 620px) {
  .page-hero {
    padding: 24px 20px 28px;
  }

  .page-hero h1 {
    font-size: 22px;
  }

  .facts-grid {
    grid-template-columns: 1fr;
  }

  .page-content {
    padding: 28px 20px 40px;
  }

  .quick-nav {
    padding: 12px 20px;
  }

  .btn-qnav {
    font-size: 12px;
    padding: 9px 14px;
  }
}
