/* Main section wrapper */
.module-cta-section {
  background-color: #f5f5f5; /* Light grey background */
  padding: 50px 20px; /* Adds space above and below */
  text-align: center; /* Centers all the text and the button */
}

/* Inner container to control width */
.module-cta-container {
  max-width: 1100px; /* Keeps the content from getting too wide */
  margin: 0 auto; /* Centers the container on the page */
}

/* Header (h3) styling */
.module-cta-header h3 {
  font-size: 2rem; /* Large, clear heading */
  font-weight: 700;
  color: #333;
  margin-top: 0;
  margin-bottom: 12px;
  line-height: 1.3;
}

/* Subheader (p) styling */
.module-cta-subheader p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 25px; /* Space between subheader and button */
}

/* Small text for the disclaimer */
.module-cta-subheader small {
  display: block;
  font-size: 0.9rem;
  color: #777;
  margin-top: 8px;
}

/* Button link container */
.module-cta-link {
  /* No specific styles needed as text-align is handled by parent */
}

/* The button itself */
.module-cta-link .button {
  display: inline-block; /* Allows for padding and centering */
  background-color: #ff6600; /* Brand orange color */
  color: #ffffff;
  padding: 14px 28px; /* Generous button size */
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px; /* Pill-shaped button */
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.module-cta-link .button:hover {
  background-color: #e65c00; /* A slightly darker orange for hover */
  transform: translateY(-2px); /* Lifts the button slightly on hover */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .module-cta-header h3 {
    font-size: 1.8rem;
  }
  .module-cta-subheader p {
    font-size: 1rem;
  }
}

.nv-car-make-table-section-wrapper {
  margin: 0;
  padding: 1rem;
  background-color: #fff;
  display: flex;
  justify-content: center;
}

.nv-car-make-table-container {
  max-width: 1200px; /* Adjusted to match the new reference */
  width: 100%;
}

.nv-car-make-car-model-table {
  border-collapse: collapse;
  width: 100%;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1); /* Added shadow */
}

.nv-car-make-car-model-table th,
.nv-car-make-car-model-table td {
  padding: 10px 12px; /* Adjusted padding */
  text-align: left;
  border: 1px solid #ccc; /* Adjusted border */
  font-size: 15px; /* Adjusted font size */
}

.nv-car-make-car-model-table th {
  background-color: #2eaef2; /* Adjusted background color */
  color: #fff;
  font-weight: 600;
}

/* Mobile styles */
@media (max-width: 768px) {
  .nv-car-make-car-model-table thead {
    display: none;
  }

  .nv-car-make-car-model-table,
  .nv-car-make-car-model-table tbody,
  .nv-car-make-car-model-table tr,
  .nv-car-make-car-model-table td {
    display: block;
    width: 100%;
  }

  .nv-car-make-car-model-table tr {
    margin-bottom: 1rem; /* Adjusted margin */
    border: 1px solid #ccc; /* Adjusted border */
    border-radius: 8px; /* Adjusted border-radius */
    overflow: hidden;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1); /* Added shadow for mobile cards */
  }

  .nv-car-make-car-model-table td {
    border: none;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 50%; /* Adjusted padding */
    font-size: 14px; /* Adjusted font size */
    min-height: 40px; /* Added min-height */
  }

  .nv-car-make-car-model-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px; /* Adjusted left position */
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    color: #333;
    white-space: nowrap;
  }

  .nv-car-make-car-model-table td:last-child {
    border-bottom: none;
  }

  /* Specific styling for the first column (Model) on mobile */
  .nv-car-make-car-model-table td:nth-of-type(1) {
    border-bottom: 1px solid #eee; /* Separator between model and cost */
    font-weight: bold; /* Make model name bolder */
    color: #333; /* Darker color for model name */
    text-align: left; /* Align model name to the left */
    padding-left: 10px; /* Remove extra padding for the model name */
  }

  .nv-car-make-car-model-table td:nth-of-type(1)::before {
    content: "Model:"; /* Custom label for the first column */
    display: none; /* Hide the pseudo-element for the model name */
  }

  /* Specific styling for the second column (Cost) on mobile */
  .nv-car-make-car-model-table td:nth-of-type(2)::before {
    content: "Replacement Cost:"; /* Custom label for the second column */
  }
}
