.header-middle li:nth-child(2) a::after {
    width: 110%; /* selected page highlighted underline */
}

.header-middle li:nth-child(2) a {
    color: #6164b8; /* selected page highlighted color */
}



:root {
  --font-color: #2E3192; /* dark on light */
  --color: #2E3192;
  --font-family: Robotica;
}

.kiaservices-section {
  display: flex;
  flex-flow: column nowrap;
  padding-top: 4vw;
  width: 100%;
  justify-content: center;
  scroll-snap-type: both mandatory;
  overflow: scroll;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

html {
     scroll-behavior: smooth;
      text-decoration: none;
      overflow-x: hidden;
}

.kiaservices-section::-webkit-scrollbar {
  display: none; /* Webkit browsers */
}

.kiasection {
  display: flex;
  flex-flow: row wrap;
  margin: auto;
  width: 60%;
  justify-content: center;
}

@media (max-width: 860px) {
  .kiaservices-section {
    display: flex;
    flex-flow: row nowrap;
    padding-top: 4vw;
    justify-content: left;
  }

  .kiasection {
    display: flex;
    flex-flow: row nowrap;
    width: 60%;
    min-width: 280px;
    margin: auto;
    
  }
  .container-of-faqs {
    padding-top: 0;
    }
  
}

.kiaservice {
  display: flex;
  flex-flow: column nowrap;
  width: 60%;
  margin: 16px;
  aspect-ratio: 8/5;
  border: 2px solid #fff;
  border-radius: 32px 8px 32px 8px;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  scroll-snap-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  font-size: 12px;
  text-align: center;
}

.kiaservice > img {
  border-radius: 30px 6px 0 0;
  opacity: 0.3;
  transition: all 0.5s cubic-bezier(0.5, 1, 0.5, 1);
}


.faq-grouping {
  overflow-x: hidden;
  color: #222;
}

.toggle-checkbox {
  display: none;
}

.question-container {
  display: flex;
  flex-flow: column wrap;
  justify-content: center;
  align-items: center;
  padding: 16px;
  cursor: pointer;
  transition: all 0.8s cubic-bezier(0.5, 1, 0.5, 1);
}

.toggle-checkbox + .question-container {
    transition: all 0.8s cubic-bezier(0.5, 1, 0.5, 1);
}
.toggle-checkbox:checked + .question-container {
    transition: all 0.8s cubic-bezier(0.5, 1, 0.5, 1);
}


.question-container > * {
  margin: 8px;
}

.question-text {
  color: #fff;
  font-size: 18px;
}

.question-text:hover {
  color: #92BDC4;
}

.toggle-button {
  font-size: 16px;
  font-family: Arial;
  color: rgba(255, 255, 255, 0.4);
  padding: 0 5.5px 2.5px 5.5px;
  border-radius: 128px;
  font-size: 16px;
  color: #92bdc4;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.5s cubic-bezier(0.5, 1, 0.5, 1.2);
  text-align: center;
}


.answer p {
  margin: 5px 0;
  font-size: 14px;
  color: #92BDC4;
  text-align: center;
}

.price {
    display: flex;
    border-radius: 25px 7px;
    border: 2px solid #586CA7;
    background: #fff;
    padding: 10px;
    color: #586CA7;
    margin: auto;
    bottom: 0;
    margin-bottom: 24px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 1;
}

.price:hover {background: #ccc;}

.answer {
  height: 0; /* Start hidden */
  overflow: hidden;
  padding: 0 20px; /* Initial padding */
  transition: all 0.4s cubic-bezier(0, 0.5, 0.5, 2.1);
  }

.toggle-checkbox + .question-container + .answer {
  height: auto; /* I changed it to auto */
  padding: 10px 16px; /* Adjusted padding */
 /* I removed opacity becuase there was a gap in the transition*/
}

.container-of-faqs {
    display: flex;
    flex-flow: column nowrap;
    padding-top: 0;
}

.faq_section {
  box-sizing: border-box;
  width: 90%;
  max-width: 6in;
  min-height: 4in;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  margin: 0 auto;
  backdrop-filter: blur(10px);
  border: 2px solid white;
  border-radius: 25px 7px;
  margin-top: 50px;
  margin-bottom: 30px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
}

.iconimg {width: 128px; padding: 8px;}

.faq1, .faq2 {
  width: 50%; /* Adjust to fit within the container with some space between them */
  background-color: rgba(255, 255, 255, 0);
  box-sizing: border-box;
  padding-top: 0px;
  flex: 1;
  flex-direction: rows;
}

.faq2 h2 {
  color: white;
  cursor: default;
}

.divider {
  border-top: 1px solid #9999;
  width: 95%;
}

  .faq1, .faq2 {
    flex: 1 1 100%; /* 50% width for each section on small screens */
    box-sizing: border-box;
    width: 100%;
  }

  .faq2 h2 {
    display: none; /* Hide <h2> in .faq2 on small screens */
  }

  .faq2 .faq-grouping > hr:first-of-type {
    display: none; /* Hide the first <hr> in .faq2 */
  }

  .faq-grouping {
    width: 100%;
    overflow: hidden;
    }


  .faq2 .faq-grouping {
    margin-top: -20px;
  }
}

.group {
  display: flex;
  flex-flow: row nowrap;
}

.group > * {
  margin: 4px;
}

.birdy {
    display: flex;
    position: fixed;
    top: 0;
    width: 7%;
    margin-top: -12%;
    z-index: 110;
    margin-left: 5%;
    z-index: 999999;
}
