/**
 * VrnTc Theme - Courses Component
 * Team member cards with flip animation
 */

/*------------------------------------------------------------------------courses section*/

.courses {
  padding-top: 7rem;
  padding-bottom: 1.5rem;
}

.courses__title {
  font-weight: 700;
  font-size: 40px;
  color: #fff;
  text-align: center;
  margin-bottom: 3rem;
}

.courses__list {
  margin: 0;
}

.courses__list .row {
  justify-content: center;
}

.courses__list .text-center {
  margin-bottom: 30px;
}

/*------------------------------------------------------------------------course card flip*/

.courses__item {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.courses__item > div {
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: all 0.8s ease;
  border-radius: 10px;
}

.courses__item img {
  border-radius: 10px 10px 0 0;
  width: 100%;
  height: auto;
  display: block;
}

/* Front side (obverse) */
.courses__item-obverse {
  height: 400px;
  position: relative;
}

.courses__obverse-title {
  position: absolute;
  bottom: 0;
  text-align: center;
  background-color: #fff;
  color: #000;
  border-radius: 0 0 10px 10px;
  width: 100%;
  padding: 1rem 0.5rem;
}

.courses__obverse-name {
  font-weight: 700;
  font-size: 22px;
  border-bottom: 1px solid #808283;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}

.courses__obverse-specialization {
  font-size: 17px;
  line-height: 1.4;
}

.courses__obverse-title .cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 20px;
  color: #f8bf0f;
  text-decoration: none;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

.courses__obverse-title .cta-button i {
  margin-left: 0.5rem;
  padding-top: 0.25rem;
}

/* Back side (reverse) */
.courses__item-revers {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: left;
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
  background-color: rgba(0, 0, 0, 0.85);
  border-radius: 10px;
  padding-top: 1rem;
  overflow: hidden;
}

.courses__item-revers p {
  border-bottom: 1px solid #808283;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.courses__item-revers p:last-child {
  border-bottom: none;
}

.courses__revers-title {
  font-weight: 700;
  font-size: 22px;
  border-bottom: 1px solid #808283;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.courses__item-revers-variable {
  position: absolute;
  top: 10px;
  left: 5px;
  right: 5px;
  max-height: 60%;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.courses__item-revers-variable p {
  font-size: 15px;
  line-height: 1.4;
}

.courses__item-revers-variable .revers-subtitle {
  font-size: 17px;
  text-align: center;
  margin-bottom: 0.5rem;
}

.courses__item-revers-constant {
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 1rem;
  max-height: 40%;
  border-top: 1px solid #808283;
  overflow-y: auto;
  padding-top: 0.5rem;
}

.courses__item-revers-constant .section-title {
  display: block;
  margin-bottom: 0.5rem;
  color: #F8BF0F;
  font-weight: 700;
  font-size: 18px;
}

.courses__item-revers-constant ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem 0;
  border-bottom: 1px solid #808283;
}

.courses__item-revers-constant ul li {
  padding: 0.25rem 0;
  font-size: 16px;
  color: #fff;
  border-bottom: 1px solid rgba(128, 130, 131, 0.3);
}

.courses__item-revers-constant ul li:last-child {
  border-bottom: none;
}

.courses__item-revers a,
.courses__obverse-title a {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 20px;
  color: #f8bf0f;
  text-decoration: none;
  padding: 0.25rem 0;
}

.courses__item-revers a:hover {
  opacity: 0.8;
}

/* Flip animation */
.courses__item:hover .courses__item-obverse {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

.courses__item:hover .courses__item-revers {
  transform: rotateY(0deg);
  -webkit-transform: rotateY(0deg);
}

.courses__item-revers.transform {
  transform: rotateY(0deg);
  -webkit-transform: rotateY(0deg);
}

/*------------------------------------------------------------------------slick carousel overrides*/

.slick-prev,
.slick-next {
  width: 43px;
  height: 43px;
  top: calc(50% - 21px);
  border-radius: 50%;
  z-index: 2;
  background: #fff !important;
}

.slick-prev::before,
.slick-next::before {
  display: none;
}

.slick-prev {
  left: -35px;
  background: url('../images/slick-prev.png') #fff center no-repeat !important;
  background-size: contain;
}

.slick-prev:hover {
  background: url('../images/slick-prev.png') #F8BF0F center no-repeat !important;
}

.slick-next {
  right: -35px;
  background: url('../images/slick-next.png') #fff center no-repeat !important;
  background-size: contain;
}

.slick-next:hover {
  background: url('../images/slick-next.png') #F8BF0F center no-repeat !important;
}

/*------------------------------------------------------------------------courses container columns*/

.courses .row [class*="col-"] {
  margin-bottom: 30px;
}

.courses .text-center .col-10 {
  max-width: 400px;
  margin: 0 auto;
}

.courses .text-center .col-sm-12 {
  max-width: 400px;
  margin: 0 auto;
}

.courses .text-center .col-md-10 {
  max-width: 400px;
  margin: 0 auto;
}

.courses .text-center .col-lg-12 {
  max-width: 400px;
  margin: 0 auto;
}

/*------------------------------------------------------------------------courses table styles*/

.courses-table {
  padding-bottom: 5rem;
}

.courses-table__button {
  background: #fff;
  box-shadow: -3px 3px 9px rgba(0, 0, 0, 0.25);
  border-radius: 5px;
  font-weight: 600;
  font-size: 17px;
  color: #000;
  padding: 1rem 1.5rem;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.courses-table__button:hover {
  color: #F8BF0F;
}

.courses-table__button i {
  margin-left: 0.5rem;
}

.courses-table .table thead th {
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  border-bottom: 1px solid #808283;
  padding: 1rem;
}

.courses-table .table tbody td {
  font-size: 16px;
  color: #fff;
  border-bottom: 1px solid #808283;
  padding: 1rem;
  vertical-align: middle;
}

.courses-table .table tbody td p {
  margin-bottom: 0.5rem;
}

.courses-table .table tbody td:last-child {
  text-align: center;
}

.courses-table .table tbody th {
  font-weight: 600;
  font-size: 18px;
  color: #F8BF0F;
  border-bottom: 1px solid #808283;
  padding: 1rem;
  vertical-align: middle;
  width: 30%;
}

/*------------------------------------------------------------------------courses media*/

/*iPad Pro landscape*/
@media only screen and (max-width: 1366px) and (orientation: landscape) and (hover: none) {
  .courses__item:hover .courses__item-obverse {
    transform: rotateY(0deg);
    -webkit-transform: rotateY(0deg);
  }
  
  .courses__item:hover .courses__item-revers {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
  }
  
  .courses__item:hover .courses__item-revers.transform {
    transform: rotateY(0deg);
    -webkit-transform: rotateY(0deg);
  }
  
  .slick-prev,
  .slick-next {
    background: transparent !important;
  }
  
  .slick-prev:active,
  .slick-next:active {
    background: transparent !important;
  }
  
  .slick-prev:hover,
  .slick-next:hover {
    background: transparent !important;
  }
  
  .slick-prev::before,
  .slick-next::before {
    display: inline-block;
  }
  
  .slick-prev {
    left: -25px;
  }
  
  .slick-next {
    right: -25px;
  }
}

/*iPad Pro portrait*/
@media only screen and (max-width: 1024px) and (orientation: portrait) {
  .courses__item:hover .courses__item-obverse {
    transform: rotateY(0deg);
    -webkit-transform: rotateY(0deg);
  }
  
  .courses__item:hover .courses__item-revers {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
  }
  
  .courses__item:hover .courses__item-revers.transform {
    transform: rotateY(0deg);
    -webkit-transform: rotateY(0deg);
  }
  
  .slick-prev,
  .slick-next {
    background: transparent !important;
  }
  
  .slick-prev:active,
  .slick-next:active {
    background: transparent !important;
  }
  
  .slick-prev:hover,
  .slick-next:hover {
    background: transparent !important;
  }
  
  .slick-prev::before,
  .slick-next::before {
    display: inline-block;
  }
  
  .slick-prev {
    left: 0;
  }
  
  .slick-next {
    right: 0;
  }
}

/*iPhone 12/13 PRO Max landscape*/
@media only screen and (max-width: 926px) and (orientation: landscape) {
  .first-screen {
    padding-top: 1rem;
    padding-bottom: 0.5rem;
  }
  
  .first-screen__left-title {
    font-size: 35px;
  }
  
  .first-screen__left-text {
    width: 70%;
    font-size: 25px;
  }
  
  .first-screen__right-title {
    font-size: 25px !important;
    padding-top: 0.5rem;
  }
  
  .first-screen__right p {
    font-size: 18px;
  }
  
  .courses {
    padding-top: 1rem;
    padding-bottom: 0;
  }
  
  .courses__item {
    margin: 0 auto !important;
    max-width: 100%;
  }
  
  .courses__title {
    font-size: 30px;
  }
  
  .slick-prev {
    left: -5px;
  }
  
  .slick-next {
    right: -5px;
  }
}

/*iPhone 12/13 PRO Max portrait*/
@media only screen and (max-width: 428px) and (orientation: portrait) {
  .first-screen {
    padding-top: 1rem;
    padding-bottom: 0.5rem;
  }
  
  .first-screen__left-title {
    font-size: 35px;
  }
  
  .first-screen__left-text {
    width: 60%;
    font-size: 25px;
  }
  
  .first-screen__right-title {
    font-size: 25px !important;
    padding-top: 0.5rem;
  }
  
  .first-screen__right p {
    font-size: 18px;
  }
  
  .courses {
    padding-top: 1rem;
    padding-bottom: 0;
  }
  
  .courses__item {
    margin: 0 auto !important;
    max-width: 100%;
  }
  
  .courses__item-obverse {
    height: 450px;
  }
  
  .courses__title {
    font-size: 30px;
  }
  
  .slick-prev {
    left: 0;
  }
  
  .slick-next {
    right: 0;
  }
}

/*iPhone 6/7/8 Plus landscape*/
@media only screen and (max-width: 736px) and (orientation: landscape) {
  .first-screen__left-text {
    width: 50%;
  }
  
  .courses__item-obverse {
    height: 350px;
  }
  
  .courses__obverse-name {
    font-size: 20px;
  }
  
  .courses__obverse-specialization {
    font-size: 15px;
  }
  
  .courses__revers-title {
    font-size: 18px;
  }
  
  .courses__item-revers-variable p {
    font-size: 14px;
  }
  
  .courses__item-revers-constant a {
    font-size: 18px;
  }
  
  .slick-prev {
    left: -25px;
  }
  
  .slick-next {
    right: -25px;
  }
}

/*iPhone 6/7/8 Plus portrait*/
@media only screen and (max-width: 414px) and (orientation: portrait) {
  .courses__item {
    max-width: 100%;
  }
}

/*iPhone 5 landscape*/
@media only screen and (max-width: 568px) and (orientation: landscape) {
  .courses__item {
    width: 70% !important;
    margin: 0 auto !important;
  }
  
  .courses__item-obverse {
    height: 400px;
  }
  
  .courses__revers-title {
    font-size: 22px;
  }
  
  .courses__item-revers-variable p {
    font-size: 16px;
  }
  
  .slick-prev {
    left: 85px;
  }
  
  .slick-next {
    right: 85px;
  }
}

/*iPhone 5 portrait*/
@media only screen and (max-width: 320px) and (orientation: portrait) and (hover: none) {
  .first-screen__left-title {
    font-size: 30px;
  }
  
  .first-screen__left-text {
    width: 70%;
    font-size: 20px;
  }
  
  .first-screen__right-title {
    font-size: 20px !important;
    padding-top: 0.5rem;
  }
  
  .first-screen__right p {
    font-size: 15px;
  }
  
  .courses__item-obverse {
    height: 350px;
  }
  
  .courses__obverse-name {
    font-size: 16px;
  }
  
  .courses__obverse-specialization {
    font-size: 14px;
  }
  
  .courses__revers-title {
    font-size: 16px;
  }
  
  .courses__item-revers-variable p {
    font-size: 14px;
  }
  
  .courses__item-revers-constant li {
    font-size: 14px;
  }
  
  .courses__item-revers-constant a {
    font-size: 16px;
  }
}

/* Desktop optimization */
@media (min-width: 1200px) {
  .courses__item {
    max-width: 450px;
  }
  
  .courses__item-obverse {
    height: 420px;
  }
  
  .courses__obverse-name {
    font-size: 24px;
  }
  
  .courses__obverse-specialization {
    font-size: 18px;
  }
}
