/* ============================================================
   Child Safety Guide — child-safety.php
   BWS UI only (no Bootstrap)
   ============================================================ */

/* ── Page wrapper ────────────────────────────────────────────── */
.cs-page {
  min-height: 100vh;
}

/* ── Hero ────────────────────────────────────────────────────── */
.cs-hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4338ca 70%, #6d28d9 100%);
  color: #fff;
  padding: 4rem 1.5rem 3.5rem;
  text-align: center;
}
.cs-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}
.cs-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  padding: .35rem 1rem;
  font-size: .8rem;
  font-weight: 700;
  color: #e0e7ff;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.cs-hero-title {
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 900;
  margin: 0 0 .75rem;
  line-height: 1.15;
  color: #fff;
}
.cs-hero-sub {
  font-size: 1.05rem;
  color: #c7d2fe;
  font-weight: 600;
  margin: 0 0 1.75rem;
  line-height: 1.5;
}
.cs-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
}
.cs-hero-chip {
  display: inline-block;
  padding: .4rem .95rem;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.cs-hero-chip:hover {
  background: rgba(255,255,255,.28);
  border-color: rgba(255,255,255,.6);
  color: #fff;
}
.cs-hero-chip--alert {
  background: rgba(239,68,68,.25);
  border-color: rgba(239,68,68,.5);
  color: #fecaca;
}
.cs-hero-chip--alert:hover {
  background: rgba(239,68,68,.4);
}

/* ── Content wrapper ─────────────────────────────────────────── */
.cs-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* ── Generic section ─────────────────────────────────────────── */
.cs-section {
  background: #fff;
  border-radius: 1.25rem;
  padding: 2rem 1.75rem;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}
.cs-section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.cs-section-emoji {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}
.cs-section-heading {
  font-size: 1.45rem;
  font-weight: 900;
  color: #1e1b4b;
  margin: 0;
  flex: 1;
}
.cs-section-heading--white { color: #fff; }

/* ── Age grid ────────────────────────────────────────────────── */
.cs-age-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* ── Age card ────────────────────────────────────────────────── */
.cs-age-card {
  border-radius: 1rem;
  padding: 1.5rem 1.25rem;
  border-top: 4px solid transparent;
  background: #f9fafb;
}
.cs-age-card-head {
  display: flex;
  align-items: center;
  gap: .875rem;
  margin-bottom: 1rem;
}
.cs-age-emoji {
  font-size: 2.25rem;
  line-height: 1;
  flex-shrink: 0;
}
.cs-age-label {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .7;
}
.cs-age-title {
  font-size: 1.1rem;
  font-weight: 900;
  margin: .15rem 0 0;
  color: #1e1b4b;
}

/* Age colour themes */
.cs-age-card--orange { border-top-color: #f59e0b; background: #fffbeb; }
.cs-age-card--orange .cs-age-label { color: #92400e; }
.cs-age-card--green  { border-top-color: #10b981; background: #f0fdf4; }
.cs-age-card--green  .cs-age-label { color: #065f46; }
.cs-age-card--blue   { border-top-color: #3b82f6; background: #eff6ff; }
.cs-age-card--blue   .cs-age-label { color: #1e40af; }
.cs-age-card--purple { border-top-color: #7c3aed; background: #f5f3ff; }
.cs-age-card--purple .cs-age-label { color: #4c1d95; }

/* ── Tip list ────────────────────────────────────────────────── */
.cs-tip-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.cs-tip-list li {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: .9rem;
  font-weight: 600;
  color: #374151;
  line-height: 1.45;
}
.cs-tip-list li::before {
  content: '✓';
  font-size: .75rem;
  font-weight: 900;
  color: #10b981;
  flex-shrink: 0;
  margin-top: .17rem;
  width: 16px;
  text-align: center;
}
.cs-tip-list a {
  color: #7c3aed;
  text-decoration: underline;
  font-weight: 700;
}
.cs-tip-list a:hover { color: #5b21b6; }

/* ── Parents section ─────────────────────────────────────────── */
.cs-parents-section {
  background: linear-gradient(135deg, #4338ca 0%, #7c3aed 100%);
  color: #fff;
}
.cs-parents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .875rem;
}
.cs-parents-tip {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: .75rem;
  padding: .875rem 1rem;
  font-size: .9rem;
  font-weight: 600;
  color: #e0e7ff;
  line-height: 1.4;
}
.cs-parents-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: .1rem;
}

/* ── Warning signs ───────────────────────────────────────────── */
.cs-warn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.cs-warn-card {
  background: #fffbeb;
  border: 1.5px solid #fcd34d;
  border-left: 4px solid #f59e0b;
  border-radius: .875rem;
  padding: 1.25rem;
}
.cs-warn-card-title {
  font-size: .95rem;
  font-weight: 800;
  color: #78350f;
  margin: 0 0 .875rem;
}
.cs-warn-card .cs-tip-list li { color: #451a03; }
.cs-warn-card .cs-tip-list li::before { content: '!'; color: #f59e0b; }

/* ── Emergency section ───────────────────────────────────────── */
.cs-emergency-section {
  background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 50%, #b91c1c 100%);
}
.cs-emergency-section .cs-section-heading--white { color: #fff; }
.cs-emerg-sub {
  width: 100%;
  color: #fecaca;
  font-size: .9rem;
  font-weight: 600;
  margin: 0;
}
.cs-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.cs-step {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: .875rem;
  padding: 1.1rem 1.25rem;
}
.cs-step-num {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: #fff;
  color: #b91c1c;
  font-size: 1.1rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cs-step-body {
  flex: 1;
  color: #fecaca;
  font-size: .9rem;
  line-height: 1.5;
}
.cs-step-body strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: .25rem;
}
.cs-step-body p { margin: 0; }
.cs-danger-alert {
  background: rgba(254,202,202,.15);
  border: 1.5px solid rgba(254,202,202,.4);
  border-radius: .75rem;
  padding: 1rem 1.25rem;
  font-size: .92rem;
  font-weight: 700;
  color: #fecaca;
  line-height: 1.5;
}
.cs-danger-alert strong { color: #fff; }

/* ── Reporting resources ─────────────────────────────────────── */
.cs-report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.cs-report-card {
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.1rem 1.15rem;
  transition: box-shadow .15s, border-color .15s;
}
.cs-report-card:hover {
  border-color: #c4b5fd;
  box-shadow: 0 4px 14px rgba(124,58,237,.1);
}
.cs-report-flag {
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: .5rem;
}
.cs-report-country {
  font-size: .85rem;
  font-weight: 900;
  color: #1e1b4b;
  margin: 0 0 .35rem;
}
.cs-report-org {
  font-size: .78rem;
  font-weight: 600;
  color: #374151;
  margin: 0 0 .5rem;
  line-height: 1.4;
}
.cs-report-link {
  display: inline-block;
  background: #ede9fe;
  color: #5b21b6;
  font-size: .78rem;
  font-weight: 800;
  padding: .2rem .65rem;
  border-radius: 999px;
  text-decoration: none;
  margin-bottom: .35rem;
}
.cs-report-link:hover { background: #ddd6fe; color: #4c1d95; }
.cs-report-phone {
  font-size: .78rem;
  font-weight: 700;
  color: #374151;
  margin: .25rem 0 0;
}
.cs-report-note {
  font-size: .75rem;
  color: #6b7280;
  font-style: italic;
  margin: .25rem 0 0;
}

/* Platform reporting box */
.cs-platform-box {
  background: #f0f9ff;
  border: 1.5px solid #bae6fd;
  border-radius: .875rem;
  padding: 1.25rem 1.5rem;
}
.cs-platform-title {
  font-size: .95rem;
  font-weight: 800;
  color: #0c4a6e;
  margin: 0 0 .875rem;
}
.cs-platform-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.cs-platform-list li {
  font-size: .87rem;
  font-weight: 600;
  color: #1e3a5f;
  line-height: 1.4;
}
.cs-platform-list a {
  color: #0369a1;
  text-decoration: underline;
  font-weight: 700;
}
.cs-platform-list a:hover { color: #0c4a6e; }

/* ── Additional resources ────────────────────────────────────── */
.cs-resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
}
.cs-resource-card {
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: .875rem;
  padding: 1.1rem 1.15rem;
}
.cs-resource-title {
  font-size: .9rem;
  font-weight: 800;
  color: #1e1b4b;
  margin: 0 0 .75rem;
}

/* ── CTA section ─────────────────────────────────────────────── */
.cs-cta-section {
  background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 100%);
  border-radius: 1.25rem;
  text-align: center;
  padding: 3rem 1.5rem;
}
.cs-cta-inner { max-width: 520px; margin: 0 auto; }
.cs-cta-emoji { font-size: 2.5rem; margin: 0 0 .75rem; }
.cs-cta-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  margin: 0 0 .6rem;
}
.cs-cta-body {
  font-size: .95rem;
  color: #c7d2fe;
  font-weight: 600;
  margin: 0 0 1.5rem;
  line-height: 1.55;
}
.cs-cta-btn {
  display: inline-block;
  padding: .8rem 2rem;
  border-radius: 999px;
  background: #fff;
  color: #4338ca;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.cs-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  color: #312e81;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 700px) {
  .cs-hero  { padding: 2.5rem 1rem 2rem; }
  .cs-content { padding: 1.5rem 1rem 3rem; gap: 1.75rem; }
  .cs-section { padding: 1.5rem 1.1rem; }
  .cs-age-grid { grid-template-columns: 1fr; }
  .cs-parents-grid { grid-template-columns: 1fr; }
  .cs-report-grid { grid-template-columns: 1fr 1fr; }
  .cs-resources-grid { grid-template-columns: 1fr; }
  .cs-step { gap: .75rem; padding: .875rem 1rem; }
}
@media (max-width: 420px) {
  .cs-report-grid { grid-template-columns: 1fr; }
}

/* ── Platform safety systems ──────────────────────────────── */
.cs-platform-safety-section {
  background: linear-gradient(135deg, #1e1b4b, #4c1d95) !important;
}
.cs-systems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: .5rem;
}
.cs-system-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 1rem;
  padding: 1.25rem;
  color: #e9d5ff;
}
.cs-system-card h3 {
  font-size: .95rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 .5rem;
}
.cs-system-card p {
  font-size: .85rem;
  line-height: 1.55;
  margin: 0;
  color: #ddd6fe;
}
.cs-system-card .cs-tip-list li {
  color: #c4b5fd;
  font-size: .82rem;
}
.cs-system-icon {
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: .6rem;
}

/* ── No ads section ────────────────────────────────────────── */
.cs-no-ads-box {
  background: #fef9f0;
  border: 2px solid #fcd34d;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.cs-no-ads-headline {
  font-size: 1.05rem;
  font-weight: 900;
  color: #78350f;
  margin-bottom: .5rem;
}
.cs-no-ads-box p {
  font-size: .9rem;
  color: #92400e;
  margin: 0;
  line-height: 1.55;
}
.cs-ads-explainer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.cs-ads-explainer-card {
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.1rem 1.15rem;
}
.cs-ads-explainer-card h3 {
  font-size: .88rem;
  font-weight: 800;
  color: #1e1b4b;
  margin: 0 0 .5rem;
}
.cs-ads-explainer-card p {
  font-size: .84rem;
  color: #374151;
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 700px) {
  .cs-systems-grid { grid-template-columns: 1fr; }
  .cs-ads-explainer-grid { grid-template-columns: 1fr; }
}
