/*
Theme Name: G1Test Ontario
Theme URI: https://g1test.online
Author: G1Test.online
Author URI: https://g1test.online
Description: A fast, modern WordPress theme for G1Test.online — Ontario's free G1 practice test website. Features a dark navy hero, interactive quiz support, course layout, road signs page, and a full blog. Built for speed and SEO.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: g1test
Tags: education, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =============================================
   G1TEST ONTARIO THEME — GLOBAL STYLES
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,400;0,500;1,400&display=swap');

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #0D1B2A;
  --navy2:   #162236;
  --navy3:   #1E2F45;
  --red:     #E53935;
  --red-dark:#C62828;
  --red-light:#FFEBEE;
  --yellow:  #FFC107;
  --yellow-light:#FFF8E1;
  --white:   #FFFFFF;
  --gray:    #F4F6F9;
  --gray2:   #E8EBF0;
  --gray3:   #D0D5DE;
  --text:    #0D1B2A;
  --muted:   #5A6A7E;
  --green:   #1E8A4C;
  --green-light:#E8F5EE;
  --radius:  14px;
  --radius-lg:20px;
  --shadow:  0 4px 24px rgba(13,27,42,0.08);
  --shadow-lg:0 12px 48px rgba(13,27,42,0.14);
  --max-w:   960px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', sans-serif;
  letter-spacing: -0.4px;
  line-height: 1.15;
  color: var(--text);
}
h1 { font-size: 52px; font-weight: 800; letter-spacing: -1.5px; }
h2 { font-size: 36px; font-weight: 800; letter-spacing: -0.8px; }
h3 { font-size: 22px; font-weight: 700; }
h4 { font-size: 17px; font-weight: 700; }
p  { margin-bottom: 1rem; }

ul, ol { padding-left: 1.4rem; }
li { margin-bottom: .4rem; }

/* --- LAYOUT --- */
.g1-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}
.g1-section { padding: 72px 0; }

/* --- TYPOGRAPHY HELPERS --- */
.section-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.section-sub {
  color: var(--muted);
  font-size: 17px;
  max-width: 540px;
  margin-top: 12px;
  margin-bottom: 48px;
  line-height: 1.7;
}

/* --- BUTTONS --- */
.g1-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  line-height: 1;
}
.g1-btn:hover { transform: translateY(-2px); text-decoration: none; }
.g1-btn-red  { background: var(--red); color: var(--white); }
.g1-btn-red:hover  { box-shadow: 0 8px 24px rgba(229,57,53,.38); color: var(--white); }
.g1-btn-navy { background: var(--navy); color: var(--white); }
.g1-btn-navy:hover { box-shadow: 0 8px 24px rgba(13,27,42,.3); color: var(--white); }
.g1-btn-ghost {
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--white);
}
.g1-btn-ghost:hover { background: rgba(255,255,255,.16); color: var(--white); }
.g1-btn-outline {
  background: var(--white);
  border: 1.5px solid var(--gray3);
  color: var(--text);
}
.g1-btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.g1-btn-lg { font-size: 16px; padding: 16px 32px; border-radius: 12px; }
.g1-btn-sm { font-size: 13px; padding: 9px 18px; border-radius: 8px; }

/* --- BADGE / CHIP --- */
.g1-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 13px;
  border-radius: 100px;
}
.g1-badge-yellow {
  background: rgba(255,193,7,.12);
  border: 1px solid rgba(255,193,7,.28);
  color: var(--yellow);
}
.g1-badge-green {
  background: var(--green-light);
  border: 1px solid rgba(30,138,76,.2);
  color: var(--green);
}
.g1-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

/* --- CARDS --- */
.g1-card {
  background: var(--gray);
  border: 1px solid var(--gray2);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .2s, box-shadow .2s;
}
.g1-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* --- FEATURE ICONS --- */
.feat-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.fi-red    { background: var(--red-light); }
.fi-blue   { background: #E8F0FE; }
.fi-green  { background: var(--green-light); }
.fi-yellow { background: var(--yellow-light); }
.fi-purple { background: #EDE7F6; }
.fi-teal   { background: #E0F2F1; }

/* --- TESTIMONIAL --- */
.testi-card {
  background: var(--white);
  border: 1px solid var(--gray2);
  border-radius: var(--radius);
  padding: 26px;
}
.testi-stars { color: var(--yellow); font-size: 16px; margin-bottom: 12px; letter-spacing: 2px; }
.testi-text  { font-size: 14px; color: var(--muted); line-height: 1.75; margin-bottom: 20px; }
.testi-author { display: flex; align-items: center; gap: 10px; }
.testi-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 700;
  color: var(--white); flex-shrink: 0;
}
.av-red    { background: var(--red); }
.av-blue   { background: #1565C0; }
.av-green  { background: var(--green); }
.av-purple { background: #6A1B9A; }
.testi-name { font-size: 14px; font-weight: 600; }
.testi-loc  { font-size: 12px; color: var(--muted); }

/* --- CTA BAND --- */
.cta-band {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 60px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content:'';
  position: absolute; top: -80px; right: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(229,57,53,.1); pointer-events: none;
}
.cta-band h2 { color: var(--white); font-size: 38px; margin-bottom: 14px; }
.cta-band p  { color: rgba(255,255,255,.58); font-size: 17px; margin-bottom: 34px; }

/* --- GRIDS --- */
.g1-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.g1-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }

/* --- TOPIC CARD --- */
.topic-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--gray); border: 1px solid var(--gray2);
  border-radius: var(--radius);
  padding: 20px 22px;
  text-decoration: none; color: var(--text);
  transition: all .2s;
}
.topic-card:hover {
  background: var(--navy); color: var(--white);
  border-color: var(--navy); transform: translateX(5px);
  text-decoration: none;
}
.topic-emoji { font-size: 24px; width: 40px; text-align: center; flex-shrink: 0; }
.topic-info h4 { font-size: 15px; margin-bottom: 2px; }
.topic-info p  { font-size: 12px; color: var(--muted); margin: 0; }
.topic-card:hover .topic-info p { color: rgba(255,255,255,.55); }
.topic-arrow { margin-left: auto; font-size: 18px; opacity: .4; }

/* --- NAV --- */
.site-nav {
  background: var(--navy);
  position: sticky; top: 0; z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: var(--max-w); margin: 0 auto; padding: 0 32px;
}
.nav-logo {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 20px;
  color: var(--white); text-decoration: none; flex-shrink: 0;
}
.nav-logo span { color: var(--yellow); }
.nav-logo:hover { text-decoration: none; }

.main-navigation { display: flex; align-items: center; gap: 4px; }
.main-navigation ul {
  display: flex; gap: 4px;
  list-style: none; margin: 0; padding: 0;
  align-items: center;
}
.main-navigation ul li a {
  color: rgba(255,255,255,.65);
  font-size: 14px; font-weight: 500;
  padding: 6px 12px; border-radius: 6px;
  transition: color .2s, background .2s;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
  color: var(--white);
  background: rgba(255,255,255,.08);
  text-decoration: none;
}
.nav-cta-wrap { margin-left: 12px; }
.nav-cta {
  background: var(--yellow) !important;
  color: var(--navy) !important;
  font-family: 'Syne', sans-serif;
  font-weight: 700 !important; font-size: 13px !important;
  padding: 9px 20px !important; border-radius: 8px !important;
  display: inline-block;
}
.nav-cta:hover { opacity: .9; text-decoration: none; }

/* Mobile hamburger */
.nav-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--white); margin: 5px 0;
  transition: all .3s;
}

/* --- PAGE HERO (inner pages) --- */
.page-hero {
  background: var(--navy);
  padding: 60px 0 64px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; top: -60px; right: -80px;
  width: 360px; height: 360px; border-radius: 50%;
  background: rgba(229,57,53,.07); pointer-events: none;
}
.page-hero h1 {
  color: var(--white); font-size: 44px;
  letter-spacing: -1.2px; margin-bottom: 16px;
}
.page-hero h1 em { font-style: normal; color: var(--yellow); }
.page-hero p {
  color: rgba(255,255,255,.6); font-size: 17px;
  max-width: 560px; line-height: 1.7; margin-bottom: 28px;
}
.hero-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.75);
  font-size: 13px; padding: 7px 14px; border-radius: 100px;
}

/* --- TRUST / SIGN BAR --- */
.trust-bar {
  background: var(--red);
  padding: 14px 32px;
  display: flex; gap: 0; align-items: center;
  overflow: hidden; flex-wrap: nowrap;
}
.trust-item {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.92); font-size: 13px; font-weight: 500;
  white-space: nowrap; flex-shrink: 0;
}
.trust-dot { color: rgba(255,255,255,.3); margin: 0 20px; }
.trust-icon {
  width: 30px; height: 30px; border-radius: 6px;
  background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}

/* --- QUIZ STYLES (used on practice test page) --- */
.quiz-wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  padding: 40px 0;
}
.q-card {
  background: var(--white);
  border: 1px solid var(--gray2);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.q-header {
  background: var(--navy); padding: 20px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.q-counter {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 15px; color: var(--white);
}
.q-category {
  font-size: 12px; color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.08);
  padding: 4px 12px; border-radius: 100px;
}
.q-progress-wrap { padding: 0 28px 20px; background: var(--navy); }
.q-progress-track {
  height: 4px; background: rgba(255,255,255,.12);
  border-radius: 4px; overflow: hidden;
}
.q-progress-fill {
  height: 100%; background: var(--yellow);
  border-radius: 4px; transition: width .4s ease;
}
.q-body { padding: 32px 28px; }
.q-text {
  font-size: 18px; font-weight: 500; line-height: 1.55;
  margin-bottom: 28px;
}
.q-options { display: flex; flex-direction: column; gap: 10px; }
.q-option {
  background: var(--gray); border: 1.5px solid var(--gray2);
  border-radius: 10px; padding: 16px 20px;
  font-size: 15px; cursor: pointer;
  transition: all .18s;
  display: flex; align-items: center; gap: 14px;
  font-family: 'DM Sans', sans-serif;
  text-align: left; width: 100%;
}
.q-option:hover { background: var(--gray2); border-color: var(--navy); }
.q-option.correct  { background: var(--green-light); border-color: var(--green); }
.q-option.wrong    { background: var(--red-light);   border-color: var(--red);   }
.q-option.show-ans { background: var(--green-light); border-color: var(--green); }
.q-option.disabled { pointer-events: none; opacity: .55; }
.q-option.correct.disabled,
.q-option.show-ans,
.q-option.wrong.disabled { opacity: 1; }
.opt-badge {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--white); border: 1.5px solid var(--gray3);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  font-family: 'Syne', sans-serif; flex-shrink: 0;
}
.q-option.correct  .opt-badge { background: var(--green); border-color: var(--green); color: var(--white); }
.q-option.wrong    .opt-badge { background: var(--red);   border-color: var(--red);   color: var(--white); }
.q-option.show-ans .opt-badge { background: var(--green); border-color: var(--green); color: var(--white); }
.q-feedback {
  margin-top: 20px; padding: 18px 22px;
  border-radius: 10px; font-size: 14px; line-height: 1.7; display: none;
}
.q-feedback.show { display: block; }
.fb-correct { background: var(--green-light); border: 1px solid rgba(30,138,76,.25); color: #166534; }
.fb-wrong   { background: var(--red-light);   border: 1px solid rgba(229,57,53,.2);  color: #9B1C1C; }
.q-actions {
  padding: 20px 28px; border-top: 1px solid var(--gray2);
  display: flex; justify-content: space-between; align-items: center;
}
.q-skip {
  font-size: 13px; color: var(--muted); cursor: pointer;
  background: none; border: none; font-family: 'DM Sans', sans-serif;
}
.q-skip:hover { color: var(--text); }

/* Sidebar */
.quiz-sidebar {}
.score-card {
  background: var(--navy); border-radius: var(--radius);
  padding: 24px; color: var(--white); margin-bottom: 16px; text-align: center;
}
.score-big {
  font-family: 'Syne', sans-serif; font-size: 52px; font-weight: 800;
  line-height: 1; color: var(--yellow);
}
.score-lbl  { font-size: 13px; color: rgba(255,255,255,.5); margin-top: 4px; margin-bottom: 20px; }
.score-row  { display: flex; justify-content: space-around; }
.score-item-num { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 700; }
.score-item-lbl { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 2px; }
.si-c { color: #81C784; } .si-w { color: #EF9A9A; }

.info-card {
  background: var(--gray); border: 1px solid var(--gray2);
  border-radius: var(--radius); padding: 22px; margin-bottom: 16px;
}
.info-card h4 { font-size: 15px; margin-bottom: 12px; }
.info-row {
  display: flex; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid var(--gray2);
  font-size: 14px;
}
.info-row:last-child { border-bottom: none; }
.info-val { font-weight: 600; color: var(--navy); }
.tip-card {
  background: var(--yellow-light);
  border: 1px solid rgba(255,193,7,.25);
  border-radius: var(--radius); padding: 20px;
}
.tip-card h4 { font-size: 14px; margin-bottom: 8px; }
.tip-card p  { font-size: 13px; color: var(--muted); line-height: 1.65; margin: 0; }

/* Results overlay */
.results-screen { display: none; text-align: center; padding: 48px 28px; }
.results-circle {
  width: 120px; height: 120px; border-radius: 50%;
  margin: 0 auto 24px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border: 4px solid var(--green);
}
.results-pct  { font-family: 'Syne', sans-serif; font-size: 36px; font-weight: 800; color: var(--green); }
.results-lbl  { font-size: 12px; color: var(--muted); }
.results-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* --- BLOG --- */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.blog-card {
  background: var(--white); border: 1px solid var(--gray2);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-img { height: 180px; background: var(--gray2); overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
}
.blog-card-body { padding: 22px; }
.blog-tag {
  display: inline-block;
  background: var(--red-light); color: var(--red);
  font-size: 11px; font-weight: 600; padding: 3px 10px;
  border-radius: 100px; margin-bottom: 10px;
  text-transform: uppercase; letter-spacing: .5px;
}
.blog-card-body h3 { font-size: 17px; margin-bottom: 8px; line-height: 1.35; }
.blog-card-body h3 a { color: var(--text); }
.blog-card-body h3 a:hover { color: var(--red); text-decoration: none; }
.blog-card-body p  { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 16px; }
.blog-meta { font-size: 12px; color: var(--muted); display: flex; gap: 12px; }
.blog-read-more {
  font-size: 13px; font-weight: 600; color: var(--red);
  display: inline-flex; align-items: center; gap: 4px;
}
.blog-read-more:hover { text-decoration: none; gap: 8px; }

/* Single post */
.single-post-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  padding: 56px 0;
}
.post-content h2 { margin: 32px 0 14px; font-size: 26px; }
.post-content h3 { margin: 24px 0 10px; font-size: 20px; }
.post-content p  { margin-bottom: 18px; font-size: 16px; line-height: 1.8; }
.post-content ul, .post-content ol { margin-bottom: 18px; }
.post-content li { font-size: 16px; line-height: 1.7; margin-bottom: 6px; }
.post-content img { border-radius: var(--radius); margin: 24px 0; }
.post-content blockquote {
  border-left: 4px solid var(--yellow);
  background: var(--yellow-light);
  padding: 16px 20px; margin: 24px 0;
  border-radius: 0 10px 10px 0; font-style: italic;
}
.callout {
  background: var(--yellow-light);
  border-left: 4px solid var(--yellow);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px; margin: 24px 0; font-size: 15px;
}

/* --- ROAD SIGNS PAGE --- */
.signs-filter {
  background: var(--gray); border-bottom: 1px solid var(--gray2);
  padding: 18px 0;
}
.signs-filter-inner {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  max-width: var(--max-w); margin: 0 auto; padding: 0 32px;
}
.sign-filter-btn {
  background: var(--white); border: 1.5px solid var(--gray2);
  color: var(--muted); font-size: 13px; font-weight: 500;
  padding: 7px 16px; border-radius: 100px; cursor: pointer;
  transition: all .18s; font-family: 'DM Sans', sans-serif;
}
.sign-filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.sign-filter-btn.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.signs-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 16px;
  padding: 40px 0;
}
.sign-card {
  background: var(--white); border: 1px solid var(--gray2);
  border-radius: var(--radius); padding: 24px 16px;
  text-align: center; transition: all .2s; cursor: pointer;
}
.sign-card:hover { border-color: var(--navy); box-shadow: var(--shadow); transform: translateY(-2px); }
.sign-card.active { border-color: var(--red); box-shadow: 0 0 0 3px rgba(229,57,53,.12); }
.sign-visual {
  width: 80px; height: 80px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
}
.sign-name { font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.sign-cat  { font-size: 12px; color: var(--muted); }
.sign-detail-panel {
  background: var(--navy); color: var(--white);
  border-radius: var(--radius-lg); padding: 32px;
  margin-top: 24px; display: none;
}
.sign-detail-panel.show { display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: start; }
.sign-detail-panel h3 { color: var(--white); font-size: 22px; margin-bottom: 10px; }
.sign-detail-panel p  { color: rgba(255,255,255,.7); font-size: 15px; margin: 0; }

/* --- COURSE PAGE --- */
.course-layout {
  display: grid; grid-template-columns: 260px 1fr;
  gap: 32px; padding: 48px 0;
}
.course-sidebar { position: sticky; top: 88px; height: fit-content; }
.course-sidebar-title {
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 14px; padding: 0 4px;
  font-family: 'Syne', sans-serif;
}
.module-list { list-style: none; margin: 0; padding: 0; }
.module-item { margin-bottom: 4px; }
.module-btn {
  width: 100%; text-align: left; background: none; border: none;
  cursor: pointer; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 10px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--muted);
  transition: all .18s;
}
.module-btn:hover { background: var(--gray); color: var(--text); }
.module-btn.active { background: var(--navy); color: var(--white); }
.module-btn.done   { color: var(--green); }
.mod-num {
  width: 24px; height: 24px; border-radius: 6px;
  background: rgba(0,0,0,.07);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; font-family: 'Syne', sans-serif;
  flex-shrink: 0;
}
.module-btn.active .mod-num { background: rgba(255,255,255,.15); color: var(--white); }
.module-btn.done .mod-num   { background: var(--green); color: var(--white); }
.progress-widget {
  margin-top: 28px; padding: 16px;
  background: var(--gray); border-radius: var(--radius);
  border: 1px solid var(--gray2);
}
.progress-widget-title { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.progress-track {
  height: 6px; background: var(--gray2);
  border-radius: 6px; overflow: hidden; margin-bottom: 8px;
}
.progress-fill { height: 100%; background: var(--green); border-radius: 6px; transition: width .4s; }
.progress-label { font-size: 13px; color: var(--muted); }

/* Lesson Panel */
.lesson-tag {
  display: inline-block;
  background: var(--red-light); color: var(--red);
  font-size: 12px; font-weight: 600; padding: 4px 12px;
  border-radius: 100px; margin-bottom: 12px;
}
.lesson-meta {
  display: flex; gap: 16px;
  font-size: 13px; color: var(--muted);
  margin-top: 8px; margin-bottom: 32px;
}
.lesson-body { font-size: 16px; line-height: 1.8; }
.lesson-body h3 { font-size: 20px; margin: 28px 0 12px; }
.lesson-body p  { margin-bottom: 16px; }
.lesson-body ul { margin-bottom: 16px; }
.lesson-body li { margin-bottom: 8px; }
.lesson-rule-box {
  background: var(--gray); border: 1px solid var(--gray2);
  border-radius: var(--radius); padding: 20px 24px; margin: 20px 0;
}
.lesson-rule-box h4 { font-size: 15px; margin-bottom: 12px; }
.rule-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--gray2); font-size: 14px;
}
.rule-row:last-child { border-bottom: none; }
.rule-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.lesson-callout {
  background: var(--yellow-light);
  border-left: 4px solid var(--yellow);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px; margin: 24px 0; font-size: 15px;
}
.lesson-quiz-box {
  background: var(--navy2); border-radius: var(--radius-lg);
  padding: 28px; margin-top: 32px; color: var(--white);
}
.lq-title { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 20px; }
.lq-q     { font-size: 16px; color: rgba(255,255,255,.9); margin-bottom: 18px; line-height: 1.55; }
.lq-opts  { display: flex; flex-direction: column; gap: 8px; }
.lq-opt {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px; padding: 13px 16px; font-size: 14px;
  color: rgba(255,255,255,.8); cursor: pointer; transition: all .18s;
  text-align: left; font-family: 'DM Sans', sans-serif; width: 100%;
}
.lq-opt:hover { background: rgba(255,255,255,.13); }
.lq-opt.c { background: rgba(30,138,76,.22); border-color: var(--green); color: var(--white); pointer-events: none; }
.lq-opt.w { background: rgba(229,57,53,.18);  border-color: var(--red);   color: var(--white); pointer-events: none; }
.lq-opt.d { pointer-events: none; opacity: .5; }
.lq-feedback {
  margin-top: 14px; padding: 14px 16px; border-radius: 8px;
  font-size: 14px; display: none;
}
.lq-feedback.show { display: block; }
.lq-fb-c { background: rgba(30,138,76,.14); border: 1px solid rgba(30,138,76,.28); color: #86EFAC; }
.lq-fb-w { background: rgba(229,57,53,.14); border: 1px solid rgba(229,57,53,.25); color: #FCA5A5; }
.lesson-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--gray2);
}

/* --- FOOTER --- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.55);
  padding: 56px 0 32px; font-size: 14px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 40px; margin-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo {
  font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 800;
  color: var(--white); text-decoration: none; display: block; margin-bottom: 12px;
}
.footer-logo span { color: var(--yellow); }
.footer-logo:hover { text-decoration: none; }
.footer-desc { font-size: 14px; line-height: 1.7; max-width: 240px; margin-bottom: 20px; }
.footer-col h5 {
  font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 700;
  color: var(--white); margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a  { color: rgba(255,255,255,.5); font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: var(--white); text-decoration: none; }
.footer-bottom {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
}
.ontario-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  padding: 6px 14px; border-radius: 100px;
  font-size: 12px; color: rgba(255,255,255,.6);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  .g1-container { padding: 0 20px; }
  .g1-section   { padding: 48px 0; }
  .g1-grid-3, .g1-grid-2 { grid-template-columns: 1fr; }
  .quiz-wrap    { grid-template-columns: 1fr; }
  .quiz-sidebar { order: -1; }
  .course-layout { grid-template-columns: 1fr; }
  .course-sidebar { position: static; }
  .blog-grid { grid-template-columns: 1fr; }
  .single-post-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta-band { padding: 40px 28px; }
  .cta-band h2 { font-size: 28px; }
  .signs-grid { grid-template-columns: repeat(2,1fr); }
  .nav-toggle { display: block; }
  .main-navigation { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy2); padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.08); flex-direction: column; }
  .main-navigation.open { display: flex; }
  .main-navigation ul { flex-direction: column; width: 100%; }
  .main-navigation ul li a { display: block; padding: 10px 14px; }
  .nav-cta-wrap { width: 100%; margin: 8px 0 0; }
  .nav-cta { display: block; text-align: center; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .trust-bar   { overflow-x: auto; }
  .page-hero h1 { font-size: 34px; }
}

@media (max-width: 480px) {
  h1 { font-size: 30px; }
  .g1-btn-lg { font-size: 15px; padding: 14px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .signs-grid { grid-template-columns: repeat(2,1fr); }
}
</style>
