/*============================================================================================*/
/* 3. MEDIA QUERIES */
/*============================================================================================*/

/* Movil -580px */
@media screen and (max-width: 580px) {
  .border-left {
    border-left: none;
  }
  .border-right {
    border-right: none;
  }
  .border {
    border: none;
  }
  .p-2 {
    padding: 0.2rem;
  }
  .p-3 {
    padding: 0.3rem;
  }
  .h4 {
    padding: 1.3rem;
  }
  .h2 {
    padding: 2rem;
  }
  body {
    background-color: #fff;
    padding: 0;
    margin: 0;
    font-size: 0.85rem !important;
  }
  .text-right {
    text-align: left;
  }
  .container {
    margin: 0 !important;
    padding: 0 !important;
  }
  .background-index {
  }
  .dropdown-menu {
    clear: both;
    display: block;
    width: 100%;
    background: #fff;
    color: #54575a;
    font-size: 14px;
    font-weight: 600;
  }
  .nav-link {
    display: none;
  }
  .block_box {
    padding: 1.5rem !important;
    margin: 0 !important;
    margin-bottom: 2rem !important;
    margin-top: 2rem !important;
    border: none !important;
  }
  .text-sm,
  h6 {
    font-size: 0.85rem !important;
  }
}

@media (min-width: 920px) {
  .menu_curva {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 979px) {
  .box-style-2 img {
    float: none;
    margin: auto;
    margin-bottom: 20px;
    display: block;
  }
  .box-style-2.green a {
    background: #669933;
  }
  .box-style-2.orange a {
    background: #fab90c;
  }
  .box-style-2.red a {
    background: #fe625f;
  }
  .box-style-2.green a:hover,
  .box-style-2.orange a:hover,
  .box-style-2.red a:hover {
    background: #2d343e;
  }
  .post-right {
    float: left;
  }

  .feat {
    padding-left: 0;
  }
  .feat i {
    position: relative;
    padding-bottom: 15px;
    top: 0;
    left: 0;
    display: block;
  }
  .strip-courses .button_medium.button-align-2 {
    float: none;
    margin-top: 15px;
  }
}

/* From tablet portrait to mobile */
@media (max-width: 767px) {
  #logo img {
    visibility: hidden;
    display: none;
  }
  #main-boxes {
    margin-top: 30px;
    display: none;
  }
  .post-right {
    float: left;
  }
  #logo {
    text-align: center;
    background: url(../img/logo-mobile.png) center top no-repeat;
    height: 45px;
    margin-bottom: 10px;
  }
  #menu-top {
    text-align: center;
    float: none;
    margin: 0;
  }

  .twitter,
  .fb {
    margin-bottom: 25px;
  }
  .button-align {
    text-align: left;
    padding-top: 0;
  }
  .strip-staff .pic-teacher {
    width: 60%;
    height: auto;
  }
  .strip-courses .button_medium.button-align-2 {
    float: none;
    margin-top: 15px;
  }
}

/* Mobile portrait */
@media (max-width: 480px) {
  #logo {
    text-align: center;
    background: url(../img/logo-mobile.png) center top no-repeat;
    height: 45px;
    margin-bottom: 10px;
  }
  .title-course ul {
    position: relative;
    color: #fff;
    right: 0;
    left: 0;
    top: 0;
    padding: 0;
    margin: 0;
    padding-bottom: 15px;
  }
  .title-course ul li {
    padding: 0;
  }

  .strip-courses .button_medium.button-align-2 {
    float: none;
    margin-top: 15px;
  }

  body {
    background-color: #fff;
  }
}

/* Final mobile typography reinforcement for public landings */
@media screen and (max-width: 580px) {
  body {
    font-size: 1rem !important;
    line-height: 1.54 !important;
  }

  h1 {
    font-size: 3.44rem !important;
    line-height: 1 !important;
  }

  h2 {
    font-size: 2.18rem !important;
    line-height: 1.1 !important;
  }

  h3 {
    font-size: 1.7rem !important;
    line-height: 1.14 !important;
  }

  h4,
  .h4 {
    font-size: 1.34rem !important;
    line-height: 1.22 !important;
  }

  p,
  li {
    font-size: 1rem !important;
    line-height: 1.58 !important;
  }

  .text-sm,
  h6 {
    font-size: 1rem !important;
    line-height: 1.4 !important;
  }
}

/* =========================================================
   Mobile Font Reduce 10%
   ========================================================= */
@media screen and (max-width: 580px) {
  .dropdown-menu {
    font-size: 12.6px !important;
  }
}

/* =========================================================
   Padding global en paginas publicas (movil)
   Evita que el contenido quede pegado al borde del navegador.
   No aplica a Academy (body.academy-app).
   ========================================================= */
@media (max-width: 991.98px) {
  body:not(.academy-app) .container {
    padding-left: 30px !important;
    padding-right: 30px !important;
  }
}
