/* ************************************ */
/* BELOW 1350PX - 84.4em (SMALL PC SCREEN) */
/* ************************************ */

@media (max-width: 84.4em) {
  .container,
  .section-hero {
    padding-right: 6.4rem;
    padding-left: 6.4rem;
  }
  .section-hero img {
    width: 35%;
  }
  .header {
    padding-right: 9.6rem;
    padding-left: 9.6rem;
  }
}

/* ************************************ */
/* BELOW 1200PX - 75em (HORIZONTAL TABLET) */
/* ************************************ */

@media (max-width: 75em) {
  html {
    font-size: 56.25%;
  }
  .course {
    transition: none;
  }
  .course:hover {
    transform: translatey(0);
  }
  .header {
    padding-right: 9rem;
    padding-left: 9rem;
  }
  .heading-1 {
    font-size: 5.2rem;
  }
  .section-hero img {
    width: 40%;
  }
  .courses {
    grid-template-columns: 1fr 1fr;
    column-gap: 15rem;
    justify-content: space-between;
  }
}

/* ************************************ */
/* BELOW 960PX - 60em (TABLET) */
/* ************************************ */

@media (max-width: 60em) {
  .courses {
    column-gap: 9rem;
    align-items: end;
  }

  .heading-1 {
    font-size: 4.4rem;
  }
  .section-hero img {
    width: 50%;
  }
  .hero-container {
    grid-template-columns: 1fr;
  }

  /* اظهار الزر عند الوصول الى 950 بكسل او اقل عرضا */
  .btn-mobile-nav {
    display: block;
  }
  /* تحول شريط التنقل الى قائمة بكامل الشاشة */

  .list-nav {
    flex-direction: column;
    align-items: center;
    gap: 6.4rem;
    height: 100vh;
    justify-content: center;
  }

  .nav {
    background-color: rgba(255, 255, 255, 0.5);
    position: absolute;
    width: 100%;
    backdrop-filter: blur(15px);
    top: 0;
    left: 0;
    /* hide with animation */
    transform: translatex(100%);
    /* اخفاء العنصر بصريا */
    opacity: 0;
    /* لايمكن الوصول اليه بالكيبورد والماوس */
    pointer-events: none;
    /* اخفاؤه من قائين الشاشة */
    visibility: hidden;
    transition: ease all 0.5s;
  }

  .night-mode .nav {
    background-color: rgba(0, 0, 0, 0.5);
  }

  .nav-open {
    transform: translatex(0%);
    background-color: rgba(233, 244, 237, 0.904);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .list-item-nav a:link,
  .list-item-nav a:visited {
    font-size: 3rem;
  }

  .course-type {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    justify-content: center;
    justify-items: center;
    column-gap: 0;
  }

  .footer-container {
    width: 100%;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 0;
    justify-content: center;
    justify-self: center;
  }
  .list-nav {
    background-color: rgba(233, 244, 237, 0.01);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .night-mode .list-nav {
    background-color: rgba(13, 13, 13, 0.8);
  }

  .btn-night {
    display: none;
  }
  .btn-night-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 4.2rem;
    right: 17rem;
    z-index: 99999;
  }
}

/* ************************************ */
/* BELOW 700PX - 43.75em (TABLET) */
/* ************************************ */

@media (max-width: 43.75em) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
    justify-items: center;
    padding-right: 1.6rem;
    padding-left: 1.6rem;
  }
  .footer-img-box {
    grid-row: 2;
    grid-column: 1/-1;
    display: flex;
    gap: 2.8rem;
  }
  .footer-img-box a {
    display: flex;
  }
  .footer-popular-course {
    margin-bottom: 2.4rem;
  }
  .section-hero img {
    width: 70%;
  }
  .heading-1 {
    font-size: 6.4rem;
  }
  .courses {
    column-gap: 3.2rem;
    row-gap: 4.8rem;
    grid-template-columns: 1fr;
    padding-right: 6rem;
    padding-left: 6rem;
  }
}

/* ************************************ */
/* BELOW 552PX - 34.50em (PHONE) */
/* ************************************ */

@media (max-width: 34.5em) {
  html {
    font-size: 50%;
  }
  .header {
    padding-left: 4.2rem;
    padding-right: 4.2rem;
  }
  .section-hero img {
    width: 90%;
  }
  .heading-1 {
    font-size: 4.8rem;
  }
  .heading-2 {
    font-size: 3.6rem;
  }
  .section-hero {
    padding-left: 4.2rem;
    padding-right: 4.2rem;
  }
  .container {
    padding-left: 3.2rem;
    padding-right: 3.2rem;
  }

  .course-type {
    column-gap: 1.6rem;
  }
  .course-type-link:link,
  .course-type-link:visited {
    width: 13rem;
  }

  .course-type li:nth-child(2) a:link,
  .course-type li:nth-child(2) a:visited {
    padding-right: 0;
    padding-left: 0;
  }
  .search-input {
    width: 90%;
  }
  .search-icon {
    right: 3.5rem;
  }
  .courses {
    padding-left: 2.4rem;
    padding-right: 2.4rem;
    row-gap: 6.4rem;
  }
  .footer-container {
    padding-left: 0;
    padding-right: 0;
    grid-template-columns: 1fr 1.3fr;
  }
  .btn-night-mobile {
    top: 4.2rem;
    right: 12rem;
  }
}
