.elementor-12681 .elementor-element.elementor-element-b016c85{--display:flex;}body.elementor-page-12681:not(.elementor-motion-effects-element-type-background), body.elementor-page-12681 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-image:url("https://pdotuitionservices.com/wp-content/uploads/2025/08/ChatGPT-Image-Aug-14-2025-11_00_39-AM.png");}:root{--page-title-display:none;}/* Start custom CSS for html, class: .elementor-element-17520fa *//* ==========================================================================
   ONTARIO MATHEMATICS ONLINE TUITION — PREMIUM STYLESHEET
   Concept: "The Drafting Table" — graph-paper stock, blueprint ink,
   brass instrument accents.

   SCOPING NOTE
   Every rule below is anchored to this page's own class names via
   [class*="ontario-mathematics-"] (the section wrappers) or
   [class*="mathematics-"] (the card/grid/note components), so nothing
   here can touch a site header, footer, or any other page — even
   generic tags and utility classes like <a>, <section>, .container,
   .btn are scoped this way rather than left bare. No HTML changes
   needed, provided the header/footer don't reuse these exact class
   names.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;0,6..72,700;1,6..72,500&family=Archivo:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

/* ---------- Tokens (custom properties are inert until used, safe to
   declare on :root) ---------- */
:root{
  --om-paper:      #F0EEE3;
  --om-paper-alt:  #E9E7DA;
  --om-card:       #FBFAF3;
  --om-ink:        #1C2E4A;
  --om-ink-soft:   #3E5674;
  --om-blueprint:  #2F5D8A;
  --om-blueprint-soft: #6B8AA6;
  --om-brass:      #A9752E;
  --om-brass-dark: #8A5F23;
  --om-grid-line:  #CBD3C4;
  --om-grid-line-soft: rgba(47,93,138,0.08);
  --om-rule:       #C7C2AE;
  --om-shadow-hard: 3px 3px 0 rgba(28,46,74,0.08);

  --om-font-display: 'Newsreader', Georgia, serif;
  --om-font-body:    'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
  --om-font-mono:    'IBM Plex Mono', ui-monospace, monospace;

  --om-measure: 68ch;
  --om-radius: 3px;
}

/* ---------- Scoped reset & base ---------- */
[class*="ontario-mathematics-"],
[class*="ontario-mathematics-"] *{
  box-sizing: border-box;
}

[class*="ontario-mathematics-"]{
  background: var(--om-paper);
  color: var(--om-ink);
  font-family: var(--om-font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* graph-paper wash — applied per-section rather than to <body>, so it
   never extends into surrounding page chrome */
section[class*="ontario-mathematics-"]{
  background-image:
    linear-gradient(var(--om-grid-line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--om-grid-line-soft) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -1px -1px;
}

[class*="ontario-mathematics-"] h1,
[class*="ontario-mathematics-"] h2,
[class*="ontario-mathematics-"] h3,
[class*="ontario-mathematics-"] h4{
  font-family: var(--om-font-display);
  color: var(--om-ink);
  font-weight: 600;
  line-height: 1.18;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

[class*="ontario-mathematics-"] h1{ font-size: clamp(2.4rem, 4.2vw, 3.4rem); font-weight: 700; }
[class*="ontario-mathematics-"] h2{ font-size: clamp(1.7rem, 2.6vw, 2.25rem); }
[class*="ontario-mathematics-"] h3{ font-size: 1.22rem; font-weight: 600; }
[class*="ontario-mathematics-"] h4{ font-size: 1.05rem; font-weight: 600; font-family: var(--om-font-body); }

[class*="ontario-mathematics-"] p{ margin: 0 0 1em; max-width: var(--om-measure); color: var(--om-ink-soft); }

[class*="ontario-mathematics-"] ul{ margin: 0 0 1em; padding-left: 0; list-style: none; max-width: var(--om-measure); }

/* links inside this page's copy only — never a bare `a` .elementor-12681 .elementor-element.elementor-element-17520fa */
[class*="ontario-mathematics-"] p a,
[class*="ontario-mathematics-"] li a{
  color: var(--om-blueprint);
  text-decoration-color: var(--om-blueprint-soft);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
[class*="ontario-mathematics-"] p a:hover,
[class*="ontario-mathematics-"] li a:hover{
  color: var(--om-brass-dark);
  text-decoration-color: var(--om-brass);
}

section[class*="ontario-mathematics-"] > .container{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

section[class*="ontario-mathematics-"]{
  padding: 88px 0;
  border-bottom: 1px solid var(--om-rule);
  position: relative;
}

section[class*="ontario-mathematics-"] .section-intro{
  max-width: 56ch;
  font-size: 1.06rem;
  margin-bottom: 3rem;
  color: var(--om-ink-soft);
}

/* explicit alternating stock — assigned by name, never by sibling
   position, so it can't be thrown off by unrelated <section> elements
   elsewhere on the real page */
.ontario-mathematics-curriculum,
.ontario-mathematics-syllabus,
.ontario-mathematics-approach,
.ontario-mathematics-schoolwork,
.ontario-mathematics-students,
.ontario-mathematics-how-it-works,
.ontario-mathematics-stage-support,
.ontario-mathematics-ongoing-support{
  background-color: var(--om-paper-alt);
}

/* ==========================================================================
   BUTTONS — scoped to this page's own .btn only
   ========================================================================== */
[class*="ontario-mathematics-"] .btn{
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--om-font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85em 1.7em;
  border-radius: var(--om-radius);
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, letter-spacing 0.15s ease;
}

[class*="ontario-mathematics-"] .btn-primary{
  background: var(--om-brass);
  color: #FFFDF8;
  box-shadow: var(--om-shadow-hard);
}
[class*="ontario-mathematics-"] .btn-primary:hover{
  background: var(--om-brass-dark);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 rgba(28,46,74,0.14);
  letter-spacing: 0.01em;
}
[class*="ontario-mathematics-"] .btn-primary:active{
  transform: translate(0, 0);
  box-shadow: 1px 1px 0 rgba(28,46,74,0.14);
}

[class*="ontario-mathematics-"] .btn-secondary{
  background: transparent;
  color: var(--om-ink);
  border-color: var(--om-ink);
}
[class*="ontario-mathematics-"] .btn-secondary:hover{
  background: var(--om-ink);
  color: var(--om-paper);
  transform: translate(-1px, -1px);
}
[class*="ontario-mathematics-"] .btn-secondary:active{
  transform: translate(0, 0);
}

[class*="ontario-mathematics-"] .btn:focus-visible{
  outline: 2px solid var(--om-blueprint);
  outline-offset: 3px;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.ontario-mathematics-hero{
  padding: 108px 0 96px;
  background-color: var(--om-paper);
  overflow: hidden;
}

.ontario-mathematics-hero > .container{
  position: relative;
  max-width: 760px;
}

.ontario-mathematics-hero h1{
  position: relative;
  padding-left: 22px;
  border-left: 3px solid var(--om-brass);
  transition: border-color 0.4s ease;
}
.ontario-mathematics-hero:hover h1{ border-color: var(--om-blueprint); }

.ontario-mathematics-hero h2{
  font-family: var(--om-font-body);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--om-blueprint);
  margin-bottom: 1.6rem;
}

.ontario-mathematics-hero p{ font-size: 1.05rem; }

.ontario-mathematics-hero::after{
  content: "";
  position: absolute;
  top: 50%;
  right: -160px;
  width: 460px;
  height: 460px;
  transform: translateY(-50%);
  border-radius: 50%;
  background:
    conic-gradient(var(--om-blueprint-soft) 0deg 2deg, transparent 2deg 30deg,
                    var(--om-blueprint-soft) 30deg 32deg, transparent 32deg 60deg,
                    var(--om-blueprint-soft) 60deg 62deg, transparent 62deg 90deg,
                    var(--om-blueprint-soft) 90deg 92deg, transparent 92deg 120deg,
                    var(--om-blueprint-soft) 120deg 122deg, transparent 122deg 150deg,
                    var(--om-blueprint-soft) 150deg 152deg, transparent 152deg 180deg,
                    var(--om-blueprint-soft) 180deg 360deg);
  mask: radial-gradient(circle, transparent 62%, #000 63%, #000 100%);
  opacity: 0.5;
  pointer-events: none;
}

.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2.2rem;
}

/* ==========================================================================
   SHARED CARD-GRID SYSTEM — scoped via [class*="mathematics-"]
   ========================================================================== */
[class*="mathematics-"][class$="-grid"],
.mathematics-grade-breakdown{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
  margin-bottom: 2.6rem;
}

.mathematics-stage-grid{ grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.mathematics-level-grid{ grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.mathematics-secondary-grid{ grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

[class*="mathematics-"][class$="-card"]{
  position: relative;
  background: var(--om-card);
  border: 1px solid var(--om-rule);
  border-radius: var(--om-radius);
  padding: 28px 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

/* drafting registration marks — reveal on hover */
[class*="mathematics-"][class$="-card"]::before{
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 14px; height: 14px;
  border-top: 2px solid var(--om-blueprint);
  border-left: 2px solid var(--om-blueprint);
  opacity: 0;
  transform: translate(-3px, -3px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
[class*="mathematics-"][class$="-card"]::after{
  content: "";
  position: absolute;
  bottom: -1px; right: -1px;
  width: 14px; height: 14px;
  border-bottom: 2px solid var(--om-blueprint);
  border-right: 2px solid var(--om-blueprint);
  opacity: 0;
  transform: translate(3px, 3px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

[class*="mathematics-"][class$="-card"]:hover{
  border-color: var(--om-blueprint-soft);
  transform: translateY(-4px);
  box-shadow: var(--om-shadow-hard);
}
[class*="mathematics-"][class$="-card"]:hover::before,
[class*="mathematics-"][class$="-card"]:hover::after{
  opacity: 1;
  transform: translate(0, 0);
}

/* micro-hover: heading gains a brass underline stroke that draws in */
[class*="mathematics-"][class$="-card"] h3,
[class*="mathematics-"][class$="-card"] h4{
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
  font-size: 1.12rem;
  margin-bottom: 0.55em;
}
[class*="mathematics-"][class$="-card"] h3::after,
[class*="mathematics-"][class$="-card"] h4::after{
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--om-brass);
  transition: width 0.25s ease;
}
[class*="mathematics-"][class$="-card"]:hover h3::after,
[class*="mathematics-"][class$="-card"]:hover h4::after{
  width: 100%;
}

[class*="mathematics-"][class$="-card"] p{
  font-size: 0.97rem;
  margin-bottom: 0;
}

/* ---------- Shared callout "note" boxes ---------- */
[class*="mathematics-"][class$="-note"]{
  border-left: 3px solid var(--om-brass);
  background: rgba(169,117,46,0.07);
  padding: 18px 22px;
  border-radius: 0 var(--om-radius) var(--om-radius) 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}
[class*="mathematics-"][class$="-note"]:hover{
  background: rgba(169,117,46,0.12);
  border-color: var(--om-blueprint);
}

[class*="mathematics-"][class$="-note"] p{
  margin: 0;
  font-size: 0.95rem;
  color: var(--om-ink-soft);
}

[class*="mathematics-"][class$="-note"] strong{
  font-family: var(--om-font-mono);
  font-size: 0.8rem;
  color: var(--om-brass-dark);
  display: block;
  margin-bottom: 0.3em;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   CURRICULUM STRANDS — coordinate-tag detail (N·1, A·2 … one per strand)
   ========================================================================== */
.mathematics-curriculum-card{ padding-top: 40px; overflow: visible; }

.mathematics-curriculum-card:nth-child(1) h3,
.mathematics-curriculum-card:nth-child(2) h3,
.mathematics-curriculum-card:nth-child(3) h3,
.mathematics-curriculum-card:nth-child(4) h3,
.mathematics-curriculum-card:nth-child(5) h3,
.mathematics-curriculum-card:nth-child(6) h3{
  position: relative;
}

.mathematics-curriculum-card:nth-child(1) h3::before,
.mathematics-curriculum-card:nth-child(2) h3::before,
.mathematics-curriculum-card:nth-child(3) h3::before,
.mathematics-curriculum-card:nth-child(4) h3::before,
.mathematics-curriculum-card:nth-child(5) h3::before,
.mathematics-curriculum-card:nth-child(6) h3::before{
  position: absolute;
  top: -26px; left: 0;
  font-family: var(--om-font-mono);
  font-size: 0.72rem;
  color: var(--om-blueprint-soft);
  letter-spacing: 0.03em;
  transition: color 0.18s ease;
}
.mathematics-curriculum-card:nth-child(1) h3::before{ content: "N · 1"; }
.mathematics-curriculum-card:nth-child(2) h3::before{ content: "A · 2"; }
.mathematics-curriculum-card:nth-child(3) h3::before{ content: "D · 3"; }
.mathematics-curriculum-card:nth-child(4) h3::before{ content: "S · 4"; }
.mathematics-curriculum-card:nth-child(5) h3::before{ content: "F · 5"; }
.mathematics-curriculum-card:nth-child(6) h3::before{ content: "M · 6"; }

.mathematics-curriculum-card:hover h3::before{ color: var(--om-brass); }

/* ==========================================================================
   GRADE LEVELS
   ========================================================================== */
.mathematics-level-card h3{ color: var(--om-blueprint); }
.mathematics-level-card:hover h3{ color: var(--om-brass-dark); }

/* ==========================================================================
   SYLLABUS BLOCKS
   ========================================================================== */
.mathematics-syllabus-block{ margin-bottom: 3.4rem; }
.mathematics-syllabus-block:last-of-type{ margin-bottom: 2.6rem; }

.mathematics-syllabus-block > h3{
  font-size: 1.4rem;
  padding-bottom: 0.5em;
  border-bottom: 1px solid var(--om-rule);
  margin-bottom: 0.8em;
}

.mathematics-syllabus-block > p{ margin-bottom: 2rem; }

.mathematics-syllabus-card{ background: var(--om-card); border-style: dashed; }
.mathematics-syllabus-card h4{ color: var(--om-blueprint); }
.mathematics-syllabus-card:hover h4{ color: var(--om-brass-dark); }
.mathematics-syllabus-card p{ font-size: 0.95rem; margin: 0; }

/* ---- grade-by-grade "number line" strip ---- */
.mathematics-grade-breakdown{
  counter-reset: gradeline;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px 22px;
  padding-top: 10px;
}

.mathematics-grade-card{
  counter-increment: gradeline;
  padding-top: 34px;
  border-top: 3px solid var(--om-blueprint-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-top-color 0.18s ease;
}
.mathematics-grade-card:hover{ border-top-color: var(--om-brass); }

.mathematics-grade-card::before{
  content: counter(gradeline);
  position: absolute;
  top: -18px; left: 24px;
  font-family: var(--om-font-mono);
  font-weight: 600;
  font-size: 0.78rem;
  background: var(--om-blueprint);
  color: #fff;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  opacity: 1;
  transform: none;
  transition: background 0.18s ease, transform 0.18s ease;
}
.mathematics-grade-card:hover::before{
  background: var(--om-brass);
  transform: scale(1.12);
}

.mathematics-grade-card h4{ font-size: 0.98rem; margin-bottom: 0.4em; }
.mathematics-grade-card p{ font-size: 0.92rem; margin: 0; }

.mathematics-secondary-card{ border-left: 3px solid var(--om-brass); transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease; }
.mathematics-secondary-card:hover{ border-left-color: var(--om-blueprint); }
.mathematics-secondary-card h4{ color: var(--om-brass-dark); font-family: var(--om-font-mono); font-size: 0.92rem; letter-spacing: 0.01em; display: block; }
.mathematics-secondary-card:hover h4{ color: var(--om-blueprint); }
.mathematics-secondary-card p{ font-size: 0.95rem; margin: 0; }

/* ==========================================================================
   HOW IT WORKS — bespoke "step function" staircase
   A step function is a real mathematical object, so the metaphor is
   drawn from the subject rather than decoration: each stage of the
   process sits one step higher, joined by riser lines down to a
   shared baseline axis.
   ========================================================================== */
.ontario-mathematics-how-it-works .section-intro{ max-width: 62ch; }

.mathematics-process-grid{
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-top: 2.6rem;
  margin-bottom: 0;
  padding-bottom: 46px;
  position: relative;
  overflow-x: auto;
}

/* baseline axis running under every step */
.mathematics-process-grid::before{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 44px;
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    var(--om-ink) 0, var(--om-ink) 6px,
    transparent 6px, transparent 12px
  );
  opacity: 0.35;
}

.mathematics-process-card{
  flex: 1 1 180px;
  min-width: 180px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0 4px 0 14px;
  position: relative;
  transition: transform 0.22s ease;
}
.mathematics-process-card::before,
.mathematics-process-card::after{ display: none; }

/* the ascending riser: each step sits progressively higher */
.mathematics-process-card:nth-child(1){ --om-riser: 0px; }
.mathematics-process-card:nth-child(2){ --om-riser: 34px; }
.mathematics-process-card:nth-child(3){ --om-riser: 68px; }
.mathematics-process-card:nth-child(4){ --om-riser: 102px; }
.mathematics-process-card:nth-child(5){ --om-riser: 136px; }

.mathematics-process-card{ margin-bottom: var(--om-riser, 0px); }

/* vertical riser line dropping from each step to the shared baseline */
.mathematics-process-card > .process-number::before{
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 2px;
  height: calc(var(--om-riser, 0px) + 46px);
  background: var(--om-grid-line);
  transition: background 0.22s ease;
}

/* horizontal tread mark at the top-left of each step */
.mathematics-process-card > .process-number::after{
  content: "";
  position: absolute;
  left: 0; top: -2px;
  width: 14px;
  height: 2px;
  background: var(--om-brass);
}

.mathematics-process-card:hover{ transform: translateY(-6px); }
.mathematics-process-card:hover > .process-number::before{ background: var(--om-brass); }

.process-number{
  display: block;
  position: relative;
  font-family: var(--om-font-mono);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--om-brass);
  padding-bottom: 10px;
  margin-bottom: 14px;
  width: 3ch;
  transition: color 0.2s ease, transform 0.2s ease;
}
.mathematics-process-card:hover .process-number{
  color: var(--om-blueprint);
  transform: translateX(2px);
}

.mathematics-process-card h3{ font-size: 1.02rem; }
.mathematics-process-card p{ font-size: 0.93rem; }

@media (max-width: 900px){
  .mathematics-process-grid{
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 0;
    overflow-x: visible;
  }
  .mathematics-process-grid::before{ display: none; }
  .mathematics-process-card{
    margin-bottom: 0 !important;
    padding: 0 0 26px 20px;
    border-left: 2px solid var(--om-grid-line);
  }
  .mathematics-process-card:hover{ border-left-color: var(--om-brass); }
  .mathematics-process-card > .process-number::before,
  .mathematics-process-card > .process-number::after{ display: none; }
  .mathematics-process-card:last-child{ padding-bottom: 0; }
}

/* ==========================================================================
   STAGE SUPPORT (Elementary / Secondary) — checklist styling
   ========================================================================== */
.mathematics-stage-card{ padding: 32px 30px; }
.mathematics-stage-card h3{ font-size: 1.3rem; color: var(--om-blueprint); }
.mathematics-stage-card:hover h3{ color: var(--om-brass-dark); }

.mathematics-stage-card ul{ margin-top: 1.2em; }

.mathematics-stage-card li{
  position: relative;
  padding-left: 1.6em;
  margin-bottom: 0.65em;
  font-size: 0.96rem;
  color: var(--om-ink-soft);
  transition: color 0.15s ease, transform 0.15s ease;
}

.mathematics-stage-card li::before{
  content: "+";
  position: absolute;
  left: 0;
  top: -0.05em;
  font-family: var(--om-font-mono);
  font-weight: 600;
  color: var(--om-brass);
  transition: color 0.15s ease, transform 0.15s ease;
}

.mathematics-stage-card li:hover{
  color: var(--om-ink);
  transform: translateX(3px);
}
.mathematics-stage-card li:hover::before{
  color: var(--om-blueprint);
  transform: scale(1.2);
}

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.ontario-mathematics-final-cta{
  background-color: var(--om-ink);
  border-bottom: none;
  text-align: left;
}

.ontario-mathematics-final-cta > .container{ max-width: 720px; }

.ontario-mathematics-final-cta h2{ color: var(--om-paper); }
.ontario-mathematics-final-cta p{ color: rgba(240,238,227,0.82); }

.ontario-mathematics-final-cta .btn-secondary{
  color: var(--om-paper);
  border-color: var(--om-paper);
}
.ontario-mathematics-final-cta .btn-secondary:hover{
  background: var(--om-paper);
  color: var(--om-ink);
}

.final-cta-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 1.8rem;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.ontario-mathematics-faq > .container{ max-width: 820px; }

.ontario-mathematics-faq .faq-list{ border-top: 1px solid var(--om-rule); }

.ontario-mathematics-faq .faq-item{ border-bottom: 1px solid var(--om-rule); }

.ontario-mathematics-faq .faq-question{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--om-font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--om-ink);
  padding: 22px 4px;
  cursor: pointer;
  transition: color 0.18s ease, padding-left 0.18s ease;
}

.ontario-mathematics-faq .faq-question:hover{
  color: var(--om-blueprint);
  padding-left: 8px;
}

.ontario-mathematics-faq .faq-question:focus-visible{
  outline: 2px solid var(--om-blueprint);
  outline-offset: 4px;
}

.ontario-mathematics-faq .faq-icon{
  flex-shrink: 0;
  width: 26px; height: 26px;
  border: 1.5px solid var(--om-brass);
  border-radius: 50%;
  color: var(--om-brass-dark);
  font-family: var(--om-font-mono);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ontario-mathematics-faq .faq-question:hover .faq-icon{
  border-color: var(--om-blueprint);
  transform: scale(1.08);
}

.ontario-mathematics-faq .faq-item.active .faq-icon{
  background: var(--om-brass);
  color: #fff;
  border-color: var(--om-brass);
  transform: rotate(180deg);
}
.ontario-mathematics-faq .faq-item.active .faq-question:hover .faq-icon{
  transform: rotate(180deg) scale(1.08);
}

.ontario-mathematics-faq .faq-answer{
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.ontario-mathematics-faq .faq-answer p{
  padding: 0 4px 22px;
  margin: 0;
  font-size: 0.98rem;
  max-width: 62ch;
}

/* ==========================================================================
   ACCESSIBILITY & MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce){
  [class*="ontario-mathematics-"],
  [class*="ontario-mathematics-"] *{
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}

[class*="ontario-mathematics-"] a:focus-visible,
[class*="ontario-mathematics-"] button:focus-visible{
  outline: 2px solid var(--om-blueprint);
  outline-offset: 3px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 860px){
  section[class*="ontario-mathematics-"]{ padding: 64px 0; }
  section[class*="ontario-mathematics-"] > .container{ padding: 0 22px; }

  .ontario-mathematics-hero{ padding: 76px 0 64px; }
  .ontario-mathematics-hero h1{ padding-left: 16px; }
  .ontario-mathematics-hero::after{ right: -220px; opacity: 0.32; }

  [class*="mathematics-"][class$="-grid"],
  .mathematics-grade-breakdown{
    grid-template-columns: 1fr;
  }

  .hero-actions, .final-cta-actions{ flex-direction: column; align-items: stretch; }
  [class*="ontario-mathematics-"] .btn{ justify-content: center; }
}

@media (max-width: 480px){
  [class*="ontario-mathematics-"] h1{ font-size: 2rem; }
  [class*="ontario-mathematics-"] h2{ font-size: 1.4rem; }
  section[class*="ontario-mathematics-"] .section-intro{ font-size: 1rem; }
}


/* =====================================================
   ONTARIO MATHEMATICS — RELATED SUBJECT LINKS
===================================================== */

.ontario-math-subject-links-section {
  position: relative;
  padding: 72px 0;
  background: #f5f8fd;
  isolation: isolate;
}

.ontario-math-subject-links-section .section-heading {
  max-width: 780px;
  margin: 0 auto 38px;
  text-align: center;
}

.ontario-math-subject-links-section .section-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: #1a73e8;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.3px;
  line-height: 1.5;
  text-transform: uppercase;
}

.ontario-math-subject-links-section .section-heading h2 {
  margin: 0 0 16px;
  color: #14243a;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.6px;
}

.ontario-math-subject-links-section .section-heading p {
  margin: 0;
  color: #53647a;
  font-size: 1rem;
  line-height: 1.8;
}

.ontario-math-subject-links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.ontario-math-subject-links-section .ontario-math-subject-link-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px 24px;
  border: 1px solid #e1e9f4;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 5px 18px rgba(24, 53, 91, 0.045);
  text-decoration: none;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.ontario-math-subject-links-section .ontario-math-subject-link-card h3 {
  margin: 0 0 12px;
  color: #172c49;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.ontario-math-subject-links-section .ontario-math-subject-link-card p {
  margin: 0 0 20px;
  color: #5b6b80;
  font-size: 0.94rem;
  line-height: 1.75;
}

.ontario-math-subject-links-section .ontario-math-subject-link-card span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: #1769d2;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
  transition: color 0.2s ease;
}

@media (hover: hover) {
  .ontario-math-subject-links-section
  .ontario-math-subject-link-card:hover {
    transform: translateY(-5px);
    border-color: #a9cbfa;
    box-shadow: 0 14px 32px rgba(24, 78, 145, 0.11);
  }

  .ontario-math-subject-links-section
  .ontario-math-subject-link-card:hover span {
    color: #0b4ea2;
  }
}

.ontario-math-subject-links-section
.ontario-math-subject-link-card:focus-visible {
  outline: 3px solid #75aaff;
  outline-offset: 4px;
}

.ontario-math-subject-links-section .ontario-math-subject-links-note {
  max-width: 850px;
  margin: 30px auto 0;
  color: #68778a;
  font-size: 0.88rem;
  line-height: 1.75;
  text-align: center;
}


/* =====================================================
   ONTARIO MATHEMATICS — CURRICULUM CROSS LINKS
===================================================== */

.math-curriculum-cross-links-section {
  position: relative;
  padding: 72px 0;
  background: #ffffff;
  isolation: isolate;
}

.math-curriculum-cross-links-section .section-heading {
  max-width: 780px;
  margin: 0 auto 38px;
  text-align: center;
}

.math-curriculum-cross-links-section .section-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: #1a73e8;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.3px;
  line-height: 1.5;
  text-transform: uppercase;
}

.math-curriculum-cross-links-section .section-heading h2 {
  margin: 0 0 16px;
  color: #14243a;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.6px;
}

.math-curriculum-cross-links-section .section-heading p {
  margin: 0;
  color: #53647a;
  font-size: 1rem;
  line-height: 1.8;
}

.math-curriculum-cross-links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.math-curriculum-cross-links-section .math-curriculum-cross-link-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px 24px;
  border: 1px solid #e4eaf2;
  border-radius: 16px;
  background: #f8faff;
  box-shadow: 0 5px 18px rgba(24, 53, 91, 0.04);
  text-decoration: none;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.math-curriculum-cross-links-section
.math-curriculum-cross-link-card h3 {
  margin: 0 0 12px;
  color: #172c49;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.math-curriculum-cross-links-section
.math-curriculum-cross-link-card p {
  margin: 0 0 20px;
  color: #5b6b80;
  font-size: 0.94rem;
  line-height: 1.75;
}

.math-curriculum-cross-links-section
.math-curriculum-cross-link-card span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: #1769d2;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
  transition: color 0.2s ease;
}

@media (hover: hover) {
  .math-curriculum-cross-links-section
  .math-curriculum-cross-link-card:hover {
    transform: translateY(-5px);
    border-color: #a9cbfa;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(24, 78, 145, 0.09);
  }

  .math-curriculum-cross-links-section
  .math-curriculum-cross-link-card:hover span {
    color: #0b4ea2;
  }
}

.math-curriculum-cross-links-section
.math-curriculum-cross-link-card:focus-visible {
  outline: 3px solid #75aaff;
  outline-offset: 4px;
}


/* =====================================================
   RESPONSIVE LAYOUT
===================================================== */

@media (max-width: 1024px) {
  .ontario-math-subject-links-grid,
  .math-curriculum-cross-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .ontario-math-subject-links-section,
  .math-curriculum-cross-links-section {
    padding: 60px 0;
  }
}

@media (max-width: 600px) {
  .ontario-math-subject-links-section,
  .math-curriculum-cross-links-section {
    padding: 46px 0;
  }

  .ontario-math-subject-links-section .section-heading,
  .math-curriculum-cross-links-section .section-heading {
    margin-bottom: 28px;
    padding: 0 4px;
  }

  .ontario-math-subject-links-section .section-heading h2,
  .math-curriculum-cross-links-section .section-heading h2 {
    font-size: 1.65rem;
    line-height: 1.35;
    letter-spacing: -0.3px;
  }

  .ontario-math-subject-links-section .section-heading p,
  .math-curriculum-cross-links-section .section-heading p {
    font-size: 0.95rem;
    line-height: 1.75;
  }

  .ontario-math-subject-links-grid,
  .math-curriculum-cross-links-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .ontario-math-subject-links-section .ontario-math-subject-link-card,
  .math-curriculum-cross-links-section .math-curriculum-cross-link-card {
    padding: 22px 20px;
    border-radius: 13px;
  }

  .ontario-math-subject-links-section .ontario-math-subject-link-card h3,
  .math-curriculum-cross-links-section .math-curriculum-cross-link-card h3 {
    font-size: 1.04rem;
  }

  .ontario-math-subject-links-section .ontario-math-subject-link-card p,
  .math-curriculum-cross-links-section .math-curriculum-cross-link-card p {
    font-size: 0.92rem;
  }

  .ontario-math-subject-links-section .ontario-math-subject-links-note {
    margin-top: 24px;
    font-size: 0.85rem;
  }
}


/* =====================================================
   REDUCED MOTION ACCESSIBILITY
===================================================== */

@media (prefers-reduced-motion: reduce) {
  .ontario-math-subject-links-section .ontario-math-subject-link-card,
  .ontario-math-subject-links-section .ontario-math-subject-link-card span,
  .math-curriculum-cross-links-section .math-curriculum-cross-link-card,
  .math-curriculum-cross-links-section .math-curriculum-cross-link-card span {
    transition: none;
  }

  .ontario-math-subject-links-section .ontario-math-subject-link-card:hover,
  .math-curriculum-cross-links-section .math-curriculum-cross-link-card:hover {
    transform: none;
  }
}/* End custom CSS */