/* ══════════════════════════════════════════════════════
   Homepage
══════════════════════════════════════════════════════ */

/* ── Hero ────────────────────────────────────────────────────────────────────── */
.cw-hero {
  background: var(--ink);
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--ink-2);
  overflow: hidden;
}

.cw-hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--g);
  margin-bottom: 20px;
  text-align: center;
}

.cw-hero-title {
  font-size: 56px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -2.5px;
  line-height: 1.05;
  text-align: center;
  margin-bottom: 36px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.cw-hero-title span#heroCount {
  color: var(--g);
  display: block;
  font-size: 72px;
  letter-spacing: -3px;
}
.cw-hero-title span#heroLabel {
  display: block;
  font-size: 22px;
  font-weight: 600;
  color: #94A3B8;
  letter-spacing: -.3px;
  margin-top: 6px;
}

/* Hero filter */
.cw-hero-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 780px;
  margin: 0 auto 20px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 10px;
}
.cw-hf-selects { display: flex; gap: 6px; flex: 1; }
.cw-hf-select {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 9px;
  font-size: 13px;
  font-family: inherit;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: all .15s;
}
.cw-hf-select:focus { border-color: var(--g); background: rgba(5,150,105,.1); }
.cw-hf-select option { background: #1E293B; color: #fff; }
.cw-hf-btn { flex-shrink: 0; padding: 10px 22px; }

.cw-hero-note {
  text-align: center;
  font-size: 12px;
  color: #475569;
  font-weight: 500;
}

/* ── Section shared ──────────────────────────────────────────────────────────── */
.cw-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 20px;
}
.cw-section-sub { font-size: 14px; color: var(--muted); margin-top: 6px; }
.cw-view-all    { font-size: 13px; font-weight: 700; color: var(--g); text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.cw-view-all:hover { text-decoration: underline; }

/* ── Cards section ───────────────────────────────────────────────────────────── */
.cw-s-cards { padding: var(--gap-section) 0; background: var(--bg); }

/* ── Category cards ──────────────────────────────────────────────────────────── */
.cw-s-cats { padding: var(--gap-section) 0; background: var(--white); border-top: 1px solid var(--line); }
.cw-cats-grid {
  display: grid;
  grid-template-columns: repeat(6,1fr);
  gap: 12px;
}
.cw-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  transition: all .18s var(--ease);
  text-align: center;
}
.cw-cat-card:hover { border-color: var(--g); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.07); }
.cw-cat-icon  { font-size: 28px; margin-bottom: 10px; }
.cw-cat-name  { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.cw-cat-count { font-size: 11px; color: var(--muted); font-weight: 600; }

/* ── Country identity ────────────────────────────────────────────────────────── */
.cw-s-country { padding: var(--gap-section) 0; background: var(--bg); border-top: 1px solid var(--line); }
.cw-country-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.cw-ci-num {
  font-size: 80px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -4px;
  line-height: 1;
  margin-bottom: 8px;
}
.cw-ci-num em { color: var(--g); font-style: normal; }
.cw-ci-label  { font-size: 18px; font-weight: 700; color: var(--muted); margin-bottom: 16px; }
.cw-ci-desc   { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 24px; max-width: 420px; }
.cw-ci-right  { display: flex; flex-direction: column; gap: 8px; }
.cw-ci-country {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 11px;
  text-decoration: none;
  transition: all .15s;
}
.cw-ci-country:hover  { border-color: var(--g); }
.cw-ci-cname  { font-size: 14px; font-weight: 700; color: var(--ink); }
.cw-ci-ccount { font-size: 12px; color: var(--muted); }

/* ── Latest posts ────────────────────────────────────────────────────────────── */
.cw-s-posts { padding: var(--gap-section) 0; background: var(--white); border-top: 1px solid var(--line); }
.cw-posts-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}
.cw-post-card {
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: all .18s;
  display: flex;
  flex-direction: column;
}
.cw-post-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.08); border-color: #CBD5E1; }
.cw-post-img  { width: 100%; aspect-ratio: 16/9; overflow: hidden; }
.cw-post-img img { width: 100%; height: 100%; object-fit: cover; }
.cw-post-body { padding: 16px 18px 20px; flex: 1; }
.cw-post-cat  { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--g); margin-bottom: 6px; }
.cw-post-title { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.4; margin-bottom: 8px; }
.cw-post-date  { font-size: 11px; color: var(--faint); }

/* ── Proof section ───────────────────────────────────────────────────────────── */
.cw-s-proof { padding: var(--gap-section) 0; background: var(--bg); border-top: 1px solid var(--line); }
.cw-proof-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
  margin-top: 32px;
}
.cw-proof-card { padding: 24px; background: var(--white); border: 1.5px solid var(--line); border-radius: 14px; }
.cw-proof-num  { font-size: 36px; font-weight: 800; color: var(--ink); letter-spacing: -1.5px; margin-bottom: 8px; }
.cw-proof-desc { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 10px; }
.cw-proof-tag  { font-size: 10px; font-weight: 700; color: var(--g); }

/* ── Eligibility CTA ─────────────────────────────────────────────────────────── */
.cw-s-elig { padding: var(--gap-section) 0; background: var(--ink); }
.cw-se-inner { text-align: center; max-width: 600px; margin: 0 auto; }
.cw-se-title { font-size: 40px; font-weight: 800; color: #fff; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 16px; }
.cw-se-title em { color: var(--g); font-style: normal; }
.cw-se-sub  { font-size: 15px; color: #94A3B8; line-height: 1.65; margin-bottom: 28px; }
.cw-se-note { font-size: 12px; color: #475569; margin-top: 14px; }

/* ── Email capture ───────────────────────────────────────────────────────────── */
.cw-s-email { padding: var(--gap-section) 0; background: var(--white); border-top: 1px solid var(--line); }
.cw-email-inner { text-align: center; max-width: 560px; margin: 0 auto; }
.cw-email-title { font-size: 32px; font-weight: 800; color: var(--ink); letter-spacing: -1px; margin-bottom: 10px; }
.cw-email-sub   { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 24px; }
.cw-email-form  { display: flex; gap: 8px; max-width: 440px; margin: 0 auto 12px; }
.cw-email-input { flex: 1; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 14px; font-family: inherit; outline: none; transition: border-color .15s; }
.cw-email-input:focus { border-color: var(--g); }
.cw-email-note  { font-size: 12px; color: var(--faint); }

/* ── Tag pills ───────────────────────────────────────────────────────────────── */
.cw-s-tags  { padding: 40px 0 60px; background: var(--bg); border-top: 1px solid var(--line); }
.cw-tags-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); margin-bottom: 14px; }
.cw-tags-row   { display: flex; gap: 8px; flex-wrap: wrap; }
.cw-tag-pill   { padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 99px; font-size: 12px; font-weight: 700; color: var(--muted); text-decoration: none; background: var(--white); transition: all .15s; }
.cw-tag-pill:hover { border-color: var(--g); color: var(--g); }

/* ── Footer ──────────────────────────────────────────────────────────────────── */
.cw-footer { background: var(--ink); padding: 40px 0; border-top: 1px solid var(--ink-2); }
.cw-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cw-footer-links { display: flex; gap: 20px; }
.cw-footer-links a { font-size: 12px; color: #475569; text-decoration: none; }
.cw-footer-links a:hover { color: #fff; }

/* ── Mobile homepage ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .cw-hero        { padding: 52px 0 44px; }
  .cw-hero-title  { font-size: 32px; letter-spacing: -1.5px; }
  .cw-hero-title span#heroCount { font-size: 44px; }
  .cw-hero-title span#heroLabel { font-size: 15px; }
  .cw-hero-filter { flex-direction: column; padding: 12px; gap: 8px; }
  .cw-hf-selects  { flex-direction: column; width: 100%; }
  .cw-hf-select   { width: 100%; }
  .cw-hf-btn      { width: 100%; justify-content: center; }
  .cw-cats-grid   { grid-template-columns: repeat(3,1fr); gap: 10px; }
  .cw-cat-icon    { font-size: 22px; }
  .cw-cat-name    { font-size: 11px; }
  .cw-country-inner { grid-template-columns: 1fr; gap: 32px; }
  .cw-ci-num      { font-size: 52px; }
  .cw-posts-grid  { grid-template-columns: 1fr; }
  .cw-proof-grid  { grid-template-columns: repeat(2,1fr); }
  .cw-se-title    { font-size: 28px; }
  .cw-email-form  { flex-direction: column; }
  .cw-footer-inner { flex-direction: column; text-align: center; }
  .cw-footer-links { flex-wrap: wrap; justify-content: center; }
  .cw-section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 480px) {
  .cw-cats-grid { grid-template-columns: repeat(2,1fr); }
  .cw-proof-grid { grid-template-columns: 1fr; }
}
