/*******************************************/
/* BELOW 1344PX (SMALLER DESKTOPS) */
/*******************************************/
@media (max-width: 84.375em) {
  .header {
    padding: 0 3.2rem;
  }
}
/*******************************************/
/* BELOW 1200PX (Landscape tablet) */
/*******************************************/

@media (max-width: 75em) {
  html {
    /* 9px/16px */
    font-size: 56.25%;
  }
  .hero {
    width: 80%;
  }
  .text-box {
    padding-top: 0;
  }
  .blog-grid {
    gap: 3.2rem;
  }
}
/*******************************************/
/* BELOW 944PX (tablet) */
/*******************************************/

@media (max-width: 59em) {
  html {
    /* 9px/16px */
    font-size: 50%;
  }

  /* Mobile Navigation */
  .btn-mobile-nav {
    display: block;
    z-index: 9999;
  }

  .main-nav {
    background-color: rgba(255, 255, 255, 0.97);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    transform: translateX(100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease-in;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    z-index: 998;
  }

  .main-header.nav-open {
    background: #fff !important;
    box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.08);
  }

  .main-header.nav-open .header {
    flex-direction: column;
    align-items: flex-start;
    padding: 2.4rem;
  }

  .main-header.nav-open .logo {
    width: 12rem;
    margin-bottom: 2.4rem;
    content: url("../img/logo/blue logo.png");
  }

  .main-header.nav-open .btn-mobile-nav {
    position: absolute;
    top: 2.4rem;
    right: 2.4rem;
    z-index: 10001;
  }

  .main-header.nav-open .icon-mobile-nav,
  .main-header.scrolled .icon-mobile-nav {
    color: #3b5bdb;
  }

  .main-header.nav-open .main-nav {
    background: none;
    position: static;
    width: 100%;
    height: auto;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: none;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0;
  }

  .main-header.nav-open .main-nav-list {
    flex-direction: column;
    gap: 2.4rem;
    width: 100%;
    padding: 0;
    margin: 0;
    align-items: flex-start;
    max-height: 75vh;
    overflow-y: auto;
  }

  .main-header.nav-open .main-nav-list li {
    width: 100%;
    position: relative;
  }

  .main-header.nav-open .main-nav-link {
    color: #102137 !important;
    font-size: 1.8rem;
    font-weight: 600;
    padding: 0.8rem 0;
    width: 100%;
    text-align: left;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    position: relative;
    transition: all 0.3s ease;
  }

  .main-header.nav-open .main-nav-link:hover,
  .main-header.nav-open .main-nav-link:active {
    color: #3b5bdb !important;
  }

  .main-header.nav-open .main-nav-link.has-dropdown::after {
    content: "";
  }

  .main-header.nav-open .main-nav-link.has-dropdown ion-icon {
    font-size: 1.6rem;
    color: #3b5bdb;
    position: absolute;
    right: 0.8rem;
    transition: transform 0.3s ease;
  }

  .main-header.nav-open .main-nav-link.nav-cta {
    background: #3b5bdb;
    color: #fff !important;
    margin-top: 1.2rem;
    text-align: center;
    padding: 1.6rem 2.8rem;
    font-size: 1.6rem;
    font-weight: 500;
    justify-content: center;
    transition: all 0.3s ease;
  }

  .main-header.nav-open .main-nav-link.nav-cta:hover,
  .main-header.nav-open .main-nav-link.nav-cta:active {
    background: #102137;
    color: #fff !important;
  }

  .main-header.nav-open .main-nav-link.nav-cta ion-icon {
    display: none;
  }

  .main-header.nav-open .main-nav-link.has-dropdown::after {
    content: "";
  }

  .main-header.nav-open .main-nav-link.has-dropdown ion-icon {
    font-size: 1.6rem;
    color: #3b5bdb;
    margin-left: 1rem;
    transition: transform 0.3s ease;
  }

  .main-header.nav-open
    .main-nav-list
    li.show-dropdown
    .main-nav-link.has-dropdown
    ion-icon {
    transform: rotate(180deg);
  }

  /* Mobile Dropdown Menu */
  .main-header.nav-open .dropdown-menu {
    position: static;
    background: #f8f9ff;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0;
    margin-top: 0.8rem;
    border-radius: 0.8rem;
    display: none;
    min-width: 100%;
    border-left: none;
  }

  .main-header.nav-open .dropdown-menu li {
    padding: 0;
  }

  .main-header.nav-open .dropdown-menu a {
    padding: 1rem 0 1rem 2.4rem;
    font-size: 1.6rem;
    color: #102137;
    font-weight: 500;
    transition: all 0.3s ease;
  }

  .main-header.nav-open .dropdown-menu a:hover,
  .main-header.nav-open .dropdown-menu a:active {
    color: #3b5bdb;
  }

  .main-header.nav-open .main-nav-list li.show-dropdown .dropdown-menu {
    display: block;
    animation: slideDown 0.3s ease forwards;
  }

  .nav-open .icon-mobile-nav[name="close-outline"] {
    display: block;
  }

  .nav-open .icon-mobile-nav[name="menu-outline"] {
    display: none;
  }

  /* Section Spacing */
  .hero {
    gap: 3.2rem;
  }

  .section-devision,
  .section-Future-offerings,
  .section-why-choose-us,
  .section-insight {
    padding: 6.4rem 0;
  }

  .devision-card {
    padding: 2.4rem 1.6rem;
  }

  .devision-card-img-box img {
    width: 100%;
  }
  .insight-text-box {
    width: 100%;
  }

  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }
}
/*******************************************/
/* BELOW 760 (smaller tablet) */
/*******************************************/

@media (max-width: 48em) {
  .hero {
    width: 90%;
  }
  .hero-heading {
    font-size: 5.4rem;
  }
  .primary-heading {
    font-size: 2.4rem;
    font-weight: 800;
  }
  .container {
    align-items: center;
  }
  .future-offering-card-box,
  .grid--4-cols {
    grid-template-columns: 1fr 1fr;
  }
  .testimonials-boxes,
  .icon-boxes {
    grid-template-columns: 1fr;
  }
  .devision-card-img-box img {
    width: 80%;
  }
  .Future-offering-text-box p {
    width: 90%;
  }

  /* About Section Mobile */
  .section-about .text-box {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .section-about .text-box .btn {
    margin: 0 auto;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    max-width: 54rem;
    margin: 0 auto;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*******************************************/
/* BELOW 544 (phones) */
/*******************************************/

@media (max-width: 36em) {
  /* .grid {
    row-gap: 4.8rem;
  } */
  .future-offering-card-box,
  .grid--2-cols,
  .grid--3-cols,
  .grid--4-cols {
    grid-template-columns: 1fr;
  }
  .last-footer {
    gap: 1.6rem;
    line-height: 1.6;
    flex-direction: column;
  }
}
@media (max-width: 768px) {
  .main-header.scrolled .icon-mobile-nav {
    color: #3b5bdb;
  }
}

@media (max-width: 768px) {
  .devision-card:hover .devision-card-img-box img,
  .future-offering-card:hover .devision-card-img-box img {
    transform: scale(1.1);
  }
}
