h1, h2, h3, h4, h5, h6,
.page-title, .ap-bar h1, .sj h1, .ap-block h2, .sj-tips h2, .sj-now h2,
.price-table th, .price-table td:nth-child(2),
.trust-grid strong, .rm-banner, .rm-popup-card h2,
.course-card h3, .blog-card h3, .blog-reader h2, .blog-reader h3,
.offer-card h2, .instructor-card h2, .instructor-card h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
h1, h2, h3, h4, h5, h6, .page-title, .ap-bar h1, .sj h1, .ap-block h2, .sj-tips h2, .sj-now h2 {
  color: var(--ink);
}
.nav-links a, .ap-nav-btn, .ap-btn, .button, button.ap-btn-primary {
  font-weight: 800;
}
.brand-logo {
  height: 96px;
  width: auto;
  display: block;
  object-fit: contain;
  background: transparent;
}
.brand-logo-sm {
  height: 64px;
  width: auto;
  display: block;
  object-fit: contain;
  background: transparent;
}
.nav {
  height: auto !important;
  min-height: 112px;
  padding: 10px 0;
  align-items: center;
}
footer .brand-logo { height: 80px; }
.ap-login-card .brand-logo {
  height: 88px;
  margin: 0 auto 12px;
}
@media (max-width: 800px) {
  .brand-logo { height: 76px; }
  .nav { min-height: 92px; }
  footer .brand-logo { height: 64px; }
  .brand-logo-sm { height: 52px; }
}
img.fleet-car { object-fit: cover; }
html { color: var(--ink); background: var(--paper); }
body { background: var(--paper); color: var(--ink); }
.site-header, .ap-login-card, .ap-block, .ap-card { background: var(--surface); }
.topbar { background: var(--topbar); color: var(--nav-text); }
.button-red, .ap-btn-primary, .nav-cta {
  background: var(--cta) !important;
  color: var(--cta-text) !important;
}
.ap-nav { background: var(--nav-bg); color: var(--nav-text); }
.ap-bar h1, .sj h1 { color: var(--ink); }
em { font-style: normal; color: var(--brand-red); font-weight: 800; }

.rm-banner {
  background: var(--cta);
  color: var(--cta-text);
  text-align: center;
  padding: 10px 16px;
  font: 800 15px "Barlow Condensed", sans-serif;
  letter-spacing: .04em;
}
.rm-banner a { color: inherit; text-decoration: underline; }
.rm-popup {
  position: fixed;
  inset: 0;
  background: rgba(26,26,26,.62);
  display: grid;
  place-items: center;
  z-index: 80;
  padding: 16px;
}
.rm-popup[hidden] { display: none; }
.rm-popup-card {
  width: min(720px, 100%);
  background: var(--surface);
  color: var(--ink);
  padding: 0;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.28);
  overflow: hidden;
  display: grid;
  position: relative;
}
.rm-popup-card.has-image.has-copy {
  grid-template-columns: 1.08fr 1fr;
}
.rm-popup-photo {
  background: var(--brand-black, #1A1A1A);
  min-height: 220px;
}
.rm-popup-photo img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}
.rm-popup-copy {
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.rm-popup-card h2 { margin: 0 0 8px; color: var(--ink); padding-right: 32px; }
.rm-popup-card p { color: var(--muted); margin: 0; }
.rm-popup-actions {
  margin: 18px 0 0 !important;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.rm-popup-dismiss {
  background: transparent;
  border: 0;
  color: var(--ink);
  font: 800 13px Manrope, sans-serif;
  cursor: pointer;
  text-decoration: underline;
  padding: 8px 4px;
}
.rm-popup-x {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #1A1A1A;
  border: 0;
  font: 700 22px/1 Manrope, sans-serif;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
}
.ap-popup-preview {
  width: min(240px, 100%);
  max-height: 160px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin: 8px 0 4px;
}
@media (max-width: 700px) {
  .rm-popup-card.has-image.has-copy { grid-template-columns: 1fr; }
  .rm-popup-photo img { min-height: 200px; max-height: 240px; }
}

.instructor-grid, .offer-grid { display: grid; gap: 22px; }
.instructor-card, .offer-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.instructor-card > img, .offer-card > img,
.instructor-card > .rm-shot > img, .offer-card > .rm-shot > img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}
.instructor-card div, .offer-card div { padding: 18px 18px 22px 0; }
.instructor-card ul { padding-left: 18px; }
.blog-search { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.blog-search input, .blog-search select { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.chat-options { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-nav { overflow: auto; }
.ap-card, .ap-form, .ap-stat, .ap-login-card, .ap-block .ap-card { background: var(--surface); color: var(--ink); }
.ap-bar h1, .ap-block h2, .ap-card h3 { font-weight: 800; }
.ap-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.theme-swatch {
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  background: var(--bg, var(--surface));
  color: var(--ink, inherit);
  text-align: left;
}
.theme-swatch.active { border-color: var(--cta); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cta) 25%, transparent); }
.hero-photo:before, .guide-image:after, .lesson-scene:after, .toolkit-image:after, .course-visual:after, .blog-card:before, .about-image:after {
  display: none !important;
}
.about-image, .hero-photo, .lesson-scene {
  box-shadow: 18px 18px 0 var(--line) !important;
}
.hero { background: var(--paper) !important; }
.hero:before {
  background: linear-gradient(90deg, color-mix(in srgb, var(--paper) 96%, transparent) 0%, color-mix(in srgb, var(--paper) 88%, transparent) 45%, transparent 100%) !important;
}
.hero-road { background: var(--line) !important; }
.hero-lede, .hero-notes { color: var(--muted) !important; }
.hero-photo, .about-image, .lesson-scene, .guide-image {
  box-shadow: 18px 18px 0 #EEEEEE !important;
}
.courses-section, .highway-section, .review-section, .learning-hub, .blog-reader, .about-section, .toolkit-section, .road-guide, .fair-prices, .faq-section, .blog-section, .quote-section {
  background: #FFFFFF !important;
}
.course-visual:before {
  background: linear-gradient(0deg, rgba(26,26,26,.78), rgba(26,26,26,.22)) !important;
}
.course-visual i { color: #FFFFFF !important; }
.toolkit-card { background: #FFFFFF !important; border-color: var(--line) !important; }
.toolkit-body details { border-color: var(--line) !important; }
.scene-glow {
  background: linear-gradient(145deg, rgba(26,26,26,.12), rgba(26,26,26,.7)) !important;
}
.trust-strip { background: #1A1A1A !important; color: #FFFFFF !important; }
.trust-grid div { border-color: #481819 !important; }
.trust-grid strong { color: #FFFFFF !important; }
.trust-grid span { color: #EEEEEE !important; }
.contact-section {
  background: #FFFFFF !important;
  color: var(--ink) !important;
}
.contact-section h2 { color: var(--brand-red) !important; }
.contact-section h2 em { color: #1A1A1A !important; }
.contact-section .eyebrow, .contact-section .eyebrow.light {
  color: var(--brand-red) !important;
}
.contact-section > .container > div > p:not(.eyebrow) { color: var(--muted) !important; }
.contact-section .contact-details, .contact-section .contact-details a {
  color: var(--ink) !important;
}
.contact-section .contact-details i {
  color: #fff !important;
  background: var(--brand-red);
  width: 28px !important;
  height: 28px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  margin-right: 8px;
  font-size: 12px;
}
#enquiry-form {
  border: 3px solid var(--brand-red);
  background: #FFFFFF !important;
  color: var(--ink) !important;
}
input, select, textarea {
  border-color: #EEEEEE !important;
  background: #FFFFFF !important;
}
.topbar { color: #FFFFFF !important; }
.chat-messages { background: var(--paper) !important; }
.chat-head span { color: var(--cta-text) !important; opacity: .85; }
footer { background: #1A1A1A !important; color: #EEEEEE !important; }
footer .copyright { color: #EEEEEE !important; border-color: #481819 !important; }
.socials a { background: #481819 !important; color: #FFFFFF !important; }
.hero h1, .hero h1 em { color: var(--brand-red) !important; }
.price-table th { background: #1A1A1A !important; }
.price-table td:first-child { color: var(--brand-red) !important; }
.price-table td:nth-child(2) { color: var(--ink) !important; }
.red-circle { background: #EEEEEE !important; color: var(--brand-red) !important; }
.button-red:hover, .ap-btn-primary:hover, .nav-cta:hover {
  background: #8B0000 !important;
}
.six-courses .course-card.featured,
.course-card.featured {
  background: #FFFFFF !important;
  color: var(--ink) !important;
}
.six-courses .course-card.featured .course-card-content,
.six-courses .course-card.featured h3,
.six-courses .course-card.featured a {
  color: var(--ink) !important;
}
.six-courses .course-card.featured p,
.six-courses .course-card.featured details p {
  color: var(--muted) !important;
}
.six-courses .course-card.featured .course-tag {
  color: var(--brand-red) !important;
}
.six-courses .course-card.featured details {
  border-color: var(--line) !important;
  color: inherit !important;
}
.six-courses .course-card.featured summary {
  color: var(--navy) !important;
}
.six-courses .course-card.featured summary i {
  color: var(--brand-red) !important;
}
.rule-card:nth-child(2) { border-color: var(--muted) !important; }
.national-sign {
  background: transparent !important;
  border: 0 !important;
  overflow: visible !important;
  border-radius: 0 !important;
  display: grid;
  place-items: center;
}
.national-sign:before,
.national-sign:after {
  content: none !important;
  display: none !important;
}
.national-sign svg {
  width: 42px;
  height: 42px;
  display: block;
}
.mock-notice {
  background: var(--warning);
  color: #1A1A1A;
  font-weight: 800;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
}
.fault-row { display: grid; gap: 8px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.fault-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.fault-btns.companion button { min-height: 64px; font-size: 18px; font-weight: 800; padding: 12px 16px; }
.fault-driving { background: #481819; color: #FFFFFF; border: 0; border-radius: 10px; padding: 10px 12px; cursor: pointer; font-weight: 800; }
.fault-serious { background: var(--warning); color: #1A1A1A; border: 0; border-radius: 10px; padding: 10px 12px; cursor: pointer; font-weight: 800; }
.fault-dangerous { background: var(--danger); color: #FFFFFF; border: 0; border-radius: 10px; padding: 10px 12px; cursor: pointer; font-weight: 800; }
.skill-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ap-form-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ap-student-card { display: grid; grid-template-columns: 96px 1fr; gap: 14px; }
.ap-photo-preview, .ap-student-photo { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; }
.rm-shot {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
}
.hero-photo.rm-shot { overflow: visible; }
.instructor-card > .rm-shot,
.offer-card > .rm-shot {
  height: 100%;
  min-height: 180px;
}
.blog-card > .rm-shot,
.blog-card .rm-shot {
  height: 155px;
}
.blog-featured > .rm-shot {
  height: 360px;
}
.blog-reader > .rm-shot {
  width: 240px;
  height: 150px;
  float: right;
  margin: 0 0 20px 30px;
}
.rm-shot > img,
.instructor-card > .rm-shot > img,
.offer-card > .rm-shot > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rm-shot-wash {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: url("/images/logo-road-master.png") 96% 92% / 96px auto no-repeat;
  opacity: 0.2;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.35));
}
.rm-shot-mark {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 20px);
  background: #1A1A1A;
  color: #FFFFFF;
  padding: 5px 10px 5px 6px;
  pointer-events: none;
  box-shadow: 0 8px 18px rgba(0,0,0,.28);
}
.rm-shot-mark img {
  height: 28px !important;
  width: auto !important;
  max-width: 86px !important;
  max-height: 28px !important;
  min-height: 0 !important;
  min-width: 0 !important;
  background: #FFFFFF;
  padding: 3px 5px;
  object-fit: contain !important;
}
.rm-shot-mark span {
  display: grid;
  gap: 1px;
}
.rm-shot-mark strong {
  font: 800 12px/1 "Barlow Condensed", sans-serif;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  text-transform: uppercase;
}
.rm-shot-mark small {
  font: 700 8px/1.2 "Manrope", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #EEEEEE;
}
.course-visual.rm-shot .rm-shot-mark,
.toolkit-image.rm-shot .rm-shot-mark,
.rm-shot.rm-shot-sm .rm-shot-mark {
  top: 8px;
  right: 8px;
  padding: 4px 7px 4px 4px;
  gap: 6px;
}
.course-visual.rm-shot .rm-shot-mark img,
.toolkit-image.rm-shot .rm-shot-mark img,
.rm-shot.rm-shot-sm .rm-shot-mark img {
  height: 22px;
  max-width: 64px;
  padding: 2px 4px;
}
.course-visual.rm-shot .rm-shot-mark small,
.toolkit-image.rm-shot .rm-shot-mark small,
.rm-shot.rm-shot-sm .rm-shot-mark small {
  display: none;
}
.rm-shot.rm-shot-sm .rm-shot-mark span {
  display: none;
}
.rm-shot.rm-shot-sm .rm-shot-mark {
  padding: 4px;
  gap: 0;
}
.course-visual.rm-shot .rm-shot-wash,
.toolkit-image.rm-shot .rm-shot-wash,
.rm-shot.rm-shot-sm .rm-shot-wash {
  background-size: 64px auto;
  opacity: 0.18;
}
.instructors-intro {
  max-width: 760px;
}
.instructors-intro p {
  max-width: 720px !important;
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.65;
}
.instructors-intro p:last-child { margin-bottom: 0; }
.instructors-kicker {
  color: var(--ink) !important;
  font: 800 18px/1.35 "Barlow Condensed", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px !important;
}
@media (max-width: 600px) {
  .rm-shot-mark,
  .rm-shot-wash { display: none !important; }
}
.rm-shot-mark,
.rm-shot-wash {
  display: none !important;
}
