/************************/
/*BELOW 1344px - For smaller desktops- (84*16=1344)*/
/************************/
@media (max-width: 84em) {
  .heading-primary {
    font-size: 4.4rem;
  }
  .hero {
    max-width: 120rem;
  }
}

/************************/
/*BELOW 1200px - For Landscape Tablets- */
/************************/
@media (max-width: 74em) {
  html {
    font-size: 56.25%;
  }
  .nav__menu {
    position: absolute;
    left: 0;
    top: 2.5rem;
    width: 100%;
    height: 100vh;
    background-color: white;
    overflow: auto;
    pointer-events: none;
    opacity: 0;
    transition: top 0.4s, opacity 0.3s;
  }

  .nav__menu::-webkit-scrollbar {
    width: 0;
  }
  .nav__list {
    padding-top: 5rem;
  }

  .grid {
    column-gap: 4.8rem;
    row-gap: 6.4rem;
  }
  .heading-secondary {
    font-size: 3.6rem;
  }

  .heading-tertiary {
    font-size: 2.4rem;
  }

  .header {
    padding: 3rem 1.2rem;
  }
  .hero {
    gap: 4.8rem;
  }
  .container-services {
    padding: 1.6rem;
  }
  .nav__list,
  .nav__link,
  .nav__menu {
    background-color: #b0cdc9;
  }
}

/************************/
/*BELOW 1008px - For smaller desktops- (63*16=1008)*/
/************************/
@media (max-width: 63em) {
  html {
    font-size: 50%;
  }
  .container-services.grid--4--cols {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer {
    flex-direction: column;
  }

  .footer-nav-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .speciality {
    grid-template-columns: 1fr;

    gap: 6.4rem;
  }
  .speciality-text-box {
    padding: 3.2rem;
  }
  .speciality-text-box,
  .speciality-img-box {
    text-align: center;
  }
}

/************************/
/*BELOW 913px - For smaller desktops- (55*16=880)*/
/************************/
@media (max-width: 57.25em) {
  .box-content-services .list-item {
    font-size: 1.4rem;
  }
  .box-header .heading-quad {
    font-size: 2rem;
  }
}

/************************/
/*BELOW 880px - For smaller desktops- (55*16=880)*/
/************************/
@media (max-width: 60.3em) {
  .hero {
    grid-template-columns: 1fr;
    padding: 0 8rem;
    gap: 6.4rem;
  }
  .hero-text-box {
    text-align: center;
  }
  .section-concept-z .grid--2--cols {
    grid-template-columns: 1fr;
  }
}

/************************/
/*BELOW 853 - For Smalle Tablets- */
/* 853 /16 = 53.1 */
/************************/
@media (max-width: 53.1em) {
  .heading-box-info {
    font-size: 2.5rem;
  }

  .box-info .list-item {
    font-size: 1.5rem;
  }

  .section-grant-benefits .grid--3--cols {
    grid-template-columns: 1fr;
  }
  .section-grant-boxes .grid--3--cols,
  .section-grant-boxes .grid--2--cols {
    grid-template-columns: 1fr;
  }
  .box-container-2 {
    padding: 3rem 5.5rem 2.5rem;
  }
}

/************************/
/*BELOW 800px - For Smalle Tablets- */
/* 800 /16 = 50 */
/************************/
@media (max-width: 50em) {
  .section-services-boxes .grid--3--cols {
    grid-template-columns: 1fr;
  }
  .section-services-boxes .container {
    max-width: 70rem;
  }
}

/************************/
/*BELOW 768px - For Smalle Tablets- */
/* 768 /16 = 48 */
/************************/

@media (max-width: 48em) {
  /* .flip-main .flip-card {
    flex: 0 0 calc(100% - 30px);
  } */
  .grid {
    row-gap: 4.8rem;
  }

  .accordion {
    width: 100%;
  }

  .front-all {
    height: 100%;
  }
  .flip-main {
    margin: 0 1rem;
  }

  .section-benefits .grid--4--cols {
    grid-template-columns: 1fr;

    text-align: center;
  }

  .section-benefits-2 .grid--4--cols {
    grid-template-columns: 1fr;

    text-align: center;
  }
  .section-services-outro .grid--2--cols {
    grid-template-columns: 1fr;
  }
}

/************************/
/*BELOW 760 - For Smalle Tablets- */
/* 760 /16 = 47.5 */
/************************/
@media (max-width: 47.5em) {
  .heading-box-info {
    font-size: 2rem;
    text-align: center;
  }

  .box-info .list-item {
    font-size: 1.2rem;
  }
  .strength-list .list-item,
  .benefits-list .list-item,
  .strength-list .list-item-2,
  .benefits-list .list-item-2 {
    font-size: 1.2rem;
  }

  .box-info {
    padding: 1.5rem 1rem;
  }
}
/************************/
/*BELOW 544px - For Phones - */
/* 550 / 16= 34.375 */
/* 34 * 16 = 544 */
/************************/

@media (max-width: 34em) {
  .container-services.grid--4--cols {
    grid-template-columns: 1fr;
  }
  .benefits-list,
  .strength-list {
    text-align: left;
  }

  .grid--2--cols,
  .grid--3--cols,
  .grid--4--cols,
  .grid--5--cols {
    grid-template-columns: 1fr;
  }
  .grid {
    row-gap: 1.8rem;
  }
  .section-hero {
    background: url(/img/hero.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 20% 50%;
    height: 100vh;
    width: 100%;
    padding: 1.8rem 0 9.6rem 0;
  }

  .section-joinus-banner {
    background: url(/img/about-us/join-us.webp);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    /* height: 70%; */
    width: 100%;
    padding: 17rem 0;
    margin: 12rem 0 5rem 0;
    overflow: hidden;
  }
}

/************************/
/*BELOW 440px - For Phones - */
/* 432 / 16= 34.375 */
/* 27 * 16 = 432 */
/************************/
@media (max-width: 27em) {
  .heading-primary {
    font-size: 3.7rem;
  }
  .hero-description {
    font-size: 1.7rem;
  }
}

@media (max-width: 25em) {
  .btn,
  .btn-full,
  .btn:link,
  .btn:visited,
  .btn-full:link,
  .btn-full:visited {
    padding: 2.4rem 1.6rem;
    font-size: 1.5rem;
  }

  .btn-footer,
  .btn-footer-outline,
  .btn-footer:link,
  .btn-footer:visited,
  .btn-footer-outline:link,
  .btn-footer-outline:visited {
    padding: 1.2rem 1.4rem;
  }

  .heading-primary {
    font-size: 3.4rem;
  }
  .hero-description {
    font-size: 1.7rem;
  }

  .container-advantages {
    padding: 0;
  }

  .advantage-text ul {
    padding: 0;
  }
}

@media (max-width: 22em) {
  .container {
    margin-inline: 1rem;
  }

  .nav__link {
    padding-inline: 1rem;
  }
}
@media (min-width: 74em) {
  .nav-container {
    margin-inline: auto;
  }

  .nav-header {
    height: calc(3.5rem + 2rem);
    display: flex;
    justify-content: space-between;
  }
  .nav__toggle {
    display: none;
  }
  .nav__list {
    height: 100%;
    display: flex;
    column-gap: 3rem;
  }
  .nav__link {
    height: 100%;
    padding: 0;
    justify-content: initial;
    column-gap: 0.25rem;
    font-size: 1.2rem;
    font-weight: 400;
  }
  .nav__link:hover {
    background-color: transparent;
  }

  .dropdown__item,
  .dropdown__subitem {
    position: relative;
  }

  .dropdown__menu,
  .dropdown__submenu {
    max-height: initial;
    overflow: initial;
    position: absolute;
    left: 0;
    top: 6rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, top 0.3s;
  }

  .dropdown__link,
  .dropdown__sublink {
    padding-inline: 1rem 3.5rem;
  }

  .dropdown__subitem .dropdown__link {
    padding-inline: 1rem;
  }

  .dropdown__submenu {
    position: absolute;
    left: 100%;
    top: 0.5rem;
  }

  .dropdown__item:hover .dropdown__menu {
    opacity: 1;
    top: 5.5rem;
    pointer-events: initial;
    transition: top 0.3s;
  }

  .dropdown__subitem:hover > .dropdown__submenu {
    opacity: 1;
    top: 0;
    pointer-events: initial;
    transition: top 0.3s;
  }
}
