@import url('https://fonts.googleapis.com/css?family=Lato');
@import url('https://fonts.googleapis.com/css?family=Open Sans');

.faq-heading {
  font-family: Lato;   
  font-weight: 400;
  font-size: 19px;
  -webkit-transition: text-indent 0.2s;
  transition: text-indent 0.2s;
  text-indent: 20px;
  color: #333;
}

.faq-text {
  font-family: Open Sans;   
  font-weight: 400;
  color: white;
  width: 95%;
  padding-left: 20px;
  margin-bottom: 30px;
}

.faq {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  border-radius: 4px;
  position: relative;
  border: 1px solid #E1E1E1;
}

.faq label {
  display: block;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  height: 56px;
  padding-top: 1px;
  background-color: #FAFAFA;
  border-bottom: 1px solid #E1E1E1;
}

.faq input[type="checkbox"] {
  display: none;
}

.faq .faq-arrow {
  width: 5px;
  height: 5px;
  transition: -webkit-transform 0.8s;
  transition: transform 0.8s;
  transition: transform 0.8s, -webkit-transform 0.8s;
  -webkit-transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-top: 2px solid rgba(0, 0, 0, 0.33);
  border-right: 2px solid rgba(0, 0, 0, 0.33);
  float: right;
  position: relative;
  top: -30px;
  right: 27px;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.faq input[type="checkbox"]:checked + label > .faq-arrow {
  transition: -webkit-transform 0.8s;
  transition: transform 0.8s;
  transition: transform 0.8s, -webkit-transform 0.8s;
  -webkit-transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  -webkit-transform: rotate(135deg);
  transform: rotate(135deg);
}
.faq input[type="checkbox"]:checked + label > .faq-heading{
    color: #fafafa95;
    font-size: larger;
}

faq input[type="checkbox"]:checked + label > .faq-text{
    color: #E1E1E1;
    font-size: 90px;
}

.faq input[type="checkbox"]:checked + label {
  display: block;
  background-color: rgba(15, 35, 80, 0.864);
  height: 225px;
  transition: height 0.8s;
  -webkit-transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.faq input[type='checkbox']:not(:checked) + label {
  display: block;
  transition: height 0.8s;
  height: 60px;
  -webkit-transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

::-webkit-scrollbar {
  display: none;
}

/* Media Queries for Responsive Design */
@media (max-width: 1200px) {
  .faq {
    width: 90%;
  }
}

@media (max-width: 768px) {
  .faq {
    width: 95%;
  }
  
  .faq-heading {
    font-size: 17px;
  }
  
  .faq .faq-arrow {
    top: -25px;
    right: 20px;
  }
  
  .faq label {
    height: 50px;
  }
  
  .faq input[type="checkbox"]:checked + label {
    height: 200px;
  }
  
  .faq input[type='checkbox']:not(:checked) + label {
    height: 50px;
  }
}

@media (max-width: 480px) {
  .faq-heading {
    font-size: 16px;
    text-indent: 15px;
  }
  
  .faq-text {
    font-size: 14px;
    padding-left: 15px;
  }
  
  .faq .faq-arrow {
    top: -20px;
    right: 15px;
  }
  
  .faq label {
    height: 45px;
  }
  
  .faq input[type="checkbox"]:checked + label {
    height: 180px;
  }
  
  .faq input[type='checkbox']:not(:checked) + label {
    height: 45px;
  }
}