.image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* ✅ 4 equal-width columns */
  gap: 16px;
  padding: 10px;
}

.close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

html {
  scroll-behavior: smooth;
}

:target {
  scroll-margin-top: 130px;
}

.performance {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.header {
  background-repeat: no-repeat;
  background-size: cover;
  /* Important: shows entire image */
  background-position: right center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-height: 300px;
}

.header h1 {
  font-size: 40px;
  width: 85%;
  font-weight: bold;
}

.header p {
  font-size: 20px;
  margin: 0;
  padding: 0px 55px;
  color: white;
  font-weight: 500;
  max-width: 50%;
  margin-bottom: 25px;
}

.header2 {
  background-image: url("../assets/genericmotorbackground.png");
  padding: 50px 55px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-height: 300px;
}

.header2 h1 {
  font-size: 40px;
  margin: 0;
  color: white;
  font-weight: 500;
  margin-bottom: 10px;
}

.header2 p {
  font-size: 20px;
  color: white;
  width: 42%;
  margin: 0;
}

.header2 ul {
  font-size: 20px;
  color: white;
  width: 42%;
}

.box-container {
  background-color: #F4F4F4;
  border: 2px solid darkgrey;
  padding: 10px;
  margin: 10px;
  border-radius: 10px;
  position: relative;
}

.box-container h2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding-bottom: 2px;
  position: relative;
}

.button-container {
  gap: 5px;
  padding-bottom: 2px;
  display: flex;
  align-items: center;
}

.button {
  background-color: #11286a;
  color: #ffffff;
  font-weight: bold;
  padding: 12px 18px;
  text-decoration: none;
  border: 2px solid #474747;
  border-radius: 6px;
  font-size: 14px;
  display: inline-block;
  text-align: center;
  transition: background-color 0.3s, transform 0.3s;
}

.button:hover {
  background-color: #f15900;
  color: white;
  transform: translateY(-1px);
}

.image-table {
  width: 100%;
  border-collapse: collapse;
}

/* .image-column {
  padding: 0;
  margin: 0;
  vertical-align:middle;
  text-align: center;
  height:90%;
}

.image {
  margin: 0;
  border: 2px solid #0c3a96;
  width: 70%;
  height: 80%;
  object-fit: cover;
  border-radius: 5px;
} */

.image-title {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 10;
  pointer-events: auto;
}

.content-column {
  vertical-align: top;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px;
}

.content-row1 {
  font-size: xx-large;
}

.content-row2 {
  font-size: 20px;
}

.content-row1,
.content-row2 {
  margin-bottom: 5px;
  padding: 5px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  box-sizing: border-box;
}

.button-container-inline {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 5px;
}

.grey-button {
  display: inline-block;
  padding: 12px 18px;
  text-decoration: none;
  border-radius: 6px;
  font-size: 18px;
  text-align: center;
  background-color: #8f8f8f;
  color: black;
}

.buynow {
  background-color: #11286a;
  color: white;
  font-weight: bold;
  padding: 12px 18px;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
  transition: transform 0.3s, background-color 0.3s;
}

.buynow:hover {
  background-color: #474747;
  transform: translateY(-1px);
}

.image-gallery {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}


.image-item {
  position: relative;
  width: 300px;
  border-radius: 5px;
  overflow: hidden;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.image-gallery-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

h3 {
  font-size: 14px;
  margin: 0;
  padding: 0;
  padding-top: 5px;
}

.show-details-button {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 10;
  background-color: #11286A;
  color: rgb(255, 255, 255);
  border: 1px solid black;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 14px;
  white-space: nowrap;
  pointer-events: auto;
}

.show-details-button:hover {
  background-color: #f15900;
  color: white;
}

.gallery-images {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 5px;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  font-size: 25px;
  font-weight: bold;
  color: white;
  background: red;
  padding: 0;
  text-align: center;
  line-height: 40px;
  cursor: pointer;
  border: 2px solid black;
  border-radius: 5px;
}

.close-btn:hover,
.close-btn:focus {
  background: #900020;
  text-decoration: none;
  cursor: pointer;
}

.view-more-btn {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #0c3a96;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

.view-more-btn:hover {
  background-color: #474747;
}

table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
}

/* table,
th,
td {
  border: 1px solid #ddd;
} */

th,
td {
  padding: 8px;
  text-align: left;
}



.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  padding-top: 60px;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 600px;
  border-radius: 8px;
  text-align: justify;
  position: relative;
}

.modal img {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.modal-content h2 {
  margin-bottom: 0;
  padding-bottom: 0;
  text-align: center;
}

.modal-content table {
  margin-top: 0;
  padding-top: 0;
}

.faq-section {
  padding: 20px;
  background-color: white;
  z-index: 10;
  position: relative;
}

.Questions {
  padding: 20px;
  text-align: left;
}

.FAQ {
  display: flex;
  flex-wrap: center;
  margin-bottom: 3px;
}

.FAQ a {
  white-space: normal;
  line-height: 1;
}

.FAQ ul {
  list-style-type: none;
  padding: 0;
  display: block;
  /* grid-template-columns: 1fr 1fr; */
  gap: 5px;
}

.FAQ li {
  margin-bottom: 5px;
  transition: transform 0.3s ease;
  /* Smooth transition effect */
}

.FAQ li:hover {
  transform: scale(1.01);
  /* Slightly increases the size */
}

.FAQ li a {
  text-decoration: none;
  color: #202268;
  transition: color 0.3s ease;
}

.FAQ li a:hover {
  color: #0056b3;
}

.question-number {
  font-weight: bold;
  margin-right: 5px;
  line-height: 1;
  padding: 0;
}

.question-text {
  word-wrap: break-word;
  line-height: 1;
  padding: 0;
}

.question-text a {
  font-size: 18px;
  text-decoration: none;
  color: black;
}

.faq-answers {
  padding: 0 20px;
  background-color: #fff;
}

.faq-answer {
  margin-bottom: 30px;
}

.faq-answer h2 {
  font-size: 2em;
  color: #333;
  margin-bottom: 10px;
}

.faq-answer p {
  font-size: 1.5em;
  color: #666;
}

.tipsandvidsection {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Roboto';
  background-color: white;
  padding: 20px 30px;
  gap: 2%;
  box-sizing: border-box;
  border-top: 1px solid black;
  border-bottom: 1px solid black;
}

.tipsandvidsection__links {
  display: flex;
  gap: 4px;
  align-items: end;
}

.tipsandvidsection__links a {
  text-decoration: none;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  display: inline-block;
  font-size: 20px;
  color: black;
}

.tipsandvidsection__links a:hover {
  color: rgb(223, 223, 223);
}

.content-section h2 {
  margin-bottom: 2px;
}

.content-section {
  padding: 10px;
  margin: 10px;
  margin-top: 0px;
  padding-top: 0px;
}

.navigation-table {
  width: 100%;
  margin: 0;
  text-align: left;
  margin-bottom: 0;
}

.tab-button {
  padding: 8px 15px;
  font-size: 20px;
  border: 1px solid black;
  cursor: pointer;
  background-color: #11286a;
  margin: 2px 0;
  border-radius: 5px;
  text-align: center;
  display: inline-block;
  color: #ffffff;
}

.tab-button.selected {
  background-color: #f15900;
  font-weight: bold;
}
.tab-button:hover{
  background-color: #f15900;
}

.details-section {
  display: none;
  padding: 10px;
  border: 1px solid black;
  border-radius: 10px;
  margin-top: 0px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-button {
  padding: 5px 10px;
  background-color: red;
  color: white;
  font-weight: bold;
  font-size: 20px;
  border: 2px solid black;
  border-radius: 5px;
  cursor: pointer;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.fa-question-circle {
  cursor: pointer;
}

.photo-gallery,
.video-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.photo-item,
.video-item {
  margin: 10px;
}

.photo-item img {
  width: 200px;
  height: 75px;
  border-radius: 5px;
}

iframe {
  width: 100%;
  height: 300px;
  border-radius: 5px;
}

.quotemotordesign * {
  margin: 0;
}

.quotemotordesign {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px;
  border-top: 1px solid #C2C2C2;
  border-bottom: 1px solid #C2C2C2;
  background-color: #11286a;
}

.quotemotordesign__description {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.quotemotordesign__description h3 {
  font-size: 20px;
  color: white;
}

.quotemotordesign__links {
  display: flex;
  gap: 30px;
}

.quotemotordesign__links a {
  background-color: white;
  color: #11286a;
  border-radius: 8px;
  border: 2px solid #C2C2C2;
  text-decoration: none;
  padding: 10px 16px;
}

.quotemotordesign__links a:hover {
  background-color: #f15900;
}

.table-title {
  margin-top: 8px;
  text-align: left;
  color: #11286a;
  font-size: 20px;
  font-weight: bold;
}

.evCarTable-design,
.evCarTable-motor,
.evCarTable-vehicle {
  border: 2px solid black;
  margin-bottom: 5px;
}

.evCarTable-design {
  width: 38%;
}

.evCarTable-motor {
  width: 28%;
}

.evCarTable-vehicle {
  width: 34%;
}

.evCarTable-design th,
.evCarTable-motor th,
.evCarTable-vehicle th {
  background-color: #2a4f88;
  color: white;
  padding: 10px;
  text-align: center;
  border: 1px solid black;
  vertical-align: middle;
  word-wrap: break-word;
  white-space: normal;
  font-weight: 500;
}

.evCarTable-design td,
.evCarTable-motor td,
.evCarTable-vehicle td {
  text-align: center;
  color: black;
  padding: 10px;
  border: 1px solid #ccc;
  vertical-align: middle;
  word-wrap: break-word;
  white-space: normal;
}

.table-container {
  display: flex;
  flex-wrap: wrap;
}

.buy-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.buy-container table {
  width: 100%;
}

.buy-container td {
  vertical-align: top;
}

.buy-container td>div {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}

.product-box {
  width: 220px;
  height: auto;
  border: 1px solid #999;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #fff;
  box-sizing: border-box;
  flex: 0 0 auto;
}

.complete-box{
  height:280px;
}

.product-title {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 6px;
}

.product-desc {
  font-size: 20px;
  font-weight:bold;
  color: #333;
  margin-bottom: 8px;
}

.product-image img {
  width: auto;
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
  margin: 0 auto;
}

/* .product-button {
margin-top:auto;
  padding-top: 10px;
} */

.motor-box {
  width: 300px;
  height: 350px;
  flex: 0 0 auto;
}

.motor-box .product-image img {
  width: 100%;
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.buy-button {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid black;
  border-radius: 8px;
  text-decoration: none;
  background-color: #11286a;
  color: #ffffff;
  font-size: 14px;
  transition: background 0.2s ease;
}

.buy-button:hover {
  background-color: #f15900;
  color: white;
}

.spec-link {
  font-weight: 500;
  color: #0c3a96;
  text-decoration: none;
  border-bottom: 2px solid #0c3a96;
  transition: all 0.3s ease;
  font-size:14px;
}

.spec-link:hover {
  color: #fff;
  background-color: #0c3a96;
  padding: 2px 6px;
  border-radius: 4px;
}

@media (max-width :1800px) {
  .evCarTable-design {
    width: 100%;
  }

  .evCarTable-motor {
    width: 40%;
  }

  .evCarTable-vehicle {
    width: 60%;
  }
}

@media (max-width:1560px) {
  .image-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .quotemotordesign {
    padding: 30px;
  }

  .quotemotordesign__description p {
    font-size: 14px;
  }

  .quotemotordesign__links {
    gap: 10px;
    font-size: 14px;
  }

  .header2 {
    padding: 30px 30px;
  }

  .header2 p {
    width: 55%;
  }

  .evCarTable-design {
    width: 100%;
  }

  .evCarTable-motor {
    width: 42%;
  }

  .evCarTable-vehicle {
    width: 58%;
  }
}

@media (max-width:1425px) {

  .header h1 {
    padding: 10px 20px !important;
  }

  .header p {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 10px;
  }

  .evCarTable-design {
    width: 100%;
  }

  .evCarTable-motor {
    width: 40%;
  }

  .evCarTable-vehicle {
    width: 60%;
  }
}

@media (max-width:1250px) {

  .image-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .image-item {
    width: 100%;
  }

  .evCarTable-design {
    width: 100%;
  }

  .evCarTable-motor {
    width: 45%;
  }

  .evCarTable-vehicle {
    width: 55%;
  }
}

@media (max-width: 768px) {
  .FAQ li {
    font-size: 14px;
  }

  .FAQ {
    display: block;
    padding-left: 0;
    padding: 0 20px;
  }

  .FAQ ul {
    display: block;
  }

  .question-number {
    margin-right: 5px;
  }

  .question-text {
    word-wrap: break-word;
  }

  .tipsandvidsection {
    display: flex;
    flex-direction: column;
  }

  .Questions {
    order: 1;
    display: block;
  }

  .tipsandvidsection__links {
    order: 2;
  }

  .tipsandvidsection {
    flex-direction: column-reverse;
    background-color: white;
    border-bottom: 1px solid black;
    gap: 0px;
    border-top: 1px solid black;
  }

  .tipsandvidsection__links {
    transform: translateY(-4px);
    width: 100%;
    gap: 0px;
  }

  .tipsandvidsection__links a {
    color: black;
    width: 50%;
    text-align: center;
    border-radius: 0px;
    font-size: 16px;
  }

  .tipsandvidsection__links a:nth-child(1) {
    border: 1px solid gray;
    border-right: 0px solid gray;
  }

  .tipsandvidsection__links a:nth-child(2) {
    border: 1px solid gray;
    border-left: .5px solid gray;
  }

  body {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
  }

  .button-container {
    flex-direction: column !important;
    gap: 8px !important;
    padding-bottom: 4px !important;
    align-items: center !important;
  }

  .image-table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border-spacing: 0 !important;
  }

  .image-table tr {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    /* Removes padding from rows */
  }

  /* .image-column, */
  .content-column {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 0 !important;
    /* Removes any padding */
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .content-row1,
  .content-row2 {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    word-wrap: break-word !important;
  }

  .content-row1 {
    font-size: x-large;
  }

  .content-row2 {
    font-size: 15px;
  }

  /* .image {
    width: 90% !important;
    max-width: 280px !important;
    height: auto !important;
    border: 2px solid #0c3a96 !important;
    border-radius: 5px !important;
    margin: 0 auto !important;
    padding: 0 !important;
  } */

  .show-details-button {
    font-size: 11px;
    padding: 5px 8px;
    max-width: 80%;
  }

  th,
  td {
    padding: 3px;
    text-align: left;
  }

  .evCarTable-design {
    width: 100%;
  }

  .evCarTable-motor {
    width: 100%;
  }

  .evCarTable-vehicle {
    width: 100%;
  }
}

@media screen and (max-width: 500px) {
  body {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
  }

  .performance {
    display: block !important;
  }

  .header2 {
    padding: 40px 20px;
    padding-bottom: 40px;
  }

  .header2 h1 {
    font-weight: 600;
  }

  .header2 p {
    width: 80%;
    color: #e6e6e6;
  }

  .quote-button {
    margin-left: 20px !important;
  }

  /* Stack buttons vertically */
  .button-container {
    flex-direction: column !important;
    gap: 8px !important;
    padding-bottom: 4px !important;
    align-items: center !important;
  }

  /* Ensure the image table stacks properly */
  .image-table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    /* Ensures no padding around the table */
    border-spacing: 0 !important;
    /* Ensures no spacing between table cells */
  }

  .image-table tr {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    /* Removes padding from rows */
  }

  /* .image-column, */
  .content-column {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 0 !important;
    /* Removes any padding */
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  /* .image {
    width: 90% !important;
    max-width: 280px !important;
    height: auto !important;
    border: 2px solid #0c3a96 !important;
    border-radius: 5px !important;
    margin: 0 auto !important;
    padding: 0 !important;
  } */

  .quotemotordesign {
    flex-direction: column;
    align-items: start;
    text-align: left;
    padding: 20px 10px;
    gap: 5px;
  }

  .quotemotordesign h3 {
    font-size: 17px;
  }

  .quotemotordesign p {
    font-size: 16px;
    color: #464646;
  }

  .quotemotordesign__links {
    flex-direction: column;
    width: 100%;
    gap: 15px;
    text-align: center;
  }

  /* .gallery-images {
  width: 100% !important;
  height: 100% !important;
  object-fit: fill !important;
  border-radius: 5px;
  display: block;
  filter: grayscale(150%);
  transition: all 0.3s ease;
  box-sizing:content-box;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin:0px;
  padding:0px;
}

.image-item {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: fill;
  box-sizing:content-box;
  padding:0px;
  margin:0px;
}

.image-overlay {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.image-title {
  font-size: 13px;
  color: white;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 4px 8px;
  border-radius: 4px;
  align-self: flex-start;
  pointer-events: auto;
}

.show-details-button {
  background: white;
  color: black;
  border: 1px solid black;
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 5px;
  pointer-events: auto;
  margin-top: auto;
  align-self: center;
} */

  .image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .gallery-images {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
    border-radius: 5px;
    display: block;
    transition: all 0.3s ease;
  }

  .image-item {
    position: relative;
    width: 100%;
  }

  .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
  }

  .image-title {
    font-size: 13px;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 4px 8px;
    border-radius: 4px;
    align-self: flex-start;
    pointer-events: auto;
  }

  .show-details-button {
    position: absolute !important;
    top: unset !important;
    bottom: 10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 5px;
    background: white;
    color: black;
    border: 1px solid black;
    pointer-events: auto;
    z-index: 2;
  }

  td>div[style*="display: flex"] {
    flex-direction: column !important;
    align-items: center !important;
  }

  .box-container {
    width: 100% !important;
    max-width: 90% !important;
    margin: 10px auto !important;
  }

  .buy-container {
    display: block !important;
  }

}