/*
Theme Name: Canada Drivers
Theme URI: https://www.canadadrivers.ca/
Author: Canada Drivers
Description: A fast, accessible WordPress and WooCommerce theme created for Canada Drivers.
Version: 6.84.43
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: canada-drivers
*/

:root {
  --cd-red: #c71f37;
  --cd-red-dark: #99162a;
  --cd-ink: #191919;
  --cd-muted: #666a70;
  --cd-line: #e6e9ef;
  --cd-soft: #f6f8fb;
  --cd-white: #fff;
  --cd-radius: 20px;
  --cd-shadow: 0 16px 50px rgba(22, 32, 51, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cd-ink);
  background: var(--cd-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
a { color: var(--cd-red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4, h5, h6 { color: var(--cd-ink); }
#main-content h1, #main-content h2, #main-content h3,
#main-content h4, #main-content h5, #main-content h6 { color: #191919 !important; }
#main-content .cd-page-title h1, #main-content .cd-cta h2 { color: #fff !important; }
#main-content .cd-page-title .page-title { color: #fff !important; }
#main-content .cd-section-head h2,
#main-content .cd-program-grid h3 { color: #191919 !important; }
#main-content .cd-hero h1 span { color: var(--cd-red) !important; }
#main-content p { color: #666a70; }
#main-content .cd-quote-card p { color: #fff; }
#main-content .cd-cta p { color: rgba(255,255,255,.85); }
img { max-width: 100%; height: auto; }
.cd-wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.cd-narrow { width: min(820px, calc(100% - 40px)); margin-inline: auto; }

.cd-topbar { background: var(--cd-red); color: #fff; font-size: 14px; }
.cd-topbar .cd-wrap { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cd-topbar a { color: #fff; text-decoration: none; }
.cd-topbar-links { display: flex; flex-wrap: wrap; gap: 20px; }

.cd-header { position: sticky; z-index: 100; top: 0; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--cd-line); backdrop-filter: blur(12px); }
.admin-bar .cd-header { top: 32px; }
.cd-header-inner { min-height: 158px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.cd-brand { display: flex; align-items: center; gap: 16px; color: #191919 !important; text-decoration: none; font-weight: 900; letter-spacing: -.025em; }
.cd-brand .custom-logo { width: auto; height: 145px; max-width: 220px; max-height: 145px; object-fit: contain; }
.cd-brand-fallback { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--cd-red); font-size: 13px; line-height: 1; text-align: center; }
.cd-brand-name { color: #202124; font-size: 34px; line-height: 1; text-transform: uppercase; }
.cd-nav { display: flex; align-items: center; gap: 28px; }
.cd-nav ul { display: flex; align-items: center; gap: 25px; margin: 0; padding: 0; list-style: none; }
.cd-nav a { color: var(--cd-ink); font-size: 15px; font-weight: 700; text-decoration: none; }
.cd-nav a:hover, .cd-nav .current-menu-item > a { color: var(--cd-red); }
.cd-nav-toggle { display: none; border: 0; border-radius: 10px; padding: 10px 12px; color: #fff; background: var(--cd-red); font-size: 22px; line-height: 1; cursor: pointer; }
.cd-header .cd-nav-toggle { color: #fff !important; background: var(--cd-red) !important; }

.cd-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 22px;
  border: 2px solid var(--cd-red) !important; border-radius: 999px !important; color: #fff !important;
  background: var(--cd-red) !important; font-weight: 800 !important; line-height: 1.2; text-decoration: none;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.cd-button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { transform: translateY(-2px); background: var(--cd-red-dark) !important; box-shadow: 0 10px 24px rgba(199,31,55,.22); }
.cd-button-outline { color: var(--cd-red) !important; background: transparent !important; }
.cd-button-outline:hover { color: #fff !important; background: var(--cd-red) !important; }

.cd-hero { position: relative; overflow: hidden; padding: 84px 0 70px; background: linear-gradient(120deg, #fff 0%, #fff 55%, #fff0f2 100%); }
.cd-hero::after { content: ""; position: absolute; width: 430px; height: 430px; right: -160px; top: -160px; border: 78px solid rgba(199,31,55,.07); border-radius: 50%; }
.cd-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.cd-kicker { margin: 0 0 14px; color: var(--cd-red); font-size: 14px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.cd-hero h1 { max-width: 760px; margin: 0 0 22px; font-size: clamp(43px, 6vw, 76px); line-height: 1.02; letter-spacing: -.055em; }
.cd-hero h1 span { color: var(--cd-red); }
.cd-hero-copy { max-width: 680px; color: var(--cd-muted); font-size: 19px; }
.cd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cd-trust { display: flex; flex-wrap: wrap; gap: 18px; margin: 30px 0 0; padding: 0; list-style: none; color: var(--cd-muted); font-size: 14px; font-weight: 700; }
.cd-trust li::before { content: "✓"; margin-right: 7px; color: var(--cd-red); font-weight: 950; }
.cd-hero-card { position: relative; padding: 32px; border: 1px solid #f0cbd2; border-radius: 30px; background: #fff; box-shadow: var(--cd-shadow); }
.cd-hero-photo-wrap { overflow: hidden; margin: -22px -22px 26px; border-radius: 22px; aspect-ratio: 16 / 10; background: var(--cd-soft); }
.cd-hero-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.cd-road-sign { width: 96px; height: 96px; display: grid; place-items: center; margin-bottom: 20px; border: 8px solid var(--cd-red); border-radius: 50%; background: #fff; color: var(--cd-red); font-size: 27px; font-weight: 950; line-height: .92; text-align: center; transform: rotate(-3deg); }
.cd-hero-card h2 { margin: 0 0 10px; font-size: 30px; line-height: 1.15; }
.cd-hero-card p { margin: 0; color: var(--cd-muted); }
.cd-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }
.cd-stat { padding: 17px; border-radius: 15px; background: var(--cd-soft); }
.cd-stat strong { display: block; color: var(--cd-red); font-size: 20px; }
.cd-stat span { color: var(--cd-muted); font-size: 13px; }

.cd-section { padding: 82px 0; }
.cd-section-soft { background: var(--cd-soft); }
.cd-section-head { max-width: 720px; margin-bottom: 35px; }
.cd-section-head.center { margin-inline: auto; text-align: center; }
.cd-section h2 { margin: 0 0 13px; font-size: clamp(32px, 4vw, 48px); line-height: 1.12; letter-spacing: -.035em; }
.cd-section-head p { margin: 0; color: var(--cd-muted); }
.cd-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cd-feature { padding: 28px 25px; border: 1px solid var(--cd-line); border-radius: var(--cd-radius); background: #fff; }
.cd-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 17px; border-radius: 14px; color: #fff; background: var(--cd-red); font-size: 22px; }
.cd-feature h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.3; }
.cd-feature p { margin: 0; color: var(--cd-muted); font-size: 15px; }
.cd-photo-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 18px; margin-top: 26px; }
.cd-photo-card { position: relative; overflow: hidden; min-height: 330px; margin: 0; border-radius: var(--cd-radius); background: #191919; box-shadow: var(--cd-shadow); }
.cd-photo-card img { width: 100%; height: 100%; min-height: 330px; display: block; object-fit: cover; transition: transform .35s ease; }
.cd-photo-card:hover img { transform: scale(1.025); }
.cd-photo-card::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.82)); }
.cd-photo-card figcaption { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 20px; color: #fff; }
.cd-photo-card figcaption strong, .cd-photo-card figcaption span { display: block; }
.cd-photo-card figcaption strong { font-size: 19px; }
.cd-photo-card figcaption span { color: rgba(255,255,255,.82); font-size: 14px; }

.cd-course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cd-course { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 28px; border: 1px solid var(--cd-line); border-radius: var(--cd-radius); background: #fff; box-shadow: 0 8px 30px rgba(22,32,51,.06); }
.cd-course-featured { border-color: var(--cd-red); }
.cd-badge { align-self: flex-start; margin-bottom: 17px; padding: 5px 10px; border-radius: 999px; color: var(--cd-red); background: #fff0f2; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.cd-course h3 { margin: 0 0 8px; font-size: 23px; line-height: 1.2; }
.cd-price { margin: 5px 0 14px; color: var(--cd-red); font-size: 29px; font-weight: 900; }
.cd-course p { flex: 1; color: var(--cd-muted); font-size: 15px; }
.cd-course .cd-button { align-self: flex-start; margin-top: 10px; }

.cd-split { display: grid; grid-template-columns: 1fr 1fr; gap: 58px; align-items: center; }
.cd-checks { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.cd-checks li { position: relative; padding-left: 32px; }
.cd-checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--cd-red); font-size: 13px; font-weight: 900; }
.cd-quote-card { padding: 36px; border-radius: 28px; color: #fff; background: var(--cd-ink); box-shadow: var(--cd-shadow); }
.cd-quote-card strong { display: block; margin-bottom: 12px; color: #ff8b9d; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.cd-quote-card blockquote { margin: 0; font-size: 25px; font-weight: 750; line-height: 1.4; }

.cd-cta { padding: 62px 0; color: #fff; background: var(--cd-red); }
.cd-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cd-cta h2 { margin: 0 0 8px; color: #fff; font-size: clamp(30px, 4vw, 46px); }
.cd-cta p { margin: 0; color: rgba(255,255,255,.85); }
.cd-cta .cd-button { color: var(--cd-red) !important; border-color: #fff !important; background: #fff !important; white-space: nowrap; }

.cd-content { padding: 66px 0 90px; }
.cd-page-title { padding: 58px 0; color: #fff; background: linear-gradient(120deg, var(--cd-ink), #2c3547); }
.cd-page-title h1 { margin: 0; color: #fff; font-size: clamp(35px, 5vw, 55px); letter-spacing: -.04em; }
.cd-page-kicker { margin: 0 0 8px; color: #ff9baa; font-size: 13px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.cd-entry-content h2, .cd-entry-content h3 { line-height: 1.2; }
.cd-entry-content { overflow-wrap: anywhere; }
.cd-entry-content > *:first-child { margin-top: 0; }
.cd-inner-split { display: grid; grid-template-columns: 1fr .9fr; gap: 58px; align-items: center; }
.cd-inner-split h2, .cd-narrow h2 { margin: 0 0 18px; color: var(--cd-ink); font-size: clamp(32px, 4vw, 48px); line-height: 1.12; letter-spacing: -.035em; }
.cd-page-photo { overflow: hidden; min-height: 420px; margin: 0; border-radius: 28px; background: var(--cd-soft); box-shadow: var(--cd-shadow); }
.cd-page-photo img { width: 100%; height: 100%; min-height: 420px; display: block; object-fit: cover; }
.cd-program-grid, .cd-link-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.cd-program-grid article, .cd-link-grid a { padding: 26px; border: 1px solid var(--cd-line); border-radius: var(--cd-radius); background: #fff; box-shadow: 0 8px 26px rgba(22,32,51,.05); }
.cd-program-grid h3 { margin: 0 0 8px; color: var(--cd-ink); }
.cd-program-grid p { margin: 0; color: var(--cd-muted); }
.cd-product-block { margin-top: 46px; }
.cd-link-grid a { color: var(--cd-ink); text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.cd-link-grid a:hover { border-color: var(--cd-red); transform: translateY(-2px); }
.cd-link-grid strong, .cd-link-grid span { display: block; }
.cd-link-grid strong { margin-bottom: 6px; color: var(--cd-red); font-size: 19px; }
.cd-link-grid span { color: var(--cd-muted); font-size: 15px; }
.cd-resource-heading { margin: 42px 0 18px; color: var(--cd-ink); font-size: 26px; }
.cd-terms h2 { margin-top: 34px; color: var(--cd-ink); font-size: 25px; }
.cd-terms h2:first-child { margin-top: 0; }
.cd-contact-list { display: grid; gap: 12px; margin-top: 28px; }
.cd-contact-list a { display: flex; justify-content: space-between; gap: 18px; padding: 18px 20px; border: 1px solid var(--cd-line); border-radius: 14px; color: var(--cd-ink); text-decoration: none; }
.cd-contact-list a:hover { border-color: var(--cd-red); }
.cd-contact-list span { color: var(--cd-red); font-weight: 800; }
.cd-form-wrap { max-width: 820px; margin: 52px auto 0; padding: 32px; border: 1px solid var(--cd-line); border-radius: 24px; background: #fff; box-shadow: var(--cd-shadow); }
.cd-form-wrap h2 { margin-top: 0; color: var(--cd-ink); }
.cd-form-wrap .wpforms-field-label { color: var(--cd-ink) !important; }
.cd-form-wrap input:not([type="submit"]), .cd-form-wrap select, .cd-form-wrap textarea { border: 1px solid #cfd3da !important; border-radius: 10px !important; }
.cd-form-wrap input:focus, .cd-form-wrap select:focus, .cd-form-wrap textarea:focus { border-color: var(--cd-red) !important; box-shadow: 0 0 0 3px rgba(199,31,55,.12) !important; }
.cd-form-wrap .wpforms-submit { color: #fff !important; border: 2px solid var(--cd-red) !important; border-radius: 999px !important; background: var(--cd-red) !important; font-weight: 800 !important; }
.cd-native-form { display: grid; gap: 20px; }
.cd-native-form label { display: grid; gap: 8px; color: var(--cd-ink); font-weight: 750; }
.cd-native-form label > span { display: inline; color: var(--cd-red); }
.cd-native-form input, .cd-native-form select, .cd-native-form textarea { width: 100%; min-height: 48px; padding: 11px 13px; color: var(--cd-ink); background: #fff; font: inherit; }
.cd-native-form textarea { min-height: 110px; resize: vertical; }
.cd-native-form .cd-consent { display: flex; grid-template-columns: none; align-items: flex-start; gap: 10px; font-weight: 600; }
.cd-native-form .cd-consent input { width: 20px; min-height: 20px; margin-top: 2px; }
.cd-native-form .cd-button { justify-self: start; cursor: pointer; }
.cd-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cd-schedule-status { margin: 28px 0; padding: 24px; border-radius: 16px; background: var(--cd-soft); color: var(--cd-ink); font-size: 1.15rem; font-weight: 800; text-align: center; text-transform: uppercase; }
@media (max-width: 640px) { .cd-form-row { grid-template-columns: 1fr; } }
.cd-commerce-wrap { overflow-x: auto; }
.cd-licence-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.cd-licence-grid figure { margin: 0; overflow: hidden; border: 1px solid var(--cd-line); border-radius: var(--cd-radius); background: #fff; box-shadow: var(--cd-shadow); }
.cd-licence-grid img { display: block; width: 100%; height: auto; }

.woocommerce ul.products li.product { overflow: hidden; padding: 20px !important; border: 1px solid var(--cd-line); border-radius: var(--cd-radius); background: #fff; }
.woocommerce span.onsale { background: var(--cd-red); }
.woocommerce div.product p.price, .woocommerce div.product span.price, .woocommerce ul.products li.product .price { color: var(--cd-red); font-weight: 900; }
.woocommerce ul.products li.product a,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce div.product .product_title,
.woocommerce div.product .woocommerce-tabs h2,
.woocommerce div.product .related h2 { color: var(--cd-ink) !important; }
.woocommerce ul.products li.product a:hover .woocommerce-loop-product__title { color: var(--cd-red) !important; }
.woocommerce nav.woocommerce-pagination a,
.woocommerce .woocommerce-breadcrumb a,
.woocommerce table.shop_table a { color: var(--cd-red) !important; }
.woocommerce #main-content a:not(.button),
.woocommerce-page #main-content a:not(.button),
.wc-block-components-product-name,
.wc-block-cart-item__product a,
.wc-block-components-totals-coupon-link,
.woocommerce-info a,
.woocommerce-message a,
.woocommerce-error a { color: var(--cd-red) !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product a.woocommerce-loop-product__link,
.woocommerce div.product .product_title,
.wc-block-grid__product-title { color: var(--cd-ink) !important; }
.woocommerce input:focus,
.woocommerce select:focus,
.woocommerce textarea:focus,
.wc-block-components-text-input input:focus { border-color: var(--cd-red) !important; box-shadow: 0 0 0 2px rgba(199,31,55,.14) !important; outline-color: var(--cd-red) !important; }
.woocommerce nav.woocommerce-pagination ul li span.current { color: #fff !important; background: var(--cd-red) !important; }
.woocommerce a.button,
.woocommerce-page #main-content a.button,
.woocommerce button.button,
.woocommerce input.button { color: #fff !important; }

.cd-footer { padding: 58px 0 25px; color: rgba(255,255,255,.72); background: #101726; }
.cd-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 50px; }
.cd-footer-brand { display: inline-flex; align-items: center; gap: 16px; margin-bottom: 18px; color: #fff; text-decoration: none; }
.cd-footer-logo-wrap { display: grid; place-items: center; overflow: hidden; width: 112px; height: 112px; padding: 12px; border: 2px solid rgba(255,255,255,.2); border-radius: 50%; background: #fff; }
.cd-footer-logo { display: block; width: 72%; height: 72%; border-radius: 0; object-fit: contain; object-position: center; transform: translateY(-2px); }
.cd-footer-brand h2 { margin: 0; }
.cd-footer h2, .cd-footer h3 { margin-top: 0; color: #fff; }
.cd-footer h2 { font-size: 24px; }
.cd-footer h3 { font-size: 16px; }
.cd-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.cd-footer ul { margin: 0; padding: 0; list-style: none; }
.cd-footer li { margin-bottom: 8px; }
.cd-copyright { margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 980px) {
  .cd-hero-grid, .cd-split, .cd-inner-split { grid-template-columns: 1fr; }
  .cd-hero-grid { gap: 40px; }
  .cd-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .cd-photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cd-photo-card-wide { grid-column: auto; }
  .cd-course-grid { grid-template-columns: repeat(2, 1fr); }
  .cd-header .cd-nav-toggle { display: grid !important; place-items: center; width: 52px !important; height: 52px !important; min-width: 52px !important; min-height: 52px !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 10px !important; color: #fff !important; background: var(--cd-red) !important; font-size: 25px !important; line-height: 1 !important; box-shadow: none !important; }
  .cd-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 20px; border-top: 1px solid var(--cd-line); background: #fff; box-shadow: 0 18px 30px rgba(22,32,51,.1); }
  .cd-nav.is-open { display: block; }
  .cd-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
  .cd-nav li { border-bottom: 1px solid var(--cd-line); }
  .cd-nav a { display: block; padding: 13px 4px; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .cd-wrap, .cd-narrow { width: min(100% - 28px, 1160px); }
  .cd-topbar .cd-wrap { justify-content: center; padding: 8px 0; }
  .cd-topbar-links { justify-content: center; gap: 8px 17px; }
  .cd-topbar-tagline { display: none; }
  .cd-header-inner { min-height: 124px; }
  .cd-brand { gap: 9px; }
  body .cd-header .cd-brand-name { display: block !important; color: #202124 !important; font-size: 20px; }
  .cd-brand .custom-logo { width: auto; height: 105px; max-width: 125px; max-height: 105px; }
  .cd-hero { padding: 58px 0 48px; }
  .cd-hero h1 { font-size: 44px; }
  .cd-hero-card { padding: 26px; }
  .cd-section { padding: 60px 0; }
  .cd-feature-grid, .cd-course-grid, .cd-footer-grid { grid-template-columns: 1fr; }
  .cd-program-grid, .cd-link-grid { grid-template-columns: 1fr; }
  .cd-page-photo, .cd-page-photo img { min-height: 300px; }
  .cd-contact-list a { align-items: flex-start; flex-direction: column; gap: 3px; }
  .cd-photo-grid { grid-template-columns: 1fr; }
  .cd-photo-card-wide { grid-column: auto; }
  .cd-photo-card, .cd-photo-card img { min-height: 280px; }
  .cd-cta-inner { align-items: flex-start; flex-direction: column; }
  .cd-footer-grid { gap: 30px; }
  .cd-footer-logo-wrap { width: 96px; height: 96px; padding: 11px; }
  .cd-footer-logo { width: 66px; height: 66px; object-position: center; transform: translateY(-2px); }
  .admin-bar .cd-header { top: 46px; }
}

/* Final brand-colour guard: older imported/custom styles used blue headings,
 * including a mobile-only rule. Keep all customer-facing card and store
 * headings neutral charcoal at every breakpoint. */
html body #main-content .cd-feature-grid .cd-feature h3,
html body #main-content .cd-course-grid .cd-course h3,
html body #main-content .cd-program-grid h3,
html body #main-content .cd-section-head h2,
html body #main-content .woocommerce-loop-product__title,
html body #main-content .wc-block-grid__product-title,
html body #main-content div.product .product_title { color: #191919 !important; }

html body .cd-header .cd-brand,
html body .cd-header .cd-brand-name { color: #191919 !important; }

html body #main-content .cd-page-title h1,
html body #main-content .cd-page-title .page-title { color: #fff !important; }

.cd-bde-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 34px 0; }
.cd-bde-options article { position: relative; overflow: hidden; padding: 18px; border: 1px solid var(--cd-line); border-radius: var(--cd-radius); background: #fff; }
.cd-bde-options img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; }
.cd-bde-options h3 { color: #191919 !important; }
.cd-bde-options .cd-price { margin-bottom: 8px; color: var(--cd-red); font-size: 24px; font-weight: 900; }
.cd-bde-options .cd-button { margin: 8px 12px 0 0; }
.cd-bde-options .cd-text-link { display: inline-block; margin-top: 14px; }
.cd-bde-options p, .cd-bde-details p { color: #666a70; }
.cd-sold-out { display: inline-block; padding: 6px 11px; border-radius: 999px; background: var(--cd-red); color: #fff; font-weight: 800; }
.cd-bde-details { margin: 34px 0; padding: 28px; border-radius: var(--cd-radius); background: var(--cd-soft); }
.cd-bde-details h2 { color: #191919 !important; }
.cd-service-note { padding: 14px 16px; border-left: 4px solid var(--cd-red); background: #fff; }

.cd-home-bde { padding-top: 68px; background: linear-gradient(180deg, #fff 0%, #fff6f7 100%); }
.cd-home-bde-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 34px; }
.cd-home-bde-card { position: relative; overflow: hidden; border: 1px solid var(--cd-line); border-radius: 24px; background: #fff; box-shadow: 0 14px 36px rgba(25,25,25,.08); }
.cd-home-bde-featured { border: 2px solid var(--cd-red); }
.cd-home-bde-card > img { width: 100%; aspect-ratio: 16 / 10; display: block; object-fit: cover; }
.cd-home-bde-card > .cd-badge { position: absolute; z-index: 2; top: 16px; left: 16px; }
.cd-home-bde-body { padding: 25px; }
.cd-home-bde-body h3 { margin: 0 0 8px; color: #191919 !important; font-size: 27px; }
.cd-home-bde-body p { min-height: 72px; color: #666a70; }
.cd-home-bde-body .cd-price { color: var(--cd-red); font-size: 25px; font-weight: 900; }
.cd-home-bde-body .cd-sold-out { margin-right: 12px; }
.cd-text-link { color: var(--cd-red) !important; font-weight: 800; }
.cd-bde-location-note { max-width: 980px; margin: 28px auto 0; padding: 15px 18px; border-left: 4px solid var(--cd-red); background: #fff; color: #666a70; }

@media (max-width: 700px) {
  .cd-bde-options { grid-template-columns: 1fr; }
  .cd-home-bde-grid { grid-template-columns: 1fr; }
  .cd-home-bde-body p { min-height: 0; }
}


/* ============================================================
   Canada Drivers v3.5 — form anti-spam UI
   ============================================================ */
.cd-security-honeypot{
  /* hidden anti-spam field: clipped in place instead of pushed off-screen,
     so right-to-left languages (Arabic) don't get a huge empty page */
  position:absolute!important;
  inset-inline-start:0!important;
  top:0!important;
  width:1px!important;
  height:1px!important;
  margin:-1px!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
  clip:rect(0 0 0 0)!important;
  clip-path:inset(50%)!important;
  white-space:nowrap!important;
  opacity:0!important;
  pointer-events:none!important;
}
.cd-security-wrap{
  margin:12px 0 6px;
}
.cd-security-note{
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  margin:8px 0 12px!important;
  color:#5c6670!important;
  font-size:13px!important;
  line-height:1.4!important;
  visibility:visible!important;
  opacity:1!important;
}
.cf-turnstile{
  margin:12px 0 10px;
}
.wpforms-container .cd-security-note{
  display:flex!important;
}


/* ============================================================
   Canada Drivers v3.6 — guided course journey + audience content
   ============================================================ */
.cd-compare-section { background:#fff; }
.cd-compare-wrap { margin-top:34px; overflow-x:auto; border:1px solid var(--cd-line); border-radius:20px; box-shadow:0 12px 34px rgba(25,25,25,.06); }
.cd-compare-table { width:100%; min-width:900px; border-collapse:collapse; background:#fff; }
.cd-compare-table th, .cd-compare-table td { padding:18px 16px; text-align:left; vertical-align:top; border-bottom:1px solid var(--cd-line); }
.cd-compare-table thead th { background:#191919; color:#fff!important; font-size:15px; }
.cd-compare-table tbody th { color:#191919!important; font-size:17px; }
.cd-compare-table tbody tr:last-child th, .cd-compare-table tbody tr:last-child td { border-bottom:0; }
.cd-compare-table tbody tr:hover { background:#fff8f9; }
.cd-compare-table a { font-weight:800; }
.cd-status-muted { display:inline-block; padding:5px 9px; border-radius:999px; background:#f1f2f4; color:#5f6368; font-size:14px; font-weight:800; }
.cd-compare-note { margin:18px 0 0; text-align:center; }

.cd-journey-section { background:linear-gradient(180deg,#fff 0%,#f8f9fb 100%); }
.cd-journey-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; margin-top:38px; position:relative; }
.cd-journey-step { position:relative; padding:28px 22px 24px; border:1px solid var(--cd-line); border-radius:20px; background:#fff; box-shadow:0 12px 30px rgba(25,25,25,.06); }
.cd-journey-step > span { display:grid; place-items:center; width:48px; height:48px; margin-bottom:18px; border-radius:50%; background:var(--cd-red); color:#fff; font-size:21px; font-weight:900; }
.cd-journey-step h3 { margin:0 0 8px; color:#191919!important; font-size:21px; }
.cd-journey-step p { margin:0; }
.cd-journey-action { margin-top:30px; text-align:center; }

.cd-training-section { background:#fff; }
.cd-training-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:36px; }
.cd-training-grid article { padding:25px; border:1px solid var(--cd-line); border-radius:20px; background:#fff; transition:transform .2s ease,box-shadow .2s ease; }
.cd-training-grid article:hover { transform:translateY(-3px); box-shadow:0 14px 32px rgba(25,25,25,.08); }
.cd-training-icon { display:grid; place-items:center; width:48px; height:48px; margin-bottom:15px; border-radius:14px; background:#fff0f2; color:var(--cd-red); font-weight:900; }
.cd-training-grid h3 { margin:0 0 8px; color:#191919!important; }
.cd-training-grid p { margin:0; }
.cd-retest-callout { display:flex; align-items:center; justify-content:space-between; gap:30px; margin-top:28px; padding:30px; border-radius:22px; background:#191919; color:#fff; }
.cd-retest-callout h3 { margin:3px 0 8px; color:#fff!important; font-size:27px; }
.cd-retest-callout p { margin:0; color:rgba(255,255,255,.78)!important; }
.cd-retest-callout .cd-kicker { color:#fff!important; }
.cd-retest-callout .cd-button { flex:0 0 auto; }

.cd-faq-layout { display:grid; grid-template-columns:.8fr 1.2fr; gap:55px; align-items:start; }
.cd-faq-layout h2 { margin-top:0; color:#191919!important; font-size:clamp(32px,4vw,48px); }
.cd-faq-list { display:grid; gap:12px; }
.cd-faq-list details { overflow:hidden; border:1px solid var(--cd-line); border-radius:16px; background:#fff; }
.cd-faq-list summary { position:relative; cursor:pointer; list-style:none; padding:20px 52px 20px 20px; color:#191919; font-weight:850; }
.cd-faq-list summary::-webkit-details-marker { display:none; }
.cd-faq-list summary:after { content:'+'; position:absolute; right:20px; top:50%; transform:translateY(-50%); color:var(--cd-red); font-size:27px; line-height:1; }
.cd-faq-list details[open] summary:after { content:'–'; }
.cd-faq-list details p { margin:0; padding:0 20px 20px; }

@media (max-width:900px) {
  .cd-journey-grid { grid-template-columns:repeat(2,1fr); }
  .cd-training-grid { grid-template-columns:repeat(2,1fr); }
  .cd-faq-layout { grid-template-columns:1fr; gap:30px; }
  .cd-retest-callout { align-items:flex-start; flex-direction:column; }
}
@media (max-width:600px) {
  .cd-journey-grid, .cd-training-grid { grid-template-columns:1fr; }
  .cd-journey-step, .cd-training-grid article { padding:22px; }
  .cd-retest-callout { padding:24px; }
  .cd-compare-wrap { margin-inline:-4px; }
}


/* ============================================================
   Canada Drivers v3.7 — mobile horizontal-wiggle fix
   Prevent any section/grid/card from making the page wider than
   the viewport while preserving intentional table scrolling.
   ============================================================ */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}
body, #page, #main-content, main, section, header, footer {
  min-width: 0;
  max-width: 100%;
}
.cd-wrap, .cd-narrow,
.cd-hero-grid, .cd-feature-grid, .cd-course-grid, .cd-program-grid,
.cd-photo-grid, .cd-journey-grid, .cd-training-grid, .cd-faq-layout,
.cd-retest-callout, .cd-actions, .cd-topbar-links {
  min-width: 0;
  max-width: 100%;
}
.cd-hero-grid > *, .cd-feature-grid > *, .cd-course-grid > *,
.cd-program-grid > *, .cd-photo-grid > *, .cd-journey-grid > *,
.cd-training-grid > *, .cd-faq-layout > * {
  min-width: 0;
  max-width: 100%;
}
.cd-compare-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.cd-compare-table {
  max-width: none;
}
.cd-retest-callout > * {
  min-width: 0;
  max-width: 100%;
}
.cd-retest-callout .cd-button {
  white-space: normal;
  text-align: center;
}
.cd-faq-list summary,
.cd-faq-list details p,
.cd-training-grid h3,
.cd-training-grid p,
.cd-journey-step h3,
.cd-journey-step p {
  overflow-wrap: anywhere;
  word-break: normal;
}
@media (max-width: 700px) {
  .cd-compare-wrap { margin-inline: 0; border-radius: 16px; }
  .cd-retest-callout { width: 100%; }
  .cd-actions .cd-button, .cd-retest-callout .cd-button { max-width: 100%; }
}


/* Social media, floating WhatsApp and Back to Top */
.cd-social-block{margin-top:20px}.cd-social-block h3{margin-bottom:10px}.cd-social-links{display:flex;gap:10px;flex-wrap:wrap}.cd-social{width:42px;height:42px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#fff;color:#16243a;text-decoration:none!important;transition:transform .18s ease,opacity .18s ease}.cd-social svg,.cd-floating-whatsapp svg{width:23px;height:23px;fill:currentColor}.cd-social:hover{transform:translateY(-2px);opacity:.9}.cd-social:focus-visible,.cd-floating-whatsapp:focus-visible,.cd-back-to-top:focus-visible{outline:3px solid #fff;outline-offset:3px}.cd-whatsapp,.cd-floating-whatsapp{background:#25D366;color:#fff}.cd-floating-whatsapp,.cd-back-to-top{position:fixed;right:20px;width:52px;height:52px;border-radius:50%;z-index:9998;display:flex;align-items:center;justify-content:center;box-shadow:0 5px 18px rgba(0,0,0,.22)}.cd-floating-whatsapp{bottom:20px;text-decoration:none!important}.cd-back-to-top{bottom:84px;border:0;background:#17243a;color:#fff;font-size:26px;line-height:1;cursor:pointer;opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .2s ease,transform .2s ease,visibility .2s}.cd-back-to-top.is-visible{opacity:1;visibility:visible;transform:none}.screen-reader-text{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}@media(max-width:600px){.cd-floating-whatsapp,.cd-back-to-top{right:14px;width:48px;height:48px}.cd-floating-whatsapp{bottom:14px}.cd-back-to-top{bottom:72px}}@media(prefers-reduced-motion:reduce){.cd-social,.cd-back-to-top{transition:none}}

/* v4.1: high-visibility official social icon styling */
.cd-social.cd-facebook{background:#1877F2!important;color:#fff!important}.cd-social.cd-instagram{background:radial-gradient(circle at 30% 107%,#fdf497 0 5%,#fd5949 45%,#d6249f 60%,#285AEB 90%)!important;color:#fff!important}.cd-social.cd-whatsapp{background:#25D366!important;color:#fff!important}.cd-social{box-shadow:0 2px 8px rgba(0,0,0,.22);border:0!important}.cd-social svg{fill:#fff!important;width:24px;height:24px}.cd-back-to-top{background:#c71f37!important;color:#fff!important}

/* Winchester dedicated BDE page — v4.2 */
.cd-winchester-page .cd-section-head{max-width:850px}.cd-winchester-options{max-width:900px;margin-left:auto;margin-right:auto}.cd-winchester-options article{position:relative}.cd-winchester-options .cd-badge{display:inline-block;margin:.5rem 0}.cd-winchester-page .cd-bde-details{max-width:900px;margin:2rem auto 0}

/* Winchester services and pricing — v4.3 */
.cd-winchester-heading{margin:2.5rem 0 1.15rem;text-align:center}.cd-winchester-service-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.2rem}.cd-winchester-service-grid article,.cd-winchester-roadtest{background:#fff;border:1px solid var(--cd-line);border-radius:var(--cd-radius);box-shadow:var(--cd-shadow);padding:1.5rem}.cd-winchester-service-grid .cd-price span{font-size:.95rem;font-weight:600;margin-left:.15rem}.cd-winchester-service-grid .cd-button{margin-top:.5rem}.cd-winchester-roadtest{max-width:900px;margin:2.5rem auto 0;display:flex;align-items:center;justify-content:space-between;gap:2rem;border-top:5px solid var(--cd-red)}.cd-winchester-roadtest .cd-price{font-size:2rem;font-weight:800;color:var(--cd-red)}.cd-winchester-no-class{max-width:900px;margin:1.25rem auto;text-align:center}@media(max-width:900px){.cd-winchester-service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.cd-winchester-service-grid{grid-template-columns:1fr}.cd-winchester-roadtest{display:block}.cd-winchester-roadtest .cd-actions{margin-top:1rem}}

/* Winchester branding — v4.4 */
.cd-brand .cd-winchester-logo{width:auto;height:145px;max-width:220px;max-height:145px;object-fit:contain}.cd-footer-winchester-logo{display:block;width:88px;height:88px;object-fit:contain;background:#fff;border-radius:50%;padding:4px}.cd-winchester-contact-only li{margin-bottom:.55rem}@media(max-width:600px){.cd-brand .cd-winchester-logo{height:105px;max-width:125px;max-height:105px}.cd-footer-winchester-logo{width:74px;height:74px}}

/* Winchester store + lesson rules — v4.5 */
.cd-winchester-minimum{margin:.65rem 0 1rem;color:var(--cd-red);font-size:.95rem}.cd-winchester-lesson-note{max-width:900px;margin:1.35rem auto 0;text-align:center}.cd-winchester-page .cd-button-outline{display:inline-block}


/* Canada Drivers v4.9 — Locations menu + Winchester homepage spotlight */
.cd-nav .cd-locations-menu{position:relative}.cd-nav .cd-locations-menu>.sub-menu{display:none;position:absolute;top:100%;left:0;min-width:180px;padding:9px 0;margin:0;background:#fff;border:1px solid var(--cd-line);border-radius:12px;box-shadow:0 14px 32px rgba(22,32,51,.14);z-index:1000}.cd-nav .cd-locations-menu:hover>.sub-menu,.cd-nav .cd-locations-menu:focus-within>.sub-menu{display:block}.cd-nav .cd-locations-menu>.sub-menu li{border:0}.cd-nav .cd-locations-menu>.sub-menu a{display:block;padding:10px 16px;white-space:nowrap}.cd-location-spotlight{padding-top:0}.cd-location-spotlight-card{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:34px;align-items:center;padding:34px;border:1px solid #ecd8dc;border-radius:var(--cd-radius);background:linear-gradient(135deg,#fff 0%,#fff 58%,#fff4f5 100%);box-shadow:var(--cd-shadow)}.cd-location-spotlight-card h2{margin:.25rem 0 .65rem}.cd-location-spotlight-copy{min-width:0}.cd-location-note{color:var(--cd-muted);font-size:.95rem}.cd-location-spotlight-brand{display:flex;min-height:225px;flex-direction:column;align-items:center;justify-content:center;padding:20px;border-radius:18px;background:#fff;text-decoration:none!important;color:var(--cd-ink);box-shadow:0 10px 30px rgba(22,32,51,.08)}.cd-location-spotlight-brand img{display:block;max-width:170px;max-height:150px;width:auto;height:auto;object-fit:contain}.cd-location-spotlight-brand strong{margin-top:8px;color:var(--cd-red);font-size:1.05rem;letter-spacing:.06em}.cd-location-spotlight-brand span{margin-top:3px;color:var(--cd-muted);font-size:.85rem}@media(max-width:900px){.cd-location-spotlight-card{grid-template-columns:1fr}.cd-location-spotlight-brand{min-height:0}.cd-nav .cd-locations-menu>.sub-menu{position:static;display:block;min-width:0;padding:0 0 8px 16px;border:0;border-radius:0;box-shadow:none;background:transparent}.cd-nav .cd-locations-menu>.sub-menu a{padding:10px 4px;color:var(--cd-muted)}}@media(max-width:600px){.cd-location-spotlight-card{padding:24px 20px;gap:22px}.cd-location-spotlight-brand img{max-width:145px}}

/* Service-area footer: natural local SEO without keyword stuffing */
.cd-service-areas{margin-top:28px;padding:18px 0;border-top:1px solid rgba(255,255,255,.14);text-align:center;line-height:1.65}
.cd-service-areas strong{display:block;color:#fff;font-size:15px;margin-bottom:5px}
.cd-service-areas span{display:block;color:rgba(255,255,255,.76);font-size:13px;max-width:1000px;margin:0 auto}


/* Canada Drivers v5.2 — BDE waiting-list actions */
.cd-waitlist-wrap{margin-top:14px;display:flex;flex-direction:column;align-items:flex-start;gap:7px}.cd-waitlist-button{display:inline-flex;align-items:center;justify-content:center;padding:11px 16px;border:2px solid #cf1735;border-radius:10px;background:#fff;color:#b60f2b!important;font-weight:800;text-decoration:none}.cd-waitlist-button:hover,.cd-waitlist-button:focus{background:#fff1f4;color:#8f0b22!important}.cd-waitlist-note{margin:0!important;min-height:0!important;font-size:.92rem;color:#666a70}.cd-waitlist-context{padding:14px 16px;border-left:4px solid #cf1735;background:#fff3f5;margin:0 0 22px}.cd-waitlist-context strong{color:#b60f2b}

/* Canada Drivers v5.3 — brand-red waiting-list buttons */
.cd-waitlist-button,
.cd-waitlist-button:visited {
  background:#cf1735;
  border-color:#cf1735;
  color:#fff!important;
}
.cd-waitlist-button:hover,
.cd-waitlist-button:focus {
  background:#b60f2b;
  border-color:#b60f2b;
  color:#fff!important;
}

/* v5.9 installment-payment notice */
.cd-installment-banner{margin:0 0 24px;padding:15px 18px;border:1px solid #e4e4e4;border-radius:10px;background:#fff;font-size:15px;line-height:1.5}.cd-installment-banner strong{color:#b5121b}.cd-installment-product{margin:14px 0;padding:12px 14px;border-left:4px solid #b5121b;background:#fafafa;font-size:14px;line-height:1.5}


/* Mobile single-product overflow fix — prevents horizontal page wiggle */
.woocommerce div.product,
.woocommerce-page div.product,
.woocommerce div.product .woocommerce-product-gallery,
.woocommerce div.product .summary,
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related,
.woocommerce div.product form.cart,
.woocommerce div.product .product_meta {
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
.woocommerce div.product img,
.woocommerce div.product .woocommerce-product-gallery img {
  max-width:100%!important;
  height:auto!important;
}
.woocommerce div.product .product_title,
.woocommerce div.product .woocommerce-product-details__short-description,
.woocommerce div.product .woocommerce-Tabs-panel,
.woocommerce div.product .summary p,
.woocommerce div.product .summary li {
  overflow-wrap:anywhere;
  word-break:normal;
}
@media (max-width: 768px) {
  body.single-product .cd-content,
  body.single-product .cd-wrap,
  body.single-product #main-content,
  body.single-product .woocommerce {
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow-x:clip!important;
  }
  body.single-product .cd-wrap { padding-left:14px!important; padding-right:14px!important; }
  .woocommerce div.product div.images,
  .woocommerce div.product div.summary {
    float:none!important;
    width:100%!important;
    max-width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
  }
  .woocommerce div.product .product_title { font-size:clamp(30px,9vw,44px)!important; line-height:1.05!important; }
  .woocommerce div.product form.cart .button { max-width:100%!important; white-space:normal!important; }
}


/* Form document uploads */
.cd-upload-panel { margin: 14px 0 18px; padding: 16px; border: 1px solid var(--cd-line); border-radius: 12px; background: var(--cd-soft); }
.cd-upload-panel[hidden] { display: none !important; }
.cd-upload-panel p { margin: 0 0 10px; }
.cd-upload-panel label { display: block; margin: 10px 0; }
.cd-upload-panel input[type="file"] { width: 100%; max-width: 100%; padding: 9px; background: var(--cd-white); border: 1px solid var(--cd-line); border-radius: 8px; }
.cd-upload-panel small, .cd-required-note { color: var(--cd-muted); }


/* Canada Drivers v6.7 — desktop header alignment + clear journey steps */
@media (min-width: 901px) {
  .cd-header-inner { min-height: 158px; display:grid; grid-template-columns:minmax(250px,1fr) auto; align-items:center; column-gap:34px; }
  .cd-brand { min-width:0; align-self:center; }
  .cd-nav { display:flex; align-items:center; justify-content:flex-end; align-self:center; min-width:0; }
  .cd-nav > ul { display:flex; align-items:center; justify-content:flex-end; gap:22px; flex-wrap:nowrap; }
  .cd-nav > ul > li { display:flex; align-items:center; min-height:48px; }
  .cd-nav > ul > li > a { display:flex; align-items:center; min-height:48px; line-height:1.2; white-space:normal; text-align:center; }
}
.cd-journey-grid { display:grid !important; grid-template-columns:repeat(4,minmax(0,1fr)) !important; gap:18px !important; margin-top:38px !important; }
.cd-journey-step { position:relative !important; padding:28px 22px 24px !important; border:1px solid var(--cd-line) !important; border-radius:20px !important; background:#fff !important; box-shadow:0 12px 30px rgba(25,25,25,.06) !important; }
.cd-journey-step > span { display:grid !important; place-items:center !important; width:48px !important; height:48px !important; margin:0 0 18px !important; border-radius:50% !important; background:var(--cd-red) !important; color:#fff !important; font-size:21px !important; font-weight:900 !important; line-height:1 !important; }
.cd-journey-step h3 { margin:0 0 8px !important; }
.cd-journey-step p { margin:0 !important; }
@media (max-width:900px) { .cd-journey-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; } }
@media (max-width:600px) { .cd-journey-grid { grid-template-columns:1fr !important; } }

/* Footer logo with an even margin at desktop and mobile sizes. */
.cd-footer .cd-footer-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  flex-shrink: 0;
}
.cd-footer .cd-footer-logo-wrap .cd-footer-logo {
  display: block;
  flex: 0 0 94%;
  width: 94%;
  height: 94%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  transform: none;
}

/* Optional BDE services */
.cd-bde-services{margin:32px 0;clear:both}
.cd-bde-service-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.cd-bde-service-grid article{padding:22px;border:1px solid #d9dfe5;border-radius:14px;background:#fff}
.cd-bde-service-fields{display:block;clear:both;flex:0 0 100%;width:100%;min-width:0;margin:20px 0;padding:20px;border:1px solid #d9dfe5;border-radius:14px}
.cd-bde-service-fields legend{font-size:1.2rem;font-weight:700;padding:0 8px}
.cd-bde-service-choice{display:flex!important;align-items:flex-start;gap:12px;margin:16px 0;cursor:pointer}
.cd-bde-service-choice input[type=checkbox]{width:20px!important;height:20px!important;min-width:20px;margin:4px 0 0;flex:0 0 20px}
.cd-bde-service-choice span span{display:block;margin-top:6px;font-weight:400;line-height:1.5}
@media(max-width:800px){.cd-bde-service-grid{grid-template-columns:1fr}.cd-bde-service-fields{padding:14px}}

.cd-roadtest-inclusions{font-size:.95rem;line-height:1.5;margin:12px 0}.cd-bde-service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:800px){.cd-bde-service-grid{grid-template-columns:1fr}}

.cd-winchester-service-image{display:block;width:100%;height:190px;margin:0 0 20px;border-radius:12px;object-fit:cover;object-position:center}
@media(max-width:600px){.cd-winchester-service-image{height:175px}}

.cd-winchester-travel-card{display:grid;grid-template-columns:minmax(180px,1fr) minmax(0,2fr);gap:24px;margin:28px 0;padding:24px;border:1px solid #d9dfe5;border-radius:16px;background:#fff;text-align:left}.cd-winchester-travel-image img{width:100%;height:auto;display:block;border-radius:12px}.cd-winchester-travel-card h2{margin-top:0}@media(max-width:650px){.cd-winchester-travel-card{grid-template-columns:1fr;padding:18px}}

/* Compact descriptions across all catalogue products. */
ul.products li.product .woocommerce-product-details__short-description,
ul.products li.product .product-short-description,
ul.products li.product .product-description,
ul.products li.product .cd-roadtest-inclusions { display:none; }
.cd-package-description { margin: 12px 0; }
.cd-package-description summary { cursor:pointer; font-weight:600; }
.cd-package-description[open] summary { margin-bottom:12px; }

.cd-bundled-logo{display:block;width:auto;max-width:180px;max-height:100px;object-fit:contain}

/* v6.46: WooCommerce checkout action-button label visibility */
.wc-block-checkout__actions .wc-block-components-button,
.wc-block-checkout__actions .wc-block-components-button .wc-block-components-button__text,
.wc-block-components-checkout-place-order-button,
.wc-block-components-checkout-place-order-button .wc-block-components-button__text {
  color: #fff !important;
  opacity: 1 !important;
  visibility: visible !important;
  -webkit-text-fill-color: #fff !important;
}
.wc-block-checkout__actions .wc-block-components-button {
  background: var(--cd-red) !important;
}
.wc-block-checkout__actions .wc-block-components-button:hover,
.wc-block-checkout__actions .wc-block-components-button:focus {
  background: var(--cd-red-dark) !important;
  color: #fff !important;
}

/* v6.77: compact road-test travel cards */
.cd-winchester-travel-card{display:grid!important;grid-template-columns:220px minmax(0,1fr)!important;gap:20px!important;align-items:center!important;margin:18px 0!important;padding:16px!important;min-height:0!important;height:auto!important}
.cd-winchester-travel-card>div{min-height:0!important;height:auto!important}
.cd-winchester-travel-image{width:220px!important;height:150px!important;overflow:hidden!important;border-radius:10px!important}
.cd-winchester-travel-image img{width:220px!important;height:150px!important;object-fit:cover!important;margin:0!important;border-radius:10px!important}
.cd-winchester-travel-card h2{font-size:28px!important;line-height:1.12!important;margin:0 0 8px!important}
.cd-winchester-travel-card details{margin:0 0 10px!important}
.cd-winchester-travel-card .cd-button{margin-top:6px!important}
@media(max-width:650px){.cd-winchester-travel-card{grid-template-columns:1fr!important}.cd-winchester-travel-image,.cd-winchester-travel-image img{width:100%!important;height:180px!important}.cd-winchester-travel-card h2{font-size:24px!important}}


/* vNext: three road-test cards side-by-side on Home + Courses & Packages */
.cd-travel-cards-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:20px!important;align-items:stretch!important;margin:24px 0!important}
.cd-travel-cards-grid>.cd-winchester-travel-card,.cd-travel-cards-grid>.cd-service-note{display:flex!important;flex-direction:column!important;grid-template-columns:none!important;margin:0!important;padding:18px!important;min-width:0!important;min-height:0!important;height:100%!important;border:1px solid #d9dfe5!important;border-radius:16px!important;background:#fff!important;box-sizing:border-box!important}
.cd-travel-cards-grid>.cd-winchester-travel-card .cd-winchester-travel-image{width:100%!important;margin:0 0 14px!important}
.cd-travel-cards-grid>.cd-winchester-travel-card .cd-winchester-travel-image img{width:100%!important;height:170px!important;object-fit:cover!important;border-radius:12px!important;display:block!important}
.cd-travel-cards-grid>.cd-winchester-travel-card h2,.cd-travel-cards-grid>.cd-service-note h3{font-size:23px!important;line-height:1.18!important;margin:0 0 10px!important}
.cd-travel-cards-grid>.cd-winchester-travel-card p,.cd-travel-cards-grid>.cd-service-note p{font-size:15px!important;line-height:1.5!important;margin:0 0 14px!important}
.cd-travel-cards-grid .cd-button{margin-top:auto!important;align-self:flex-start!important}
.cd-travel-cards-grid>.cd-service-note{border-left:1px solid #d9dfe5!important}
@media(max-width:900px){.cd-travel-cards-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.cd-travel-cards-grid>.cd-service-note{grid-column:1/-1!important}}
@media(max-width:650px){.cd-travel-cards-grid{grid-template-columns:1fr!important}.cd-travel-cards-grid>.cd-service-note{grid-column:auto!important}.cd-travel-cards-grid>.cd-winchester-travel-card .cd-winchester-travel-image img{height:auto!important;max-height:220px!important}}


/* v6.84.4: force the homepage training gallery to stay balanced on tablets.
   Phone rules at <=700px still stack the cards vertically. */
@media (min-width: 701px) and (max-width: 1366px) {
  html body .cd-photo-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    align-items: stretch !important;
  }
  html body .cd-photo-grid > .cd-photo-card,
  html body .cd-photo-grid > .cd-photo-card-wide {
    grid-column: auto !important;
    grid-row: auto !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 240px !important;
  }
  html body .cd-photo-grid > .cd-photo-card img {
    width: 100% !important;
    height: 100% !important;
    min-height: 240px !important;
    object-fit: cover !important;
  }
  html body .cd-photo-grid figcaption { left: 14px; right: 14px; bottom: 14px; }
  html body .cd-photo-grid figcaption strong { font-size: 16px; }
  html body .cd-photo-grid figcaption span { font-size: 12px; }
}


/* v6.84.8 — Online BDE eLearning language information card */
.cd-bde-language-info{margin:32px 0;clear:both}
.cd-bde-language-card{border:1px solid var(--cd-line);border-radius:20px;background:#fff;padding:28px;box-shadow:none}
.cd-bde-language-card h2{margin:0 0 20px;font-size:clamp(28px,4vw,42px);line-height:1.12;color:var(--cd-ink)}
.cd-bde-language-card details{margin:0}
.cd-bde-language-body{color:var(--cd-muted);font-size:19px;line-height:1.55}
.cd-bde-language-body>p{margin:0 0 22px}
.cd-bde-language-list{background:var(--cd-soft);border-radius:18px;padding:20px 24px;margin:0 0 22px}
.cd-bde-language-list p{margin:0 0 12px;color:#444}
.cd-bde-language-list p:last-child{margin-bottom:0}
@media(max-width:700px){.cd-bde-language-card{padding:24px 20px}.cd-bde-language-card h2{font-size:34px}.cd-bde-language-body{font-size:18px}.cd-bde-language-list{padding:18px}}


/* v6.84.11 — Driver Resources & Tips, language support and Google Reviews */
.cd-resource-grid{margin-top:28px}
.cd-tip-card{padding:0;overflow:hidden}
.cd-tip-card summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:14px;padding:22px}
.cd-tip-card summary::-webkit-details-marker{display:none}
.cd-tip-card summary span:last-child{display:flex;flex-direction:column;gap:5px;text-align:left}
.cd-tip-card summary strong{font-size:1.08rem;color:var(--cd-ink)}
.cd-tip-card summary small{font-size:.92rem;font-weight:400;line-height:1.45;color:var(--cd-muted)}
.cd-tip-card summary:after{content:"+";margin-left:auto;font-size:1.5rem;font-weight:700;color:var(--cd-red)}
.cd-tip-card[open] summary:after{content:"−"}
.cd-tip-body{padding:0 22px 22px;border-top:1px solid var(--cd-line)}
.cd-tip-body p{margin-top:18px}
.cd-tip-body .cd-checks{margin-bottom:0}
.cd-language-support{margin-top:28px;padding:24px;border:1px solid var(--cd-line);border-radius:18px;text-align:center;background:#fff}
.cd-language-support h3{margin-top:0}
.cd-language-support p:last-child{margin-bottom:0}
.cd-review-actions{justify-content:center}
@media(max-width:700px){.cd-tip-card summary{padding:18px}.cd-tip-body{padding:0 18px 18px}.cd-language-support{padding:20px}}

/* v6.84.15 — viewport entrance motion. Layout position is never changed after reveal. */
html.cd-reveal-ready .cd-scroll-reveal {
  opacity: 0;
  will-change: transform, opacity;
  transition: transform .82s cubic-bezier(.22,.61,.36,1), opacity .62s ease-out;
  transition-delay: var(--cd-reveal-delay, 0ms);
}
html.cd-reveal-ready .cd-scroll-reveal.cd-reveal-left { transform: translate3d(-72px,0,0); }
html.cd-reveal-ready .cd-scroll-reveal.cd-reveal-right { transform: translate3d(72px,0,0); }
html.cd-reveal-ready .cd-scroll-reveal.cd-reveal-up { transform: translate3d(0,34px,0); }
html.cd-reveal-ready .cd-scroll-reveal.is-revealed {
  opacity: 1;
  transform: translate3d(0,0,0);
  will-change: auto;
}
@media(max-width:700px){
  html.cd-reveal-ready .cd-scroll-reveal.cd-reveal-left{transform:translate3d(-34px,0,0)}
  html.cd-reveal-ready .cd-scroll-reveal.cd-reveal-right{transform:translate3d(34px,0,0)}
  html.cd-reveal-ready .cd-scroll-reveal.cd-reveal-up{transform:translate3d(0,24px,0)}
}
@media(prefers-reduced-motion:reduce){
  html.cd-reveal-ready .cd-scroll-reveal,
  html.cd-reveal-ready .cd-scroll-reveal.cd-reveal-left,
  html.cd-reveal-ready .cd-scroll-reveal.cd-reveal-right,
  html.cd-reveal-ready .cd-scroll-reveal.cd-reveal-up{
    opacity:1!important;transform:none!important;transition:none!important;
  }
}

/* v6.84.26 — compact sticky header on tablet/mobile only */
@media (max-width: 980px) {
  .cd-header-inner { min-height: 104px; }
  .cd-brand .custom-logo { width: auto; height: 86px; max-width: 110px; max-height: 86px; }
  .cd-header .cd-nav-toggle { width: 48px !important; height: 48px !important; min-width: 48px !important; min-height: 48px !important; }
}
@media (max-width: 700px) {
  .cd-header-inner { min-height: 92px; }
  .cd-brand .custom-logo { width: auto; height: 76px; max-width: 96px; max-height: 76px; }
  body .cd-header .cd-brand-name { font-size: 18px; }
  .cd-header .cd-nav-toggle { width: 46px !important; height: 46px !important; min-width: 46px !important; min-height: 46px !important; font-size: 23px !important; }
}


/* v6.84.27 — compact road-test retest callout only */
.cd-retest-callout {
  padding:22px 26px;
  gap:12px;
}
.cd-retest-callout .cd-kicker {
  font-size:27px;
  line-height:1.15;
  margin:0 0 8px;
}
.cd-retest-action {
  margin-top:12px;
}
@media (max-width:600px) {
  .cd-retest-callout { padding:20px 22px; }
  .cd-retest-callout .cd-kicker { font-size:24px; }
  .cd-retest-action .cd-button { width:100%; max-width:100%; text-align:center; }
}


/* v6.84.28 — restore compact retest callout flow only */
.cd-retest-callout {
  display:block !important;
  height:auto !important;
  min-height:0 !important;
  padding:26px !important;
}
.cd-retest-callout > div { display:block !important; height:auto !important; min-height:0 !important; }
.cd-retest-callout .cd-kicker { margin:0 0 14px !important; font-size:27px; line-height:1.15; }
.cd-retest-callout p:not(.cd-kicker) { margin:0 !important; }
.cd-retest-action { display:block; margin:12px 0 0; background:transparent !important; }
@media (max-width:600px) {
  .cd-retest-callout { padding:22px !important; }
  .cd-retest-callout .cd-kicker { font-size:24px; }
  .cd-retest-action .cd-button { display:block; width:100%; max-width:100%; text-align:center; }
}


/* v6.84.35 — MTO licences page (renewed licences K8K8 / L2M8, valid to Sept 30, 2029) */
.cd-mto-page .cd-licence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.cd-licence-card { padding: 16px; }
.cd-licence-card img { border-radius: 8px; }
@media (max-width: 760px) { .cd-mto-page .cd-licence-grid { grid-template-columns: 1fr; } }


/* v6.84.36 — right-to-left (Arabic) safety net */
html[dir="rtl"]{overflow-x:hidden;}
html[dir="rtl"] body{overflow-x:clip;position:relative;max-width:100%;}

/* Lock the footer colours so page-builder (Elementor) default colours can't recolour it */
.cd-footer h2,.cd-footer h3,.cd-footer .cd-social-block h3{color:#fff!important;}
.cd-footer a,.cd-footer a:visited{color:rgba(255,255,255,.82)!important;text-decoration:none!important;}
.cd-footer a:hover,.cd-footer a:focus{color:#fff!important;text-decoration:underline!important;}
.cd-footer .cd-footer-brand,.cd-footer .cd-footer-brand:visited{color:#fff!important;}
.cd-footer .cd-service-areas,.cd-footer .cd-service-areas *{color:rgba(255,255,255,.78)!important;}
.cd-footer .cd-service-areas strong{color:#fff!important;}
.cd-footer .cd-copyright{color:rgba(255,255,255,.6)!important;}

/* Lock heading sizes on theme pages so page-builder (Elementor) typography can't inflate them */
html body #main-content .cd-page-title h1{font-size:clamp(34px,6vw,55px)!important;line-height:1.08!important;letter-spacing:-.035em!important;}
html body #main-content .cd-page-title .cd-page-kicker{font-size:13px!important;letter-spacing:.18em!important;}
html body #main-content .cd-section h2,
html body #main-content .cd-content h2{font-size:clamp(28px,4.4vw,44px)!important;line-height:1.14!important;letter-spacing:-.03em!important;}
html body #main-content .cd-content h3{font-size:clamp(20px,2.6vw,26px)!important;line-height:1.25!important;}
html body #main-content .cd-kicker{font-size:13px!important;letter-spacing:.16em!important;}
html body #main-content .cd-content p:not(.price),html body #main-content .cd-content li:not(.product){font-size:17px!important;line-height:1.65!important;}

/* Product cards keep their own compact sizes (the heading lock above must not enlarge them) */
html body #main-content ul.products li.product{font-size:16px!important;line-height:1.45!important;}
html body #main-content ul.products li.product .woocommerce-loop-product__title,
html body #main-content ul.products li.product h2,
html body #main-content ul.products li.product h3,
html body #main-content .wc-block-grid__product-title{font-size:clamp(18px,2.2vw,21px)!important;line-height:1.25!important;letter-spacing:-.01em!important;margin:12px 0 6px!important;}
html body #main-content ul.products li.product .price{font-size:18px!important;}
html body #main-content ul.products li.product .button,
html body #main-content ul.products li.product a.cd-text-link{font-size:15px!important;}
