.testimonials-top-section {
  display: flex;
  width: 85%;
  margin: 80px auto 40px;
}

@media only screen and (max-width: 1040px) {
  .testimonials-top-section {
    width: 100%;
    margin: 80px 0 30px;
    justify-content: space-evenly;
  }
}

@media only screen and (max-width: 600px) {
  .testimonials-top-section {
    margin-top: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}

/* Slideshow container */
.testimonials-container {
  width: 80%;
  position: relative;
}

@media only screen and (max-width: 1040px) {
  .testimonials-container {
    padding: 0 15px;
  }
}

@media only screen and (max-width: 600px) {
  .testimonials-container {
    width: 100%;
    margin-bottom: 30px;
  }
}

.slide {
  display: none;
  text-align: center;
}

.testimonial-phrase {
  color: #333;
  font-size: 22px;
  margin: 0 2rem 16px;
}

@media only screen and (max-width: 1040px) {
  .testimonial-phrase {
    font-size: 18px;
  }
}

@media only screen and (max-width: 600px) {
  .testimonial-phrase {
    margin-bottom: 6px;
  }
}

@media only screen and (max-width: 380px) {
  .testimonial-phrase {
    font-size: 14px;
  }
}

.testimonial-author-name {
  width: 95%;
  color: #929298;
  font-size: 18px;
  font-style: italic;
  text-align: right;
}

@media only screen and (max-width: 1040px) {
  .testimonial-author-name {
    font-size: 16px;
  }
}

@media only screen and (max-width: 380px) {
  .testimonial-author-name {
    font-size: 13px;
  }
}

/* Styles for the testimony form*/
.testimony-form-container-wrapper {
  width: 455px;
  position:absolute;
  background-color:white; 
  box-shadow: 0 0 15px 4px #929298;
  z-index: 2; 
  border-radius: 0.5rem;
  padding-top: 1.25rem;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-bottom: 1rem;
}

@media only screen and (min-width: 1430px) {
  .testimony-form-container-wrapper {
    width: 455px;
  }
}

@media only screen and (max-width: 700px) {
  .testimony-form-container-wrapper {
    width: 355px;
  }
}

@media only screen and (max-width: 450px) {
  .testimony-form-container-wrapper {
    width: 300px;
  }
}

.testimony-form-container {
  width: 70%;
  margin: 0 auto;
}

@media only screen and (max-width: 1040px) {
  .testimony-form-container {
    width: 100%;
  }
}

.form-header {
  font-size: 21px;
  color: #929298;
  font-weight: 400;
  font-style: italic;
  text-align: center;
  margin-bottom: 10px;
  margin-top: 15px;
}

.testimonials-form-labels {
  color: #929298;
  font-size: 13px;
}

.testimonials-form-input {
  font-size: 12px;
  font-weight: 300;
  font-style: italic;
  width: 100%;
  border: 0.5px solid #c9d3e2;
  padding: 10px;
  margin-bottom: 10px;
}

.testimonials-form-submit-button {
  width: 90px;
  background-color: #081c40;
  display: inline-block;
  padding: 7px 15px;
  color: white;
  border: 0;
  line-height: inherit;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0.375rem;
}

/* instagram posts */
.ins-post-container {
  margin: 10px 5px;
}

.instagram-post-image {
  width: 350px;
  height: 350px;
}

@media only screen and (max-width: 880px) {
  .instagram-post-image {
    height: 300px;
  }
}

@media only screen and (max-width: 768px) {
  .instagram-post-image {
    height: 230px;
  }
}

@media only screen and (max-width: 365px) {
  .instagram-post-image {
    height: 170px;
  }
}

.instagram-icon-image {
  width: 20px;
  height: 20px;
  margin-right: 5px;
}

.ins-comments-likes-container {
  margin: 0;
  padding: 0;
  color: black;
  font-size: 20px;
  font-weight: 700;
  height: 0px;
  display: none;
  align-items: center;
  justify-content: center;
  position: relative;
  bottom: 150px;
}

.instagram-post-caption {
  height: 0px;
  color: black;
  display: none;
  position: relative;
  text-align: center;
  bottom: 90px;
}

.testimonials-top-section-2 {
  justify-content: center;
  display: flex;
  width: 100%;
  margin: 0 auto 50px;
}

@media only screen and (max-width: 500px) {
  .testimonials-top-section-2 {
    margin-bottom: 15px;
  }
}

/* Slideshow container */
.testimonials-container-wrapper-2 {
  width: 60%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media only screen and (max-width: 1289px) {
  .testimonials-container-wrapper-2 {
    width: 100%;
    margin-bottom: 30px;
  }
}

.testimonials-container-contaner {
  width: 100%;
  display: flex;
  align-items: center;
}

.control_slide_button {
  text-align: center;
  cursor: pointer;
}

@media only screen and (max-width: 1289px) {
  .control_slide_button {
    margin-left: 30px;
    margin-right: 30px;
  }
}

@media only screen and (max-width: 500px) {
  .control_slide_button {
    margin-left: 15px;
    margin-right: 15px;
  }
}

.slide-button-description {
  font-size: 20px;
  font-style: italic;
}

@media only screen and (max-width: 500px) {
  .slide-button-description {
    font-size: 15px;
  }
}

.testimony-middle-container {
  position: relative;
  margin: 40px 30px 0;
}

@media only screen and (max-width: 1289px) {
  .testimony-middle-container {
    width: 100%;
    margin-left: 0px;
    margin-right: 0px;
  }
}

.testimony-middle-container::before {
  content: "";
  position: absolute;
  top: -25px;
  right: 213px;
  bottom: 30px;
  left: -13px;
  opacity: 0.3;
  background-image: url(../images/icons/quotes.svg);
  background-repeat: no-repeat;
  background-size: 26% 40%;
}

@media only screen and (max-width: 700px) {
  .testimony-middle-container::before {
    top: 5px;
    background-position: 10% 5%;
    background-size: 25% 45%;
  }
}

@media only screen and (max-width: 600px) {
  .testimony-middle-container::before {
    top: -2px;
    background-position: 0 7%;
    background-size: 40% 30%;
  }
}

@media only screen and (max-width: 500px) {
  .testimony-middle-container::before {
    background-size: 70% 70%;
  }
}

@media only screen and (max-width: 414px) {
  .testimony-middle-container::before {
    display: none;
  }
}
.testimonials-header-2 {
  width: 100%;
  font-size: 28px;
  margin-bottom: 20px;
  font-style: italic;
  text-align: center;
  text-decoration: underline;
}

.slide-2 {
  position: relative;
  display: none;
  text-align: center;
}

.testimony-phrase-2 {
  color: #333;
  font-size: 22px;
  margin: 0 2rem 16px;
}

@media only screen and (max-width: 1040px) {
  .testimony-phrase-2 {
    font-size: 18px;
  }
}

@media only screen and (max-width: 600px) {
  .testimony-phrase-2 {
    font-size: 16px;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 6px;
  }
}

@media only screen and (max-width: 380px) {
  .testimony-phrase-2 {
    font-size: 14px;
  }
}

.testimony-author-name-2 {
  width: 95%;
  color: #929298;
  font-size: 18px;
  font-style: italic;
  text-align: right;
}

@media only screen and (max-width: 1040px) {
  .testimony-author-name-2 {
    font-size: 16px;
  }
}

@media only screen and (max-width: 500px) {
  .testimony-author-name-2 {
    font-size: 13px;
  }
}

.autoplay-slider{
  width: 97%;
}

@media only screen and (max-width: 1600px){
  .autoplay-slider{
    width: 96%;
  }
}

@media only screen and (max-width: 1200px){
  .autoplay-slider{
    width: 95%;
  }
}

@media only screen and (max-width:961px){
  .autoplay-slider{
    width: 94%;
  }
}

@media only screen and (max-width: 800px){
  .autoplay-slider{
    width: 93%;
  }
}

@media only screen and (max-width: 515px){
  .autoplay-slider{
    width: 89%;
  }
}

.instagram-post-controler-container{
  margin:0 5px;
}

@media only screen and (max-width: 768px){
  .instagram-post-controler-container{
    margin:0 4px;
  }
}

@media only screen and (max-width: 400px){
  .instagram-post-controler-container{
    margin:0 3px;
  }
}

.instagram-post-controler{
  width: 20px;
}

@media only screen and (max-width: 768px){
  .instagram-post-controler{
    width: 15px;
  }
}

.close-testimony-form-button {
  font-family: Helvetica;
  color: #929298;
  position: relative;
  float: right;
  width: 27px;
  height: 27px;
  cursor: pointer;
  bottom: 15px;
  text-align: right;
  font-size: 18px;
  left: 4px;
}

.close-testimony-form-button:focus {
  outline: none;
}