/*1200px*/

@media (max-width: 75em) {
  html {
    font-size: 56.25%;
  }
  .hero-heading {
    font-size: 5.9rem;
  }
  .section-hero {
    padding: 14.4rem 4.8rem;
  }
  .section {
    padding: 6.4rem 4.8rem;
  }
  nav {
    margin-right: 4.8rem;
    margin-left: 4.8rem;
  }
  .service-grid-item-1 {
    min-height: 300px;
  }
  .nav-main {
    gap: 3.2rem;
  }
}

/*1064px*/

@media (max-width: 66.5em) {
  html {
    font-size: 50%;
  }
}

/*930px*/

@media (max-width: 58.125em) {
  .section-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9.6rem;
    padding: 18rem 4.8rem 6.4rem 4.8rem;
    text-align: center;
  }
  .hero-heading {
    line-height: 1.15;
  }
  .section-hero-left {
    padding: 0 10rem;
  }
  .hero-img {
    max-width: 70%;
  }
  .index-body {
    background-image: url(../assets/gradient-8.png);
  }
  .nav-main {
    gap: 2.4rem;
  }
  .service-grid-item-1 {
    min-height: 30rem;
  }
  .service-grid-item-2 {
    min-height: 30rem;
  }
}
/* html {
    font-size: 43.75%;
  }
  .service-grid-item-1 {
    min-height: 250px;
  }
  .service-grid-item-2 {
    min-height: 250px;
  }
}

@media (max-width: 50.625em) {
  .hero-heading {
    font-size: 5.4rem;
  }
  .section-hero {
    gap: 2.4rem;
  }
} */
@media (max-width: 47em) {
  /*MOBILE NAV*/
  .btn-mobile-nav {
    display: block;
    /* z-index: 9999; */
    transition: all 300ms;
  }

  .header {
    position: relative;
  }
  /* nav {
    background: none;
    border: none;
  } */
  .nav-main {
    background: rgba(240, 245, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 10px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    transform: translateX(120%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6.4rem;
    transition: all 500ms ease-out;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }

  .nav-open .nav-main {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateX(0);
  }
  .nav-open .icon-mobile-nav[name="close-outline"] {
    position: absolute;
    display: block;
  }
  .nav-open .icon-mobile-nav[name="menu-outline"] {
    display: none;
  }

  .nav-ctrl:link,
  .nav-ctrl:visited {
    font-size: 3.2rem;
  }
  .nav-line {
    display: none;
  }
  .nav-ctrl.btn.btn-1 {
    padding: 1.6rem 4rem;
    font-size: 2.8rem;
  }
  .service-grid-1 {
    grid-template-columns: 1fr;
  }
  .service-grid-2 {
    grid-template-columns: 1fr;
  }

  .base-grid {
    margin-top: 2.4rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    justify-content: space-between;
  }
  .new-grid {
    margin-top: 2.4rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    justify-content: space-between;
  }

  .base-grid-item {
    border-radius: 1rem;
    border: 0.1rem solid #e2ebff;
    min-height: 300px;
    position: relative;
  }
  .new-grid-item {
    border-radius: 1rem;
    min-height: 300px;
    position: relative;
  }

  .resource-grid-item {
    aspect-ratio: 2/1;
    min-height: 0;
  }
  .r1 {
    background-size: cover;
  }

  .section-title {
    font-size: 3.2rem;
  }
  .section-subtitle {
    font-size: 2rem;
  }
  h2 {
    font-size: 4.4rem;
  }
  .portfolio-title {
    font-size: 4rem;
  }
  .see-detail {
    font-size: 2.4rem;
  }
  /* .logos {
    gap: 1.6rem;
  } */
  /* .logos svg {
    height: 2rem;
  } */
  /* .service-grid-item-1 {
    min-height: 30rem;
  }
  .service-grid-item-2 {
    min-height: 30rem;
  } */
  .btn:link,
  .btn:visited {
    font-size: 1.8rem;
    padding: 1.6rem 2rem;
  }
  .btn:hover,
  .btn:active {
    font-size: 1.8rem;
    padding: 1.6rem 2rem;
  }
  .book-header {
    max-width: 100%;
  }
  .popup-title {
    font-size: 3.4rem;
  }
  .popup-subtitle {
    font-size: 1.8rem;
  }
  .popup {
    gap: 6rem;
    padding-top: 6rem;
    padding-bottom: 8rem;
  }
}

@media (min-width: 47em) {
  .resource-grid-image {
    aspect-ratio: 3/1;
  }
}

@media (max-width: 37em) {
  .section-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9.6rem;
    padding: 18rem 0rem 6.4rem 0rem;

    text-align: center;
  }
  .hero-heading {
    line-height: 1.15;
    font-size: 5.2rem;
  }
  .hero-subheading {
    font-size: 2rem;
  }
  .section {
    padding: 6.4rem 4.8rem;
  }
  .service-grid-item-1 {
    min-height: 30rem;
  }
  .service-grid-item-2 {
    min-height: 30rem;
  }
  .u4.r0 .sub-portfolio-text {
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .product-subtitle-2 {
    font-size: 1.6rem;
    margin: 0 8rem;
  }
  .book-header {
    max-width: 120%;
    display: flex;
    justify-self: center;
    margin: -1rem 0 2rem 0;
  }
  .logos svg {
    width: 3.6rem;
  }
}
@media (max-width: 31em) {
  html {
    font-size: 43.75%;
  }

  /* .new-grid-title,
  .new-grid-subtitle {
    font-size: 200% !important;
  } */

  .logos svg {
    width: 3.6rem;
  }
  .footer-text {
    font-size: 1.2rem;
  }

  .logos {
    gap: 2.6rem;
  }
  .base-grid-item {
    min-height: 200px;
  }
  .new-grid-item {
    min-height: 200px;
  }
  .resource-grid-item {
    /* aspect-ratio: 2/1; */
    min-height: 0;
  }
  .collapsible {
    font-size: 1.8rem;
  }
  .collapsible-content {
    font-size: 1.4rem;
  }
}

@media (26em <= width <= 28.4em) {
  .book-title-fix {
    font-size: 200% !important;
  }
}

@media (max-width: 26em) {
  .sub-see-detail {
    line-height: 500% !important;
  }
  html {
    font-size: 37.5%;
  }
  .section-title {
    font-size: 2.8rem;
  }
  .section-subtitle {
    font-size: 1.6rem;
    line-height: 1.4;
  }
  .section-title-main p {
    line-height: 2;
  }
  .section-portfolio .section-title-main p {
    line-height: 1.6;
    margin-top: 0.8rem;
  }

  .section-portfolio .portfolio-text .see-detail {
    font-size: 1.6rem;
  }
  .section-portfolio .portfolio-text .portfolio-title {
    font-size: 3.2rem;
  }
  .section-hero-left {
    padding: 0 8rem;
  }
  .hero-heading {
    padding: 0 1.2rem;
    font-size: 6rem;
  }
  .product-subtitle-2 {
    font-size: 1.6rem;
    margin: 0 6rem;
  }
  /* .section-footer {
    padding: 2.4rem 1.6rem;
  } */
}
