/* Table of Contents Section */
.faqs-banner {
  background-image: url(/img/created/PressurePaveTrain.jpg);
  background-size: cover; /* Adjust to your liking */
  background-position: top; /* Adjust to your liking */
  margin-top: 10px;
  height: calc(65vh - 100px); /* Adjust to your liking */
  display: flex;
  justify-content: center;
  align-items: center;
}

.banner h2 {
  color: #fff; /* Set the color of your title */
  font-size: 5.5rem; /* Adjust to your liking */
  text-align: center;
  text-shadow: 2px 2px #000; /* Add a shadow to your title */
}

.faqs-banner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-shadow: 2px 2px 5px #000000;
}

.table-of-contents {
  padding-bottom: 10px;
  padding-top: 5vh;
  text-align: center;
  justify-content: center;
  align-items: center;
}

.toc-list {
  width: 100%;
  padding: 85px 0;
  background-color: #242424;
}

.toc-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 60px;
}

.toc-text {
  flex-basis: 50vw;
}

.table-of-contents h1 {
  font-size: 5.1rem;
  align-items: center;
  justify-content: left;
}

.toc-text p {
  padding: 20px 0;
  font-size: 2rem;
}

.toc-list a:target {
  padding-top: 50px;
  margin-top: 50px;
}

.toc-text a {
  font-size: 1.8rem;
  display: block;
  padding: 10px 20px;
  width: fit-content;
  border-radius: 10px;
}

.toc-text a:hover {
  background-color: var(--site-color-02-hover);
  transition: ease-in-out 15ms;
}

/* Product Questions Section */

.product-faqs {
  width: 100%;
  padding: 85px 0;
  background-color: #535353;
  background-image: linear-gradient(
    to bottom,
    var(--site-color-02-hover),
    black
  );
}

.product-faqs-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 60px;
}

.product-faqs-img img {
  width: 300px;
  border-radius: 20px;
  transition: transform 1.1s;
}

.product-faqs-img img:hover {
  transform: scale(1.5);
  cursor: zoom-in;
}

.product-faqs-text {
  flex-basis: 50vw;
}

.product-faqs-text h1 {
  font-size: 5.2rem;
  align-items: center;
  justify-content: left;
}

.product-faqs-text h2 {
  align-items: left;
  text-align: left;
  font-weight: bold;
}

.product-faqs-text h3 {
  text-transform: none;
  padding-top: 95px;
}

.product-questions-title {
  align-items: center;
  text-align: center;
}

.product-faqs-text p {
  padding: 20px 0;
  font-size: 1.8rem;
}

.product-faqs-text a {
  font-size: 1.8rem;
  display: block;
  background-color: var(--site-color-01);
  padding: 10px 20px;
  width: fit-content;
  border-radius: 10px;
}

.product-faqs-text a:hover {
  background-color: var(--site-color-01-hover);
  transition: ease-in-out 15ms;
}

.product-faqs-text h2 {
  text-align: right;
}

.product-faqs-text {
  text-align: justify;
}

.product-faqs-text a {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Surface Prep Questions*/

.prep-faqs {
  width: 100%;
  padding: 85px 0;
}

.prep-questions-title {
  align-items: center;
  text-align: center;
}

/* Traffic Control Questions */

.traffic-faqs {
  width: 100%;
  padding: 85px 0;
  background-color: #535353;
  background-image: linear-gradient(
    to bottom,
    var(--site-color-01-hover),
    black
  );
}

.traffic-questions-title {
  align-items: center;
  text-align: center;
}

.product-faqs-text a {
  background-color: blue;
}

.product-faqs-text a:hover {
  background-color: darkblue;
}

/* Company Questions */

.company-faqs {
  width: 100%;
  padding: 85px 0;
}

/* Back to Top Button */

#back-to-top {
  position: sticky; /* Make it stick to the viewport */
  bottom: 10px; /* Align it to the bottom */
  right: 10px; /* Align it to the right */
  z-index: 9999; /* Make it appear above all elements */
  cursor: pointer;
  background-color: #333;
  color: white;
  padding: 10px;
  border-radius: 5px;
  display: none; /* Initially hidden */
}

.minor-indent {
  margin-left: 50px;
}

.indent-text {
  margin-left: 100px;
}

/* Back to top button */

.back-to-top-container {
  display: none;
  position: fixed;
  bottom: 10vh;
  right: 7vw;
}

.back-to-top {
  position: sticky;
  width: fit-content;
  background-color: var(--site-color-03-hover);
  display: flex;
  justify-content: center;
  text-align: center;
  z-index: 9999;
  border-radius: 10px;
  box-sizing: border-box;
  padding: 10px;
}

.back-to-top a {
  color: #000;
  font-size: 2rem;
}

.back-to-top:hover {
  background-color: var(--site-color-03);
  transition: ease-in-out 15ms;
}

/* Mobile Version */

@media only screen and (max-width: 600px) {
  .table-of-contents h1 {
    font-size: 3rem;
  }

  .toc-flex {
    flex-direction: column;
    align-items: center;
  }

  .product-faqs-flex {
    flex-direction: column;
    align-items: center;
  }

  .product-faqs-text h3 {
    text-align: center;
  }

  .product-faqs p {
    text-align: left;
  }

  .prep-faqs p {
    text-align: left;
  }

  .traffic-faqs p {
    text-align: left;
  }

  .company-faqs p {
    text-align: left;
  }
}

/* Tablet Version */

@media only screen and (max-width: 768px) {
  .table-of-contents h1 {
    font-size: 4rem;
  }

  .toc-flex {
    flex-direction: column;
    align-items: center;
  }

  .product-faqs-flex {
    flex-direction: column;
    align-items: center;
  }

  .product-faqs-text h3 {
    text-align: center;
  }

  .minor-indent {
    margin-left: 2px;
  }

  .indent-text {
    margin-left: 10px;
    margin-right: 10px;
  }
}
