/* media So to get the media query calculstion you just divide your desired width by 16 (width / 16), then to get the pixels yould then multiply you max-width by 16 (max-width * 16)  */

/********************************/
/* BELOW  2016px (Large desktops)*/
/********************************/

@media (max-width: 126em) {
  .Mainnav {
    padding: 0 0;

    gap: 2.4rem;
    justify-content: space-around;
  }

  .nav-link {
    font-size: 1.8rem;
  }

  .icon {
    font-size: 2.4rem;
  }

  .socials-icons-list {
    gap: 2.4rem;
  }

  .nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
  }

  .nav-btn {
    font-size: 1.6rem;
  }

  .nav-btn-2 {
    padding: 0.4rem 2rem;
  }
}

/********************************/
/* BELOW  1680px (Smaller desktops)*/
/********************************/

@media (max-width: 105em) {
  html {
    font-size: 50.2%;
    /* overflow-x: hidden; */
  }

  .logo {
    width: 9rem;
  }

  .logo-box::before {
    width: 90px;
    height: 90px;
  }

  .logo-box::after {
    width: 110px;
    height: 110px;
  }

  .hero {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
  }

  .cards {
    gap: 2rem;
  }

  .academics {
    max-width: 95%;
  }
}

/********************************/
/* BELOW  1536px (Smaller desktops)*/
/********************************/

@media (max-width: 96em) {
  html {
    font-size: 48.2%;
    /* overflow-x: hidden; */
  }

  .card-img {
    width: 250px;
    height: 200px;

    margin-bottom: 2rem;
  }

  .academics-text-and-icons {
    gap: 8rem;
  }

  .academics-lists {
    gap: 6rem;
  }
}

/********************************/
/* BELOW  1296px (Smaller desktops)*/
/********************************/

@media (max-width: 81em) {
  .nav-list {
    gap: 2.5rem;
  }
  .socials-icons-list {
    gap: 1.8rem;
  }
  .nav-link {
    font-size: 1.7rem;
  }
  .icon {
    font-size: 2.4rem;
  }

  .logo {
    width: 8rem;
  }
  .logo-box {
    width: 130px;
    height: 130px;
  }

  .Mainnav {
    gap: 1.2rem;
    justify-content: space-around;
    height: fit-content;
  }

  .txt1 {
    font-size: 1.6rem;
  }
  .txt2 {
    font-size: 1.2rem;
  }
  .txt3 {
    font-size: 1.2rem;
  }

  .nav-link {
    font-size: 1.4rem;
  }

  .socials-icons-list {
    /* flex-direction: column;
    gap: 0px; */
  }

  .academics-icon {
    font-size: 7rem;
    color: #f5f7fa;

    margin-bottom: 1rem;
  }
  .academics-icon-txt {
    font-size: 1.5rem;
  }

  .card-img {
    width: 200px;
    height: 150px;
  }

  .card-txt {
    max-width: 20rem;
  }

  .course-header-txt {
    font-size: 7rem;
    max-width: 750px;
  }

  .course-head-p {
    font-size: 2.1rem;
    max-width: 60rem;
  }
}

/********************************/
/* BELOW  1160px (Smaller desktops)*/
/********************************/
@media (max-width: 73em) {
  .socials-hide {
    display: none;
  }

  .head-of-footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    align-items: center;
  }

  .acatemics-txt-header {
    font-size: 2.4rem;
    margin-bottom: 2rem;
  }

  .acdemics-txt-p {
    max-width: 400px;
  }

  .academics-lists {
    gap: 3rem;
  }
}

/********************************/
/* BELOW  944px (Smaller desktops)*/
/********************************/
@media (max-width: 59em) {
  /* Hide destop navigation */
  .nav-main,
  .socials {
    display: none;
  }

  /* Show hambuger */
  .menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 5rem;
    height: 5rem;

    border: none;
    background: transparent;
    cursor: pointer;
  }

  /* The three lines */

  .hambuger {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
  }

  .hambuger span {
    display: block;

    width: 3.2rem;
    height: 0.3rem;

    background-color: #e8f0fa;
    border-radius: 10px;

    transition: all 0.3s ease;
  }

  /* MOBILE MENU */

  .mobile-menu {
    display: flex;

    position: absolute;

    top: 100%;
    right: 2rem;

    width: 25rem;

    padding: 2rem;

    background-color: #1a3a6b;

    flex-direction: column;
    gap: 1.8rem;

    border-radius: 0 0 1rem 1rem;

    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.25);

    /* Hidden */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-1rem);

    transition: all 0.3s ease;

    z-index: 1000;
  }

  /* Menu becomes visible when JS adds .active */

  .mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* Mobile links */

  .mobile-menu a {
    color: #fdf2e9;
    text-decoration: none;
    font-size: 1.8rem;
    padding: 0.8rem 1rem;
    transition: 0.2s ease;
  }

  .mobile-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
  }

  /* Mobile social icon */

  .mobile-socials {
    display: flex;

    gap: 1.5rem;

    padding-top: 1rem;

    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .mobile-socials ion-icon {
    font-size: 2.5rem;
    color: #e8f0fa;
  }

  /* on to */

  .head-of-footer {
    grid-template-columns: repeat(2, 1fr);
    justify-items: left;
    align-items: left;
    column-gap: 8rem;

    padding: 0 5rem;
  }

  .mobile-menu.active {
    display: flex;
  }

  .academics-text-and-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5rem;
  }

  .cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    justify-items: center;
    width: 70%;
    margin: 0 auto;

    gap: 5rem;
  }

  .hero {
    display: flex;

    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .course-header-txt {
    text-align: center;
    margin-bottom: 2rem;
  }
  .course-head-p {
    text-align: center;
  }

  .for-try {
    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 5rem;
  }

  .course-hero-section {
    margin-bottom: 10rem;
  }
}

/********************************/
/* BELOW  816px (Smaller desktops)*/
/********************************/
@media (max-width: 51em) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem;
  }

  .card-exp {
    grid-column: 1 / 3;
    justify-content: center;
  }
}

/********************************/
/* BELOW  688px (Smaller desktops)*/
/********************************/
@media (max-width: 43em) {
  /* .add-div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7rem;
  } */
}

/********************************/
/* BELOW  576px (Smaller desktops)*/
/********************************/
@media (max-width: 36em) {
  .Mainnav {
    height: 6vh;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .card-exp {
    grid-column: 1 / 1;
  }

  .txt1,
  .txt2 {
    display: none;
  }

  .txt3 {
    text-align: center;
    max-width: 2rem;

    margin-top: 3rem;
  }

  .nav-dot {
    display: none;
  }

  .Mainnav {
    justify-content: space-between;
    height: 12rem;
  }

  .img-txt {
    margin-left: 2rem;
  }

  .menu-btn {
    margin-right: 2rem;
  }

  .logo {
    width: 7.7rem;
  }

  .logo-box::before {
    width: 80px;
    height: 80px;
  }
  .logo-box::after {
    width: 100px;
    height: 100px;
  }
}

/********************************/
/* BELOW  480px (Smaller desktops)*/
/********************************/
@media (max-width: 30em) {
  .Mainnav {
    height: 11vh;
  }

  .head-of-footer {
    grid-template-columns: repeat(1, 1fr);
    justify-items: center;
    align-items: center;
  }

  .course-header-txt {
    font-size: 5rem;
    max-width: 600px;
  }

  .academics-lists {
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem;
  }

  .acatemics-txt-header {
    text-align: center;
  }

  .acdemics-txt-p {
    text-align: center;
  }
}

/********************************/
/* BELOW  368px (Smaller desktops)*/
/********************************/
@media (max-width: 23em) {
  html {
    font-size: 40%;
  }
}
