.cms-page-content > main {
  display: block;
}

.apass-php-header .top-bar {
  background: linear-gradient(135deg, #242657 0%, #4245a4 54%, #2f8054 100%);
  color: #fff;
  font-size: .92rem;
}

.apass-php-header .top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
  padding-top: 7px;
  padding-bottom: 7px;
}

.apass-php-header .top-bar-left,
.apass-php-header .top-bar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.apass-php-header .top-bar-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  line-height: 1.2;
}

.apass-php-header .top-bar-pill strong {
  color: #fff;
  font-weight: 800;
}

.apass-php-header .top-bar-pill.is-phone {
  text-decoration: none;
}

.apass-php-header .top-bar-pill.is-highlight {
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .34);
  font-weight: 800;
}

.nav-mobile-actions,
.mobile-overlay,
.mobile-menu {
  display: none;
}

.hamburger,
.mobile-close {
  border: 0;
  background: transparent;
  color: var(--primary, #4245a4);
  cursor: pointer;
}

.hamburger-box {
  display: grid;
  gap: 4px;
  width: 24px;
}

.hamburger-line {
  display: block;
  height: 2px;
  background: currentColor;
}

.mobile-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #25d366;
  color: #fff !important;
  font-weight: 800;
}

.mobile-overlay.is-visible {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, .42);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  z-index: 9999;
  display: block;
  width: min(86vw, 360px);
  height: 100vh;
  overflow-y: auto;
  background: #fff;
  box-shadow: -12px 0 30px rgba(0, 0, 0, .16);
  transition: right .25s ease;
}

.mobile-menu.is-open {
  right: 0;
}

.mobile-menu-header,
.mobile-menu-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border, #dde3ed);
}

.mobile-menu-body {
  padding: 8px 20px 18px;
}

.mobile-nav-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-nav-list a {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid var(--border, #dde3ed);
  font-weight: 700;
}

.mobile-menu-wa {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 8px;
  background: #25d366;
  color: #fff !important;
  font-weight: 800;
}

.site-footer {
  background: var(--primary-dark, #33367d);
  color: rgba(255, 255, 255, .82);
}

.site-footer .footer-cta {
  background: linear-gradient(135deg, var(--accent, #94c6ff), var(--accent-light, #c4e0ff));
  color: var(--primary-dark, #33367d);
  padding: 46px 0;
}

.site-footer .footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.site-footer .footer-cta h2 {
  color: var(--primary-dark, #33367d);
  margin-bottom: 6px;
}

.site-footer .footer-cta p {
  margin: 0;
  color: var(--primary, #4245a4);
}

.site-footer .footer-cta-contact {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: 8px;
  background: var(--primary, #4245a4);
  color: #fff !important;
  font-weight: 800;
}

.site-footer .footer-main {
  background: linear-gradient(180deg, #33367d 0%, #242657 100%);
  padding: 54px 0 44px;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr;
  gap: 34px;
}

.site-footer .footer-heading {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 14px;
}

.site-footer .footer-desc,
.site-footer .footer-contact,
.site-footer .footer-links {
  color: rgba(255, 255, 255, .78);
}

.site-footer .footer-links,
.site-footer .footer-contact {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer a {
  color: rgba(255, 255, 255, .88);
}

.site-footer a:hover {
  color: var(--accent, #94c6ff);
}

.site-footer .footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.site-footer .footer-bottom {
  background: #1c1e48;
  color: rgba(255, 255, 255, .72);
  padding: 18px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.site-footer .footer-bottom-inner {
  display: grid;
  gap: 8px;
  text-align: center;
}

.site-footer .footer-bottom p {
  margin: 0;
}

.site-footer .footer-bottom-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: .9rem;
}

.site-footer .footer-credit {
  font-size: .86rem;
  color: rgba(255, 255, 255, .66);
}

.site-footer .footer-credit a {
  color: var(--accent, #94c6ff);
  font-weight: 700;
}

.pagination-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 34px 0 6px;
}

.pagination-nav a,
.pagination-nav span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--border, #dde3ed);
  border-radius: 8px;
  background: #fff;
  color: var(--primary, #4245a4);
  font-weight: 800;
  text-decoration: none;
}

.pagination-nav a.is-active {
  background: var(--primary, #4245a4);
  color: #fff;
  border-color: var(--primary, #4245a4);
}

.pagination-nav a.is-disabled {
  pointer-events: none;
  opacity: .45;
}

.written-test-page {
  background: #f7f9fc;
}

.written-test-hero {
  background:
    linear-gradient(135deg, rgba(36, 38, 87, .9), rgba(66, 69, 164, .82)),
    url("/images/hero-driving.webp") center/cover;
  color: #fff;
  padding: 72px 0 58px;
}

.written-test-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: end;
}

.written-test-hero h1 {
  color: #fff;
  margin-bottom: 14px;
}

.written-test-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, .9);
}

.written-test-kicker {
  color: #94c6ff !important;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 8px !important;
}

.written-test-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(96px, 1fr));
  gap: 10px;
}

.written-test-specs div {
  min-width: 96px;
  padding: 16px 14px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  text-align: center;
}

.written-test-specs strong {
  display: block;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

.written-test-specs span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, .86);
  font-weight: 700;
}

.written-test-shell {
  padding: 42px 0 70px;
}

.written-test-alert {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #f0a3a3;
  border-radius: 8px;
  background: #fff1f1;
  color: #9d2d2d;
  font-weight: 700;
}

.written-test-start,
.written-test-result,
.written-test-form,
.written-test-review-item {
  border: 1px solid var(--border, #dde3ed);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(66, 69, 164, .08);
}

.written-test-start {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
}

.written-test-start h2,
.written-test-review h2 {
  color: var(--primary, #4245a4);
}

.written-test-note {
  margin-bottom: 0;
  color: #596074;
  font-weight: 700;
}

.written-test-main-btn,
.written-test-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.written-test-main-btn:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.written-test-secondary-btn {
  border: 1px solid var(--primary, #4245a4);
  background: #fff;
  color: var(--primary, #4245a4);
}

.written-test-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border, #dde3ed);
}

.written-test-toolbar span {
  display: block;
  color: #596074;
  font-weight: 700;
}

.written-test-toolbar strong {
  color: var(--primary, #4245a4);
  font-size: 1.15rem;
}

.written-test-timer {
  min-width: 96px;
  padding: 9px 14px;
  border-radius: 8px;
  background: #242657;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
  text-align: center;
}

.written-test-timer.is-urgent {
  background: #9d2d2d;
}

.written-test-grid {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 0;
}

.written-test-overview {
  display: grid;
  grid-template-columns: repeat(2, 42px);
  align-content: start;
  gap: 8px;
  padding: 22px;
  border-right: 1px solid var(--border, #dde3ed);
}

.written-test-overview button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border, #dde3ed);
  border-radius: 8px;
  background: #fff;
  color: var(--primary, #4245a4);
  font-weight: 900;
}

.written-test-overview button.is-active {
  background: var(--primary, #4245a4);
  color: #fff;
}

.written-test-overview button.is-answered {
  border-color: #2f8054;
  box-shadow: inset 0 -4px 0 #2f8054;
}

.written-test-question {
  display: none;
  padding: 30px;
}

.written-test-question.is-active {
  display: block;
}

.written-test-question h2 {
  color: #25253a;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.45;
  margin-bottom: 22px;
}

.written-test-meta {
  color: var(--primary, #4245a4);
  font-weight: 800;
  margin-bottom: 10px;
}

.written-test-option {
  display: grid;
  grid-template-columns: auto 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 15px 16px;
  border: 1px solid var(--border, #dde3ed);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}

.written-test-option:has(input:checked) {
  border-color: var(--primary, #4245a4);
  background: #f1f4ff;
}

.written-test-option span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eef2f8;
  color: var(--primary, #4245a4);
  font-weight: 900;
}

.written-test-nav,
.written-test-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 22px;
}

.written-test-actions {
  justify-content: flex-start;
  padding-left: 0;
}

.written-test-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
}

.written-test-result.is-pass {
  border-color: rgba(47, 128, 84, .35);
}

.written-test-result.is-fail {
  border-color: rgba(157, 45, 45, .35);
}

.written-test-result h2 {
  margin: 0 0 8px;
  color: var(--primary, #4245a4);
}

.written-test-score {
  min-width: 150px;
  padding: 20px;
  border-radius: 8px;
  background: #f7f9fc;
  text-align: center;
}

.written-test-score strong {
  display: block;
  color: var(--primary, #4245a4);
  font-size: 2.6rem;
  line-height: 1;
}

.written-test-score span {
  display: block;
  margin-top: 8px;
  color: #596074;
  font-weight: 900;
}

.written-test-review {
  margin-top: 28px;
}

.written-test-review-item {
  margin-top: 14px;
  padding: 22px;
}

.written-test-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
  color: #596074;
  font-weight: 800;
}

.written-test-review-item h3 {
  color: #25253a;
  font-size: 1.15rem;
  line-height: 1.45;
}

.written-test-review-item ul {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 0;
  list-style: none;
}

.written-test-review-item li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border, #dde3ed);
  border-radius: 8px;
}

.written-test-review-item li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eef2f8;
  color: var(--primary, #4245a4);
  font-weight: 900;
}

.written-test-review-item li.is-answer {
  border-color: #2f8054;
  background: #effaf2;
}

.written-test-review-item li.is-selected:not(.is-answer) {
  border-color: #d77a7a;
  background: #fff1f1;
}

.written-test-explanation {
  padding: 12px 14px;
  border-left: 4px solid var(--primary, #4245a4);
  background: #f7f9fc;
}

.apass-banner-slider {
  position: relative;
  overflow: hidden;
  background: #f7f9fc;
}

.apass-banner-slide {
  display: none;
  position: relative;
}

.apass-banner-slide.is-active {
  display: block;
}

.apass-banner-slide img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}

.apass-banner-caption {
  position: absolute;
  left: 8%;
  bottom: 12%;
  max-width: 560px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.apass-banner-caption h2 {
  color: #fff;
  font-size: clamp(1.7rem, 4vw, 3rem);
}

.apass-banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: #4245a4;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.apass-banner-nav.prev {
  left: 20px;
}

.apass-banner-nav.next {
  right: 20px;
}

.apass-whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 58px;
  padding: 0 16px;
  border-radius: 999px;
  background: #25d366;
  color: #fff !important;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .35);
}

.apass-alert {
  margin: 20px auto;
  max-width: 960px;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid #dde3ed;
  background: #fff;
}

.apass-alert.success {
  border-color: #9ad8ae;
  background: #effaf2;
  color: #276738;
}

.apass-alert.error {
  border-color: #f0a3a3;
  background: #fff1f1;
  color: #9d2d2d;
}

.cms-listing {
  padding: 56px 0;
}

.cms-search-form {
  display: flex;
  gap: 10px;
  margin: 24px 0;
}

.cms-search-form input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--border, #dde3ed);
  border-radius: 10px;
}

@media (max-width: 760px) {
  .apass-php-header .top-bar-inner,
  .apass-php-header .top-bar-left,
  .apass-php-header .top-bar-right {
    justify-content: center;
  }

  .apass-php-header .top-bar-inner {
    flex-direction: column;
    gap: 6px;
  }

  .apass-php-header .top-bar-pill {
    font-size: .82rem;
    min-height: 26px;
    padding: 5px 9px;
  }

  .written-test-hero {
    padding: 48px 0 36px;
  }

  .written-test-hero-inner,
  .written-test-grid,
  .written-test-start,
  .written-test-result {
    grid-template-columns: 1fr;
    display: grid;
  }

  .written-test-specs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .written-test-specs div {
    min-width: 0;
    padding: 12px 8px;
  }

  .written-test-toolbar,
  .written-test-nav,
  .written-test-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .written-test-overview {
    grid-template-columns: repeat(5, 42px);
    border-right: 0;
    border-bottom: 1px solid var(--border, #dde3ed);
    overflow-x: auto;
  }

  .written-test-question {
    padding: 22px;
  }

  .written-test-option {
    grid-template-columns: auto 34px minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .apass-banner-caption {
    position: static;
    padding: 18px 22px;
    color: #4245a4;
    text-shadow: none;
  }

  .apass-banner-caption h2 {
    color: #4245a4;
  }
}

@media (max-width: 900px) {
  .nav-mobile-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .nav-menu {
    display: none !important;
  }
}
