/*
Theme Name:     American Flying Clubs
Theme URI:      
Description:    Divi child theme.
Author:         Eolus Technologies
Author URI:     
Template:       Divi
Version:        0.1.0
*/

/* General Styling */

@media screen and (min-width: 981px) {
  #top-header {
    z-index: 9998 !important; /* override something in divi that causes this to be above main header */
  }

  #main-header #logo {
    margin-top: 0;
    max-height: 90px;
  }

  .et_header_style_left #et-top-navigation nav > ul > li > a,
  .et_header_style_left .et-fixed-header #et-top-navigation nav > ul > li > a {
    padding-bottom: 33px;
  }
}

#main-footer h3 {
  margin-top: 0;
}

#main-content .container::before {
  display: none;
}

.et-cart-info { display:none; }

.nav li ul { width: 280px; }

#top-menu li li a { width: 240px; }

.nav li li ul {
	left: 280px;
}

.nav li.et-reverse-direction-nav li ul {
	right: 280px;
}

.align-bottom-column .et_pb_column {
	padding-bottom: 50px;
}

.align-bottom-column .et_pb_button_module_wrapper {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	margin: auto;
}

.costs-list li {
	margin-bottom: 20px;
}

.lesson-list ul {
	list-style: none;
}

.lesson-list li {
	margin-bottom: 20px;
	margin-left: 40px;
}

.indent-list li {
	margin-bottom: 10px;
	margin-left: 40px;
}

#main-footer > .container {
  width: auto;
  max-width: unset;
}

#main-footer h4.title {
  display: none;
}

#main-footer .et_pb_widget {
	float: none;
}

#main-footer .et_pb_section {
	background: #f5f5f5;
}

#footer-info {
	float: none;
	margin-bottom: 20px;
}

@media (min-width: 981px) {
	.et_pb_gutters3 .footer-widget {
    	margin: 0 5.5% 0 0;
	}
}

.et-pb-controllers {
  display: none;
}

.finance_logo img {
  max-width: 150px;
  max-height: 85px;
}

.airline_logo img {
  max-width: 200px;
  max-height: 150px;
}

/* Template Pages */

.et_pb_post.afs_pb_post {
  margin-bottom: 0;
}

.et_pb_section.amflight_et_section {
  padding-top: 0;
  margin-top: -30px;
}

.amflight_et_section .et_pb_row {
  padding-top: 0;
}

.afs_filters {
  margin-bottom: 20px;
}

.amflight-gallery {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.amflight-gallery-item .item-wrapper {
  position: relative;
  background-size: cover;
  background-position: 25% 100%;
  width: 268px;
  height: 177px;
  margin-right: 2px;
  margin-bottom: 3px;
  background-repeat: no-repeat;
}

.inst_gallery .amflight-gallery-item .item-wrapper {
  background-size: contain;
  background-position: 50% 0;
  height: 196px;  
}

.amflight-gallery-item .amflight-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding-left: 15px;
  height: 50px;
  font-size: 14px;
  color: #fff;
  background: rgba(0,0,0,0.7);
  line-height: 18px;
  padding-top: 6px;
}

.afs_carousel {
  margin: 40px auto 0;
  overflow: hidden;
  position: relative;
}

.afs_carousel, .afs_carousel img {
  width: 950px;
  height: 350px;
}

.afs_carousel img {
  margin: 0;
  padding: 0;
}

.afs_carousel .img_pane {
  width: 1910px;
  height: 350px;
  transition: all 0.5s ease-in;
}

.afs_carousel .prev,
.afs_carousel .next {
  position: absolute;
  z-index: 10;
  top: 50%;
  width: 30px;
  line-height: 40px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  text-align: center;
  font-size: 16px;
  cursor: pointer;
}

.afs_carousel .prev {
  left: 10px;
}

.afs_carousel .next {
  right: 10px;
}

.afs_carousel.next_img .img_pane {
  transform: translate(-950px, 0px);
}

@media only screen and (max-width: 400px) {
  .afs_carousel, .afs_carousel img {
    width: 300px;
    height: 112px;
  }

  .afs_carousel .img_pane {
    width: 630px;
    height: 112px;
  }

  .afs_carousel.afs_carousel.next_img .img_pane {
    transform: translate(-300px, 0px);
  }
}

@media only screen and (max-width: 800px) {
  .afs_carousel, .afs_carousel img {
    width: 600px;
    height: 221px;
  }

  .afs_carousel .img_pane {
    width: 1230px;
    height: 221px;
  }

  .afs_carousel.afs_carousel.next_img .img_pane {
    transform: translate(-600px, 0px);
  }
}

.afs-details {
  margin-top: 100px;
}

.afs-details .et_pb_column_1_3 h3,
.afs-table-header {
  font-size: 14px;
  line-height: 2em;
  background: #015285;
  color: #fff;
  padding: 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1em;
}

.afs-details .et_pb_column_1_3 h3 {
  margin-top: 40px;
}

.afs-details .et_pb_column_1_3 h3:first-child {
  margin-top: 0;
}

.afs-specifications {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.afs-specifications th, .afs-specifications td {
  border-top: 1px solid #dfdfdf;
  vertical-align: top;
  padding: 10px 0 20px;
}

.afs-specifications th {
  width: 30%;
}

.afs-specifications td {
  width: 70%;
}

.afs-details ul {
  list-style: disc;
  margin-left: 15px;
}

.fleet_foot {
  font-size: 16px;
  margin-top: 100px;
  position: relative;
}

.fleet_foot:before {
  content: ' ';
  position: absolute;
  width: 300px;
  height: 1px;
  top: -80px;
  left: 50%;
  margin-left: -150px;
  border-top: 1px solid #015285;
}

.afs_instructor_details {
  display: flex;
  flex-wrap:  nowrap;
  align-items: flex-start;
  margin-top: 40px;
}

.inst_img,
.inst_img img {
  width: 300px;
}

.inst_img {
  margin-right: 40px;
}

.inst_details table {
  font-size: 16px;
}

.inst_details th,
.inst_details td {
  padding: 10px 0 10px 10px;
  vertical-align: top;
}

.inst_details th {
  text-align: left;
  width: 25%;
}

.inst_bio {
  font-size: 16px;
  text-align: justify;
}

.inst_questions {
  margin-top: 160px;
  font-size: 16px;
}

.inst_questions h3 {
  margin-bottom: 40px;
  text-transform: capitalize;
  position: relative;
}

.inst_questions h3:before {
  content: ' ';
  position: absolute;
  width: 300px;
  height: 1px;
  top: -80px;
  left: 50%;
  margin-left: -150px;
  border-top: 1px solid #015285;
}

.inst_questions strong {
  line-height: 1.9em;
}

.inst_questions p {
  margin-bottom: 20px;
}

/* Contact Form Styling */

.afs-contact-form form p {
  position: relative;
  overflow: hidden;
  margin-bottom: 15px;
}

.afs-contact-form label,
.afs-contact-form input,
.afs-contact-form select,
.afs-contact-form span.wpcf7-form-control-wrap {
  font-size: 16px;
}

/* .afs-contact-form label span {
  float: left;
} */

.afs-contact-form label,
.afs-contact-form label span {
  font-weight: 700;
  width: 200px;
}

.afs-contact-form span.wpcf7-form-control-wrap {
  font-weight: normal;
  width: 300px;
}

.afs-contact-form input[type="text"],
.afs-contact-form input[type="email"],
.afs-contact-form input[type="tel"],
.afs-contact-form select,
.afs-checkbox {
  /* width: 100%; */
  width: 55%;
}

.afs-contact-form textarea {
  /* width: 500px; */
  width: 55%;
  height: 200px;
  /* margin-top: 10px; */
  /* float: none; */
}

.afs-contact-form .wpcf7-list-item-label {
  width: auto;
}

.afs-contact-form input[type=submit] {
  margin-top: 20px;
  margin-right: 10px;
  padding-left: 20px;
  padding-right: 20px;
  width: auto;
  line-height: 2.3;
  color: #015285;
  background-color: transparent;
  border: 2px solid #015285;
  font-weight: normal;
  border-radius: 5px;
  /* float: right; */
}

.afs-contact-form input[type=submit]:hover {
  background-color: rgba(0,0,0,.05);
  border: none;
  border-radius: 0;
}

.afs-form-row.error label {
  color: #b00;
}

.afs-form-row.error input,
.afs-form-row.error select,
.afs-form-row.error textarea {
  border-color: #b00;
  background: #fee;
}

.afs-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.afs-form-row.afs-top {
  align-items: flex-start;
}

.afs-form-actions {
  margin-top: 40px;
  text-align: right;
}

#tribe-events {
  margin-top: 180px;
}

#tribe-events .tribe-events-calendar thead th {
  color: #fff;
}

/** Animation Styling **/

.et_parallax_bg {
  background-size: 100% auto;
}

.kb-zoomout .et_pb_slide .et_parallax_bg,
.kb-zoomout .et_parallax_bg {
  animation: zoomout 17s forwards;
}

.kb-zoomin .et_pb_slide .et_parallax_bg,
.kb-zoomin .et_parallax_bg {
  animation: zoomin 17s forwards;
}

.kb-zoomin-right .et_pb_slide .et_parallax_bg,
.kb-zoomin-right .et_parallax_bg {
  animation: zoomin-right 17s forwards;
}

.kb-zoomout-right .et_pb_slide .et_parallax_bg,
.kb-zoomout-right .et_parallax_bg {
  animation: zoomout-right 17s forwards;
}

@keyframes zoomout{
  0% {
    transform: scale3d(1.5, 1.5, 1.5) translate3d(0px, 0px, 0px);
    animation-timing-function: linear;
  }

  100% {
    transform: scale3d(1.1, 1.1, 1.1) translate3d(0px, 0px, 0px);
  }
}

@keyframes zoomin{
  0%{
    transform: scale3d(1.1, 1.1, 1.1) translate3d(0px, 0px, 0px);
    animation-timing-function: linear;
  }

  100%{
    transform: scale3d(1.5, 1.5, 1.5) translate3d(0px, 0px, 0px);

  }
}

@keyframes zoomout-right{
  0%{
    transform: scale3d(1.5, 1.5, 1.5) translate3d(-150px, -20px, 0px);
    animation-timing-function: linear;
  }

  100%{
    transform: scale3d(1.1, 1.1, 1.1) translate3d(0px, 0px, 0px);
  }
}

@keyframes zoomin-right{
  0%{
    transform: scale3d(1.1, 1.1, 1.1) translate3d(0px, 0px, 0px);
    animation-timing-function: linear;
  }

  100%{
    transform: scale3d(1.5, 1.5, 1.5) translate3d(-150px, -20px, 0px);
  }
}
