/*  
Plugin Name: FAQ Info Instigator
Description: Easily create and manage FAQs on your WordPress site. Display FAQs with a shortcode or on dedicated pages.
Author: Abdul Samad
Author URI: https://getabdulsamad.com
*/

#faq {
  font-family: inherit;
  line-height: 1.3;
  letter-spacing: 0.3px;
  font-size: 16px;
  background-color: #f8f9f9;
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.24);
  -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

#faq .faq-content {
  overflow: hidden;
  padding: 0 15px;
  border: 0;
  border-top: 0px solid transparent;
  border-bottom: 0px solid transparent;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-radius: 0 0 10px 10px;
  max-height: 0;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

#faq.active .faq-content {
  padding: 20px 15px;
  border-top-width: 5px;
  border-bottom-width: 5px;
  border-color: #f2f3f4;
  box-sizing: content-box;
}

#faq .faq-content.faq-thumbnail .faq-text {
  width: 80%;
  padding-right: 20px;
  display: inline-block;
  vertical-align: top;
}

#faq .faq-content.faq-thumbnail .faq-featured-image {
  width: 20%;
  display: inline-block;
  text-align: right;
}

#faq .faq-content.faq-thumbnail .faq-featured-image img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  object-position: center;
}

#faq .faq-title button .fa-minus,
#faq.active .faq-title button .fa-plus {
  display: none;
}

#faq.active .faq-title button .fa-minus,
#faq .faq-title button .fa-plus {
  display: block;
}

#faq .faq-title button i {
  background-color: #f2f3f4;
  padding: 10px 10px 10px 9px;
  border-radius: 35px;
  width: 35px;
  height: 35px;
  line-height: 15px;
  text-align: center;
}

#faq.active .faq-title button i {
  background-color: #f8f9f9;
}

#faq .faq-title {
  overflow: hidden;
  background-color: #f8f9f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
}

#faq.active .faq-title {
  background-color: #f2f3f4;
}

#faq .faq-title h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 0;
  cursor: pointer;
}

#faq .faq-title button {
  padding: 0;
  background-color: transparent;
  border: 0;
  color: #504f4f;
  font-size: 20px;
  cursor: pointer;
}

#faq .faq-title button:focus {
  outline: none;
}

#faq .faq-content p {
  margin: 0;
}

.faq-info-instigator-categories {
  padding: 0;
  list-style-position: inside;
  list-style-type: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.faq-info-instigator-categories li {
  padding: 0;
  font-family: inherit;
  letter-spacing: 0.3px;
  font-size: 16px;
  background-color: #f8f9f9;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  opacity: 70%;
  transition-property: all;
  transition-duration: 0.6s;
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.24);
  -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.faq-info-instigator-categories li:hover {
  background-color: #f2f3f4;
  opacity: 100%;
}

.faq-info-instigator-categories li a {
  cursor: pointer;
  padding: 16px 20px;
  font-size: 20px;
  font-weight: 600;
  color: #504f4f;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: inherit;
}

.faq-info-instigator-categories li.cat-description {
  padding: 16px 20px;
}

.faq-info-instigator-categories li.cat-description a {
  cursor: pointer;
  display: block;
  padding-top: 10px;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}

.faq-info-instigator-categories li a:hover {
  text-decoration: none;
}

.faq-info-instigator-categories li p {
  font-family: inherit;
  text-align: center;
  line-height: 1.3;
  letter-spacing: 0.3px;
  font-size: 16px;
  margin-bottom: 0;
  margin-top: 24px;
}

/*** Media Queries ***/
@media only screen and (max-width: 991px) {
  #faq .faq-content.faq-thumbnail .faq-text {
    width: 65%;
  }
  #faq .faq-content.faq-thumbnail .faq-featured-image {
    width: 35%;
  }
  .faq-info-instigator-categories {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media only screen and (max-width: 768px) {
  #faq .faq-content.faq-thumbnail .faq-text {
    width: 100%;
    padding-right: 0;
    display: block;
    padding-bottom: 20px;
  }
  #faq .faq-content.faq-thumbnail .faq-featured-image {
    width: 100%;
    display: block;
    text-align: left;
  }
  #faq .faq-content.faq-thumbnail .faq-featured-image img {
    width: 250px;
    height: 250px;
  }
  .faq-info-instigator-categories {
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media only screen and (max-width: 580px) {
  .faq-info-instigator-categories {
    gap: 16px;
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}
