:root {
  --navy: #102b45;
  --deep: #0a2035;
  --blue: #1766c0;
  --yellow: #ffd23e;
  --ink: #142c42;
  --muted: #697787;
  --line: #e4eaf0;
  --off: #f5f8fb;
  --radius: 12px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  color: inherit;
}
button:disabled {
  cursor: not-allowed;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
p {
  line-height: 1.7;
  color: var(--muted);
}
h1,
h2,
h3 {
  letter-spacing: -0.035em;
}
h2 {
  font-size: 34px;
  line-height: 1.22;
  font-weight: 750;
}
h3 {
  font-size: 17px;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #2a8ff0;
  outline-offset: 5px;
}
main:focus {
  outline: none;
}
.container {
  width: min(1200px, calc(100% - 80px));
  margin: auto;
}
.icon {
  width: 23px;
  height: 23px;
  flex-shrink: 0;
  vertical-align: middle;
}
.topbar {
  background: var(--deep);
  color: #d0dce7;
  font-size: 11px;
  letter-spacing: 0.03em;
}
.topbar .container {
  height: 33px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar a {
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar .icon {
  width: 15px;
  height: 15px;
}
header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
}
.nav {
  height: 88px;
  display: flex;
  align-items: center;
  gap: 30px;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.brand-mark {
  position: relative;
  width: 39px;
  height: 43px;
  display: block;
  transform: rotate(-15deg);
}
.brand-mark i {
  position: absolute;
  top: 5px;
  left: 2px;
  width: 34px;
  height: 16px;
  display: block;
  transform: skewY(-25deg);
  border-radius: 8px 2px 8px 2px;
  background: #155081;
}
.brand-mark i + i {
  top: 22px;
  left: 6px;
  width: 27px;
  height: 11px;
  background: #e8b729;
}
.brand-words {
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.8px;
  line-height: 1.1;
}
.brand-words b {
  font-weight: 450;
}
.brand-words small {
  display: block;
  font-size: 8px;
  letter-spacing: 3px;
  margin-top: 6px;
}
nav {
  display: flex;
  gap: 23px;
  align-items: center;
}
nav a {
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  position: relative;
  padding: 34px 0;
}
nav a[aria-current] {
  color: var(--blue);
}
nav a[aria-current]:after {
  content: "";
  position: absolute;
  bottom: 19px;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--blue);
}
.nav-actions {
  display: flex;
  gap: 10px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  min-height: 49px;
  padding: 13px 23px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  transition:
    transform 0.18s,
    background 0.18s;
}
.button:hover {
  transform: translateY(-2px);
}
.button .icon {
  width: 18px;
  height: 18px;
}
.yellow {
  background: var(--yellow);
  color: #162b3e;
}
.yellow:hover {
  background: #ffdf73;
}
.navy {
  background: var(--navy);
  color: white;
}
.outline {
  border-color: #cbd5df;
  background: transparent;
}
.small {
  font-size: 11px;
  min-height: 39px;
  padding: 10px 14px;
  gap: 8px;
}
.glass {
  border-color: #ffffff70;
  background: #ffffff08;
  color: white;
}
.full {
  width: 100%;
}
.menu-toggle {
  display: none;
}
.icon-button {
  background: transparent;
  border: 0;
  padding: 8px;
}
.hero {
  position: relative;
  min-height: 548px;
  background: #183045;
  overflow: hidden;
  color: white;
}
.hero-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(7, 28, 47, 0.98) 0%,
    rgba(7, 28, 47, 0.87) 29%,
    rgba(7, 28, 47, 0.35) 58%,
    rgba(7, 28, 47, 0.04) 100%
  );
}
.hero-content {
  position: relative;
  padding-top: 72px;
  padding-bottom: 56px;
}
.eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 2px;
  color: var(--blue);
  margin-bottom: 17px;
}
.eyebrow.light {
  color: #b9d2e8;
}
.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tiny-line {
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--yellow);
}
.hero h1 {
  font-size: clamp(38px, 4.15vw, 60px);
  line-height: 1.13;
  letter-spacing: -2px;
  margin-bottom: 22px;
  max-width: 700px;
  font-weight: 800;
}
.hero h1 em,
.login-visual em {
  font-style: normal;
  color: var(--yellow);
}
.hero p {
  color: #d7e1e9;
  font-size: 16px;
  line-height: 1.65;
}
.hero-buttons {
  display: flex;
  gap: 12px;
  margin-top: 29px;
}
.hero-bottom {
  font-size: 15px;
  color: #bed0df;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 30px;
}
.hero-bottom .icon {
  width: 17px;
}
.image-note {
  position: absolute;
  bottom: 13px;
  right: 20px;
  font-size: 9px;
  color: #fff9;
}
.benefits {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 27px 30px;
  background: #fff;
  border: 1px solid #edf0f4;
  border-radius: 9px;
  box-shadow: 0 8px 30px #17334d0c;
  margin-top: -1px;
}
.benefits > div {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
}
.benefits > div:last-child {
  border: 0;
}
.benefits .icon {
  color: var(--blue);
  width: 30px;
  height: 30px;
}
.benefits strong {
  font-size: 12px;
  display: block;
  margin-bottom: 6px;
}
.benefits span {
  font-size: 10px;
  color: var(--muted);
}
.section {
  padding-top: 66px;
  padding-bottom: 62px;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.section-head h2 {
  margin: 0;
  font-size: 29px;
}
.section-head .eyebrow {
  margin-bottom: 12px;
}
.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 650;
  color: var(--blue);
  white-space: nowrap;
}
.inline-link .icon {
  width: 17px;
  height: 17px;
}
.inline-link.light {
  color: #c6dded;
}
.class-grid {
  display: grid;
  gap: 17px;
}
.home-classes {
  grid-template-columns: repeat(5, 1fr);
}
.home-classes .class-card:nth-child(n + 6) {
  display: none;
}
.class-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(#fff, #f8fafc);
  padding: 21px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.class-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px #18324b10;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.class-code {
  font-size: 12px;
  background: #e8eff8;
  color: #1b5793;
  padding: 6px 9px;
  border-radius: 5px;
  font-weight: 800;
}
.tag {
  font-size: 9px;
  color: #6d5b10;
  background: #fff4cb;
  border: 1px solid #f7e8b2;
  padding: 5px 8px;
  border-radius: 30px;
  white-space: nowrap;
}
.vehicle {
  height: 108px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 9px -6px;
  color: #2a4055;
  background: radial-gradient(ellipse at 50% 85%, #d7e0e8 0%, transparent 55%);
}
.vehicle .icon {
  width: 89px;
  height: 70px;
  stroke-width: 1.2;
}
.vehicle-photo {
  background-image: url("/public/images/elit-denge-driving-course.png");
  background-size: 200%;
  background-position: 88% 66%;
  border-radius: 8px;
}
.class-card h3 {
  margin-bottom: 12px;
  font-size: 17px;
}
.class-card h3 span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 5px;
  letter-spacing: 0;
}
.class-card p {
  font-size: 13px;
  min-height: 44px;
}
.card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  font-size: 10px;
  font-weight: 650;
  background: none;
}
.card-link .icon {
  width: 16px;
  height: 16px;
  color: var(--blue);
}
.subnote {
  font-size: 10px;
  margin: 19px 0 0;
}
.process-section {
  background: var(--navy);
  color: white;
  padding: 51px 0 49px;
  position: relative;
}
.process-section .section-head h2 {
  font-size: 30px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 28px;
  margin-top: 34px;
}
.steps article {
  position: relative;
  border-top: 1px solid #ffffff26;
  padding-top: 34px;
}
.step-number {
  position: absolute;
  top: -12px;
  left: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: #23496b;
  border: 1px solid #53708c;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
}
.steps article > .icon {
  width: 26px;
  height: 26px;
  color: #adc8df;
  margin-bottom: 15px;
}
.steps h3 {
  font-size: 13px;
  letter-spacing: 0;
  margin-bottom: 8px;
}
.steps p {
  font-size: 11px;
  color: #b7c9d8;
  line-height: 1.6;
  margin: 0;
}
.why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
  padding-top: 76px;
  padding-bottom: 76px;
}
.why h2 {
  font-size: 37px;
}
.lead {
  font-size: 14px;
  line-height: 1.9;
}
.why-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 15px;
  margin: 27px 0 30px;
  font-size: 11px;
  font-weight: 600;
}
.why-list > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.why-list .icon {
  background: #ecf3fa;
  color: var(--blue);
  padding: 7px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
}
.journey-card {
  position: relative;
  min-height: 342px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--navy);
  color: white;
}
.journey-photo {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #0a223cf2, #0a223c33),
    url("/public/images/elit-denge-driving-course.png") 75% 50% / cover;
}
.journey-content {
  position: relative;
  padding: 120px 35px 32px;
}
.journey-content h2 {
  font-size: 33px;
  margin-bottom: 24px;
}
.journey-content .eyebrow {
  font-size: 9px;
}
.faq-section {
  background: var(--off);
  border-top: 1px solid #edf1f5;
  padding: 60px 0;
}
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 90px;
}
.faq-layout h2 {
  font-size: 32px;
}
.faq-layout p {
  font-size: 13px;
}
.faq-list details {
  border-bottom: 1px solid #dce4ed;
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 0;
  font-size: 14px;
  font-weight: 600;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary span {
  color: var(--blue);
  font-size: 20px;
  font-weight: 400;
}
.faq-list details[open] summary span {
  transform: rotate(45deg);
}
.faq-list details p {
  padding-right: 40px;
}
footer {
  padding-top: 52px;
  background: #092137;
  color: #c2d1df;
}
footer .brand {
  color: white;
}
footer .brand-mark i:first-child {
  background: #a6c8e6;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.3fr;
  gap: 50px;
}
footer p {
  color: #9db1c3;
  font-size: 13px;
  margin-top: 22px;
}
footer h3 {
  font-size: 12px;
  color: #fff;
  letter-spacing: 0;
  margin-bottom: 22px;
}
footer a:not(.brand) {
  display: block;
  font-size: 11px;
  margin: 14px 0;
}
footer .text-button {
  color: #c2d1df;
  font-size: 11px;
  text-align: left;
}
.footer-note .eyebrow {
  font-size: 8px;
  color: #b4c8db;
}
.footer-note p {
  font-size: 20px;
  line-height: 1.4;
  color: white;
  margin: 0 0 20px;
}
.footer-bottom {
  border-top: 1px solid #ffffff18;
  margin-top: 44px;
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
  font-size: 9px;
  color: #8da6bc;
}
.page-intro {
  padding: 48px 0 36px;
  text-align: center;
}
.page-intro .breadcrumb {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-bottom: 35px;
  text-align: left;
}
.page-intro h1 {
  font-size: 45px;
  margin-bottom: 17px;
}
.page-intro p {
  font-size: 14px;
}
.no-top {
  padding-top: 0;
}
.filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 0 0 32px;
}
.filters button {
  border: 1px solid var(--line);
  background: white;
  padding: 11px 23px;
  border-radius: 6px;
  font-size: 12px;
}
.filters button.selected {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.full-classes {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1040px;
  margin: auto;
}
.full-classes .vehicle {
  height: 160px;
}
.full-classes .vehicle .icon {
  width: 140px;
  height: 100px;
}
.full-classes .class-card h3 {
  font-size: 22px;
}
.full-classes .class-card h3 span {
  font-size: 13px;
}
.full-classes .card-link {
  font-size: 12px;
}
.timeline {
  max-width: 950px;
}
.timeline article {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.timeline article h2 {
  font-size: 24px;
  margin-bottom: 8px;
}
.timeline article p {
  font-size: 13px;
  margin: 0;
}
.timeline-num {
  font-size: 38px;
  color: #d4dfe9;
  font-weight: 750;
}
.timeline-icon {
  background: #eaf2fa;
  color: var(--blue);
  padding: 19px;
  border-radius: 15px;
}
.timeline-icon .icon {
  width: 30px;
  height: 30px;
}
.step-label {
  font-size: 8px;
  letter-spacing: 1px;
  color: #7c8b99;
  white-space: nowrap;
  margin-left: auto;
}
.timeline > .button {
  margin-top: 35px;
}
.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 700px;
}
.login-visual {
  background:
    linear-gradient(180deg, #0b274476, #0b2744e3),
    url("/public/images/elit-denge-driving-course.png") 70% center/cover;
  display: flex;
  align-items: center;
  padding: 65px;
  color: white;
}
.login-visual h2 {
  font-size: 64px;
  line-height: 1.12;
}
.login-visual p {
  color: #d0dfeb;
}
.login-side {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--off);
  padding: 48px 30px;
}
.login-card {
  max-width: 370px;
  width: 100%;
}
.login-card h1 {
  font-size: 30px;
  margin-bottom: 10px;
}
.login-card > p {
  font-size: 13px;
}
.login-icon {
  display: inline-flex;
  padding: 12px;
  color: var(--blue);
  background: #e6eff9;
  border-radius: 12px;
  margin-bottom: 20px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  margin: 19px 0 9px;
}
.input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid #d8e0e8;
  background: white;
  border-radius: 6px;
  padding: 0 12px;
  gap: 10px;
}
.input-wrap > .icon {
  width: 17px;
  color: #8b9aab;
}
input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: none;
  padding: 14px 0;
  font-size: 12px;
  color: var(--ink);
}
.password-toggle {
  background: none;
  border: 0;
  font-size: 10px;
  color: #416687;
  padding: 5px;
}
.text-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font-size: 12px;
}
.forgot {
  display: block;
  margin: 13px 0 19px auto;
}
.form-notice {
  font-size: 11px;
  padding: 12px 14px;
  background: #eef3f8;
  border-radius: 6px;
  line-height: 1.7;
}
.login-divider {
  text-align: center;
  font-size: 10px;
  color: #8794a2;
  margin: 26px 0 17px;
}
.small-note {
  font-size: 11px !important;
  text-align: center;
  margin: 22px 0 0;
}
#login-status {
  font-size: 12px;
  margin: 10px 0;
  color: var(--blue);
}
.dashboard {
  display: flex;
  background: #f3f6fa;
  min-height: 650px;
}
.sidebar {
  width: 225px;
  flex-shrink: 0;
  background: var(--navy);
  padding: 35px 15px;
  color: #c2d2df;
}
.sidebar .eyebrow {
  font-size: 9px;
  padding-left: 15px;
  margin-bottom: 25px;
}
.side-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  color: inherit;
  font-size: 12px;
  text-align: left;
  padding: 14px 15px;
  border-radius: 6px;
  margin-bottom: 5px;
}
.side-link .icon {
  width: 18px;
  height: 18px;
}
.side-link.active {
  background: #2168ad;
  color: white;
}
.side-link.exit {
  margin-top: 70px;
  font-size: 10px;
}
.dashboard-main {
  padding: 30px 38px;
  width: 100%;
  min-width: 0;
}
.preview-banner {
  background: #fff4d2;
  color: #785d12;
  padding: 12px 15px;
  border: 1px solid #eddfb5;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.6px;
  margin-bottom: 30px;
}
.preview-banner span {
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 13px;
  font-size: 10px;
}
.dashboard-title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
}
.dashboard-title h1 {
  font-size: 30px;
  margin: 0 0 10px;
}
.dashboard-title p {
  font-size: 12px;
  margin: 0;
}
.dashboard-title .eyebrow {
  font-size: 8px;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #d9e6f2;
  font-weight: 700;
  color: #2c5e8a;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}
.stats-grid article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
}
.stats-grid article > span {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #62778a;
}
.stats-grid .icon {
  width: 17px;
  height: 17px;
  color: var(--blue);
}
.stats-grid strong {
  display: block;
  font-size: 33px;
  margin: 20px 0 7px;
}
.stats-grid strong.text-stat {
  font-size: 22px;
  padding-top: 9px;
}
.stats-grid small {
  font-size: 10px;
  color: var(--muted);
}
.progress-track {
  height: 5px;
  border-radius: 10px;
  background: #e9eff2;
  margin-top: 14px;
  overflow: hidden;
}
.progress-track i {
  height: 100%;
  display: block;
  background: #40a483;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 20px;
  margin-top: 22px;
}
.panel-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
}
.panel-card h2,
.panel-card .section-head h2 {
  font-size: 20px;
  margin-bottom: 14px;
}
.panel-card .section-head {
  align-items: center;
  margin-bottom: 12px;
}
.panel-card .section-head h2 {
  margin: 0;
}
.document-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.doc-icon {
  display: inline-flex;
  padding: 10px;
  background: #ecf3fa;
  color: var(--blue);
  border-radius: 9px;
}
.doc-icon .icon {
  width: 20px;
  height: 20px;
}
.document-row strong {
  font-size: 12px;
  display: block;
}
.document-row small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.status {
  font-size: 8px;
  background: #eef3f8;
  color: #5f7489;
  padding: 5px 7px;
  border-radius: 20px;
  margin-left: auto;
  white-space: nowrap;
}
.status.done {
  background: #e8f6ee;
  color: #2e7b58;
}
.reminder {
  background: #eaf1f8;
}
.reminder h2 {
  font-size: 25px;
  line-height: 1.4;
  margin-top: 20px;
}
.reminder p {
  font-size: 12px;
}
.contact-grid,
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
}
.contact-grid p {
  font-size: 14px;
}
.contact-grid h2 {
  margin-top: 20px;
}
.about-grid {
  align-items: center;
  gap: 60px;
}
.about-photo {
  min-height: 380px;
  border-radius: 12px;
  background: url("/public/images/elit-denge-driving-course.png") 70% center/cover;
}
.about-grid p {
  font-size: 14px;
}
.about-grid .button {
  margin-top: 15px;
}
dialog {
  border: 0;
  border-radius: 14px;
  padding: 40px;
  width: min(500px, calc(100vw - 32px));
  color: var(--ink);
  box-shadow: 0 30px 100px #09213750;
}
dialog::backdrop {
  background: #071b2dcc;
  backdrop-filter: blur(5px);
}
dialog .close {
  position: absolute;
  right: 12px;
  top: 8px;
  font-size: 27px;
  color: var(--muted);
}
dialog h2 {
  font-size: 28px;
  padding-right: 10px;
}
dialog p {
  font-size: 13px;
}
dialog select {
  width: 100%;
  padding: 12px;
  border: 1px solid #c7d3df;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
.detail-list {
  margin: 22px 0;
}
.detail-list p {
  display: flex;
  gap: 9px;
  align-items: center;
}
.detail-list .icon {
  width: 17px;
  color: var(--blue);
}
.skip {
  position: fixed;
  top: -80px;
  left: 10px;
  z-index: 100;
  background: var(--yellow);
  padding: 15px;
}
.skip:focus {
  top: 10px;
}
@media (min-width: 1500px) {
  .hero-image {
    object-position: center 57%;
  }
  .hero {
    min-height: 600px;
  }
  .hero-content {
    padding-top: 92px;
  }
}
@media (max-width: 1150px) {
  .container {
    width: calc(100% - 48px);
  }
  .nav {
    gap: 15px;
  }
  nav {
    gap: 15px;
  }
  nav a {
    font-size: 11px;
  }
  .brand-words {
    font-size: 17px;
  }
  .nav-actions .outline {
    font-size: 0;
    gap: 0;
  }
  .nav-actions .outline .icon {
    width: 18px;
  }
  .home-classes {
    gap: 11px;
  }
  .class-card {
    padding: 15px;
  }
  .why {
    gap: 40px;
  }
  .benefits {
    padding: 22px 15px;
  }
  .benefits > div {
    gap: 9px;
  }
  .dashboard-main {
    padding: 25px;
  }
  .sidebar {
    width: 190px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .login-visual {
    padding: 40px;
  }
  .login-visual h2 {
    font-size: 52px;
  }
}
@media (max-width: 850px) {
  .topbar .container > span {
    display: none;
  }
  .topbar .container {
    justify-content: center;
  }
  .nav {
    height: 75px;
  }
  .menu-toggle {
    display: block;
    margin-left: auto;
  }
  .nav-actions .yellow {
    display: none;
  }
  .nav-actions .outline {
    font-size: 10px;
    gap: 6px;
  }
  nav {
    display: none;
    position: absolute;
    top: 75px;
    left: 0;
    right: 0;
    background: white;
    padding: 15px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 15px #1232;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .menu-open nav {
    display: flex;
  }
  nav a {
    padding: 15px;
    font-size: 14px;
  }
  nav a[aria-current]:after {
    display: none;
  }
  .hero {
    min-height: 530px;
  }
  .hero h1 {
    font-size: 48px;
  }
  .hero-shade {
    background: linear-gradient(90deg, #071c2ff0, #071c2f9c 60%, #071c2f25);
  }
  .hero-image {
    object-position: 65% center;
  }
  .benefits {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
  .benefits > div {
    justify-content: start;
    padding-left: 15px;
  }
  .benefits > div:nth-child(2) {
    border: 0;
  }
  .home-classes {
    grid-template-columns: repeat(3, 1fr);
  }
  .home-classes .class-card:nth-child(n + 4) {
    display: none;
  }
  .steps {
    gap: 16px;
  }
  .steps h3 {
    font-size: 11px;
  }
  .steps p {
    font-size: 10px;
  }
  .why {
    gap: 30px;
  }
  .why h2 {
    font-size: 30px;
  }
  .why-list {
    grid-template-columns: 1fr;
  }
  .journey-content {
    padding: 140px 23px 27px;
  }
  .faq-layout {
    gap: 30px;
    grid-template-columns: 1fr 1.2fr;
  }
  .footer-grid {
    gap: 30px;
    grid-template-columns: 1fr 1fr;
  }
  .full-classes {
    grid-template-columns: repeat(2, 1fr);
  }
  .timeline article {
    gap: 22px;
  }
  .step-label {
    display: none;
  }
  .sidebar {
    width: 170px;
    padding: 25px 8px;
  }
  .side-link {
    font-size: 11px;
    padding: 12px 8px;
    gap: 8px;
  }
  .dashboard-title h1 {
    font-size: 24px;
  }
  .stats-grid {
    gap: 10px;
  }
  .stats-grid article {
    padding: 15px;
  }
  .stats-grid article > span {
    font-size: 9px;
  }
  .preview-banner span {
    display: block;
    margin: 7px 0 0;
  }
  .login-visual h2 {
    font-size: 43px;
  }
  .login-layout {
    min-height: 680px;
  }
  .page-intro h1 {
    font-size: 37px;
  }
  .about-grid {
    gap: 30px;
  }
}
@media (max-width: 600px) {
  .container {
    width: calc(100% - 36px);
  }
  .nav {
    gap: 8px;
  }
  .brand-words {
    font-size: 16px;
  }
  .brand-words small {
    font-size: 7px;
    letter-spacing: 2px;
  }
  .brand-mark {
    width: 31px;
    transform: scale(0.85) rotate(-15deg);
    transform-origin: left center;
  }
  .brand {
    gap: 4px;
  }
  .nav-actions .outline {
    font-size: 0;
    gap: 0;
    padding: 10px;
  }
  .hero {
    min-height: 565px;
  }
  .hero-content {
    padding-top: 46px;
    padding-bottom: 110px;
  }
  .hero h1 {
    font-size: 40px;
    letter-spacing: -1.4px;
  }
  .hero p {
    font-size: 14px;
  }
  .hero .eyebrow {
    font-size: 8px;
    letter-spacing: 1.3px;
  }
  .hero-image {
    object-position: 67% center;
  }
  .hero-shade {
    background: linear-gradient(180deg, #071c2fef, #071c2fa3 50%, #071c2f33);
  }
  .hero-buttons {
    flex-direction: column;
    align-items: start;
    gap: 10px;
    margin-top: 23px;
  }
  .hero-buttons .button {
    font-size: 11px;
    min-height: 43px;
    padding: 11px 17px;
  }
  .hero-bottom {
    margin-top: 20px;
    font-size: 13px;
  }
  .benefits {
    padding: 22px 10px;
    gap: 23px 8px;
    margin-top: -34px;
    border-radius: 10px;
  }
  .benefits > div {
    padding-left: 4px;
    gap: 8px;
    border: 0;
  }
  .benefits .icon {
    width: 23px;
    height: 23px;
  }
  .benefits strong {
    font-size: 10px;
  }
  .benefits span {
    font-size: 8px;
  }
  .section {
    padding-top: 43px;
    padding-bottom: 43px;
  }
  .section-head {
    align-items: start;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 25px;
  }
  .section-head h2 {
    font-size: 27px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.7px;
  }
  .home-classes {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .home-classes .class-card:nth-child(3) {
    display: none;
  }
  .class-card {
    padding: 15px;
  }
  .vehicle {
    height: 100px;
  }
  .class-card .tag {
    font-size: 7px;
    padding: 4px;
  }
  .class-card h3 {
    font-size: 16px;
  }
  .class-card h3 span {
    font-size: 10px;
  }
  .subnote {
    font-size: 9px;
  }
  .process-section {
    padding: 39px 0;
  }
  .process-section .section-head h2 {
    font-size: 27px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 20px;
  }
  .steps article {
    padding: 0 0 24px 44px;
    border-top: 0;
    border-left: 1px solid #ffffff26;
    margin-left: 12px;
    min-height: 93px;
  }
  .steps article:last-child {
    border: 0;
    padding-bottom: 0;
  }
  .step-number {
    top: 0;
    left: -13px;
  }
  .steps article > .icon {
    display: none;
  }
  .steps h3 {
    font-size: 14px;
    padding-top: 4px;
  }
  .steps p {
    font-size: 11px;
    max-width: 270px;
  }
  .why {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .why h2 {
    font-size: 32px;
  }
  .why-list {
    grid-template-columns: 1fr 1fr;
    gap: 15px 8px;
    font-size: 9px;
  }
  .why-list .icon {
    width: 30px;
    height: 30px;
    padding: 6px;
  }
  .journey-card {
    min-height: 300px;
  }
  .journey-content {
    padding: 95px 26px 30px;
  }
  .faq-section {
    padding: 40px 0;
  }
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .faq-layout h2 {
    font-size: 28px;
  }
  .faq-list summary {
    font-size: 12px;
    padding: 20px 0;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 22px;
  }
  .footer-grid > div:first-child {
    grid-column: 1/-1;
  }
  .footer-grid > div:first-child p {
    margin-bottom: 0;
  }
  .footer-note {
    grid-column: 1/-1;
    border-top: 1px solid #ffffff18;
    padding-top: 25px;
  }
  .footer-bottom {
    gap: 15px;
    font-size: 8px;
  }
  .page-intro {
    padding-top: 25px;
    padding-bottom: 25px;
  }
  .page-intro .breadcrumb {
    margin-bottom: 27px;
  }
  .page-intro h1 {
    font-size: 33px;
  }
  .page-intro p {
    font-size: 12px;
  }
  .no-top {
    padding-top: 0;
  }
  .filters {
    gap: 6px;
    flex-wrap: wrap;
  }
  .filters button {
    padding: 9px 13px;
    font-size: 10px;
  }
  .full-classes {
    grid-template-columns: 1fr;
  }
  .full-classes .vehicle {
    height: 180px;
  }
  .full-classes .vehicle-photo {
    background-size: 145%;
    background-position: 90% 64%;
  }
  .timeline article {
    gap: 15px;
    padding: 23px 0;
    align-items: start;
  }
  .timeline-num {
    font-size: 27px;
  }
  .timeline-icon {
    display: none;
  }
  .timeline article h2 {
    font-size: 21px;
  }
  .timeline article p {
    font-size: 12px;
  }
  .login-layout {
    grid-template-columns: 1fr;
  }
  .login-visual {
    display: none;
  }
  .login-side {
    padding: 40px 22px;
  }
  .login-card h1 {
    font-size: 29px;
  }
  .dashboard {
    display: block;
  }
  .sidebar {
    width: 100%;
    padding: 12px;
    display: flex;
    overflow-x: auto;
    gap: 6px;
  }
  .sidebar .eyebrow,
  .sidebar .exit {
    display: none;
  }
  .side-link {
    width: auto;
    white-space: nowrap;
    font-size: 10px;
    margin: 0;
    padding: 9px;
  }
  .side-link .icon {
    width: 15px;
    height: 15px;
  }
  .dashboard-main {
    padding: 20px 16px;
  }
  .dashboard-title {
    align-items: start;
  }
  .dashboard-title h1 {
    font-size: 23px;
  }
  .dashboard-title .eyebrow {
    font-size: 7px;
  }
  .dashboard-title p {
    font-size: 11px;
  }
  .avatar {
    width: 33px;
    height: 33px;
    flex-shrink: 0;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid article {
    padding: 19px;
  }
  .stats-grid article > span {
    font-size: 12px;
  }
  .stats-grid strong {
    margin-top: 12px;
  }
  .stats-grid article small {
    font-size: 11px;
  }
  .dashboard-grid {
    gap: 15px;
  }
  .panel-card {
    padding: 20px;
  }
  .document-row {
    gap: 8px;
  }
  .document-row strong {
    font-size: 10px;
  }
  .status {
    font-size: 7px;
  }
  .document-row .doc-icon {
    padding: 7px;
  }
  .contact-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 23px;
  }
  .about-photo {
    min-height: 260px;
  }
  .about-grid h2 {
    font-size: 29px;
  }
  dialog {
    padding: 34px 23px 25px;
  }
  dialog h2 {
    font-size: 25px;
  }
  .detail-list p {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}

.empty-state {
  text-align: center;
  padding: 65px 25px;
  max-width: 800px;
  margin: auto;
}
.empty-state h2 {
  margin-top: 24px;
}

/* Management area: same visual language, with denser working views. */
.role-switch {
  display: block;
  text-align: center;
  color: var(--blue);
  font-size: 11px;
  margin: 22px 0;
  line-height: 1.7;
}
.admin-login .login-visual {
  background:
    linear-gradient(145deg, #0b2744f0, #0b2744a6),
    url("/public/images/elit-denge-driving-course.png") 70% center/cover;
}
.admin-login-features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 38px;
}
.admin-login-features span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #d2dfeb;
}
.admin-login-features .icon {
  width: 17px;
  height: 17px;
}
#admin-login-status {
  font-size: 12px;
  color: var(--blue);
  margin-top: 14px;
}
.admin-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  position: static;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.admin-nav a {
  white-space: normal;
  font-weight: 400;
}
.admin-nav a[aria-current] {
  color: white;
}
.admin-nav a[aria-current]:after {
  display: none;
}
.nav-count {
  margin-left: auto;
  border-radius: 4px;
  background: #ffffff20;
  padding: 2px 5px;
  font-size: 10px;
}
.admin-dashboard .sidebar {
  width: 210px;
}
.admin-dashboard .dashboard-main {
  padding: 30px;
}
.admin-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.admin-stats article {
  padding: 19px;
}
.admin-quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 23px 0;
}
.admin-quick a {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #dae4ef;
  background: #edf3f9;
  border-radius: 8px;
  padding: 17px;
  color: #285d8c;
  font-size: 11px;
  font-weight: 600;
}
.admin-quick .icon {
  width: 18px;
  height: 18px;
}
.admin-quick .icon:last-child {
  margin-left: auto;
  width: 15px;
}
.admin-wide {
  min-width: 0;
}
.admin-wide .section-head {
  align-items: center;
}
.admin-wide .section-head p {
  font-size: 11px;
  margin: 7px 0 0;
}
.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 24px 0;
}
.admin-filters label {
  margin: 0;
  flex: 1;
  color: #506478;
  font-size: 10px;
  min-width: 130px;
}
.admin-filters .search-field {
  flex: 2;
  min-width: 210px;
}
.admin-filters input,
.admin-filters select {
  display: block;
  width: 100%;
  height: 42px;
  border: 1px solid #d6e0e9;
  border-radius: 6px;
  background: white;
  padding: 10px;
  margin-top: 8px;
  color: var(--ink);
  font-size: 11px;
}
.table-scroll {
  overflow: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  text-align: left;
}
.admin-table th {
  background: #f6f8fb;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  color: #748293;
  font-size: 10px;
  font-weight: 600;
}
.admin-table td {
  padding: 19px 12px;
  border-bottom: 1px solid #edf1f5;
  font-size: 12px;
}
.student-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.student-avatar {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: #e8f0f8;
  color: #3f6a94;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.student-cell strong {
  display: block;
  font-size: 11px;
}
.student-cell small {
  display: block;
  font-size: 9px;
  color: #8291a0;
  margin-top: 6px;
}
.admin-progress {
  min-width: 120px;
}
.admin-progress > span {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 10px;
  color: #718292;
}
.admin-progress b {
  color: #2d5476;
  font-weight: 600;
}
.admin-progress .progress-track {
  margin-top: 9px;
}
.table-action {
  border: 0;
  background: none;
  padding: 8px 0;
  color: var(--blue);
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}
.table-count {
  font-size: 10px;
  margin: 20px 0 0;
  color: #7a8b9a;
}
.table-empty {
  text-align: center;
  background: var(--off);
  padding: 35px 20px;
  font-size: 13px;
}
.admin-document-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 25px;
}
.admin-document-grid article {
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 9px;
}
.admin-document-grid h3 {
  margin-top: 22px;
  margin-bottom: 8px;
  font-size: 16px;
}
.admin-document-grid p {
  font-size: 11px;
}
.admin-document-grid .tag {
  float: right;
  font-size: 8px;
}
.admin-announcement {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 23px 0;
  border-top: 1px solid var(--line);
}
.admin-announcement h3 {
  font-size: 14px;
  margin: 0 0 7px;
}
.admin-announcement p {
  font-size: 11px;
  margin: 0;
}
.admin-announcement .table-action {
  margin-left: auto;
}
.admin-policy {
  padding: 17px;
  border-radius: 8px;
  background: #f4f7fb;
  font-size: 12px;
}
.admin-settings {
  margin: 25px 0;
}
.admin-settings > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 15px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.admin-settings dt {
  color: var(--muted);
}
.admin-settings dd {
  margin: 0;
}
.student-documents {
  margin: 25px 0;
}
.student-documents > div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.student-documents .icon {
  width: 17px;
  height: 17px;
  color: var(--blue);
}
.deletion-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 25px 0;
}
.deletion-steps li {
  counter-increment: step;
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #7b8997;
  font-size: 12px;
}
.deletion-steps li:before {
  content: counter(step);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #edf2f7;
}
.deletion-steps .reached {
  color: #225e94;
}
.deletion-steps .reached:before {
  background: #dcecf8;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-document-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-quick {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
@media (max-width: 850px) {
  .admin-dashboard .sidebar {
    width: 180px;
  }
  .admin-dashboard .dashboard-main {
    padding: 24px;
  }
  .admin-nav .side-link {
    font-size: 11px;
    padding: 12px 9px;
  }
}
@media (max-width: 600px) {
  .admin-dashboard .sidebar {
    width: 100%;
    display: block;
    padding: 10px 12px;
    overflow: visible;
  }
  .admin-nav {
    flex-direction: row;
    overflow: auto;
    gap: 6px;
  }
  .admin-nav .side-link {
    width: auto;
    white-space: nowrap;
    padding: 10px;
    font-size: 10px;
    flex-shrink: 0;
  }
  .admin-dashboard .sidebar .exit {
    display: flex;
    font-size: 9px;
    margin: 6px 0 0;
    padding: 7px;
  }
  .admin-dashboard .dashboard-main {
    padding: 20px 15px;
  }
  .admin-stats {
    gap: 10px;
  }
  .admin-stats article {
    padding: 15px;
  }
  .admin-stats article > span {
    font-size: 9px;
    gap: 5px;
  }
  .admin-stats article strong {
    font-size: 27px;
  }
  .admin-stats article small {
    font-size: 9px;
  }
  .admin-document-grid {
    grid-template-columns: 1fr;
  }
  .admin-wide {
    padding: 19px 15px;
  }
  .admin-wide .section-head {
    align-items: start;
  }
  .admin-wide .section-head h2 {
    font-size: 19px;
  }
  .admin-announcement {
    flex-wrap: wrap;
    gap: 12px;
  }
  .admin-announcement h3 {
    font-size: 12px;
  }
  .admin-announcement .table-action {
    margin-left: 52px;
  }
  .admin-settings > div {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .admin-filters .search-field {
    min-width: 100%;
  }
}

.top-links {
  display: flex;
  align-items: center;
  gap: 25px;
}
@media (max-width: 600px) {
  .top-links {
    gap: 18px;
    font-size: 9px;
  }
}
.table-scroll {
  position: relative;
}
.portal-input,
textarea {
  display: block;
  width: 100%;
  border: 1px solid #cbd6e1;
  border-radius: 6px;
  background: white;
  padding: 12px;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
.portal-narrow {
  max-width: 550px;
}
.portal-narrow h1 {
  font-size: 32px;
}
.portal-check {
  display: flex;
  align-items: start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 400;
}
.portal-check input {
  width: 16px;
  flex-shrink: 0;
  margin: 3px 0;
}
.portal-status {
  font-size: 12px;
  color: #9a3b23;
  margin-top: 17px;
  overflow-wrap: anywhere;
}
.portal-stack {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 16px;
}
.portal-muted {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.portal-empty {
  padding: 28px 15px;
  text-align: center;
  background: var(--off);
  border-radius: 8px;
}
.portal-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 24px;
  font-size: 12px;
}
.portal-spaced {
  margin-top: 25px;
}
.portal-doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-left: auto;
}
.preserve-lines {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.password-switch {
  margin-top: 12px;
}
.danger-text {
  color: #ad3026;
}
.button:disabled {
  opacity: 0.55;
  transform: none;
}
.admin-announcement > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .portal-doc-actions {
    width: 100%;
    margin-left: 0;
  }
  .document-row {
    flex-wrap: wrap;
  }
  .portal-narrow h1 {
    font-size: 27px;
  }
}
.recipient-picker {
  margin: 20px 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
}
.recipient-picker summary {
  cursor: pointer;
  font-weight: 600;
}
.recipient-picker .button {
  margin-top: 12px;
}
#recipient-results {
  max-height: 280px;
  overflow: auto;
}
.recipient-chip {
  border: 1px solid #c5d7e6;
  background: #edf4fa;
  border-radius: 12px;
  color: #285d85;
  padding: 5px 9px;
  margin: 4px;
  font-size: 10px;
  overflow-wrap: anywhere;
}

/* Document reader: page navigation only, no native PDF download toolbar. */
dialog.document-viewer {
  width: min(1100px, 96vw);
  max-width: 96vw;
  height: auto;
  max-height: 92dvh;
  padding: 20px;
}
.document-viewer[open] {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.viewer-heading,
.viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.viewer-heading h2 {
  font-size: 1.2rem;
  margin: 0;
  overflow-wrap: anywhere;
  flex: 1;
}
.viewer-toolbar label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}
.viewer-toolbar select {
  width: auto;
  margin: 0;
  padding: 8px;
}
.viewer-surface {
  flex: 0 1 auto;
  min-height: 0;
  overflow: auto;
  background: #e8edf2;
  padding: 12px;
  position: relative;
}
.viewer-surface canvas[hidden] {
  display: none;
}
.viewer-surface canvas {
  display: block;
  margin: 0 auto;
  background: white;
}
.document-viewer > :not(.viewer-surface) {
  flex-shrink: 0;
}
.document-viewer [data-progress-status] {
  margin: 0;
}
.document-viewer [data-progress-status]:empty {
  display: none;
}
.document-viewer [data-status] {
  margin: 0;
}
.document-viewer [data-status]:empty {
  display: none;
}
@media (max-width: 600px) {
  dialog.document-viewer {
    padding: 12px;
  }
  .viewer-toolbar {
    gap: 8px;
  }
  .viewer-toolbar .button {
    padding: 8px 10px;
  }
}
@media print {
  .document-viewer {
    display: none !important;
  }
}

.portal-user-name {
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: normal;
  color: var(--navy, #0c263f);
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.deletion-notice {
  margin-bottom: 24px;
  border-left: 4px solid #e7ad32;
}
.deletion-notice h2 {
  font-size: 1.15rem;
}
.deletion-notice h3 {
  font-size: 1rem;
  margin-top: 16px;
}

.bulk-students {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}
.bulk-students small {
  flex-basis: 100%;
  color: #52677b;
}
.admin-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.license-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.license-setting-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  border-bottom: 1px solid #e2e8f0;
  padding: 8px 0;
}

.license-delete-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 6px;
}
.license-delete-icon:hover {
  background: #fff1f2;
}
.license-delete-icon:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.license-setting-row .portal-check {
  margin: 0;
}

.gallery-section {
  background: #f3f6fa;
}
.gallery-grid,
.gallery-admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.gallery-card {
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: white;
  color: #112d43;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 28px #102c4410;
}
.gallery-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.25s;
}
.gallery-card:hover img {
  transform: scale(1.025);
}
.gallery-card span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  font-weight: 600;
}
.gallery-card:focus-visible {
  outline: 3px solid #2166aa;
  outline-offset: 4px;
}
.gallery-admin-card {
  border: 1px solid #e2e8f0;
  padding: 14px;
  border-radius: 12px;
}
.gallery-admin-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 8px;
}
.gallery-enlarged {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
}
@media (max-width: 900px) {
  .gallery-grid,
  .gallery-admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .gallery-grid,
  .gallery-admin-grid {
    grid-template-columns: 1fr;
  }
  .gallery-card img {
    height: 230px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-card img {
    transition: none;
  }
}

.inquiry-badge {
  margin-left: auto;
  background: #ffdb54;
  color: #102c44;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Display only the motorcycle photographs from the supplied three-card image. */
.class-card .vehicle.motorcycle-photo {
  height: auto;
  aspect-ratio: 490 / 520;
  border-radius: 8px;
  background-image: url("/public/images/motorcycle-classes.png");
  background-repeat: no-repeat;
  background-size: 313.47% auto;
}
.class-card .motorcycle-a1 {
  background-position: 1.24% 28.4%;
}
.class-card .motorcycle-a2 {
  background-position: 49.9% 28.4%;
}
.class-card .motorcycle-a {
  background-position: 98.85% 28.4%;
}

/* Isolate each photograph in the supplied C / C1 / C1E card image. */
.class-card .vehicle.commercial-photo {
  height: auto;
  aspect-ratio: 658 / 400;
  border-radius: 8px;
  background-image: url("/public/images/commercial-classes-clean.png");
  background-repeat: no-repeat;
  background-size: 311.25% auto;
}
.class-card .commercial-c {
  background-position: 1.22% 2.83%;
}
.class-card .commercial-c1 {
  background-position: 50% 2.83%;
}
.class-card .commercial-c1e {
  background-position: 98.7% 2.83%;
}

/* Photo regions of the supplied CE / D / D1 reference. */
.class-card .vehicle.commercial-ce,
.class-card .vehicle.commercial-d,
.class-card .vehicle.commercial-d1 {
  background-image: url("/public/images/ce-d-d1-classes-clean.png");
  background-size: 308.9% auto;
  aspect-ratio: 663 / 398;
}
.class-card .commercial-ce {
  background-position: 0.72% 2.73%;
}
.class-card .commercial-d {
  background-position: 50% 2.73%;
}
.class-card .commercial-d1 {
  background-position: 99.28% 2.73%;
}

/* Photo regions of the supplied D1E / DE / F reference. */
.class-card .vehicle.commercial-d1e,
.class-card .vehicle.commercial-de,
.class-card .vehicle.commercial-f {
  background-image: url("/public/images/d1e-de-f-classes-clean.png");
  background-size: 307.51% auto;
  aspect-ratio: 666 / 399;
}
.class-card .commercial-d1e {
  background-position: 0.58% 2.46%;
}
.class-card .commercial-de {
  background-position: 50% 2.46%;
}
.class-card .commercial-f {
  background-position: 99.42% 2.46%;
}

/* Photo regions of the supplied B / B1 / BE reference. */
.class-card .vehicle.passenger-photo {
  height: auto;
  aspect-ratio: 656 / 400;
  border-radius: 8px;
  background-image: url("/public/images/b-b1-be-classes-clean.png");
  background-repeat: no-repeat;
  background-size: 312.2% auto;
}
.class-card .passenger-b {
  background-position: 1.08% 4.24%;
}
.class-card .passenger-b1 {
  background-position: 50% 4.24%;
}
.class-card .passenger-be {
  background-position: 98.92% 4.24%;
}

.drive-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.drive-check-list {
  max-height: 220px;
  overflow: auto;
}
.drive-lane {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: center;
  margin: 10px 0;
}
[data-drive-form] fieldset {
  border: 1px solid #dce5ee;
  border-radius: 8px;
  margin: 18px 0;
  padding: 12px;
}
[data-drive-form] legend {
  font-weight: 600;
  padding: 0 6px;
}
[data-drive-form] textarea {
  width: 100%;
  min-height: 100px;
}
@media (max-width: 600px) {
  .drive-form-grid,
  .drive-lane {
    grid-template-columns: 1fr;
  }
}

.admin-dashboard .sidebar {
  background: linear-gradient(165deg, #153650, #0c2236);
  padding: 28px 16px;
}
.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.sidebar-group {
  min-width: 0;
}
.sidebar-group-title {
  margin: 0 10px 9px;
  color: #8eacc4;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.sidebar-group-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-nav .side-link {
  margin: 0;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c8d7e4;
  transition: background 0.15s;
}
.admin-nav .side-link:hover {
  background: #ffffff0d;
  color: white;
}
.admin-nav .side-link.active {
  background: #246ba6;
  color: white;
  box-shadow: 0 4px 12px #0002;
}
.admin-nav .side-link .icon {
  flex-shrink: 0;
}
.admin-dashboard .sidebar .exit {
  border-top: 1px solid #ffffff1a;
  margin-top: 24px;
  border-radius: 0;
  padding-top: 18px;
}
.profile-enrollment {
  background: #f3f7fb;
  border: 1px solid #e1eaf3;
  border-radius: 14px;
  padding: 20px;
  margin: 24px 0;
}
.profile-enrollment dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0 0;
}
.profile-enrollment dt {
  color: #688198;
  font-size: 12px;
}
.profile-enrollment dd {
  margin: 6px 0 0;
  font-weight: 700;
}
@media (max-width: 600px) {
  .admin-dashboard .sidebar {
    padding: 18px 12px;
  }
  .admin-nav {
    flex-direction: row;
    align-items: flex-start;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 8px;
  }
  .sidebar-group {
    flex: 0 0 auto;
  }
  .sidebar-group-links {
    flex-direction: column;
  }
  .sidebar-group-title {
    font-size: 9px;
  }
  .admin-nav .side-link {
    font-size: 12px;
    padding: 10px;
  }
  .profile-enrollment dl {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .admin-nav .side-link {
    transition: none;
  }
}

.student-class-picker {
  border: 1px solid #dce5ee;
  border-radius: 10px;
  padding: 16px;
  margin: 18px 0;
}
.student-class-picker legend {
  font-weight: 600;
  padding: 0 6px;
}
.student-class-picker p {
  font-size: 12px;
  color: #688198;
}

.admin-table tr.drive-own-lesson > td {
  background: #edf8f2;
  border-bottom-color: #d3e9de;
}
.admin-table tr.drive-own-lesson > td:first-child {
  box-shadow: inset 4px 0 #23845b;
}
.drive-own-label {
  display: table;
  margin-bottom: 7px;
  padding: 3px 9px;
  border-radius: 6px;
  background: #d3efdf;
  color: #155c3b;
  font-size: 11px;
  font-weight: 700;
}

.drive-plan-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}
.drive-plan-tabs [aria-pressed="true"] {
  background: #153650;
  color: white;
  border-color: #153650;
}

/* Larger plan selector for both administrator and student panels. */
label:has(> select[data-drive-plan]) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 18px;
}
select[data-drive-plan] {
  display: block;
  width: 100%;
  max-width: 480px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid #c6d5e5;
  border-radius: 8px;
  background-color: #fff;
  color: #153650;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
select[data-drive-plan]:focus-visible {
  outline: 2px solid #246ba6;
  outline-offset: 2px;
}

/* Temporarily disabled driving module navigation. */
.admin-nav .side-link.is-disabled,
.admin-nav .side-link.is-disabled:hover {
  color: #a7bac8;
  background: transparent;
  opacity: .65;
  cursor: not-allowed;
}
.side-disabled-note { display: block; font-size: 10px; margin-top: 3px; }

.announcement-group-picker { max-height: 260px; overflow-y: auto; border: 1px solid #dbe5ef; border-radius: 8px; padding: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

.student-class-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 12px;
}
.student-class-options .portal-check {
  margin: 0;
  padding: 6px 0;
  min-height: 36px;
}

/* Supplied Elit Denge identity: preserve the original artwork and lettering. */
.brand { gap: 4px; }
.brand-symbol { display: block; width: 100px; height: auto; flex-shrink: 0; }
.brand-wordmark { display: block; width: 250px; height: auto; min-width: 0; }
footer .brand { background: #fff; border-radius: 10px; padding: 8px; width: fit-content; max-width: 100%; }
footer .brand-symbol { width: 70px; }
footer .brand-wordmark { width: 215px; }
@media (min-width: 851px) and (max-width: 1350px) {
  header .nav { height: auto; min-height: 100px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 12px; row-gap: 8px; }
  header .nav > nav { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; }
}
@media (max-width: 850px) {
  header .brand-symbol { width: 70px; }
  header .brand-wordmark { width: 210px; }
}
@media (max-width: 600px) {
  header .brand-symbol { width: 48px; }
  header .brand-wordmark { width: clamp(130px, 35vw, 200px); }
  footer .brand-wordmark { width: 200px; }
}

/* Give the larger identity its own spacious header row. */
header .brand-symbol { width: 140px; }
header .brand-wordmark { width: 310px; }
@media (min-width: 851px) {
  header .nav { height: auto; min-height: 164px; flex-wrap: wrap; padding: 12px 0 16px; row-gap: 10px; }
  header .nav > nav { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; }
}
@media (max-width: 850px) {
  header .nav { height: 100px; }
  header .nav > nav { top: 100px; }
  header .brand-symbol { width: 96px; }
  header .brand-wordmark { width: 250px; }
}
@media (max-width: 600px) {
  header .nav { height: 140px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 8px 0; }
  header .brand { grid-column: 1 / -1; justify-content: center; }
  header .brand-symbol { width: 80px; }
  header .brand-wordmark { width: clamp(190px, 52vw, 250px); }
  header .menu-toggle { margin-left: 0; }
  header .nav-actions { justify-self: end; }
  header .nav > nav { top: 140px; }
}

/* Align navigation with the wordmark and keep account actions together. */
header .nav-actions { gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
header .nav-actions .button { font-size: 14px; gap: 8px; padding: 12px 16px; }
header .nav-actions .outline .icon { width: 18px; height: 18px; }
@media (min-width: 851px) {
  header .nav { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 24px; padding: 8px 0 14px; min-height: 156px; }
  header .brand { grid-column: 1; grid-row: 1; }
  header .nav-actions { grid-column: 2; grid-row: 1; }
  header .nav > nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; padding-left: 144px; gap: 26px; }
  header .nav > nav a { font-size: 14px; }
}
@media (max-width: 850px) {
  header .nav { height: auto; min-height: 144px; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; padding: 8px 0 12px; }
  header .brand { grid-column: 1 / -1; justify-content: center; }
  header .menu-toggle { margin: 0; }
  header .nav-actions { justify-self: end; }
  header .nav-actions .button { font-size: 12px; padding: 10px; gap: 5px; }
  header .nav-actions .yellow { display: inline-flex; }
  header .nav > nav { top: 100%; }
}
@media (max-width: 400px) {
  header .nav-actions { gap: 6px; }
  header .nav-actions .button { padding: 8px; font-size: 11px; }
}

/* Ice-blue header with navigation spread across the available width. */
header { background: #f0f7fc; border-bottom-color: #d9e8f2; }
@media (min-width: 851px) {
  header .nav > nav { justify-content: space-between; gap: 16px; }
}
@media (max-width: 850px) {
  header .nav > nav { background: #f0f7fc; }
}

/* End the menu at the admin action, excluding the information button. */
@media (min-width: 851px) {
  header .nav { grid-template-columns: minmax(0, 1fr) auto auto auto; column-gap: 10px; }
  header .nav-actions { display: contents; }
  header .nav-actions > [data-session-profile] { grid-column: 2; grid-row: 1; }
  header .nav-actions > [data-session-panel] { grid-column: 3; grid-row: 1; }
  header .nav-actions > [data-register] { grid-column: 4; grid-row: 1; }
  header .nav > nav { grid-column: 1 / 4; }
}
@media (min-width: 851px) and (max-width: 1050px) {
  header .nav-actions .button { font-size: 12px; padding: 10px; gap: 5px; }
  header .nav { column-gap: 6px; }
  header .nav > nav { gap: 10px; }
}

/* Environmental training photograph, with overlays for readable text. */
.hero .hero-image { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.vehicle-photo,
.class-card .vehicle.passenger-b {
  background: #edf5fa url("/public/images/elit-denge-driving-course.png") 70% center / cover no-repeat;
}
.journey-photo {
  background: linear-gradient(0deg, #0a223cf2, #0a223c33), url("/public/images/elit-denge-driving-course.png") 70% center / cover;
}
.about-photo {
  background: url("/public/images/elit-denge-driving-course.png") 70% center / cover;
}
.login-visual {
  background: linear-gradient(180deg, #0b274476, #0b2744e3), url("/public/images/elit-denge-driving-course.png") 70% center / cover;
}
.admin-login .login-visual {
  background: linear-gradient(145deg, #0b2744f0, #0b2744a6), url("/public/images/elit-denge-driving-course.png") 70% center / cover;
}
@media (max-width: 600px) {
  .hero .hero-image { object-position: 65% center; }
}

/* Cream masthead and a soft blue course section with quiet edge ribbons. */
.topbar { background: #f2e7d5; color: #243d50; }
header { background: #fff8ec; border-bottom-color: #e7ddcd; }
.home-course-backdrop {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(115deg, #d8efff, #cde8fc 55%, #d8efff);
}
.home-course-backdrop::before,
.home-course-backdrop::after {
  content: "";
  position: absolute;
  inset-block: 0;
  width: clamp(100px, 17vw, 320px);
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(145deg, transparent 0 82px, #a8d8fa55 82px 164px, transparent 164px 246px);
}
.home-course-backdrop::before { left: 0; }
.home-course-backdrop::after { right: 0; transform: rotate(180deg); }
.home-course-backdrop .class-card { background: #ffffffcf; border-color: #e8f5ff; }
@media (max-width: 850px) {
  header .nav > nav { background: #fff8ec; }
}

.why-backdrop { background: #f5f2ff; }

@media (min-width: 601px) and (max-width: 1000px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
}

/* Slimmer masthead without changing typography or artwork sizes. */
.topbar .container { height: 28px; }
@media (min-width: 851px) {
  header .nav { min-height: 140px; padding-top: 2px; padding-bottom: 6px; row-gap: 0; }
  header .nav > nav a { padding-top: 8px; padding-bottom: 8px; }
}
@media (max-width: 850px) {
  header .nav { min-height: 130px; padding-top: 4px; padding-bottom: 6px; row-gap: 4px; }
}

/* Keep the active-page underline below text in the compact header. */
header .nav > nav a[aria-current]::after { bottom: 1px; }

/* Continue the edge ribbon motif through the lower page sections. */
.process-section, .why-backdrop, .gallery-section, .faq-section, footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  --edge-ribbon-color: #a8d8fa35;
}
.process-section, footer { --edge-ribbon-color: #a8d8fa0d; }
.why-backdrop { --edge-ribbon-color: #c7bbed30; }
:is(.process-section, .why-backdrop, .gallery-section, .faq-section, footer)::before,
:is(.process-section, .why-backdrop, .gallery-section, .faq-section, footer)::after {
  content: "";
  position: absolute;
  inset-block: 0;
  width: clamp(100px, 17vw, 320px);
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(145deg, transparent 0 82px, var(--edge-ribbon-color) 82px 164px, transparent 164px 246px);
}
:is(.process-section, .why-backdrop, .gallery-section, .faq-section, footer)::before { left: 0; }
:is(.process-section, .why-backdrop, .gallery-section, .faq-section, footer)::after { right: 0; transform: rotate(180deg); }

.process-section::before, .process-section::after,
.faq-section::before, .faq-section::after { content: none; }

.why-backdrop::before, .why-backdrop::after { content: none; }

/* Editorial gallery mosaic inspired by the supplied reference. */
.gallery-preview { background: #edf2f6; }
.gallery-preview .gallery-grid { gap: 14px; }
.gallery-preview .gallery-card { position: relative; border-radius: 13px; min-height: 220px; }
.gallery-preview .gallery-card img { height: 100%; min-height: 220px; }
.gallery-preview .gallery-card span {
  position: absolute; inset: auto 0 0; color: #fff; padding: 44px 20px 18px;
  background: linear-gradient(transparent, #071b2bd9); align-items: center; justify-content: flex-start;
  font-size: 16px; line-height: 1.4;
}
.gallery-preview .gallery-grid[data-photo-count="1"] { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
@media (min-width: 901px) {
  .gallery-preview .gallery-grid[data-photo-count="6"] { grid-template-columns: repeat(18, minmax(0, 1fr)); grid-template-rows: repeat(2, 210px); }
  .gallery-preview [data-photo-count="6"] .gallery-card { min-height: 0; }
  .gallery-preview [data-photo-count="6"] .gallery-card img { min-height: 0; }
  .gallery-preview [data-photo-count="6"] .gallery-card:nth-child(1) { grid-area: 1 / 1 / 3 / 9; }
  .gallery-preview [data-photo-count="6"] .gallery-card:nth-child(2) { grid-area: 1 / 9 / 2 / 14; }
  .gallery-preview [data-photo-count="6"] .gallery-card:nth-child(3) { grid-area: 1 / 14 / 2 / 19; }
  .gallery-preview [data-photo-count="6"] .gallery-card:nth-child(4) { grid-area: 2 / 9 / 3 / 12; }
  .gallery-preview [data-photo-count="6"] .gallery-card:nth-child(5) { grid-area: 2 / 12 / 3 / 16; }
  .gallery-preview [data-photo-count="6"] .gallery-card:nth-child(6) { grid-area: 2 / 16 / 3 / 19; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .gallery-preview [data-photo-count="6"] .gallery-card:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .gallery-preview .gallery-card img { height: 240px; }
}

.gallery-slider { outline: none; touch-action: pan-y; }
.gallery-slider-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 14px 0; }
.gallery-slider .gallery-enlarged { height: min(52vh, 460px); background: #edf2f6; border-radius: 10px; }
.gallery-slider [data-slide-title] { margin: 0; text-align: center; }

dialog:has(.gallery-slider) { width: min(920px, calc(100vw - 32px)); max-width: calc(100vw - 32px); }

.gallery-slider-controls [data-slide] {
  width: 60px;
  height: 56px;
  min-width: 60px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  border-radius: 12px;
}

/* Keep short eligibility information readable on both class listings. */
.class-card .class-description {
  font-size: 12px;
  line-height: 1.65;
  margin: 0 0 14px;
  min-height: 4.95em;
}

/* Fit the complete portrait photo into the same landscape frame as other cards. */
.class-card .vehicle.motorcycle-a1,
.class-card .vehicle.motorcycle-a2 {
  aspect-ratio: 658 / 400;
  background: #e8f1f7;
  overflow: hidden;
}
.class-card .vehicle.motorcycle-a1::before,
.class-card .vehicle.motorcycle-a2::before {
  content: "";
  display: block;
  flex: 0 0 calc(100% * 490 * 400 / (520 * 658));
  height: 100%;
  background-image: url("/public/images/motorcycle-classes.png");
  background-repeat: no-repeat;
  background-size: 313.47% auto;
}
.class-card .vehicle.motorcycle-a1::before {
  background-position: 1.24% 28.4%;
}
.class-card .vehicle.motorcycle-a2::before {
  background-position: 49.9% 28.4%;
}

/* Keep the supplied B1 ATV photograph complete inside the shared card frame. */
.class-card .vehicle.passenger-b1 {
  background: #e8f1f7 url("/public/images/b1-atv.png") center / contain no-repeat;
}

.announcement-media { display: grid; gap: 14px; max-width: 680px; margin: 16px 0; }
.announcement-image img { display: block; width: 100%; max-height: 420px; object-fit: contain; background: #eff4f8; border-radius: 10px; }
.announcement-video video { display: block; width: 100%; max-height: 420px; background: #102c44; border-radius: 10px; }
.announcement-file, .announcement-link { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid #dce5ee; border-radius: 10px; overflow-wrap: anywhere; }
.announcement-link img { width: 120px; height: 80px; object-fit: cover; border-radius: 6px; }
.announcement-media small, .announcement-edit-asset small { display: block; color: #64748b; margin-top: 5px; }
.announcement-storage { padding: 14px; background: #edf5fa; border-radius: 8px; margin-bottom: 18px; }
.announcement-storage progress { display: block; width: 100%; height: 9px; margin-top: 10px; accent-color: #226fa3; }
.announcement-attachments { border: 1px solid #dce5ee; border-radius: 10px; padding: 16px; margin: 20px 0; min-width: 0; }
.announcement-attachments legend { font-weight: 700; }
.announcement-attachments p { font-size: 12px; }
.announcement-edit-asset { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #dce5ee; overflow-wrap: anywhere; }
.quota-dialog { width: min(460px, calc(100vw - 32px)); border: 0; border-radius: 16px; padding: 30px; color: #17324a; }
.quota-dialog::backdrop { background: #102c4480; }
.admin-announcement > div { min-width: 0; }

.announcement-add-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.announcement-upload-help { margin-top: 10px; font-size: 12px; color: #64748b; }
.announcement-upload-help summary { cursor: pointer; }
.announcement-link-row > div { display: flex; gap: 10px; align-items: center; }
.announcement-link-row input { flex: 1; min-width: 0; }
.announcement-attachments input[hidden] { display: none; }

/* Alternate announcement backgrounds across public and account lists. */
.announcement-card.announcement-lilac {
  background: #f5f2ff;
}
.announcement-card.announcement-cream {
  background: #fff8ec;
}
.admin-announcement.announcement-card {
  margin-top: 16px;
  padding: 23px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

/* Background scoped to the dedicated license classes page. */
.license-classes-page {
  background: #f3f4f6;
  display: flow-root;
}

/* Soft ice blue for the dedicated education process page. */
.education-process-page {
  background: #eef7fb;
  display: flow-root;
}

/* Light lilac for the dedicated about page. */
.about-page {
  background: #f5f2ff;
  display: flow-root;
}

.footer-bottom {
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
footer a.footer-credit {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid #b5d4e330;
  border-radius: 8px;
  background: #ffffff05;
  color: #c3d3df;
  text-decoration: none;
  max-width: 100%;
}
.footer-credit-wordmark {
  font-size: 19px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -.6px;
  color: #edf5fb;
}
.footer-credit-wordmark span { color: #46ced5; }
.footer-credit-caption {
  border-left: 1px solid #b5d4e340;
  padding-left: 14px;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  max-width: 900px;
}
footer a.footer-credit:hover { background: #ffffff0d; border-color: #46ced580; }
footer a.footer-credit:focus-visible { outline: 2px solid #46ced5; outline-offset: 4px; }
@media (max-width: 380px) {
  .footer-credit-caption { border-left: 0; padding-left: 0; }
}

.eyebrow.section-eyebrow {
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .eyebrow.section-eyebrow { font-size: 11px; }
}

.privacy-page { background: #f3f4f6; display: flow-root; }
.legal-content { max-width: 900px; overflow-wrap: anywhere; }
.legal-content h2 { margin-top: 30px; font-size: 21px; }
.legal-content p, .legal-content li { line-height: 1.8; }
.legal-content li { margin-bottom: 12px; }
.announcement-external-preview { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.announcement-external-preview p { margin-bottom: 8px; }
.announcement-external-preview img { display: block; width: 100%; max-height: 260px; object-fit: contain; margin-bottom: 8px; }

.full-classes .class-card, .home-classes .class-card { display: flex; flex-direction: column; }
.class-info { list-style: none; padding: 0; margin: 4px 0 12px; display: grid; gap: 7px; color: var(--muted); }
.class-info li { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.5; }
.class-info .icon { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 2px; }
.class-card .class-price { font-size: 24px; line-height: 1.3; font-weight: 800; color: var(--navy, #102d47); margin: 4px 0 12px; min-height: 0; }
.full-classes .card-link, .home-classes .card-link { margin-top: auto; border: 1px solid #dce7f4; border-radius: 14px; background: #f6faff; padding: 10px 12px; width: 100%; }
.license-price-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr)); gap: 16px; }
.license-price-form { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafc; }
.license-price-form .portal-check { margin: 14px 0; }

.hero h1.course-slogan { max-width: 780px; font-size: clamp(28px, 4vw, 56px); line-height: 1.2; letter-spacing: -1px; overflow-wrap: anywhere; }


[data-gallery-category] { scroll-margin-top: 160px; }
[data-gallery-category] > .section-head { flex-wrap: wrap; gap: 12px; }
[data-gallery-category] > .section-head > div:first-child { flex: 1; }
.gallery-category-order { display:flex; gap:8px; margin-left:auto; }
.gallery-category-order .button { min-width:42px; min-height:42px; font-size:20px; }
[data-order-status]:empty { display:none; }

/* Readable secondary action while keeping the vehicle visible behind it. */
.hero-buttons .button.glass {
  background: rgba(12, 35, 54, .48);
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
  backdrop-filter: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.hero-buttons .button.glass:hover {
  background: rgba(12, 35, 54, .62);
  border-color: #fff;
}
.hero-buttons .button.glass:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 4px;
}

.document-viewer .viewer-toolbar[hidden] { display:none; }


.legal-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; padding: 24px; margin: 20px 0; background: #f5f2ff; border: 1px solid #e0deeb; border-radius: 12px; }

.hero .eyebrow.hero-school-name {
  font-size: clamp(24px, 3.4vw, 48px);
  font-weight: 400;
  line-height: 1.5;
}
.hero-school-name strong { font-weight: 800; }
.hero-school-name .tiny-line { flex-shrink: 0; }

.hero h1.course-slogan {
  max-width: 100%;
  font-size: clamp(16px, 3.4vw, 48px);
  letter-spacing: -0.4px;
}
.course-slogan > span { display: block; white-space: nowrap; }
.course-slogan .slogan-first { color: #ff353b; }
.course-slogan .slogan-second { color: #fff; }

/* Readable row actions in the requested management screens. */
.admin-dashboard[data-panel-base="yonetim"] .table-action:is(
  [data-portal-action="student-progress"],
  [data-portal-action="edit-student"],
  [data-portal-action="view-document"],
  [data-portal-action="edit-content"][data-kind="documents"],
  [data-portal-action="delete-content"][data-kind="documents"],
  [data-portal-action="inquiry-open"],
  [data-portal-action="deletion-detail"]
) {
  font-size: 14px;
}

.admin-dashboard[data-panel-base="panel"] .table-action {
  font-size: 14px;
}

.document-folder-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr)); gap:18px; }
.document-folder-card { border:1px solid #dce5ee; background:#f8faff; border-radius:12px; padding:18px; min-width:0; }
.folder-open { display:flex; flex-direction:column; align-items:flex-start; gap:10px; background:none; border:0; width:100%; text-align:left; color:var(--ink); padding:0 0 16px; cursor:pointer; }
.folder-open strong { font-size:18px; overflow-wrap:anywhere; }
.folder-open > span:last-child { font-size:13px; color:var(--muted); }
.folder-symbol { font-size:36px; }
.document-folder-card .portal-doc-actions { margin:0; }
.document-folder-card .table-action,
.admin-dashboard [data-portal-action="move-document"] { font-size:14px; }
.student-document-folder { margin:18px 0; border:1px solid #dce5ee; border-radius:10px; padding:16px; }
.student-document-folder > summary { cursor:pointer; font-size:17px; font-weight:700; overflow-wrap:anywhere; }

/* Document lists: readable labels and a clear return link above the divider. */
.document-list-panel .admin-announcement h3 { font-size:16px; line-height:1.5; }
.document-list-panel .admin-announcement p { font-size:14px; line-height:1.6; }
.document-list-panel .button.small,
.document-list-panel .portal-pagination { font-size:14px; }
.admin-dashboard .document-list-panel .portal-doc-actions .table-action { font-size:15px; }
.document-list-panel [data-portal-action="folder-back"] {
  display:inline-flex;
  align-items:center;
  padding:8px 0;
  margin:0 0 20px;
  font-size:15px;
  font-weight:600;
  line-height:1.5;
  cursor:pointer;
}

[data-student-import] { font-size:15px; }
[data-student-import] label { display:block; margin-top:20px; }
[data-student-import] details { margin:18px 0; }
[data-student-import] .table-scroll { max-height:360px; overflow:auto; margin:16px 0; }
[data-student-import] .admin-table td { white-space:normal; min-width:90px; }
[data-student-import] .admin-table th { position:sticky; top:0; background:#f4f7fb; }
[data-student-import] [data-import-commit][hidden] { display:none; }

.admin-table .student-group-heading th {
  background:#eaf0fa;
  color:var(--ink);
  font-size:16px;
  font-weight:700;
  padding:16px 20px;
  border-top:2px solid #d5e1f0;
  text-align:left;
}

.student-group-select { display:flex; align-items:center; gap:12px; cursor:pointer; margin:0; }
.student-group-select input { width:18px; height:18px; margin:0; flex-shrink:0; }

.student-group-toggle { display:flex; align-items:center; justify-content:space-between; gap:16px; flex:1; border:0; background:none; color:inherit; font:inherit; padding:8px 0; text-align:left; cursor:pointer; }
.student-group-chevron { font-size:22px; transition:transform .15s ease; }
.student-group-toggle[aria-expanded="false"] .student-group-chevron { transform:rotate(-90deg); }
.admin-table [data-student-group-row][hidden] { display:none; }
.student-group-toggle:focus-visible { outline:2px solid var(--blue); outline-offset:4px; }
@media (prefers-reduced-motion:reduce) { .student-group-chevron { transition:none; } }

.document-title-link { border:0; background:none; padding:0; color:var(--ink); font:inherit; font-weight:700; text-align:left; cursor:pointer; }
.document-title-link:hover { color:var(--blue); text-decoration:underline; }
.document-title-link:focus-visible { outline:2px solid var(--blue); outline-offset:4px; }
.viewer-thumbnails { display:flex; gap:10px; overflow-x:auto; padding:8px 4px; background:#f1f5f9; position:relative; min-height:118px; }
.viewer-thumbnails[hidden] { display:none; }
.viewer-thumbnail { flex:0 0 132px; border:2px solid transparent; border-radius:7px; background:#fff; color:var(--ink); padding:4px; cursor:pointer; font-size:13px; }
.thumbnail-picture { display:flex; height:80px; align-items:center; justify-content:center; overflow:hidden; }
.viewer-thumbnail[aria-current="page"] { border-color:var(--blue); background:#e6f0ff; font-weight:700; }
.viewer-thumbnail:focus-visible { outline:2px solid var(--blue); outline-offset:1px; }

/* Contact page */
.contact-page { background: #f2f6f8; }
.contact-layout { display: grid; grid-template-columns: 1fr 1.12fr; gap: 32px; }
.contact-details, .contact-map-card { border: 1px solid #dce5ec; border-radius: 20px; background: #fff; overflow: hidden; }
.contact-details { padding: 36px; }
.contact-details > h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.2; margin: 18px 0; }
.contact-details > p { line-height: 1.8; }
.contact-detail { display: flex; align-items: flex-start; gap: 16px; margin-top: 28px; }
.contact-detail .doc-icon { flex-shrink: 0; }
.contact-detail h3 { font-size: 13px; color: #62758a; margin: 0 0 8px; }
.contact-phone { font-size: clamp(23px, 3vw, 30px); font-weight: 700; color: #112f49; text-decoration: none; }
.contact-phone:hover { color: #1668ce; }
.contact-detail address { font-style: normal; font-size: 17px; line-height: 1.7; max-width: 340px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.contact-map-card { display: flex; flex-direction: column; }
.contact-map-heading { display: flex; justify-content: space-between; align-items: center; padding: 26px 28px; gap: 16px; }
.contact-map-heading h2 { font-size: 24px; margin: 8px 0 0; }
.contact-map-heading > .icon { width: 32px; height: 32px; color: #2174cc; }
.contact-map { min-height: 350px; flex: 1; position: relative; background: #e7eef3; }
.contact-map iframe { width: 100%; height: 100%; min-height: 350px; position: absolute; inset: 0; border: 0; }
.contact-map-placeholder { min-height: 350px; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px; text-align: center; background: repeating-linear-gradient(35deg, transparent 0 65px, #ffffff50 65px 68px), #e7eef3; }
.contact-map-pin { display: grid; place-items: center; border-radius: 50%; background: #fff; width: 64px; height: 64px; color: #2174cc; }
.contact-map-pin .icon { width: 30px; height: 30px; }
.contact-map-placeholder h3 { margin: 18px 0 0; font-size: 23px; }
.contact-map-placeholder p { margin: 10px 0 20px; }
.contact-map-placeholder small { display: block; margin-top: 14px; color: #53677a; font-size: 12px; }
.contact-map-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 28px; font-weight: 600; color: #1264b9; }
.contact-help { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; padding: 28px 36px; background: #e6edf4; border-radius: 16px; }
.contact-help h2 { font-size: 22px; margin: 0 0 8px; }
.contact-help p { margin: 0; }
.contact-help .button { flex-shrink: 0; }
@media (max-width: 800px) {
  .contact-layout { grid-template-columns: 1fr; gap: 20px; }
  .contact-details { padding: 26px; }
  .contact-help { flex-direction: column; align-items: flex-start; padding: 26px; }
}
@media (max-width: 420px) {
  .contact-details { padding: 22px; }
  .contact-actions { flex-direction: column; }
  .contact-map-heading, .contact-map-link { padding: 22px; }
}

.contact-school-name { color: #c62828; }

/* Public payment shortcut remains usable on narrow screens. */
.topbar .container { height: auto; min-height: 44px; padding-top: 5px; padding-bottom: 5px; gap: 12px; }
.top-links { flex-wrap: wrap; justify-content: center; }
.topbar .mtv-payment-link { background: var(--yellow, #ffd43b); color: #0c263f; border-radius: 6px; padding: 8px 12px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.mtv-payment-link:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
@media (max-width: 600px) { .top-links { gap: 8px 14px; } }

.vehicle-topbar .container { justify-content: center; padding-top: 8px; padding-bottom: 8px; }
.vehicle-shortcuts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: 100%; }
.vehicle-shortcuts .mtv-payment-link { justify-content: center; min-height: 40px; text-align: center; }
@media (max-width: 600px) {
  .vehicle-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .vehicle-shortcuts .mtv-payment-link { white-space: normal; font-size: 11px; padding: 7px 6px; gap: 5px; }
}
