/*
Theme Name: Autoskola Nova Bana
Theme URI: https://autoskolanovabana.sk/
Author: Autoskola Nova Bana
Version: 1.0.32
Description: Custom theme for Autoskola Nova Bana.
Text Domain: autoskola-nova-bana
*/
:root {
  --bg: #eef4ee;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --primary: #b3198f;
  --primary-strong: #7b1063;
  --accent: #f59e0b;
  --ring: rgba(179, 25, 143, 0.25);
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  --radius: 18px;
  --header-offset: 120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

section[id] {
  scroll-margin-top: var(--header-offset);
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 85% 0%, rgba(245, 158, 11, 0.2), transparent 34%),
    radial-gradient(circle at 8% 18%, rgba(179, 25, 143, 0.16), transparent 28%),
    var(--bg);
  line-height: 1.6;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(520px 220px at 92% 8%, rgba(245, 158, 11, 0.18), transparent 70%),
    radial-gradient(520px 220px at 8% 24%, rgba(179, 25, 143, 0.14), transparent 74%);
}

.site-header,
main,
.site-footer {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  backdrop-filter: blur(8px);
}

.logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.logo img {
  width: clamp(140px, 18vw, 190px);
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
}

.main-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.94rem;
}

.main-nav a:hover {
  color: var(--primary);
}

.mobile-menu-toggle {
  display: none;
}

.menu-dropdown {
  position: relative;
}

.menu-dropdown summary {
  list-style: none;
  cursor: pointer;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.94rem;
}

.menu-dropdown summary::-webkit-details-marker {
  display: none;
}

.menu-dropdown[open] summary,
.menu-dropdown summary:hover {
  color: var(--primary);
}

.submenu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 260px;
  display: grid;
  gap: 0.2rem;
  padding: 0.45rem;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
  z-index: 25;
}

.submenu a {
  display: block;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #1f2937;
  text-decoration: none;
}

.submenu a:hover {
  background: rgba(179, 25, 143, 0.08);
  color: var(--primary);
}

.btn {
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: linear-gradient(140deg, var(--primary), var(--primary-strong));
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(179, 25, 143, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(179, 25, 143, 0.35);
}

.btn-small {
  padding: 0.6rem 1rem;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(15, 23, 42, 0.15);
  box-shadow: none;
}

.btn-ghost:hover {
  color: var(--primary);
  border-color: rgba(179, 25, 143, 0.4);
}

section {
  margin: 2.3rem 0;
}

h1,
h2,
h3 {
  font-family: "Sora", sans-serif;
  margin: 0;
  line-height: 1.2;
}

h1 {
  margin-top: 0.45rem;
  font-size: clamp(2rem, 5vw, 3.2rem);
  max-width: 16ch;
}

.hero,
.card,
.about-card,
blockquote,
.cta {
  background: var(--surface);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero {
  padding: clamp(1.4rem, 5vw, 3rem);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.8fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  color: var(--primary);
  font-weight: 800;
  margin: 0;
}

.lead {
  color: var(--muted);
  max-width: 72ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.hero-brand {
  display: flex;
  justify-content: center;
}

.hero-brand img {
  width: clamp(220px, 30vw, 340px);
  height: auto;
  filter: drop-shadow(0 12px 22px rgba(15, 23, 42, 0.25));
}

.benefits h2,
.about h2,
.gallery h2,
.booking-ui h2,
.testimonials h2,
.cta h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  margin-bottom: 0.8rem;
}

.booking-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 760px;
}

.booking-note {
  margin-top: 0.9rem;
  padding: 0.7rem 0.8rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  color: var(--muted);
  font-weight: 600;
}

.booking-note code {
  font-size: 0.9em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  padding: 1.2rem;
}

.accent-card {
  background: linear-gradient(140deg, #9b177d, #6f1158);
  color: #fff2fb;
}

.benefits .card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.benefits .card-link h3,
.benefits .card-link p {
  color: #fff;
}

.benefits .card-link:focus-visible {
  outline: 3px solid rgba(155, 23, 125, 0.35);
  outline-offset: 4px;
}

.about-card {
  padding: 1.25rem;
}

.card h2 {
  margin-top: 1rem;
}

.card h2:first-child {
  margin-top: 0;
}

.card ul {
  margin: 0.45rem 0 0.9rem;
  padding-left: 1.1rem;
}

.gdpr-title-card h2 {
  margin: 0;
}

.gdpr-hero h1 {
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  max-width: 28ch;
}

.gdpr-card ul ul {
  margin: 0.45rem 0 0;
  padding-left: 1.6rem;
}

.gdpr-card li + li {
  margin-top: 0.35rem;
}

.gdpr-table-wrap {
  width: 100%;
  margin-top: 0.9rem;
  overflow-x: auto;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: #fff;
}

.gdpr-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.gdpr-table th,
.gdpr-table td {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  text-align: left;
  vertical-align: top;
}

.gdpr-table th {
  background: #f8fafc;
  font-family: "Sora", sans-serif;
  font-size: 0.88rem;
}

.gdpr-table tr:last-child td {
  border-bottom: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-grid img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

blockquote {
  margin: 0;
  padding: 1.2rem;
  font-weight: 600;
  color: #1e293b;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}

.reviewer img {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 2px solid rgba(15, 23, 42, 0.08);
  object-fit: cover;
}

.reviewer strong {
  color: var(--primary);
  font-family: "Sora", sans-serif;
  font-size: 0.98rem;
}

.cta {
  padding: 1.3rem;
  background: linear-gradient(145deg, #fafffb 0%, #f3faf7 100%);
}

.contact-form {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  width: 100%;
  max-width: 100%;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  min-width: 0;
}

.contact-form label:nth-of-type(4),
.contact-form .consent,
.contact-form button {
  grid-column: 1 / -1;
}

input,
textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0.72rem;
  font: inherit;
  background: #fff;
}

input:focus,
textarea:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring);
}

.contact-form label.consent {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  white-space: nowrap;
  flex-wrap: nowrap;
  max-width: 100%;
  min-width: 0;
}

.contact-form label.consent input {
  width: auto;
  margin: 0;
  flex: 0 0 auto;
}

.contact-form label.consent a {
  white-space: nowrap;
}

.contact-details {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
}

.contact-details p {
  margin: 0.35rem 0;
}

.form-notice {
  margin-top: 0.7rem;
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  font-weight: 700;
}

.form-notice.success {
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #86efac;
}

.form-notice.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.as-form,
.as-form-inline {
  padding: 1rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  margin: 0.8rem 0;
}

.as-form-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem;
}

.as-form p,
.as-form-inline p {
  margin: 0.6rem 0;
}

.as-form-inline p {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem;
}

.as-form label,
.as-form-inline label {
  display: inline-grid;
  gap: 0.3rem;
  margin-right: 0;
  font-weight: 700;
}

.as-form .as-remember-me {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
}

.as-form .as-remember-me input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.as-form input,
.as-form select,
.as-form textarea,
.as-form-inline input,
.as-form-inline select,
.as-form-inline textarea,
.as-compact-form input,
.as-compact-form select,
.as-compact-form textarea {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  font: inherit;
  background-color: #fff;
  color: var(--text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.as-form select,
.as-form-inline select,
.as-compact-form select {
  appearance: none;
  padding-right: 2.35rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--primary-strong) 50%),
    linear-gradient(135deg, var(--primary-strong) 50%, transparent 50%),
    linear-gradient(140deg, rgba(179, 25, 143, 0.12), rgba(123, 16, 99, 0.04));
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%,
    100% 0;
  background-size:
    6px 6px,
    6px 6px,
    2rem 100%;
  background-repeat: no-repeat;
}

.as-form input:focus,
.as-form select:focus,
.as-form textarea:focus,
.as-form-inline input:focus,
.as-form-inline select:focus,
.as-form-inline textarea:focus,
.as-compact-form input:focus,
.as-compact-form select:focus,
.as-compact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring);
}

.as-form button,
.as-form-inline button,
.as-compact-form button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(140deg, var(--primary), var(--primary-strong));
  color: #fff;
  font-weight: 800;
  padding: 0.5rem 0.95rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(179, 25, 143, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.as-form button:hover,
.as-form-inline button:hover,
.as-compact-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(179, 25, 143, 0.3);
}

.as-form-inline button {
  align-self: flex-end;
}

.as-availability-row {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem;
}

.as-availability-row .as-hour-picker {
  width: 100%;
}

.as-hour-picker {
  display: grid;
  gap: 0.4rem;
}

.as-field-label {
  font-weight: 700;
  color: #334155;
}

.as-time-options-empty {
  width: 100%;
  margin: 0;
  color: #64748b;
  font-weight: 700;
}

[data-as-time-options][hidden],
[data-as-time-options-empty][hidden] {
  display: none !important;
}

.as-demand-summary {
  display: grid;
  gap: 0.8rem;
}

.as-demand-summary h4 {
  margin: 0;
}

.as-demand-summary p {
  margin: 0;
  color: #475569;
}

.as-demand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.7rem;
}

.as-demand-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  padding: 0.8rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

.as-demand-card > strong {
  color: var(--primary-strong);
  font-size: 1.05rem;
}

.as-demand-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.9rem;
}

.as-hour-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.as-vehicle-picker {
  display: grid;
  gap: 0.4rem;
}

.as-vehicle-grid .as-hour-option span {
  min-width: 42px;
  padding: 0.46rem 0.52rem;
}

.as-hour-option {
  position: relative;
  display: inline-flex;
  margin: 0;
}

.as-hour-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.as-hour-option span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  padding: 0.46rem 0.66rem;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.as-hour-option input:checked + span {
  color: #166534;
  background: #dcfce7;
  border-color: #86efac;
}

.as-hour-option input:disabled + span {
  color: #94a3b8;
  background: #f1f5f9;
  border-color: #e2e8f0;
  cursor: not-allowed;
  opacity: 0.72;
}

.as-hour-option-unavailable span {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.as-custom-time-wrap {
  display: grid;
  gap: 0.45rem;
}

.as-custom-time-wrap label {
  min-width: min(100%, 280px);
}

.as-field-hint {
  color: var(--muted);
  font-size: 0.9rem;
}

.as-booked-filter-form {
  align-items: flex-end;
}

.as-booked-filter-form .as-segmented-filter,
.as-booked-filter-form .as-action-btn {
  align-self: flex-end;
}

.as-filter-form,
.as-filter-form p {
  align-items: flex-end;
  gap: 0.65rem;
}

.as-filter-form p {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
}

.as-filter-form button,
.as-filter-form .as-action-btn,
.as-filter-form .as-segmented-filter {
  align-self: flex-end;
}

.as-filter-form .as-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.as-instructor-filter-form {
  display: grid;
  align-items: stretch;
}

.as-filter-title {
  font-weight: 800;
  color: #334155;
}

.as-filter-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.as-admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1rem;
}

.as-admin-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(179, 25, 143, 0.2);
  color: var(--primary-strong);
  font-weight: 800;
  text-decoration: none;
  background: #fff;
}

.as-admin-tabs a.active,
.as-admin-tabs a:hover {
  background: linear-gradient(140deg, var(--primary), var(--primary-strong));
  color: #fff;
  box-shadow: 0 10px 24px rgba(179, 25, 143, 0.22);
}

.as-admin-card {
  margin: 0 0 1rem;
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
}

.as-admin-tabs ~ h4,
.as-admin-tabs ~ .as-admin-card h4,
.as-admin-tabs ~ form.as-admin-card h4,
.as-admin-tabs ~ .as-settings-form .as-admin-card h4 {
  margin-block-start: 0;
}

.as-student-dashboard {
  color: var(--text);
}

.as-student-tabs {
  margin-bottom: 1.2rem;
}

.as-student-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.as-student-rides-card h4 {
  margin: 0;
}

.as-instructor-dashboard {
  color: var(--text);
}

.as-instructor-tabs {
  margin-bottom: 1.2rem;
}

.as-instructor-settings-card,
.as-instructor-password-card,
.as-instructor-availability-card,
.as-instructor-rides-card {
  display: grid;
  gap: 0.85rem;
}

.as-instructor-password-card h4,
.as-instructor-availability-card h3,
.as-instructor-rides-card h3 {
  margin: 0;
}

.as-instructor-settings-card .as-instructor-settings-form {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.as-instructor-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
}

.as-instructor-settings-grid .as-vehicle-picker {
  grid-column: 1 / -1;
}

.as-instructor-settings-form .as-instructor-settings-actions {
  margin: 0;
}

.as-instructor-availability-card .as-form-inline,
.as-instructor-rides-card .as-form-inline,
.as-instructor-password-card .as-form {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.as-admin-instructor-picker-card,
.as-admin-planned-rides-card,
.as-admin-schedule-card,
.as-admin-add-availability-card {
  display: grid;
  gap: 0.85rem;
}

.as-admin-instructor-picker-card h4,
.as-admin-planned-rides-card h4,
.as-admin-schedule-card h4,
.as-admin-add-availability-card h4 {
  margin: 0;
}

.as-admin-instructor-picker-card p,
.as-admin-planned-rides-card p {
  margin: 0;
}

.as-admin-instructor-picker-card .as-form-inline,
.as-admin-planned-rides-card .as-form-inline,
.as-admin-schedule-card .as-form-inline {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.as-empty-state {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-weight: 700;
}

.as-student-booking-filter {
  margin-bottom: 1rem;
}

.as-inline-action-form {
  display: inline-block;
  margin: 0;
}

.as-compact-form {
  display: grid;
  gap: 0.5rem;
}

.as-admin-calendar-actions {
  display: grid;
  gap: 0.55rem;
  align-items: start;
}

.as-admin-calendar-actions form {
  margin: 0;
}

.as-admin-calendar-cancel-form .as-action-btn {
  width: fit-content;
}

.as-segmented-filter {
  margin: 0;
  padding: 0.22rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
}

.as-segmented-filter legend {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

.as-segmented-option {
  position: relative;
  margin: 0;
}

.as-segmented-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.as-segmented-option span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.42rem 0.78rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.as-segmented-option input:checked + span {
  background: #ffffff;
  color: #1e293b;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.14);
}

.as-segmented-option input:focus-visible + span {
  outline: 2px solid #86efac;
  outline-offset: 1px;
}

.as-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.as-table th,
.as-table td {
  padding: 0.65rem 0.7rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  text-align: left;
  vertical-align: top;
}

.as-table th {
  background: #f8fafc;
  font-family: "Sora", sans-serif;
  font-size: 0.86rem;
}

.as-day-group-row td {
  background: linear-gradient(90deg, rgba(179, 25, 143, 0.08), rgba(179, 25, 143, 0.02));
  border-top: 1px solid rgba(179, 25, 143, 0.18);
  border-bottom: 1px solid rgba(179, 25, 143, 0.12);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.as-day-group-title {
  font-family: "Sora", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #7b1063;
  letter-spacing: 0.01em;
}

.as-pagination {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.as-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  text-decoration: none;
  color: #1f2937;
  font-weight: 700;
}

.as-page-link:hover {
  border-color: rgba(179, 25, 143, 0.4);
  color: var(--primary);
}

.as-page-link.active {
  border-color: rgba(179, 25, 143, 0.5);
  background: #fdf2f8;
  color: var(--primary-strong);
}

.as-page-gap {
  color: var(--muted);
  font-weight: 800;
}

.as-page-info {
  color: var(--muted);
  font-weight: 700;
}

.as-status-badge,
.as-status-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: lowercase;
}

.as-status-free {
  background: #e5e7eb;
  color: #374151;
}

.as-status-reserved {
  background: #fee2e2;
  color: #991b1b;
}

.as-status-other {
  background: #e0e7ff;
  color: #3730a3;
}

.as-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.42rem 0.82rem;
  font: inherit;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(140deg, var(--primary), var(--primary-strong));
  box-shadow: 0 8px 18px rgba(179, 25, 143, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.as-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(179, 25, 143, 0.32);
}

.as-action-btn.as-action-danger {
  color: #a82121;
  background: #fde9e9;
  border: 1px solid #f5c9c9;
  border-radius: 10px;
  padding: 0.66rem 0.86rem;
  box-shadow: none;
}

.as-action-btn.as-action-danger:hover {
  background: #fbdede;
  transform: none;
  box-shadow: none;
}

.as-action-btn.as-action-success-soft {
  color: #166534;
  background: #dcfce7;
  border: 1px solid #86efac;
  box-shadow: none;
}

.as-action-btn.as-action-success-soft:hover {
  background: #bbf7d0;
  box-shadow: none;
}

.as-checkbox-label {
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem;
}

.as-checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.as-students-filter-form.filter-shell.advanced {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
  align-items: stretch;
  padding: 1.05rem;
}

.as-students-filter-form h4 {
  margin: 0;
  padding-bottom: 0.15rem;
}

.as-students-filter-form .advanced-top {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  align-items: center;
  gap: 0.7rem;
}

.as-students-filter-form .search-line {
  display: flex !important;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0 0.75rem;
  background: #fff;
  color: var(--muted);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.as-students-filter-form .search-line:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring);
}

.as-students-filter-form .search-line strong {
  color: var(--primary-strong);
  font-size: 1.1rem;
  line-height: 1;
}

.as-students-filter-form .search-line input[type="search"] {
  width: 100%;
  min-width: 0;
  border: 0 !important;
  border-radius: 0;
  padding: 0;
  outline: 0;
  background: transparent;
  box-shadow: none !important;
}

.as-students-filter-form .switch-row {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  color: #334155;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.as-students-filter-form .as-switch-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.as-students-filter-form .switch {
  position: relative;
  flex: 0 0 auto;
  width: 54px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid #c6d3e1;
  background: #dbe4ef;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.as-students-filter-form .switch::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.24);
  transition: transform 0.16s ease;
}

.as-students-filter-form .switch.on,
.as-students-filter-form .as-switch-input:checked + .switch {
  border-color: var(--primary);
  background: var(--primary);
}

.as-students-filter-form .switch.on::after,
.as-students-filter-form .as-switch-input:checked + .switch::after {
  transform: translateX(24px);
}

.as-students-filter-form .as-switch-input:focus-visible + .switch {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.as-students-filter-form .advanced-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.as-students-filter-form .field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 800;
}

.as-students-filter-form .field-box {
  min-height: 42px;
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background-color: #fff;
  color: var(--text);
  font-weight: 700;
}

.as-students-filter-form .advanced-top button {
  min-height: 44px;
  white-space: nowrap;
}

.as-students-filter-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.as-filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 0.28rem 0.72rem;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
}

.as-students-list-card,
.as-student-detail-card {
  display: grid;
  gap: 0.325rem;
}

.as-students-list-header,
.as-student-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.as-students-list-header h4,
.as-students-list-header p,
.as-student-detail-header h4,
.as-student-detail-header p {
  margin: 0;
}

.as-students-list-header p,
.as-student-detail-header p {
  color: var(--muted);
  font-weight: 700;
}

.as-student-detail-title {
  display: grid;
  gap: 0.22rem;
}

.as-student-detail-title h4 {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
}

.as-student-status-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.as-student-status-active {
  color: #166534;
  background: #dcfce7;
  border: 1px solid #86efac;
}

.as-student-status-inactive {
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
}

.as-student-status-completed {
  color: #1e3a8a;
  background: #dbeafe;
  border: 1px solid #93c5fd;
}

.as-student-detail-section {
  display: grid;
  gap: 0.3rem;
  padding: 0.72rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #f8fafc;
}

.as-student-detail-card .as-student-detail-section {
  margin: 0.5rem 0;
}

.as-student-detail-meta-table {
  margin: 0;
  table-layout: fixed;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.as-student-detail-meta-table small {
  color: var(--muted);
  font-weight: 700;
}

.as-student-detail-meta-table th,
.as-student-detail-meta-table td {
  border-bottom-color: rgba(15, 23, 42, 0.06);
}

.as-student-detail-meta-table th {
  padding-top: 0;
  background: transparent;
}

.as-student-detail-meta-table td {
  padding-bottom: 0;
}

.as-student-detail-section h5,
.as-student-detail-section p {
  margin: 0;
}

.as-instructor-settings-section .as-form p:last-child {
  margin-top: 10px;
}

.as-student-priority-summary,
.as-student-detail-list {
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.as-student-priority-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.as-student-detail-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.as-student-priority-summary div,
.as-student-detail-list div {
  min-width: 0;
  padding: 0.68rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.as-student-priority-summary dt,
.as-student-detail-list dt {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.as-student-priority-summary dd,
.as-student-detail-list dd {
  margin: 0.16rem 0 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.as-student-course-group {
  display: grid;
  gap: 0.45rem;
}

.as-student-course-group + .as-student-course-group {
  margin-top: 0.95rem;
}

.as-student-course-group h5 {
  margin: 0;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  background: #f8fafc;
  color: #334155;
}

.as-student-detail-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.7rem;
  margin: 0;
}

.as-student-detail-summary div {
  padding: 0.68rem;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 12px;
  background: #f8fafc;
}

.as-student-detail-summary dt {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.as-student-detail-summary dd {
  margin: 0.16rem 0 0;
  font-weight: 800;
}

.as-student-progress-summary {
  background: #fff;
}

.as-student-course-edit-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.375rem;
  align-items: end;
}

.as-student-course-edit-row > label,
.as-student-course-edit-row > label > input,
.as-student-course-edit-row > label > select {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.as-student-course-edit-row .as-vehicle-picker {
  grid-column: 1 / -1;
  min-width: 0;
}

.as-student-course-edit-row .as-vehicle-grid {
  display: flex;
  flex-wrap: wrap;
}

.as-student-course-edit-row .as-vehicle-grid .as-hour-option {
  width: auto;
}

.as-student-course-edit-row .as-vehicle-grid .as-hour-option span {
  width: auto;
  min-width: 42px;
}

.as-student-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.as-student-section-heading h5,
.as-student-section-heading span,
.as-student-progress-summary p {
  margin: 0;
}

.as-student-section-heading span {
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-weight: 800;
}

.as-student-progress-rows {
  display: grid;
  gap: 0.29rem;
}

.as-student-progress-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.35rem;
  align-items: stretch;
  padding: 0.65rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #f8fafc;
}

.as-progress-type {
  min-width: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fff;
  color: var(--primary-strong);
}

.as-progress-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.5rem;
}

.as-progress-item {
  display: grid;
  gap: 0.14rem;
  padding: 0.5rem;
  border-radius: 10px;
  background: #fff;
}

.as-progress-item > span,
.as-progress-item small,
.as-student-note-preview {
  color: #64748b;
  font-weight: 700;
}

.as-student-detail-grid,
.as-student-override-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.375rem;
}

.as-student-detail-form {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  gap: 0.1625rem;
}

.as-student-course-settings {
  background: #fff;
}

.as-student-advanced-section {
  background: #fff;
}

.as-student-advanced-section .as-field-hint {
  margin: 0;
}

.as-student-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.325rem;
}

/* WP default login form alignment fixes */
.lead .login-remember label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
}

.lead .login-remember input[type="checkbox"] {
  width: auto;
  margin: 0;
  transform: translateY(0);
}

.lead .login-submit .button,
.lead .login-submit input[type="submit"],
#wp-submit {
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, var(--primary), var(--primary-strong));
  color: #fff;
  padding: 0.75rem 1.25rem;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(179, 25, 143, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lead .login-submit .button:hover,
.lead .login-submit input[type="submit"]:hover,
#wp-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(179, 25, 143, 0.35);
}

.map-wrap {
  margin-top: 0.9rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14);
  background: #e5e7eb;
}

.map-wrap iframe {
  display: block;
  width: 100%;
  min-height: 280px;
  border: 0;
}

.site-footer {
  margin-bottom: 2rem;
  color: var(--muted);
  font-weight: 700;
}

.site-footer p {
  margin: 0.3rem 0;
}

.footer-logo {
  width: clamp(130px, 16vw, 170px);
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}

.site-footer a,
.contact-details a,
.consent a {
  color: var(--primary);
  text-decoration: none;
}

.site-footer a:hover,
.contact-details a:hover,
.consent a:hover {
  text-decoration: underline;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 1000;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(95vw, 1200px);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid #f5c9c9;
  border-radius: 999px;
  background: #fde9e9;
  color: #a82121;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.16s ease, transform 0.16s ease;
}

.lightbox-close:hover {
  background: #fbdede;
  transform: translateY(-1px);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  :root {
    --header-offset: 96px;
  }

  .site-header {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0;
  }

  .logo img {
    width: 72px;
  }

  .site-header .logo {
    flex: 0 0 auto;
  }

  .site-header > .btn {
    order: 2;
    width: auto;
    flex: 0 0 auto;
    margin-left: auto;
    padding: 0.52rem 0.76rem;
    font-size: 0.84rem;
    white-space: nowrap;
  }

  .mobile-menu-toggle {
    order: 3;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 1px solid rgba(179, 25, 143, 0.24);
    border-radius: 999px;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.96), rgba(250, 245, 249, 0.96));
    color: var(--primary-strong);
    padding: 0.52rem 0.82rem;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
  }

  .mobile-menu-toggle:hover,
  .mobile-menu-toggle[aria-expanded="true"] {
    background: linear-gradient(140deg, var(--primary), var(--primary-strong));
    color: #fff;
    box-shadow: 0 10px 22px rgba(179, 25, 143, 0.24);
  }

  .main-nav {
    order: 3;
    display: none;
  }

  .site-header.menu-open .main-nav {
    order: 4;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    padding: 0.55rem;
    border: 1px solid rgba(179, 25, 143, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
  }

  .main-nav a,
  .menu-dropdown summary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.58rem 0.65rem;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #334155;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.2;
  }

  .main-nav a:hover,
  .menu-dropdown summary:hover,
  .menu-dropdown[open] summary {
    background: rgba(179, 25, 143, 0.1);
    color: var(--primary-strong);
  }

  .menu-dropdown {
    position: static;
  }

  .submenu {
    position: static;
    min-width: 0;
    margin-top: 0.35rem;
    box-shadow: none;
  }

  .submenu a {
    justify-content: flex-start;
    border-radius: 10px;
  }

  .grid,
  .booking-grid,
  .gallery-grid,
  .testimonial-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-brand {
    order: -1;
    justify-content: flex-start;
  }

  .hero-brand img {
    width: min(260px, 70vw);
  }

  .contact-form label.consent {
    align-items: center;
    font-size: 0.92rem;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .contact-form label.consent::-webkit-scrollbar {
    height: 4px;
  }

  .gallery-grid img {
    height: 220px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-offset: 92px;
    --radius: 14px;
  }

  .site-header,
  main,
  .site-footer {
    width: min(100% - 1.2rem, 1120px);
  }

  section {
    margin: 1.4rem 0;
  }

  .hero,
  .card,
  .about-card,
  blockquote,
  .cta,
  .as-form,
  .as-form-inline,
  .as-admin-card {
    padding: 0.95rem;
  }

  .main-nav {
    gap: 0.36rem;
    padding: 0.45rem;
  }

  .main-nav a,
  .menu-dropdown summary {
    min-height: 40px;
    padding: 0.5rem 0.55rem;
    font-size: 0.84rem;
  }

  .hero-actions,
  .as-pagination {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn,
  .hero-actions .btn,
  .contact-form button,
  .as-form button,
  .as-form-inline button,
  .as-compact-form button,
  .lead .login-submit .button,
  .lead .login-submit input[type="submit"],
  #wp-submit {
    width: 100%;
  }

  .site-header > .btn {
    width: auto;
  }

  .contact-form,
  .as-form,
  .as-form-inline,
  .as-compact-form,
  .as-availability-row,
  .as-custom-time-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .as-form p,
  .as-form-inline p {
    margin: 0;
  }

  .as-form-inline p {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 0.65rem;
  }

  .contact-form label,
  .as-form label,
  .as-form-inline label,
  .as-compact-form label,
  .as-custom-time-wrap label {
    width: 100%;
    min-width: 0;
    display: grid;
  }

  input,
  select,
  textarea,
  .as-form input,
  .as-form select,
  .as-form textarea,
  .as-form-inline input,
  .as-form-inline select,
  .as-form-inline textarea,
  .as-compact-form input,
  .as-compact-form select,
  .as-compact-form textarea {
    width: 100%;
    min-width: 0;
  }

  .as-hour-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .as-hour-option span,
  .as-vehicle-grid .as-hour-option span {
    width: 100%;
    min-width: 0;
  }

  .as-segmented-filter {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 16px;
  }

  .as-filter-form,
  .as-filter-form p {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .as-filter-form label {
    min-height: 0;
  }

  .as-filter-form button,
  .as-filter-form .as-action-btn,
  .as-filter-form .as-segmented-filter {
    width: 100%;
  }

  .as-filter-controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .as-students-filter-form .advanced-top,
  .as-students-filter-form .advanced-panel,
  .as-students-filter-summary {
    display: grid;
    grid-template-columns: 1fr;
  }

  .as-students-filter-form .search-line,
  .as-students-filter-form .switch-row,
  .as-students-filter-form .advanced-top button,
  .as-students-filter-summary .as-action-btn {
    width: 100%;
  }

  .as-students-filter-form .switch-row {
    justify-content: flex-start;
    white-space: normal;
  }

  .as-segmented-option span {
    justify-content: center;
  }

  .as-admin-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .as-admin-tabs a {
    width: 100%;
    min-height: 42px;
    padding: 0.52rem 0.55rem;
    text-align: center;
    white-space: normal;
    line-height: 1.18;
  }

  .as-student-settings-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .as-instructor-settings-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .as-student-rides-card .as-action-btn {
    width: 100%;
  }

  .as-students-list-header,
  .as-student-detail-header,
  .as-student-section-heading,
  .as-student-course-edit-row,
  .as-student-detail-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .as-student-detail-grid,
  .as-student-override-grid,
  .as-student-detail-summary,
  .as-student-priority-summary,
  .as-student-detail-list,
  .as-progress-items {
    grid-template-columns: 1fr;
  }

  .as-student-progress-row {
    grid-template-columns: 1fr;
  }

  .as-progress-type {
    min-height: 38px;
  }

  .as-student-detail-actions .as-action-btn {
    width: 100%;
    text-align: center;
  }

  .as-table.as-student-detail-meta-table {
    display: block;
    overflow: visible;
    white-space: normal;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .as-table.as-student-detail-meta-table thead {
    display: none;
  }

  .as-table.as-student-detail-meta-table tbody,
  .as-table.as-student-detail-meta-table tr {
    display: block;
  }

  .as-table.as-student-detail-meta-table tr {
    padding: 0.7rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  }

  .as-table.as-student-detail-meta-table td {
    min-width: 0;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(112px, 0.42fr) minmax(0, 1fr);
    gap: 0.6rem;
    align-items: start;
    padding: 0.42rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
    white-space: normal;
  }

  .as-table.as-student-detail-meta-table td:last-child {
    border-bottom: 0;
  }

  .as-table.as-student-detail-meta-table td::before {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .as-table.as-student-detail-meta-table td:nth-child(1)::before {
    content: "Žiak";
  }

  .as-table.as-student-detail-meta-table td:nth-child(2)::before {
    content: "Telefón";
  }

  .as-table.as-student-detail-meta-table td:nth-child(3)::before {
    content: "Začiatok";
  }

  .as-table.as-student-detail-meta-table td:nth-child(4)::before {
    content: "Posledné prihlásenie";
  }

  .as-admin-card,
  .as-table,
  .as-table td,
  .as-table th {
    overflow-wrap: anywhere;
  }

  .as-table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    box-shadow: inset -12px 0 18px -18px rgba(15, 23, 42, 0.35);
  }

  .as-table th,
  .as-table td {
    min-width: 104px;
    padding: 0.55rem 0.58rem;
    white-space: nowrap;
  }

  .as-table th:first-child,
  .as-table td:first-child {
    min-width: 150px;
  }

  .as-day-group-row td {
    min-width: 100%;
    white-space: normal;
  }

  .as-table .as-action-btn {
    width: 100%;
    min-width: 118px;
  }

  .as-student-bookings-table,
  .as-student-slots-table,
  .as-students-list-table,
  .as-instructor-rides-table,
  .as-admin-rides-table {
    display: block;
    overflow: visible;
    white-space: normal;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .as-student-bookings-table thead,
  .as-student-slots-table thead,
  .as-students-list-table thead,
  .as-instructor-rides-table thead,
  .as-admin-rides-table thead {
    display: none;
  }

  .as-student-bookings-table tbody,
  .as-student-slots-table tbody,
  .as-students-list-table tbody,
  .as-instructor-rides-table tbody,
  .as-admin-rides-table tbody,
  .as-student-bookings-table tr,
  .as-student-slots-table tr,
  .as-students-list-table tr,
  .as-instructor-rides-table tr,
  .as-admin-rides-table tr {
    display: block;
  }

  .as-student-bookings-table tr:not(.as-day-group-row),
  .as-student-slots-table tr:not(.as-day-group-row),
  .as-students-list-table tr:not(.as-day-group-row),
  .as-instructor-rides-table tr:not(.as-day-group-row),
  .as-admin-rides-table tr:not(.as-day-group-row) {
    margin: 0 0 0.8rem;
    padding: 0.7rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  }

  .as-student-bookings-table td,
  .as-student-slots-table td,
  .as-students-list-table td,
  .as-instructor-rides-table td,
  .as-admin-rides-table td {
    min-width: 0;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(92px, 0.42fr) minmax(0, 1fr);
    gap: 0.6rem;
    align-items: start;
    padding: 0.42rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
    white-space: normal;
  }

  .as-student-bookings-table tr:not(.as-day-group-row) td:last-child,
  .as-student-slots-table tr:not(.as-day-group-row) td:last-child,
  .as-students-list-table tr:not(.as-day-group-row) td:last-child,
  .as-instructor-rides-table tr:not(.as-day-group-row) td:last-child,
  .as-admin-rides-table tr:not(.as-day-group-row) td:last-child {
    border-bottom: 0;
  }

  .as-student-bookings-table td::before,
  .as-student-slots-table td::before,
  .as-students-list-table td::before,
  .as-instructor-rides-table td::before,
  .as-admin-rides-table td::before {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .as-student-bookings-table td[colspan],
  .as-student-slots-table td[colspan],
  .as-students-list-table td[colspan],
  .as-instructor-rides-table td[colspan],
  .as-admin-rides-table td[colspan] {
    display: block;
    min-width: 0;
    width: 100%;
    padding: 0.8rem;
  }

  .as-student-bookings-table td[colspan]::before,
  .as-student-slots-table td[colspan]::before,
  .as-students-list-table td[colspan]::before,
  .as-instructor-rides-table td[colspan]::before,
  .as-admin-rides-table td[colspan]::before {
    content: none;
  }

  .as-student-bookings-table td:nth-child(1)::before,
  .as-student-slots-table td:nth-child(1)::before {
    content: "Typ";
  }

  .as-student-bookings-table td:nth-child(2)::before,
  .as-student-slots-table td:nth-child(2)::before {
    content: "Dátum";
  }

  .as-student-bookings-table td:nth-child(3)::before,
  .as-student-slots-table td:nth-child(3)::before {
    content: "Od";
  }

  .as-student-bookings-table td:nth-child(4)::before,
  .as-student-slots-table td:nth-child(4)::before {
    content: "Do";
  }

  .as-student-bookings-table td:nth-child(5)::before,
  .as-student-slots-table td:nth-child(5)::before {
    content: "Inštruktor";
  }

  .as-student-bookings-table td:nth-child(6)::before {
    content: "Stav";
  }

  .as-student-bookings-table td:nth-child(7)::before,
  .as-student-slots-table td:nth-child(6)::before {
    content: "Akcie";
  }

  .as-students-list-table td:nth-child(1)::before {
    content: "Meno";
  }

  .as-students-list-table td:nth-child(2)::before {
    content: "Začiatok";
  }

  .as-students-list-table td:nth-child(3)::before {
    content: "Odjazdené";
  }

  .as-students-list-table td:nth-child(4)::before {
    content: "Detail";
  }

  .as-instructor-rides-table td:nth-child(1)::before {
    content: "Typ";
  }

  .as-instructor-rides-table td:nth-child(2)::before {
    content: "Dátum";
  }

  .as-instructor-rides-table td:nth-child(3)::before {
    content: "Od";
  }

  .as-instructor-rides-table td:nth-child(4)::before {
    content: "Do";
  }

  .as-instructor-rides-table td:nth-child(5)::before {
    content: "Stav";
  }

  .as-instructor-rides-table td:nth-child(6)::before {
    content: "Žiak";
  }

  .as-instructor-rides-table td:nth-child(7)::before {
    content: "Akcia";
  }

  .as-admin-rides-table td:nth-child(1)::before {
    content: "Inštruktor";
  }

  .as-admin-rides-table td:nth-child(2)::before {
    content: "Typ";
  }

  .as-admin-rides-table td:nth-child(3)::before {
    content: "Dátum";
  }

  .as-admin-rides-table td:nth-child(4)::before {
    content: "Od";
  }

  .as-admin-rides-table td:nth-child(5)::before {
    content: "Do";
  }

  .as-admin-rides-table td:nth-child(6)::before {
    content: "Stav";
  }

  .as-admin-rides-table td:nth-child(7)::before {
    content: "Žiak";
  }

  .as-admin-rides-table td:nth-child(8)::before {
    content: "Akcie";
  }

  .as-student-bookings-table .as-day-group-row,
  .as-student-slots-table .as-day-group-row,
  .as-instructor-rides-table .as-day-group-row,
  .as-admin-rides-table .as-day-group-row {
    margin: 0.85rem 0 0.45rem;
  }

  .as-student-bookings-table .as-day-group-row td,
  .as-student-slots-table .as-day-group-row td,
  .as-instructor-rides-table .as-day-group-row td,
  .as-admin-rides-table .as-day-group-row td {
    display: block;
    min-width: 0;
    width: 100%;
    padding: 0.48rem 0.65rem;
    border-radius: 12px;
    white-space: normal;
  }

  .as-student-bookings-table .as-day-group-row td::before,
  .as-student-slots-table .as-day-group-row td::before,
  .as-instructor-rides-table .as-day-group-row td::before,
  .as-admin-rides-table .as-day-group-row td::before {
    content: none;
  }

  .as-student-bookings-table form,
  .as-student-slots-table form,
  .as-students-list-table .as-action-btn,
  .as-instructor-rides-table form,
  .as-admin-rides-table form,
  .as-admin-rides-table .as-admin-calendar-actions {
    width: 100%;
  }

  .as-admin-rides-table .as-admin-calendar-cancel-form .as-action-btn {
    width: 100%;
  }

  .map-wrap iframe {
    min-height: 220px;
  }
}

@media (max-width: 430px) {
  :root {
    --header-offset: 88px;
  }

  body {
    overflow-x: hidden;
  }

  h1 {
    font-size: clamp(1.85rem, 11vw, 2.35rem);
  }

  .site-header {
    gap: 0.55rem;
  }

  .logo img {
    width: 58px;
  }

  .site-header > .btn {
    padding: 0.48rem 0.62rem;
    font-size: 0.76rem;
  }

  .mobile-menu-toggle {
    min-height: 36px;
    padding: 0.48rem 0.68rem;
    font-size: 0.78rem;
  }

  .main-nav {
    grid-template-columns: 1fr 1fr;
  }

  .contact-form label.consent {
    font-size: 0.84rem;
  }

  .gallery-grid img {
    height: 190px;
  }

  .as-hour-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

