/* =========================================================
   Grade 10 Maths – Chapter 3 | Pair of Linear Equations
   Fully scoped to .g10ch3 — zero conflict with WP themes
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Baloo+2:wght@700;800&display=swap');

/* ---- WRAPPER ---- */
.g10ch3 {
  font-family: 'Nunito', 'Segoe UI', Arial, sans-serif;
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 14px 80px;
  background: #f0f4ff;
  color: #1e293b;
  line-height: 1.7;
  font-size: 15px;
  box-sizing: border-box;
}
.g10ch3 *, .g10ch3 *::before, .g10ch3 *::after {
  box-sizing: border-box;
}

/* ---- HERO ---- */
.g10ch3-hero {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 45%, #0c4a6e 100%);
  padding: 56px 36px 50px;
  text-align: center;
  margin-bottom: 44px;
}
.g10ch3-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.g10ch3-blob-1 {
  top: -70px; left: -50px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(99,102,241,.45), transparent 65%);
}
.g10ch3-blob-2 {
  bottom: -50px; right: -40px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(14,165,233,.4), transparent 65%);
}
.g10ch3-hero-inner {
  position: relative;
  z-index: 2;
}
.g10ch3-chapter-label {
  font-size: 10px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #818cf8;
  margin-bottom: 12px;
  font-weight: 900;
}
.g10ch3-hero h1 {
  font-family: 'Baloo 2', Georgia, serif;
  font-size: clamp(28px, 6vw, 58px);
  color: #fff;
  line-height: 1.1;
  margin: 0 0 16px;
  font-weight: 800;
}
.g10ch3-hero h1 .c1 { color: #a5b4fc; }
.g10ch3-hero h1 .c2 { color: #7dd3fc; }
.g10ch3-hero-desc {
  color: #e2e8f0;
  font-size: 15px;
  max-width: 580px;
  margin: 0 auto 26px;
  line-height: 1.75;
}
.g10ch3-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
}
.g10ch3-tag {
  padding: 6px 16px;
  border-radius: 28px;
  font-weight: 900;
  font-size: 11px;
  display: inline-block;
}

/* ---- TOC ---- */
.g10ch3-toc {
  background: #fff;
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 36px;
  border: 1.5px solid #e2e8f0;
}
.g10ch3-toc-title {
  font-family: 'Baloo 2', Georgia, serif;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}
.g10ch3-toc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.g10ch3-toc-grid div { font-size: 13px; color: #475569; }

/* ---- SECTION HEADER ---- */
.g10ch3-sec {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 44px 0 20px;
}
.g10ch3-sec-icon {
  min-width: 52px; width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.g10ch3-sec-lbl {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #6366f1;
  margin-bottom: 3px;
}
.g10ch3-sec h2 {
  font-family: 'Baloo 2', Georgia, serif;
  font-size: clamp(17px, 3vw, 23px);
  color: #0f172a;
  margin: 0;
  font-weight: 800;
}

/* ---- CARDS ---- */
.g10ch3-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px 26px;
  margin-bottom: 16px;
}
.g10ch3-card p { margin: 0 0 12px; font-size: 15px; color: #334155; }
.g10ch3-card p:last-child { margin-bottom: 0; }

/* ---- INFO BOXES ---- */
.g10ch3-info {
  border-radius: 12px;
  padding: 14px 18px;
  margin: 12px 0;
  border-left: 5px solid;
}
.g10ch3-info-t { font-weight: 900; font-size: 14px; margin-bottom: 7px; }
.g10ch3-info-b { font-size: 14px; color: #374151; line-height: 1.9; }
.g10ch3-info.blue  { background: #eff6ff; border-color: #93c5fd; }
.g10ch3-info.green { background: #f0fdf4; border-color: #86efac; }
.g10ch3-info.yellow{ background: #fefce8; border-color: #fde68a; }
.g10ch3-info.red   { background: #fff0f0; border-color: #fca5a5; }
.g10ch3-info.sky   { background: #f0f9ff; border-color: #38bdf8; }
.g10ch3-info.blue  .g10ch3-info-t  { color: #1e3a8a; }
.g10ch3-info.green .g10ch3-info-t  { color: #14532d; }
.g10ch3-info.yellow .g10ch3-info-t { color: #92400e; }
.g10ch3-info.red   .g10ch3-info-t  { color: #991b1b; }
.g10ch3-info.sky   .g10ch3-info-t  { color: #0c4a6e; }

/* ---- GRID LAYOUTS ---- */
.g10ch3-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0;
}
.g10ch3-3col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin: 12px 0;
}

/* ---- EXAMPLE BOXES ---- */
.g10ch3-example {
  background: #fff;
  border-radius: 14px;
  padding: 20px 22px;
  margin: 14px 0;
  border-left: 5px solid #6366f1;
}
.g10ch3-badge {
  display: inline-block;
  color: #fff;
  border-radius: 18px;
  padding: 3px 13px;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 9px;
}
.g10ch3-eq { font-weight: 900; font-size: 15px; margin-bottom: 11px; }
.g10ch3-sol {
  border-radius: 10px;
  padding: 15px 17px;
  font-size: 14px;
  color: #374151;
  line-height: 2.1;
}

/* ---- RESULT PILLS ---- */
.g10ch3-pills {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.g10ch3-pills.p1 { grid-template-columns: 1fr; }
.g10ch3-pills.p2 { grid-template-columns: 1fr 1fr; }
.g10ch3-pills.p3 { grid-template-columns: 1fr 1fr 1fr; }
.g10ch3-pill-g {
  background: #f0fdf4;
  border-radius: 8px;
  padding: 9px 12px;
  text-align: center;
  border: 2px solid #86efac;
  font-weight: 900;
  color: #16a34a;
  font-size: 14px;
}
.g10ch3-pill-r {
  background: #fff0f0;
  border-radius: 8px;
  padding: 9px 12px;
  text-align: center;
  border: 2px solid #fca5a5;
  font-weight: 900;
  color: #dc2626;
  font-size: 14px;
}
.g10ch3-pill-p {
  background: #fdf2f8;
  border-radius: 8px;
  padding: 9px 12px;
  text-align: center;
  border: 2px solid #f9a8d4;
  font-weight: 900;
  color: #be185d;
  font-size: 14px;
}

/* ---- STEPS ---- */
.g10ch3-steps { margin: 0; padding: 0; list-style: none; }
.g10ch3-step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 9px;
}
.g10ch3-step-num {
  min-width: 24px; height: 24px;
  border-radius: 50%;
  background: #0284c7;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 12px;
  flex-shrink: 0;
}
.g10ch3-step div { font-size: 14px; color: #374151; line-height: 1.7; }

/* ---- TABLE ---- */
.g10ch3-tbl-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  margin: 12px 0;
}
.g10ch3-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 500px;
}
.g10ch3-tbl th {
  background: linear-gradient(135deg, #1e1b4b, #1e3a5f);
  color: #fff;
  padding: 11px 13px;
  text-align: left;
  font-weight: 900;
  font-size: 12px;
}
.g10ch3-tbl td {
  padding: 10px 13px;
  border-bottom: 1px solid #e2e8f0;
  color: #374151;
  vertical-align: top;
}
.g10ch3-tbl tr:last-child td { border-bottom: none; }
.g10ch3-tbl tr:nth-child(even) td { background: #fafafa; }

/* ---- DIAGRAM WRAPPER ---- */
.g10ch3-diagram {
  width: 100%;
  margin: 20px 0;
  text-align: center;
  background: #fff;
  border-radius: 14px;
  padding: 18px 10px;
  border: 2px solid #e2e8f0;
}
.g10ch3-diagram svg {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.g10ch3-diagram-cap {
  font-size: 12px;
  color: #64748b;
  margin-top: 10px;
  font-style: italic;
}

/* ---- DARK SUMMARY ---- */
.g10ch3-summary {
  background: #1e1b4b;
  border-radius: 18px;
  padding: 28px 30px;
  margin-bottom: 24px;
}
.g10ch3-summary h3 {
  font-family: 'Baloo 2', Georgia, serif;
  font-size: 20px;
  color: #fff;
  margin: 0 0 20px;
  text-align: center;
}
.g10ch3-summary-pill {
  border-radius: 12px;
  padding: 16px;
}
.g10ch3-summary-pill-lbl {
  font-weight: 900;
  font-size: 12px;
  margin-bottom: 8px;
}
.g10ch3-summary-pill p {
  color: #e2e8f0;
  font-size: 13px;
  line-height: 2;
  margin: 0;
}

/* ---- CHECKLIST ---- */
.g10ch3-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #f8fafc;
  border-radius: 9px;
  padding: 11px 13px;
  margin-bottom: 9px;
}
.g10ch3-num {
  min-width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  flex-shrink: 0;
}
.g10ch3-check div { font-size: 14px; color: #374151; }

/* ---- PRACTICE SETS ---- */
.g10ch3-pset {
  background: #fff;
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 16px;
}
.g10ch3-pset h3 {
  font-family: 'Baloo 2', Georgia, serif;
  font-size: 17px;
  color: #0f172a;
  margin: 0 0 4px;
}
.g10ch3-pset .sub {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 12px;
  font-style: italic;
}
.g10ch3-qgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.g10ch3-q {
  background: #f8fafc;
  border-radius: 9px;
  padding: 11px 13px;
  font-size: 14px;
  color: #334155;
  border-left: 4px solid #6366f1;
}
.g10ch3-ans {
  border-radius: 9px;
  padding: 12px 15px;
  margin-top: 12px;
  border-left: 4px solid;
}
.g10ch3-ans strong { font-size: 13px; }
.g10ch3-ans .at { font-size: 13px; color: #374151; margin-top: 5px; }

/* ---- ACCORDION (for answers) ---- */
.g10ch3-acc-btn {
  width: 100%;
  background: #f1f5f9;
  border: 2px solid #e2e8f0;
  border-radius: 9px;
  padding: 11px 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .2s;
}
.g10ch3-acc-btn:hover { background: #e2e8f0; }
.g10ch3-acc-btn .arrow { transition: transform .3s; display: inline-block; }
.g10ch3-acc-btn.open .arrow { transform: rotate(180deg); }
.g10ch3-acc-body {
  display: none;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-top: none;
  border-radius: 0 0 9px 9px;
  padding: 12px 15px;
  font-size: 13px;
  color: #374151;
  line-height: 1.8;
}
.g10ch3-acc-body.open { display: block; }

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  .g10ch3-2col   { grid-template-columns: 1fr; }
  .g10ch3-3col   { grid-template-columns: 1fr; }
  .g10ch3-qgrid  { grid-template-columns: 1fr; }
  .g10ch3-toc-grid { grid-template-columns: 1fr; }
  .g10ch3-pills.p2 { grid-template-columns: 1fr 1fr; }
  .g10ch3-pills.p3 { grid-template-columns: 1fr; }
  .g10ch3-hero   { padding: 38px 18px 34px; }
  .g10ch3-summary .g10ch3-2col { grid-template-columns: 1fr; }
}
