/* ==========================================================================
   Action Driving School - Main Stylesheet
   No external CDN dependencies; local fonts & Bootstrap 5.3.3 compatible
   ========================================================================== */

@font-face {
  font-family: "Arvo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/arvo-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Arvo";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/arvo-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Arvo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/arvo-bold.woff2") format("woff2");
}

@font-face {
  font-family: "Arvo";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/arvo-bold-italic.woff2") format("woff2");
}

:root {
  --ad-bg: #ffffff;
  --ad-red: #dd3333;
  --ad-blue: #156fbf;
  --ad-blue-check: rgba(70, 135, 191, 0.91);
  --ad-sage: #84b777;
  --ad-sage-bg: rgba(132, 183, 119, 0.3);
  --ad-green-heading: #5bb745;
  --ad-green-btn: #74ce5f;
  --ad-green-hover: #3a9026;
  --ad-green-3d: #6ab165;
  --ad-green-3d-shadow: #4f934b;
  --ad-text: #777777;
  --ad-heading-dark: #222222;
  --ad-link: #2e2e2e;
  --ad-border-light: #ececec;
  --ad-cta-home-bg: #474747;
  --ad-cta-sub-bg: #454545;
  --ad-footer-bg: #3f3f3f;
  --ad-contact-bg: #f0f0f0;
  --ad-social-blue: #1e73be;
  --ad-social-hover: #81d742;
  --ad-font-body: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ad-font-heading: "Arvo", Georgia, serif;
  --ad-font-comic: "Comic Sans MS", "Chalkboard SE", "Comic Neue", cursive;
}

/* Base Reset & Layout */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--ad-bg);
  color: var(--ad-text);
  font-family: var(--ad-font-body);
  font-size: 14px;
  line-height: 1.66em;
  font-weight: 400;
  overflow-x: hidden;
}

.ad-container {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

a {
  color: var(--ad-link);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: var(--ad-green-heading);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ad-font-heading);
  line-height: 1.3em;
  margin-top: 0;
}

/* ==========================================================================
   Hero Slider (Homepage)
   ========================================================================== */
.hero-slider {
  position: relative;
  width: 100%;
  height: 755px;
  min-height: 440px;
  overflow: hidden;
  background-color: #1a1818;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.85s ease, visibility 0.85s ease;
  z-index: 1;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 68px 20px 60px;
  text-align: center;
  pointer-events: none;
}

.hero-line {
  display: inline-block;
  font-family: var(--ad-font-comic);
  font-weight: 700;
  color: #ffffff;
  background-color: rgba(26, 24, 24, 0.62);
  border-radius: 3px;
  padding: 4px 12px;
  line-height: 1.35;
  margin: 0;
  text-transform: none;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.is-active .hero-line {
  opacity: 1;
  transform: translateY(0);
}

.hero-slide.is-active .hero-line-1 {
  transition-delay: 0.1s;
}

.hero-slide.is-active .hero-line-2 {
  transition-delay: 0.3s;
}

.hero-slide.is-active .hero-line-3 {
  transition-delay: 0.5s;
}

.hero-slide.is-active .hero-line-4 {
  transition-delay: 0.7s;
}

.hero-line-1 {
  font-size: 32px;
  margin-bottom: 58px;
  letter-spacing: 0.5px;
}

.hero-line-2 {
  font-size: 34px;
  margin-bottom: 48px;
}

.hero-line-3 {
  font-size: 34px;
  margin-bottom: 46px;
}

.hero-line-4 {
  font-size: 32px;
}

.hero-controls {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-ctrl-btn {
  background: transparent;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  padding: 4px 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero-ctrl-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.hero-dots {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background-color: transparent;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.hero-dot.is-active {
  background-color: #ffffff;
}

/* ==========================================================================
   Homepage Blue Features & Registration Band
   ========================================================================== */
.blue-features-band {
  background-color: var(--ad-blue);
  padding: 45px 0 65px;
  color: #ffffff;
}

.blue-band-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  margin: 0 0 28px;
}

.blue-band-divider-bottom {
  margin-top: 18px;
  margin-bottom: 42px;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.check-list-white li {
  color: #ffffff;
  font-style: italic;
  font-weight: 700;
  font-size: 14px;
}

.check-list-blue li {
  color: var(--ad-text);
  font-size: 14px;
  margin-bottom: 12px;
}

.check-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
}

.check-icon-white {
  fill: #ffffff;
}

.check-icon-blue {
  fill: var(--ad-blue-check);
}

.cta-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.title-box {
  width: 100%;
  background-color: var(--ad-sage-bg);
  border: 2px solid var(--ad-sage);
  color: #ffffff;
  font-family: var(--ad-font-heading);
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.btn-3d-success {
  position: relative;
  display: inline-block;
  background-color: var(--ad-green-3d);
  color: #ffffff;
  font-family: var(--ad-font-heading);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
  padding: 16px 24px;
  border-radius: 5px;
  border: 0;
  box-shadow: 0 5px 0 var(--ad-green-3d-shadow);
  transition: background-color 0.2s ease, box-shadow 0.15s ease, transform 0.15s ease, color 0.2s ease;
  text-align: center;
}

.btn-3d-success:hover {
  background-color: #61a85c;
  color: #f7f7f7;
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--ad-green-3d-shadow);
}

.btn-3d-success:active {
  color: #f2f2f2;
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--ad-green-3d-shadow);
}

/* ==========================================================================
   Homepage Welcome & Why Choose Us Section
   ========================================================================== */
.welcome-section {
  padding: 80px 0 60px;
  background-color: var(--ad-bg);
  text-align: center;
}

.welcome-gallery-img {
  max-width: 673px;
  width: 100%;
  height: auto;
  display: inline-block;
  margin-bottom: 24px;
}

.welcome-heading {
  color: var(--ad-red);
  font-family: var(--ad-font-heading);
  font-size: 28px;
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

.welcome-copy {
  max-width: 960px;
  margin: 0 auto 28px;
  color: var(--ad-text);
  font-size: 13px;
  line-height: 1.85;
  text-transform: uppercase;
}

.welcome-copy-last {
  margin-bottom: 0;
}

/* ==========================================================================
   Homepage We Provide & Useful Links Section
   ========================================================================== */
.provide-links-section {
  padding: 10px 0 65px;
  background-color: var(--ad-bg);
}

.section-divider-line {
  border: 0;
  border-top: 1px solid #e2e2e2;
  margin: 0 0 52px;
}

.col-heading-red {
  color: var(--ad-red);
  font-family: var(--ad-font-heading);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.col-heading-spacer {
  color: #ffffff;
  font-family: var(--ad-font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 22px;
  user-select: none;
}

.useful-links-list {
  margin: 0;
  padding-left: 18px;
  list-style-type: disc;
}

.useful-links-list li {
  margin-bottom: 10px;
}

.useful-links-list a {
  color: var(--ad-link);
  text-decoration: underline;
  font-size: 14px;
}

.useful-links-list a:hover {
  color: var(--ad-green-heading);
}

/* ==========================================================================
   Bottom CTA Banner (Homepage, Drivers ED, Contact)
   ========================================================================== */
.cta-banner {
  background-color: var(--ad-cta-home-bg);
  padding: 36px 0;
}

.cta-banner-subpage {
  background-color: var(--ad-cta-sub-bg);
}

.cta-banner-heading {
  color: #ffffff;
  font-family: var(--ad-font-heading);
  font-size: 28px;
  font-weight: 400;
  margin: 0;
  text-transform: none;
}

.cta-banner-heading-upper {
  text-transform: uppercase;
}

.btn-cta-blue {
  display: inline-block;
  background-color: var(--ad-blue-check);
  color: #ffffff;
  font-family: var(--ad-font-heading);
  font-size: 14px;
  font-weight: 700;
  padding: 16px 34px;
  border-radius: 4px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.btn-cta-blue:hover {
  background-color: var(--ad-green-hover);
  color: #ffffff;
}

.btn-cta-green {
  display: inline-block;
  background-color: var(--ad-green-btn);
  color: #ffffff;
  font-family: var(--ad-font-heading);
  font-size: 14px;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 4px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.btn-cta-green:hover {
  background-color: var(--ad-green-hover);
  color: #ffffff;
}

/* ==========================================================================
   Subpage Common Content & Titles
   ========================================================================== */
.subpage-section {
  padding: 36px 0 60px;
  background-color: var(--ad-bg);
}

.page-title-comic {
  color: var(--ad-red);
  font-family: var(--ad-font-comic);
  font-size: 35px;
  font-weight: 500;
  line-height: 1.3;
  text-transform: initial;
  letter-spacing: 1px;
  margin-bottom: 32px;
}

.page-title-comic-wide {
  letter-spacing: 2px;
}

/* Fancy Title with Repeating Striped Line (Courses Page) */
.fancy-lined-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--ad-font-heading);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--ad-sage);
  text-transform: none;
  margin-bottom: 22px;
}

.fancy-lined-title::after {
  content: "";
  flex: 1;
  height: 10px;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(0, 0, 0, 0.08),
    rgba(0, 0, 0, 0.08) 1px,
    transparent 1px,
    transparent 4px
  );
}

.fancy-lined-title-sm {
  font-size: 15px;
  font-weight: 700;
  color: var(--ad-green-heading);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 32px;
  margin-bottom: 22px;
}

.courses-block {
  margin-bottom: 34px;
}

.courses-block p {
  margin-bottom: 18px;
}

.courses-lines {
  margin-bottom: 34px;
  line-height: 1.85;
}

.courses-ol {
  padding-left: 22px;
  margin-bottom: 10px;
}

.courses-ol li {
  margin-bottom: 6px;
}

/* ==========================================================================
   Driving Tips Accordion
   ========================================================================== */
.tips-intro {
  margin-bottom: 28px;
}

.mk-accordion {
  border: 1px solid var(--ad-border-light);
  background-color: #ffffff;
  margin-bottom: 20px;
}

.mk-accordion-item {
  border-bottom: 1px solid var(--ad-border-light);
}

.mk-accordion-item:last-child {
  border-bottom: 0;
}

.mk-accordion-trigger {
  width: 100%;
  background-color: #ffffff;
  border: 0;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  color: var(--ad-heading-dark);
  font-family: var(--ad-font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 22px;
  transition: background-color 0.2s ease;
}

.mk-accordion-trigger:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.mk-accordion-chevron {
  width: 10px;
  height: 10px;
  fill: #999999;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.mk-accordion-item.is-open .mk-accordion-chevron {
  transform: rotate(90deg);
}

.mk-accordion-panel {
  display: none;
  padding: 6px 24px 20px 34px;
  color: var(--ad-text);
  font-size: 14px;
  line-height: 1.7;
}

.mk-accordion-item.is-open .mk-accordion-panel {
  display: block;
}

.mk-accordion-panel ul {
  margin: 0;
  padding-left: 18px;
}

.mk-accordion-panel li {
  margin-bottom: 8px;
}

/* ==========================================================================
   FAQs Page
   ========================================================================== */
.faq-filter-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.faq-filter-btn {
  border: 1px solid #e2e2e2;
  background-color: #ededed;
  color: #555555;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.faq-filter-btn:hover,
.faq-filter-btn.is-active {
  background-color: #dcdcdc;
  color: #222222;
}

.faq-list {
  border: 1px solid var(--ad-border-light);
  background-color: #ffffff;
}

.faq-item {
  border-bottom: 1px solid var(--ad-border-light);
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-trigger {
  width: 100%;
  background-color: #ffffff;
  border: 0;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  cursor: pointer;
  color: var(--ad-heading-dark);
  font-family: var(--ad-font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 22px;
  transition: background-color 0.2s ease;
}

.faq-trigger:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.faq-trigger-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.faq-q-icon {
  color: #b5b5b5;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  line-height: 22px;
}

.faq-item.is-open .mk-accordion-chevron {
  transform: rotate(90deg);
}

.faq-answer {
  display: none;
  padding: 6px 24px 20px 44px;
  color: var(--ad-text);
  font-size: 14px;
  line-height: 1.7;
}

.faq-item.is-open .faq-answer {
  display: block;
}

.faq-question-blue {
  display: block;
  color: #2c6ea8;
  font-weight: 600;
  margin-bottom: 8px;
}

/* ==========================================================================
   Drivers ED Page
   ========================================================================== */
.drivers-ed-h4 {
  color: var(--ad-green-heading);
  font-family: var(--ad-font-heading);
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.drivers-ed-content p {
  margin-bottom: 22px;
}

/* ==========================================================================
   Contact Page
   ========================================================================== */
.contact-map-section {
  position: relative;
  width: 100%;
  height: 450px;
  border-bottom: 5px solid var(--ad-green-heading);
  background-color: #e8ecef;
  overflow: hidden;
}

.contact-map-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.contact-info-section {
  padding: 75px 0 90px;
  background-color: var(--ad-bg);
}

.contact-col-heading {
  color: var(--ad-red);
  font-family: var(--ad-font-heading);
  font-size: 22px;
  font-weight: 700;
  text-transform: none;
  margin-bottom: 18px;
}

.contact-form-section {
  background-color: var(--ad-contact-bg);
  padding: 75px 0 60px;
}

.classic-form-row {
  display: flex;
  align-items: stretch;
  margin-bottom: 12px;
  background-color: #ffffff;
  border: 1px solid #e3e3e3;
}

.classic-form-row-area {
  align-items: flex-start;
}

.classic-form-icon {
  width: 46px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #e3e3e3;
  background-image: url("../images/backgrounds/contact-inputs-bg.png");
  background-repeat: repeat-y;
  background-position: left top;
  flex-shrink: 0;
}

.classic-form-icon-area {
  padding-top: 14px;
  min-height: 180px;
  align-items: flex-start;
}

.classic-form-icon svg {
  width: 16px;
  height: 16px;
  fill: #8c8c8c;
}

.classic-form-input,
.classic-form-textarea {
  width: 100%;
  border: 0;
  background-color: #ffffff;
  color: #555555;
  font-family: var(--ad-font-body);
  font-size: 13px;
  padding: 11px 14px;
  outline: none;
}

.classic-form-textarea {
  min-height: 180px;
  resize: vertical;
}

.classic-form-input::placeholder,
.classic-form-textarea::placeholder {
  color: #8c8c8c;
}

.classic-form-submit {
  background-color: var(--ad-blue-check);
  color: #ffffff;
  border: 0;
  font-family: var(--ad-font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 14px 36px;
  margin-top: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.classic-form-submit:hover {
  background-color: #366da1;
}

.socialise-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.socialise-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--ad-social-blue);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.socialise-btn:hover {
  background-color: var(--ad-social-hover);
  color: #ffffff;
}

.socialise-btn svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
}

/* Form Feedback Alert */
.form-feedback {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 3px;
  font-size: 13px;
  display: none;
}

.form-feedback.is-visible {
  display: block;
}

.form-feedback-success {
  background-color: #dff0d8;
  color: #2b542c;
  border: 1px solid #c1e2b3;
}

.form-feedback-error {
  background-color: #f2dede;
  color: #a94442;
  border: 1px solid #ebccd1;
}

.classic-form-input.is-invalid,
.classic-form-textarea.is-invalid,
.footer-form-input.is-invalid,
.footer-form-textarea.is-invalid {
  border-color: #dc3545;
}

.classic-form-submit:disabled,
.footer-form-submit:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

/* ==========================================================================
   Back-to-Top Floating Button
   ========================================================================== */
.go-top-btn {
  position: fixed;
  bottom: 15px;
  right: 15px;
  width: 45px;
  height: 45px;
  background-color: rgba(0, 0, 0, 0.22);
  color: #ffffff;
  border: 0;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease, background-color 0.2s ease;
  z-index: 999;
}

.go-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
}

.go-top-btn:hover {
  background-color: rgba(0, 0, 0, 0.35);
}

.go-top-btn svg {
  width: 16px;
  height: 16px;
  fill: #ffffff;
}
