/* ===========================
   MATURE DRIVING COURSE - MAIN STYLES
   =========================== */

/* --- Google Fonts (loaded locally via @import fallback) --- */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

:root {
  --primary: #003087;
  --secondary: #FDB913;
  --accent: #CC0000;
  --text-dark: #1a1a2e;
  --text-muted: #6c757d;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border: #dee2e6;
  --green: #28a745;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 15px;
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ============================
   HEADER / NAVBAR
   ============================ */
.site-header {
  background: #fff;
  border-bottom: none;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.main-nav {
  align-items: center !important;
  min-height: 56px;
}

.main-nav .navbar-collapse {
  align-items: center !important;
}

/* Logo block container */
.header-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  background: var(--secondary);
  /* #FDB913 */
  padding: 8px 14px;
  color: var(--primary) !important;
  font-family: 'Open Sans', Arial, sans-serif;
  border-radius: 0;
  text-decoration: none;
  transition: opacity 0.2s;
}

.header-logo:hover {
  opacity: 0.95;
}

.header-logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

/* Tablet viewports — collapsed menu, logo only */
@media (min-width: 768px) and (max-width: 991px) {
  .header-logo {
    padding: 8px 16px;
  }

  .header-logo-img {
    height: 40px;
  }
}

/* Desktop viewports — logo + nav on one row */
@media (min-width: 992px) {
  .site-header {
    padding: 6px 0;
  }

  .main-nav {
    min-height: 60px;
  }

  .header-logo {
    padding: 6px 16px;
  }

  .header-logo-img {
    height: 42px;
  }
}

/* Navigation Links */
.main-nav .navbar-nav .nav-link {
  color: var(--primary) !important;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 10px !important;
  text-transform: none;
  position: relative;
  letter-spacing: 0.1px;
  transition: color 0.2s;
  white-space: nowrap;
}

/* Desktop nav-link fit: tighten spacing so all items sit on one row */
@media (min-width: 992px) and (max-width: 1199px) {
  .header-logo {
    padding: 6px 10px;
  }

  .header-logo-img {
    height: 32px;
  }

  .main-nav .navbar-nav .nav-link {
    font-size: 11.5px;
    padding: 10px 4px !important;
  }

  .header-right-cta {
    min-width: 170px;
    gap: 4px 8px;
  }

  .header-phone {
    font-size: 11px;
  }

  .btn-start-course {
    font-size: 10.5px;
    padding: 5px 10px;
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .header-logo {
    padding: 6px 12px;
  }

  .header-logo-img {
    height: 47px;
  }

  .main-nav .navbar-nav .nav-link {
    font-size: 12.5px;
    padding: 10px 6px !important;
  }

  .header-right-cta {
    min-width: 210px;
    gap: 6px 10px;
  }

  .header-phone {
    font-size: 13px;
  }

  .btn-start-course {
    font-size: 11.5px;
    padding: 7px 14px;
  }
}

@media (min-width: 1400px) {
  .main-nav .navbar-nav .nav-link {
    font-size: 13.5px;
    padding: 10px 12px !important;
  }

  .header-right-cta {
    min-width: 230px;
  }
}

.main-nav .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 3px;
  background: var(--secondary);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.main-nav .navbar-nav .nav-link:hover::after,
.main-nav .navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

/* Header Right Area */
.header-right-cta {
  display: flex;
  flex-flow: row wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px 12px;
  width: max-content;
}

.header-phone {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

@media (min-width: 992px) {
  .header-right-cta {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: end;
    align-items: center;
    width: max-content;
    flex-shrink: 0;
  }

  .header-phone {
    grid-column: 1 / span 2;
    justify-self: end;
  }
}

.header-phone i {
  font-size: 13px;
}

.btn-start-course {
  background: var(--secondary);
  color: var(--primary) !important;
  font-weight: 800;
  font-size: 12px;
  padding: 8px 18px;
  border-radius: 4px;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}

.btn-start-course:hover {
  background: #e0a70e;
}

/* ============================
   HERO SECTION
   ============================ */
.hero-section {
  position: relative;
  min-height: 480px;
  background: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 50px 0;
}

.hero-bg-img {
  position: absolute;
  right: 0;
  top: 0;
  width: 58%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 1;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, #ffffff 70%, rgba(255, 255, 255, 0.9) 85%, rgba(255, 255, 255, 0) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero-content h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--primary);
  margin-bottom: 12px;
}

.hero-content h1 .text-yellow {
  color: var(--secondary) !important;
}

.hero-subtitle {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
  line-height: 1.4;
}

.hero-checks {
  margin-bottom: 28px;
}

.hero-checks li {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-checks .check-icon-ref {
  color: var(--primary);
  font-size: 16px;
  font-weight: 900;
}

.btn-start-now {
  background: var(--secondary);
  color: var(--primary);
  font-weight: 800;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 4px;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-start-now:hover {
  background: #e0a70e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(253, 185, 19, 0.4);
}

.hero-trust-line {
  margin-top: 16px;
  display: flex;
  gap: 18px;
  font-size: 12px;
  color: var(--primary);
  font-weight: 700;
}

.hero-trust-line span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-trust-line span i {
  font-size: 12px;
}

/* Price Badge floating on the right side */
.hero-price-badge {
  background: #ffffff;
  color: var(--primary);
  border-radius: 50%;
  width: 140px;
  height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: absolute;
  right: 12%;
  top: 58%;
  transform: translateY(-50%);
  z-index: 5;
  box-shadow: 0 4px 15px rgba(0, 48, 135, 0.15);
  border: 4px solid var(--secondary);
}

.hero-price-badge .only-txt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--primary);
}

.hero-price-badge .price-big {
  font-size: 40px;
  font-weight: 800;
  color: var(--primary);
  line-height: 0.95;
  margin: 2px 0;
}

.hero-price-badge .price-big sup {
  font-size: 18px;
  top: -12px;
}

.hero-price-badge .low-price {
  font-size: 9px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary);
}

/* ============================
   TRUST BADGES BAR
   ============================ */
.trust-bar {
  background: var(--primary);
  color: #fff;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 4;
}

.trust-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0 15px;
}

.trust-item:last-child {
  border-right: none;
}

.trust-item .t-icon {
  font-size: 24px;
  color: #ffffff;
}

.trust-item .t-text {
  display: flex;
  flex-direction: column;
}

.trust-item .t-text strong {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.trust-item .t-text span {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.85);
}

/* ============================
   SAVINGS SECTION
   ============================ */
.savings-section {
  padding: 80px 0;
  background: #f8fafc;
}

@media (min-width: 1200px) {
  .container-savings-wide {
    max-width: 1350px !important;
  }
}

@media (min-width: 1400px) {
  .container-savings-wide {
    max-width: 1480px !important;
  }
}

/* Card Styling */
.savings-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  padding: 40px;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Decorative Dots */
.card-grip-dots {
  position: absolute;
  top: 18px;
  left: 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.card-grip-dots span {
  width: 4px;
  height: 4px;
  background-color: #cbd5e1;
  border-radius: 50%;
}

/* Card 1: Calculator Text */
.savings-card h2 {
  font-size: 19px;
  font-weight: 800;
  color: var(--primary);
  text-align: center;
  margin-bottom: 6px;
  letter-spacing: 0.1px;
}

.savings-card .section-sub {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 25px;
}

.savings-card .calc-question {
  font-size: 14.5px;
  color: #64748b;
  text-align: center;
  margin-bottom: 20px;
}

/* Buttons */
.savings-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.savings-btn {
  flex: 1;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--primary);
  padding: 11px 0;
  border-radius: 6px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.savings-btn.active,
.savings-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* Arrow */
.calc-arrow {
  text-align: center;
  color: #94a3b8;
  font-size: 18px;
  margin-bottom: 20px;
}

.savings-card .calc-discount-label {
  font-size: 14.5px;
  color: #334155;
  text-align: center;
  margin-bottom: 15px;
  line-height: 1.5;
  padding: 0 5px;
}

/* Savings Display */
.savings-result-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 18px;
  gap: 6px;
}

.savings-amount {
  font-size: 48px;
  font-weight: 800;
  color: #10b981;
  /* green */
  margin: 0;
  line-height: 1;
}

.savings-period {
  font-size: 19px;
  font-weight: 700;
  color: var(--primary);
}

.calc-disclaimer {
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
  line-height: 1.5;
  margin-bottom: 25px;
}

.calc-start-btn {
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 14.5px;
  padding: 14px;
  border-radius: 6px;
  text-align: center;
  display: block;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s;
  border: none;
  width: 100%;
}

.calc-start-btn:hover {
  background: #002260;
  color: #ffffff;
}

/* Card 2: Why Mature Title */
.advantage-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--primary);
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.4;
  letter-spacing: 0.1px;
}

/* Items */
.advantage-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 26px;
}

.advantage-item:last-child {
  margin-bottom: 0;
}

.advantage-item .adv-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
  font-size: 22px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.advantage-item .adv-icon-circle img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.advantage-item .adv-content h5 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.advantage-item .adv-content p {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}

/* Card 3: Coastal Card styles */
.coastal-image {
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.coastal-image img {
  width: 100%;
  border-radius: 8px 8px 0 0;
  object-fit: cover;
  min-height: 310px;
}

.coastal-caption {
  background: var(--primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  padding: 22px 20px;
  text-align: center;
  line-height: 1.45;
}

.coastal-caption span {
  font-weight: 500;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.85);
  display: block;
  margin-top: 4px;
}

/* ============================
   WHY SECTION
   ============================ */
.why-section {
  padding: 50px 0;
  background: var(--bg-light);
}

.section-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--secondary);
  margin: 12px auto 0;
  border-radius: 2px;
}

.why-card {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg-white);
  border-radius: 10px;
  border: 1px solid var(--border);
  height: 100%;
  transition: box-shadow 0.2s, transform 0.2s;
}

.why-card:hover {
  box-shadow: 0 6px 20px rgba(0, 48, 135, 0.1);
  transform: translateY(-4px);
}

.why-card .card-icon {
  font-size: 38px;
  color: var(--primary);
  margin-bottom: 14px;
  display: block;
}

.why-card h5 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.why-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* ============================
   HOW IT WORKS
   ============================ */
.how-it-works {
  background: #f8fafc;
  padding: 40px 0 80px 0;
}

.how-works-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  padding: 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.how-works-card h2 {
  font-size: 19px;
  font-weight: 800;
  color: var(--primary);
  text-align: center;
  margin-bottom: 6px;
  letter-spacing: 0.1px;
}

.how-works-card .card-subtitle {
  font-size: 14.5px;
  color: #64748b;
  text-align: center;
  margin-bottom: 30px;
}

.steps-row-custom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.step-item-custom {
  flex: 1;
  text-align: center;
  position: relative;
}

.step-circle-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
}

.step-circle-custom {
  width: 70px;
  height: 70px;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: var(--primary);
  font-size: 24px;
}

.step-number-badge {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

.step-item-custom strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  line-height: 1.3;
}

.step-item-custom p {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.4;
  margin: 0;
  padding: 0 4px;
}

.step-arrow-custom {
  align-self: center;
  color: #cbd5e1;
  font-size: 18px;
  margin-top: -35px;
  /* offset alignment with circles */
}

/* Course Preview Layout */
.preview-row-custom {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-grow: 1;
  margin-bottom: 30px;
}

.preview-item-custom {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preview-thumb-wrapper {
  width: 100%;
  max-width: 120px;
  aspect-ratio: 4/3;
  margin-bottom: 15px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

.preview-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-item-custom strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  line-height: 1.3;
}

.preview-item-custom p {
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
  margin: 0;
}

.preview-start-btn {
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 14.5px;
  padding: 14px 40px;
  border-radius: 6px;
  text-align: center;
  display: inline-block;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s;
  border: none;
  margin: 0 auto;
}

.preview-start-btn:hover {
  background: #002260;
  color: #ffffff;
}

@media (max-width: 768px) {
  .steps-row-custom {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .step-arrow-custom {
    transform: rotate(90deg);
    margin-top: 0;
    margin-bottom: -10px;
  }

  .preview-row-custom {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .preview-item-custom {
    max-width: 250px;
  }
}

/* ============================
   TESTIMONIALS
   ============================ */
.testimonials-section {
  padding: 50px 0;
  background: var(--bg-light);
}

.testimonials-slider {
  position: relative;
  padding: 0 45px;
}

.testimonials-slider .owl-stage {
  display: flex;
}

.testimonials-slider .owl-item {
  display: flex;
  height: auto;
}

.testimonial-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  width: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-content-wrapper {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex-grow: 1;
}

.testimonial-avatar {
  flex-shrink: 0;
}

.testimonial-avatar img {
  width: 76px !important;
  height: 76px !important;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #cbd5e1;
}

.testimonial-details {
  flex-grow: 1;
}

.testimonial-details .stars {
  color: #FDB913;
  font-size: 13.5px;
  margin-bottom: 6px;
  line-height: 1;
}

.testimonial-details .quote {
  font-size: 13.5px;
  color: #334155;
  margin-bottom: 12px;
  line-height: 1.45;
  font-style: normal;
  font-weight: 500;
}

.testimonial-details .reviewer-info strong {
  font-size: 12.5px;
  display: block;
  color: #64748b;
  font-weight: 600;
}

.testimonial-details .reviewer-info span {
  font-size: 11.5px;
  color: #94a3b8;
  display: block;
  margin-top: 1px;
}

.testimonials-slider .owl-nav button.owl-prev,
.testimonials-slider .owl-nav button.owl-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent !important;
  border: none;
  color: #94a3b8 !important;
  font-size: 32px !important;
  line-height: 1;
  transition: color 0.2s;
  padding: 10px !important;
}

.testimonials-slider .owl-nav button.owl-prev:hover,
.testimonials-slider .owl-nav button.owl-next:hover {
  color: var(--primary) !important;
}

.testimonials-slider .owl-nav button.owl-prev {
  left: -15px;
}

.testimonials-slider .owl-nav button.owl-next {
  right: -15px;
}

@media (max-width: 576px) {
  .testimonials-slider {
    padding: 0 20px;
  }

  .testimonials-slider .owl-nav button.owl-prev {
    left: -5px;
  }

  .testimonials-slider .owl-nav button.owl-next {
    right: -5px;
  }
}

/* ============================
   INSURANCE LOGOS (REDESIGNED)
   ============================ */
.insurance-section {
  padding: 55px 0 50px 0;
  background: var(--bg-white);
  border-bottom: 1px solid #e2e8f0;
}

.insurance-section .ins-title {
  font-size: 23px;
  font-weight: 800;
  color: var(--primary);
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: 0.2px;
}

.insurance-section .ins-sub-text {
  font-size: 13.5px;
  color: #475569;
  text-align: center;
  margin-bottom: 35px;
  line-height: 1.5;
  font-weight: 500;
}

.insurance-section .ins-logos-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
  gap: 30px;
  margin-bottom: 35px;
}

.insurance-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  transition: transform 0.2s ease-in-out;
}

.insurance-logo-item:hover {
  transform: scale(1.06);
}

.insurance-logo-item img {
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Individual logo scaling for visual balance */
.insurance-logo-item img.logo-state-farm {
  max-height: 34px;
}

.insurance-logo-item img.logo-farmers {
  max-height: 48px;
}

.insurance-logo-item img.logo-aaa {
  max-height: 42px;
}

.insurance-logo-item img.logo-allstate {
  max-height: 46px;
}

.insurance-logo-item img.logo-mercury {
  max-height: 38px;
}

.insurance-logo-item img.logo-progressive {
  max-height: 25px;
}

.insurance-section .ins-bottom-text {
  font-size: 12.5px;
  color: #64748b;
  text-align: center;
  margin: 0;
  line-height: 1.5;
  font-weight: 500;
}

/* Responsive grid for logos */
@media (max-width: 991px) {
  .insurance-section .ins-logos-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 25px;
  }

  .insurance-logo-item {
    height: 50px;
  }

  .insurance-logo-item img.logo-state-farm {
    max-height: 28px;
  }

  .insurance-logo-item img.logo-farmers {
    max-height: 40px;
  }

  .insurance-logo-item img.logo-aaa {
    max-height: 34px;
  }

  .insurance-logo-item img.logo-allstate {
    max-height: 38px;
  }

  .insurance-logo-item img.logo-mercury {
    max-height: 32px;
  }

  .insurance-logo-item img.logo-progressive {
    max-height: 20px;
  }
}

@media (max-width: 576px) {
  .insurance-section {
    padding: 45px 0 40px 0;
  }

  .insurance-section .ins-title {
    font-size: 19px;
    margin-bottom: 12px;
    padding: 0 10px;
  }

  .insurance-section .ins-sub-text {
    font-size: 12.5px;
    margin-bottom: 25px;
    padding: 0 15px;
  }

  .insurance-section .ins-logos-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .insurance-section .ins-bottom-text {
    font-size: 11.5px;
    padding: 0 15px;
  }
}

/* ============================
   COMPARISON TABLE
   ============================ */
.comparison-section {
  padding: 80px 0;
  background: #f8fafc;
}

.comparison-section .section-title::after {
  display: none;
}

.comparison-section .row>[class*="col-"] {
  display: flex;
  flex-direction: column;
}

.table-responsive-wrapper {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.comparison-table {
  width: 100%;
  height: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #ffffff;
}

.comparison-table th {
  background: #ffffff;
  color: #64748b;
  padding: 16px 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.comparison-table th.our-col-header {
  color: var(--primary) !important;
  font-weight: 800;
  font-size: 14px;
}

.comparison-table th.typical-col-header {
  color: #475569;
  font-weight: 700;
  font-size: 14px;
}

.comparison-table td {
  padding: 15px 20px;
  border-bottom: 1px solid #e2e8f0;
  color: #475569;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table .our-course-col {
  background-color: #fffef2;
  /* subtle cream tint for column highlighting */
}

.comparison-table .check-yes {
  color: #10b981;
  /* beautiful medium green */
  font-size: 18px;
}

.comparison-table .check-text {
  color: #64748b;
  font-size: 13.5px;
  font-weight: 500;
}

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--primary);
}

/* ============================
   CTA SECTION
   ============================ */
.cta-section {
  background: linear-gradient(90deg, #090e54 0%, #090e54 48%, rgba(9, 14, 84, 0.88) 65%, rgba(9, 14, 84, 0.1) 100%), url('../images/other-images/coastal-highway.png') no-repeat right center;
  background-size: cover;
  padding: 50px 40px;
  border-radius: 12px;
  color: white;
  text-align: left;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.cta-section h3 {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 10px;
  text-align: left;
}

.cta-section .cta-sub {
  font-size: 16px;
  font-weight: 700;
  color: #c9f227;
  /* chartreuse / lime-yellow */
  line-height: 1.35;
  margin-bottom: 22px;
  text-align: left;
}

.cta-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: #ffffff;
}

.cta-section .cta-only {
  font-size: 13px;
  color: #cbd5e1;
  font-weight: 500;
  text-transform: capitalize;
  margin-bottom: 0;
}

.cta-price-amount {
  font-size: 54px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  display: inline-flex;
  align-items: flex-start;
}

.cta-currency {
  font-size: 24px;
  font-weight: 700;
  margin-top: 4px;
  margin-right: 2px;
}

.cta-decimals {
  font-size: 24px;
  font-weight: 700;
  margin-top: 4px;
}

.cta-section .btn-yellow {
  background: var(--secondary);
  color: var(--primary);
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 15px;
  border: none;
  transition: all 0.2s ease-in-out;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
}

.cta-section .btn-yellow:hover {
  background: #e0a70e;
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(253, 185, 19, 0.4);
}

.cta-trust-items {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 12px;
  color: #cbd5e1;
  font-weight: 600;
}

.cta-trust-items i {
  color: #ffffff;
  margin-right: 2px;
}

.trust-item-val {
  display: flex;
  align-items: center;
  gap: 4px;
}

.trust-item-sep {
  color: rgba(255, 255, 255, 0.35);
}

/* ============================
   FOOTER
   ============================ */
.site-footer {
  background: #1a1a2e;
  color: #a0aec0;
  padding: 40px 0 0;
  font-size: 13px;
}

.site-footer .footer-logo {
  margin-bottom: 14px;
}

.site-footer .footer-brand {
  font-size: 15px;
  font-weight: 700;
  color: var(--secondary);
  display: block;
  margin-bottom: 4px;
}

.site-footer p {
  font-size: 12px;
  line-height: 1.6;
}

.site-footer h6 {
  color: white;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.site-footer ul li {
  padding: 4px 0;
}

.site-footer ul li a {
  color: #a0aec0;
  font-size: 12px;
  transition: color 0.2s;
}

.site-footer ul li a:hover {
  color: var(--secondary);
}

.site-footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  font-size: 13px;
  margin-right: 6px;
  transition: background 0.2s;
}

.site-footer .social-links a:hover {
  background: var(--primary);
}

.footer-bottom {
  background: #111;
  padding: 14px 0;
  margin-top: 30px;
  font-size: 11px;
  color: #666;
}

.footer-bottom a {
  color: #888;
}

.footer-bottom a:hover {
  color: var(--secondary);
}

/* ============================
   UTILITY
   ============================ */
.btn-primary-custom {
  background: var(--primary);
  color: white;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  border: 2px solid var(--primary);
  transition: all 0.2s;
  display: inline-block;
}

.btn-primary-custom:hover {
  background: transparent;
  color: var(--primary);
}

.btn-yellow {
  background: var(--secondary);
  color: var(--primary);
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 15px;
  border: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
}

.btn-yellow:hover {
  background: #e0a70e;
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(253, 185, 19, 0.35);
}

.price-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
  display: block;
  margin-bottom: 2px;
}

.badge-dmv {
  background: var(--primary);
  color: white;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 600;
}

/*letter-spacing: 0.5px;
display: inline-flex;
align-items: center;
gap: 10px;
transition: background .2s;
margin-bottom: 14px;
}
*/

.btn-cta-start:hover {
  background: var(--yellow-dk);
  color: var(--navy);
}

.cta-trust-line {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.cta-trust-line i {
  margin-right: 2px;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: #080c3d;
  color: #cbd5e1;
  padding: 50px 0 0;
  font-size: 13px;
  font-family: 'Open Sans', Arial, sans-serif;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer h6 {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #ffffff;
  margin-bottom: 16px;
  font-family: 'Outfit', 'Open Sans', sans-serif;
}

.site-footer .footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px 0;
}

.site-footer .footer-col {
  width: 100%;
}

/* Tablet Layout */
@media (min-width: 576px) and (max-width: 991px) {

  .site-footer .col-1,
  .site-footer .col-2,
  .site-footer .col-3,
  .site-footer .col-4,
  .site-footer .col-5,
  .site-footer .col-6 {
    width: 50%;
    padding: 0 15px;
  }
}

/* Desktop Layout */
@media (min-width: 992px) {
  .site-footer .footer-grid {
    flex-wrap: nowrap;
    gap: 0;
  }

  .site-footer .col-1 {
    width: 22%;
    padding-right: 10px;
  }

  .site-footer .col-2 {
    width: 14%;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    padding-right: 15px;
  }

  .site-footer .col-3 {
    width: 13%;
    padding-left: 20px;
    padding-right: 10px;
  }

  .site-footer .col-4 {
    width: 21%;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    padding-right: 15px;
    padding-left: 15px;
  }

  .site-footer .col-5 {
    width: 13%;
    padding-left: 20px;
    padding-right: 10px;
  }

  .site-footer .col-6 {
    width: 17%;
    padding-left: 15px;
  }
}

/* Column 1: Yellow Logo Card */
.footer-logo-card {
  display: inline-flex;
  align-items: center;
  background: #fdb913;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none !important;
  width: 100%;
  box-sizing: border-box;
}

.footer-logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
  /* Optimize for High-DPI/Retina screens */
  image-rendering: -webkit-optimize-contrast;
}

@media (min-width: 576px) {
  .footer-logo-img {
    height: 40px;
  }
}

@media (min-width: 992px) {
  .footer-logo-img {
    height: 46px;
  }
}

.footer-logo-sub {
  font-size: 11.5px;
  font-weight: 500;
  color: #cbd5e1;
  margin-top: 10px;
  margin-bottom: 0;
  line-height: 1.4;
}

/* Links List */
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer ul li {
  padding: 4px 0;
}

.site-footer ul li a {
  color: #cbd5e1;
  font-size: 12.5px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.site-footer ul li a:hover {
  color: #fdb913;
}

/* Social icons in Column 2 */
.footer-social-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.footer-social-row a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-size: 12px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.footer-social-row a:hover {
  border-color: #fdb913;
  color: #fdb913;
  background: rgba(253, 185, 19, 0.1);
}

/* Column 4: Contact details */
.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-info .contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cbd5e1;
  font-size: 12.5px;
}

.footer-contact-info .contact-item i {
  color: #ffffff;
  font-size: 13px;
  width: 16px;
  text-align: center;
}

.footer-contact-info .contact-item a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-contact-info .contact-item a:hover {
  color: #fdb913;
}

.footer-contact-info .address-details {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.footer-contact-info .addr-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 12.5px;
}

.footer-contact-info .addr-sub,
.footer-contact-info .addr-hours {
  color: #cbd5e1;
  font-size: 11px;
}

/* Column 6: DMV Seal & Provider text */
.footer-seal-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-seal-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.footer-seal-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.seal-provider {
  font-size: 11px;
  color: #cbd5e1;
  font-weight: 600;
}

.seal-approved {
  font-size: 12px;
  color: #fdb913;
  font-weight: 700;
}

.seal-course {
  font-size: 12px;
  color: #ffffff;
  font-weight: 600;
}

/* Footer Bottom Bar */
.footer-bottom {
  background: #05082b;
  margin-top: 40px;
  padding: 16px 0;
  font-size: 11px;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: #fdb913;
}

/* Align header-less footer columns with list items of neighboring columns on tablet and desktop */
@media (min-width: 576px) {
  .footer-contact-info {
    margin-top: 30.5px;
  }

  .footer-seal-block {
    margin-top: 30.5px;
  }
}