/************************/
/* BELOW 1200px */
/************************/

@media (max-width: 75em) {
  html {
    /* 9px / 16px */
    font-size: 56.25%;
  }

  .container {
    max-width: 120rem;
  }

  .message {
    max-width: 120rem;
  }

  .heading-primary {
    font-size: 4.4rem;
  }

  .heading-secondary {
    font-size: 3.6rem;
  }

  .heading-tertiary {
    font-size: 2.4rem;
  }

  .grid {
    column-gap: 4.8rem;
    row-gap: 6.4rem;
  }
}

/************************/
/* BELOW 944px  */
/************************/

@media (max-width: 59em) {
  html {
    /* 8px / 16px */
    font-size: 50%;
  }

  .section-hero {
    background-image: linear-gradient(
        rgba(34, 34, 34, 0.8),
        rgba(34, 34, 34, 0.8)
      ),
      url(../img/hero-img2.jpg);
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 0 8rem;
    gap: 0;
  }

  .hero-text-box,
  .hero-img-box {
    text-align: center;
  }

  .course-name {
    font-size: 7.4rem;
  }

  /* MOBILE NAVIGATION */

  .header {
    position: relative;
  }

  .btn-mobile-nav {
    display: block;
    z-index: 9999;
  }

  .nav {
    background-color: #1c1c1c;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 0;
    transition: all 0.3s;

    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    z-index: 9997;
  }

  .nav-open .nav {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    height: 45vh;
    transition: all 0.3s;
  }

  .nav-open .icon-mobile-nav[name='close-outline'] {
    display: block;
  }

  .nav-open .icon-mobile-nav[name='menu-outline'] {
    display: none;
  }

  .nav-list {
    flex-direction: column;
    gap: 3.2rem;
  }

  .nav-link:link,
  .nav-link:visited {
    font-size: 2.4rem;
  }
}

/************************/
/* BELOW 704px  */
/************************/

@media (max-width: 44em) {
  .grid {
    row-gap: 4.8rem;
  }

  .grid--2-cols {
    grid-template-columns: 1fr;
  }

  .course-img-box:nth-child(2) {
    grid-row: 1;
  }

  .course-img-box:nth-child(6) {
    grid-row: 5;
  }

  .course-img-box {
    transform: translateY(2.4rem);
  }

  .slider,
  .slide {
    height: 45rem;
  }

  .heading-secondary {
    margin-bottom: 4.8rem;
  }

  .pricing-plan {
    border-radius: 0.5rem;
    width: 100%;
  }
}

/************************/
/* BELOW 544px */
/************************/

@media (max-width: 34em) {
  .btn,
  .btn:link,
  .btn:visited {
    padding: 2.4rem 1.6rem;
  }

  .slider,
  .slide {
    height: 60rem;
  }

  .footer-item:not(:last-child) {
    margin-right: 4.8rem;
  }

  .hero {
    padding: 0 3.2rem;
  }

  .section-hero {
    padding: 2.4rem 0 6.4rem 0;
  }

  .btn--cta {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    font-size: 2rem;
    padding: 1.6rem 6.4rem;
  }

  .modal {
    padding: 3.2rem 4.8rem;
  }

  .modal-header {
    font-size: 2rem;
    margin-bottom: 3.2rem;
    line-height: 1.2;
  }

  .modal-form label {
    font-size: 1.2rem;
  }

  .modal-form input {
    font-size: 1.2rem;
    padding: 1rem 1rem;
  }

  .btn--modal {
    padding: 1.6rem 3.2rem;
  }
}
