/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Medula+One&family=Open+Sans:wght@400;600;700&family=Roboto:ital,wght@0,400;0,500;0,700;0,900;1,400&display=swap");

/*===== VARIABLES CSS =====*/
:root {
  --header-height: 3rem;

  /*===== Colors =====*/
  --first-color: #d43c3c;
  --dark-color: #080809;
  --white-color: #fbfbfb;
  --grey-color: #535353;

  /*===== Font and typography =====*/
  --body-font: "Open Sans", sans-serif;
  --nav-name-font-size: 1.5rem;
  --normal-font-size: 0.938rem;

  /*===== z index =====*/
  --z-fixed: 100;
}

@media screen and (min-width: 768px) {
  :root {
    --nav-name-font-size: 1rem;
    --normal-font-size: 1rem;
  }
}

/*===== BASE =====*/
*,
::before,
::after {
  box-sizing: border-box;
}
body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  font-weight: 600;
  background-color: var(--white-color);
}
#main-body {
  max-width: 1204px;
  margin: 5rem auto;
}
.header ul,
.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
a {
  text-decoration: none;
}
.bd-grid {
  max-width: 1204px;
  display: grid;
  grid-template-columns: 100%;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

/*===== HEADER =====*/
.hero-image {
  max-height: 500px;
}
.hero-image img {
  width: 100%;
  height: 500px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  object-fit: cover;
  position: relative;
}
.hero-image-text {
  max-width: 1204px;
  position: relative;
  z-index: 1;
  top: -20rem;
  margin: auto;
}
.hero-image .hero-text {
  font-family: "Roboto", sans-serif;
  font-weight: 900;
  font-size: 50px;
  color: var(--white-color);
  margin: 0;
}
.hero-image .hero-text-secondary {
  font-family: "Roboto", sans-sefif;
  font-weight: 500;
  font-size: 30px;
  color: var(--white-color);
  margin: 10px 0;
}
/* media queries */
@media screen and (max-width: 1400px) {
  .hero-image-text {
    margin: 0 4rem auto;
  }
}
@media screen and (max-width: 768px) {
  .hero-image {
    max-height: 300px;
  }
  .hero-image img {
    height: 300px;
  }
  .hero-image-text {
    top: -11rem;
  }
  .hero-image .hero-text {
    font-size: 30px;
  }
}

/*===== NAV =====*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  padding: 0 1rem;
  background-color: var(--first-color);
  z-index: var(--z-fixed);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
}
.header-logo {
  color: var(--white-color);
  font-family: serif;
}
.header-toggle {
  font-size: 1.7rem;
  cursor: pointer;
  color: var(--white-color);
}
@media screen and (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    left: -100%;
    background-color: var(--first-color);
    width: 80%;
    height: 100vh;
    padding: 2rem 0;
    z-index: var(--z-fixed);
    transition: 0.5s;
    overflow-y: auto;
  }
}
.nav-content {
  display: flex;
  flex-direction: column;
}
.nav-perfil {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 3rem;
}
.nav-name {
  display: block;
  font-size: 20px;
  color: var(--white-color);
  font-family: serif !important;
}
.nav-item {
  margin-bottom: 2rem;
}
.nav-link {
  color: var(--white-color);
}
.nav-link:hover {
  color: #eb9f9f;
  transition: 0.7s;
}
/*Show menu*/
.show {
  left: 0;
}
/*Active link*/
.active {
  color: var(--white-color);
}

/*==== DROPDOWN ====*/
.dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dropdown-icon {
  font-size: 1.3rem;
  transition: 0.5s;
}
.dropdown-menu {
  margin: 1rem 0 0 1rem;
  display: none;
}
.dropdown-item,
.dropdown-item a {
  margin: 1rem 0;
  color: var(--first-color);
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.dropdown:hover > .dropdown-menu {
  display: block;
  padding: 0.5rem 1rem;
}
.dropdown:hover .dropdown-icon {
  transform: rotate(180deg);
}
.contact-info-mob p,
.contact-info-mob a {
  font-size: 14px;
  font-weight: 400;
  color: var(--white-color);
  padding: 5px 0;
}
/* media queries */
@media screen and (min-width: 576px) {
  .nav {
    width: 288px;
  }
}
@media screen and (min-width: 768px) {
  body {
    margin: 0;
  }
  .header {
    height: calc(var(--header-height) + 1rem);
  }
  .header-logo,
  .header-toggle,
  .contact-info-mob p,
  .contact-info-mob a {
    display: none;
  }
  .nav {
    width: 100%;
  }
  .nav-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .nav-perfil {
    flex-direction: row;
    text-align: initial;
    margin-bottom: 0;
  }
  .nav-img {
    width: 40px;
    height: 40px;
    margin-right: 0.5rem;
    margin-bottom: 0;
  }
  .nav-img img {
    width: 46px;
  }
  .nav-name {
    color: var(--white-color);
  }
  .nav-list {
    display: flex;
    align-items: center;
  }
  .nav-item {
    margin: 0 1.5rem;
    padding: 1.4rem 0;
    color: var(--white-color);
  }
  .nav-link {
    color: var(--white-color);
  }
  .dropdown {
    position: relative;
  }
  .dropdown-menu {
    position: fixed;
    margin: 0;
    top: calc(var(--header-height) + 1rem);
    padding: 0.5rem 1.5rem;
    box-shadow: 0 2px 2px 1px rgba(0, 0, 0, 0.08);
    background-color: var(--white-color);
  }
  .dropdown-item {
    margin: 0.5rem 0;
  }
  .dropdown-item a:hover {
    color: var(--first-color);
  }
}
@media screen and (max-width: 768px) {
  .dropdown-item a {
    color: var(--white-color);
  }
}
@media screen and (min-width: 1024px) {
  .bd-grid {
    margin-left: auto;
    margin-right: auto;
  }
}

/*===== FOOTER =====*/
.footer {
  position: absolute;
  background-color: #fff;
  width: 100%;
  box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.1);
}
.footer-menu {
  display: flex;
  justify-content: space-between;
  margin: 3rem auto 2rem;
  padding: 0 2rem;
  max-width: 1450px;
  color: var(--first-color);
}
.footer-left {
  display: flex;
  flex-direction: row;
  width: 360px;
}
.footer-left img {
  padding-right: 3rem;
  max-width: 220px;
}
.footer-list .footer-item {
  padding: 0.3rem;
}
.footer-list a {
  position: relative;
  font-size: 13px;
  font-weight: 400;
  color: var(--first-color);
}
.footer-list a:hover::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 0;
  left: 0;
  bottom: 0px;
  border-bottom: 1px solid var(--first-color);
}
.footer-copyright {
  text-align: center;
  font-size: 13px;
  font-weight: 400;
  color: var(--first-color);
  margin: 0 1rem 2rem;
}
.footer-info {
  font-size: 13px;
  font-weight: 400;
  text-align: right;
  width: 360px;
}
.footer-info a {
  font-size: 13px;
  font-weight: 400;
  color: var(--first-color);
}
.footer-info i {
  font-size: 18px;
  display: inline-block;
  vertical-align: -4px;
}
/* media queries */
@media screen and (max-width: 768px) {
  .footer-menu {
    flex-direction: column;
  }
  .footer-list a {
    font-size: 12px;
  }
  .footer-copyright {
    padding-top: 1rem;
    align-self: center;
  }
  .footer-info {
    display: none;
  }
}

/*===== SLICK SLIDER =====*/
.slick {
  margin-right: -20px;
}
.slick-outer {
  max-width: 1060px;
  margin: 2rem auto;
  padding: 0 3rem 2rem;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}
.slick-img {
  position: relative;
}
.slick-img img {
  width: 180px;
  height: 180px;
  object-fit: cover;
}
.slick-title {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 10px 10px 10px 15px;
  width: 180px;
  background-color: var(--first-color);
  color: var(--white-color);
  font-size: 13px;
  font-weight: 400;
  font-family: "Roboto", sans-serif;
}
.slider-name {
  padding: 1.5rem 0;
  display: block;
  color: var(--first-color);
  font-size: 20px;
  font-weight: 800;
  left: 0;
}
.slick-arrow {
  font-size: 48px;
  color: var(--grey-color);
}
.slick-arrow:hover {
  color: var(--first-color);
  transition: 0.5s;
}
.arrow-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
}
.arrow-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
}
/* media queries */
@media screen and (max-width: 1100px) {
  .slick-outer {
    max-width: 700px;
  }
}
@media screen and (max-width: 700px) {
  .slick-outer {
    max-width: 500px;
  }
}
@media screen and (max-width: 500px) {
  .slick-img img {
    max-width: 170px;
    max-height: 170px;
    object-fit: cover;
  }
  .slick-title {
    width: 170px;
  }
}

/*==== MAIN BODY ====*/
#main-body .main-body-flex {
  display: flex;
  justify-content: space-around;
  font-family: "Roboto", sans-serif;
}
#main-body .flex1,
#main-body .flex2 {
  max-width: 600px;
  position: relative;
  margin: 1rem 4rem 0;
}
#main-body .flexvariation1 {
  max-width: 1204px;
}
#main-body .main-body-flex .flex1 h1 {
  font-size: 40px;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  color: var(--first-color);
  font-weight: 900;
}
#main-body .main-body-flex .flex1 h2 {
  font-size: 30px;
  margin: 0 0 1rem;
  color: var(--grey-color);
  font-weight: 500;
}
#main-body .main-body-flex .flex1 h3 {
  color: var(--first-color);
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 24px;
  margin: 3rem 0 1rem;
}
#main-body .main-body-flex .flex1 .body-list1,
#main-body .main-body-flex .flex1 .body-list2 {
  padding: 1rem 1rem 0;
  font-weight: 400;
  line-height: 30px;
}
#main-body .main-body-flex .flex1 .body-list1 .even,
#main-body .main-body-flex .flex1 .body-list2 .even {
  color: var(--grey-color);
}
#main-body .main-body-flex .flex1 .body-item {
  padding-left: 1rem;
}
#main-body .main-body-flex .flex1 .body-summary-text-bold {
  font-size: 30px;
  color: var(--first-color);
  padding: 0 0 0 1rem;
  max-width: 500px;
}
#main-body .main-body-flex .flex1 .variation1 {
  margin: 1rem 0 !important;
}
#main-body .main-body-flex .flex1 .variation2 {
  margin: 2rem 0 !important;
  padding: 0 !important;
}
#main-body .main-body-flex .flex2 .body-image {
  margin: 6rem 0;
  position: relative;
}
#main-body .main-body-flex .flex2 .body-img1 {
  max-width: 360px;
  object-fit: cover;
  position: absolute;
  z-index: 1;
  top: 3rem;
  right: 3rem;
}
#main-body .main-body-flex .flex2 .red-box-behind {
  content: "";
  background-color: var(--first-color);
  width: 380px;
  height: 530px;
}
.contact-button-body {
  display: block;
  text-align: center;
  width: 150px;
  padding: 15px 0;
  background-color: var(--first-color);
  color: var(--white-color);
  border: none;
  border-radius: 5px;
  margin: 2rem 1rem;
  font-size: 17px;
  font-weight: 500;
  font-family: "Roboto", sans-serif;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 4px rgba(212, 60, 60, 0.1);
}
.contact-button-body:hover {
  color: #eb9f9f;
  transition: 0.5s;
}
/* media queries */
@media screen and (max-width: 1024px) {
  #main-body .main-body-flex {
    flex-direction: column;
  }
  #main-body .main-body-flex .flex2 {
    max-height: 780px;
  }
  #main-body .main-body-flex .flex2 .body-img1 {
    left: 3rem;
  }
}
@media screen and (max-width: 768px) {
  #main-body .flex1,
  #main-body .flex2 {
    margin: 0 3rem;
  }
  #main-body .main-body-flex .flex1 h1 {
    font-size: 32px;
  }
  #main-body .main-body-flex .flex1 h2 {
    font-size: 26px;
  }
  #main-body .main-body-flex .flex1 h3 {
    font-size: 20px;
    margin: 2.5rem 0 1rem;
  }
  #main-body .main-body-flex .flex1 .body-summary-text-bold {
    font-size: 25px;
  }
  #main-body .main-body-flex .flex2 .body-image {
    margin: 6rem 0 1rem;
  }
  #main-body .main-body-flex .flex2 .body-img1 {
    max-width: 280px;
    top: -3rem;
    left: 3rem;
  }
  #main-body .main-body-flex .flex2 .red-box-behind {
    width: 280px;
    height: 448px;
  }
}

/*==== TESTIMONIALS ====*/
#testimonials {
  background-color: var(--first-color);
  margin: 0;
  /* max-height: 407px; */
}
#testimonials .testimonials-outer {
  display: flex;
  max-width: 1204px;
  margin: auto;
}
#testimonials .testimonials-container {
  margin: auto;
  padding: 3rem 1rem;
  color: var(--white-color);
  width: 350px;
}
#testimonials .testimonials-container .quote,
#testimonials .testimonials-container .quote-author {
  margin: 1rem;
}
#testimonials .testimonials-container .quotation-marks {
  font-size: 220px;
  margin: 0;
  max-height: 2.5rem;
  font-family: "Medula One", cursive;
  color: #da5757;
}
#testimonials .testimonials-container .quotation-text {
  font-weight: 400;
  font-size: 18px;
  padding-left: 2rem;
}
#testimonials .testimonials-container .quote-author {
  font-weight: 400;
  font-size: 18px;
  padding: 1rem 2rem 2rem;
}
.testimonials-slider .slick-dots {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  text-align: center;
  padding: 0;
}
.testimonials-slider .slick-dots li {
  list-style: none;
  width: 10px;
  height: 10px;
  background: #da5757;
  border-radius: 50%;
  display: inline-block;
  margin: 8px 8px 2rem;
}
.testimonials-slider .slick-dots li.slick-active {
  background: var(--white-color);
}
.testimonials-slider .slick-dots li button {
  display: none;
}

/* media queries */
@media screen and (min-width: 768px) {
  .testimonials-slider {
    display: none;
  }
}
@media screen and (max-width: 768px) {
  #testimonials {
    max-height: 100%;
  }
  #testimonials .testimonials-outer {
    display: none;
  }
  #testimonials .testimonials-container {
    padding: 1.5rem 0 5.5rem;
  }
  #testimonials .testimonials-container .quote,
  #testimonials .testimonials-container .quote-author {
    margin: 0 1rem;
  }
  #testimonials .testimonials-container .quote-author {
    padding: 0 2rem;
  }
}
@media screen and (max-width: 768px) {
  #testimonials .testimonials-container .quote,
  #testimonials .testimonials-container .quote-author {
    max-width: 100%;
    margin: 1rem 3rem;
  }
}

/*========= COURSES PAGE TEMPLATE =========*/
#main-body .main-body-flex .flex2 .outcomes-container {
  background-color: var(--first-color);
  color: var(--white-color);
  margin: 3rem 1rem;
  padding: 1rem 2rem 0.5rem;
  width: 350px;
}
#main-body .main-body-flex .flex2 .outcomes-container h3 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
#main-body .main-body-flex .flex2 .outcomes-container p {
  font-weight: 400;
  margin: 0 0 1.5rem;
  line-height: 25px;
}
#main-body .main-body-flex .flex2 .outcomes-list {
  padding: 0 0 10px 10px;
}
#main-body .main-body-flex .flex2 .outcomes-list li {
  font-weight: 400;
  line-height: 25px;
  font-size: 16px;
  padding: 0 10px 10px;
}
#main-body .main-body-flex .flex1 .body-paragraph {
  margin-top: 2rem;
  font-weight: 400;
  font-size: 17px;
  line-height: 30px;
}
#main-body .main-body-flex .flex2 .body-paragraph {
  font-weight: 400;
  font-size: 17px;
  line-height: 30px;
}
/* media queries */
@media screen and (max-width: 768px) {
  #main-body .main-body-flex .flex2 .outcomes-container {
    margin: 3rem auto 0;
    width: 330px;
  }
  #main-body .main-body-flex .flex1 .body-paragraph {
    font-size: 15px;
  }
}

/*========= TEACHERS PAGE TEMPLATE =========*/
.teachers-container {
  margin: 3rem 0 0;
}
.h3style2 {
  margin: 2rem 0 0 !important;
  font-size: 22px !important;
}
.liststyle2 {
  margin: 0 !important;
}
@media screen and (max-width: 768px) {
  .liststyle2 {
    padding: 1rem 0;
  }
}
.teachers-grid {
  display: flex;
  margin: 2rem;
}
.grid-shadow {
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
}
.grid-right {
  margin: 0 3rem;
}
.grid-left img {
  max-width: 200px;
  margin: 1rem;
  object-fit: cover;
}
/* media queries */
@media screen and (max-width: 768px) {
  .teachers-grid {
    flex-direction: column;
  }
  .grid-right {
    margin: 1rem 2rem;
  }
  .grid-left img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
  }
  .h3style2 {
    margin: 0 !important;
  }
}

/*========= CONTACT PAGE TEMPLATE =========*/
.g-recaptcha {
  padding: 0.5rem 0 2rem;
}
.recaptchamessagefail {
  color: var(--first-color);
  margin: 1.1rem 0;
}
.recaptchamessagesuccess {
}
.form-paragraph {
  margin-top: 2rem;
  max-width: 400px;
  font-weight: 400;
  font-size: 17px;
  line-height: 30px;
  color: var(--grey-color);
}
.form-group {
  /* max-width: 350px when under 768px + margin: auto */
  margin: 1.5rem 0;
}
.form-group label {
  display: block;
  margin: 0.8rem 0;
  font-weight: 500;
  color: var(--first-color);
}
.form-group input,
.form-group textarea {
  width: 380px;
  border: 2px solid var(--first-color);
  border-radius: 5px;
  padding: 6px;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
}
.form-group ::placeholder {
  color: #161616;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: var(--white-color);
}
.form-group textarea {
  height: 100px;
  resize: none;
}
.form-button {
  height: 50px;
  width: 150px;
  background-color: var(--first-color);
  color: var(--white-color);
  border: none;
  border-radius: 5px;
  font-family: "Roboto", sans-serif;
  font-size: 17px;
  font-weight: 500;
  box-shadow: 0 4px 4px rgba(212, 60, 60, 0.1);
}
.form-button:hover {
  color: #eb9f9f;
  transition: 0.5s;
  cursor: pointer;
}
.flex1 form {
  margin: 2rem 0;
}
.flex2 i {
  font-size: 20px;
  display: inline-block;
  vertical-align: -4px;
}

@media screen and (max-width: 768px) {
  .flex1 form {
    margin: 3rem auto;
  }
  .form-group input,
  .form-group textarea {
    width: 330px;
  }
}
