.faq-search-box {
  width: 100%;
  margin: 20px auto 30px auto;
  display: block;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}
.faq-question .fa-question {
  color: #f4aa0c;
  margin-right: 10px;
  margin-top: 4px;
}
.flashcards-faq .subtitle {
  font-size: 1.5rem;
  font-weight: lighter;
}
.faq-answer {
  display: none;
  margin-top: 10px;
  position: relative;
  z-index: 1;
  background: #ffffff;
  padding: 20px;
}
.faq-item.open .faq-answer {
  display: block;
}
.faq-question {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  cursor: pointer;
  width: 100%;
  text-align: left;
  background: #ffffff;
  border: none;
  padding: 10px;
  font-size: 16px;
  position: relative;
  z-index: 2;
}
.faq-question:hover {
  background: #f6f6f6;
}
.faq-item {
  margin-bottom: 10px;
  border-radius: 5px;
  overflow: hidden;
  /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); */
  box-shadow: 0px 0px 0px 1px #cacaca;
}
.faq-chevron {
  margin-left: 12px;
  color: #6b6b6b;
  font-size: 0.9rem;
  transition: transform 180ms ease, color 180ms ease;
  display: inline-block;
  line-height: 1;
}
.faq-item.open .faq-question .faq-chevron {
  transform: rotate(180deg);
  color: #418d8d;
}

/* ensure the question icon, label and chevron sit in their grid columns */
.faq-question > .fa-question {
  grid-column: 1;
}
.faq-question > .faq-label {
  grid-column: 2;
  padding-left: 8px;
}
.faq-question > .faq-chevron {
  grid-column: 3;
  justify-self: end;
}
.faq-answer img {
  width: 100%;
  height: auto;
  margin-top: 10px;
}
.faq-answer li {
  margin-bottom: 12px;
}

/* for the modal only */
.faq-title {
  font-weight: 900;
  font-size: 2.5rem !important;
}
.subtitle-container {
  display: grid;
  grid-template-columns: 55px 1fr;
  align-items: center;
}
.subtitle-container h2 {
  font-size: 1.5rem;
}
.subtitle-container img {
  width: 35px;
}

#faqModal .modal-content {
  background-color: #f2f2f2 !important;
}
.faq-page .title-page {
  text-align: left;
}
#faqModal .title-page {
  font-size: 2rem;
  text-align: center !important;
}

#floating-student-link {
  display: none;
}

.hide-in-small {
  display: none;
}
.img-container {
  text-align: center;
}
.faq-answer img {
  margin: auto;
  height: auto;
  border-radius: 15px;
}
.faq-item button {
  font-size: 0.9rem;
}
.faq-item p,
.faq-item li {
  font-size: 0.9rem;
}

.medium-sized-img {
  width: 90% !important;
}
.full-width-img {
  width: 100% !important;
}
.faq-item button {
  cursor: pointer;
  background-color: #f8f8f8;
}

.section-faq .faq-container {
  height: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px;
}
table {
  font-size: 0.7rem;
  border-collapse: collapse;
}
th,
td {
  padding: 4px 6px;
  text-align: center;
}
.see-all-link a {
  color: #418d8d;
  font-weight: bold;
  font-size: 1rem;
}

/* Only target the FAQ modal for custom width on md+ screens */
@media (min-width: 576px) {
  #faqModal .modal-dialog {
    max-width: 550px;
    width: 90vw;
  }
  #floating-student-link {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
  }
  #floating-student-link.with-cells {
    top: 23px;
    right: 80px;
  }
  #floating-student-link img {
    width: 35px;
    height: auto;
  }

  .hide-in-small {
    display: block;
  }
  .small-sized-img {
    width: 50% !important;
  }
  .medium-sized-img {
    width: 70% !important;
  }
  table {
    font-size: 0.8rem;
  }
}
@media (min-width: 756px) {
  #faqModal .modal-dialog {
    max-width: 900px;
    width: 90vw;
  }
  table {
    font-size: 0.8rem;
  }
}

@media (min-width: 992px) {
  #floating-student-link.with-cells {
    top: 30px;
    right: 105px;
  }
  .medium-sized-img {
    width: 60% !important;
  }
  .small-sized-img {
    width: 35% !important;
  }
  .full-width-img {
    width: 80% !important;
  }
  .container-landing .faq-item button,
  .container-landing .faq-item p,
  .container-landing .faq-item li {
    font-size: 1rem;
  }
  .see-all-link a {
    font-size: 1.3rem;
  }
}

@media (min-width: 1200px) {
  #floating-student-link.with-cells {
    top: 35px;
    right: 140px;
  }
  #faqModal .modal-dialog {
    max-width: 1100px;
    width: 90vw;
  }
  .medium-sized-img {
    width: 50% !important;
  }
  .small-sized-img {
    width: 25% !important;
  }
  .full-width-img {
    width: 65% !important;
  }
}
