@media only screen and (max-width: 1400px) {

  body,
  p.app-intro,
  p.consultation-services-description,
  p,
  aboutUs,
  terms-use-text,
  li,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    color: #ffffff;
    padding: 10px;
    font-family: 'Montserrat', sans-serif;
  }

  #myNav {
    padding-left: 10px;
    padding-right: 20px;
    margin: 15px;
  }

  #main,
  #journey {
    margin-left: 0;
  }

  .mp-img-caption {
    text-align: center;
  }

  .overlay {
    overflow-y: auto;
  }

  .overlay a {
    font-size: 20px;
  }

  .overlay {
    position: absolute;
    font-size: 40px;
    right: 35px;
    top: 0px;
    margin-left: 130px;
  }

  /* Add this CSS to your stylesheet */
  .overlay-active {
    overflow: hidden;
  }


  .closebtn {
    display: none;
    position: fixed;
    z-index: 9999;
    width: 100%;
  }

  .clouds-plane {
    height: 200px;
    margin: 0;
    position: relative;
    z-index: -9999;
  }

  .clouds {
    position: relative;
  }

  .mySlides {
    margin: 0 0;
  }

  .mp-half {
    /* float: left; */
    width: 90%;
    height: 100%;
    margin: 10px;
    position: relative;
    /* align-items: center; */
    text-align: start;
  }

  .mp-content,
  .mp-auto {
    margin-left: auto;
    margin-right: auto;
    margin-top: 0px;
  }

  .mp-content {
    max-width: auto;
    overflow: hidden;
    height: auto;
  }

  .mp-button-style {
    width: 150px;
    border: none;
    display: inline-block;
    padding: 8px 16px;
    vertical-align: middle;
    overflow: hidden;
    text-decoration: none;
    color: black;
    background-color: white;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    border-radius: 12px;
    font-size: 12;
  }

  .app-intro,
  ul {
    padding: 1em;
  }

  .prev,
  .next,
  .text {
    font-size: 11px;
  }

  .footer {
    display: block;
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 20px;
  }

  .nav-button-bar {
    background-color: black;
    height: 45px;
    position: fixed;
    width: 100vw;
    bottom: 0;
    z-index: 1;
    border-radius: 10px;
    color: orange;
    text-align: center;
    display: inline-block;
  }

  .nav-button {
    margin: 0;
    padding: 0;
    border-radius: 10px;
    background-color: rgb(29, 29, 29);
    position: relative;
    padding: 0.5em;
    text-decoration: none;
    font-size: 10pt;
    width: 100%;
    /* leave below as inline to ensure visibility */
    display: inline;
  }

  .mp-opacity {
    opacity: 1;
  }

  .sign-up-block {
    height: 100%;
    width: 100%;
    padding: 2em;
  }

  .cartoon {
    display: block;
    position: absolute;
    left: 55%;
    /* transform: translate(-50%, -50%); */
  }

  .cartoon div {
    position: absolute;
    box-sizing: border-box;
  }

  #person {
    height: 150px;
    width: 30vmin;
  }

  .sold-out-banner {
    position: absolute; /* Positioned relative to the parent card */
    top: 10px; /* Adjust to align diagonally */
    right: 0%; /* Adjust to align diagonally */
    left:80%;
    background-color: rgba(255, 0, 0, 0.9); /* Bright red with slight transparency */
    color: white;
    font-size: 14px; /* Adjust font size for readability */
    font-weight: bold;
    width: 150px; /* Adjust width for better coverage */
    text-align: center; /* Center the text */
    text-transform: uppercase;
    transform: rotate(45deg); /* Rotate for diagonal placement */
    z-index: 10; /* Ensure it appears above other elements */
    height: 80px; /* Adjust height to fit text */
    /* line-height: 40px; Vertically align text inside the banner */
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2); /* Optional: Shadow for emphasis */
}

/* Ensure .service-cards has enough space */
.service-cards {
  position: relative; /* Ensure banner positioning works */
  height: auto;
  width: 100%;
  padding: 10em; /* Add padding for mobile clarity */
  overflow: hidden;
}


/* Ensure .grid-container-services works properly on mobile */
.grid-container-services {
    margin: 0;
    position: relative;
    display: grid;
    grid-template-columns: auto; /* Single column for mobile */
    padding: 1em;
    grid-gap: 10px; /* Increased gap for better readability on small screens */
    overflow: hidden;
    width: 100%;
}



/* Media query for screens smaller than 768px */
@media screen and (max-width: 768px) {
  .sold-out-banner {
      font-size: 12px; /* Adjust for readability */
      width: 100px; /* Smaller width */
      height: 50px; /* Adjust height */
      top: 10px; /* Tighter positioning */
      right: 5px;
  }

    .service-cards {
        padding: 0.5em; /* Slightly reduce padding for tighter layouts */
    }
}


  .grid-container-app {
    display: inline;
    grid-template-columns: auto;
    padding: 0px;
    grid-auto-rows: 75px;
    grid-gap: 10px;
  }

  .grid-item {
    padding: 1em;
    height: 100%;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: white;
    border: 0.5px solid rgb(255, 255, 255);
    font-size: 15px;
    text-align: center;
  }

  .aims-section {
    position: relative;
    margin: 0;
    overflow: hidden;
  }

  .grid-container {
    display: inline-block;
    position: relative;
  }

  .grid-container-benefits {
    display: inline-block;
    position: relative;
    /* padding-left: 20%; */
  }

  .login-button-style {
    width: 150px;
    border: none;
    display: inline-block;
    padding: 8px 16px;
    vertical-align: middle;
    overflow: hidden;
    text-decoration: none;
    color: rgb(255, 149, 28);
    background-color: rgb(46, 46, 46);
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    border-radius: 12px;
    font-size: 12;
  }

  body {
    padding-top: 0px;
    padding-right: 5px;
    padding-bottom: 5px;
    padding-left: 5px;
  }

  .aboutUs {
    line-height: 22px;
    font-size: medium;
    margin: 1em;
    padding: 0.25em;
    display: block;
  }

  .bold-word {
    color: orange;
    display: ruby-base-container;
    margin: 0;
    font-size: 15pt;
  }

  .opport-word {
    color: white;
    margin: 0;
    font-size: 15pt;
  }

  .develop-word {
    color: rgb(219, 181, 125);
    margin: 0;
    font-size: 15pt;
  }

  .mp-justify {
    text-align: center !important;
  }

  .mp-main-page {
    height: 100vh;
    width: 100%;
    margin: 0;
  }

  .start-today {
    top: 30%;
  }

  .logo-grid {
    width: auto;
    display: inline-flex;
    /* below is set to 1.8% move alignment of logo on left column */
    left: 0;
    justify-content: center;
    grid-template-columns: auto auto;
    margin: 20px auto;
  }

  .grid-item-logo-name {
    display: inline-block;
    margin: 0;
  }

  .orange-word {
    font-size: 40pt;
    color: #ffad26;
  }

  .white-word {
    font-size: 40pt;
    color: white;
  }

  .grid-item-start-today {
    margin-right: 20px;
    color: #ffad26;
    font-size: 8pt;
  }

  .home-buttons {
    width: 100%;
    display: inline-flexbox;
  }

  .centered {
    position: absolute;
    bottom: 35%;
  }

  .description-section-logo {
    justify-content: center;
    display: grid;
    text-align: center;
    align-items: center;
    grid-template-columns: max-content max-content max-content;
    top: 25%;
  }

  .left-desc-logo {
    width: 150px;
    float: left;
    color: #ffad26;
  }

  .right-desc-logo {
    float: right;
    width: 150px;
    color: white;
  }

  .vert-line {
    width: 1px;
    height: 80px;
    background-color: white;
    opacity: 0.2;
  }

  .plane {
    width: 100%;
    height: 30px;
  }

  .frame {
    width: 100%;
    height: 250px;
    margin: 0;
    position: relative;
  }

  .aims-section {
    height: 100%;
  }

  .plane-container {
    width: auto;
    margin-top: 0;
    z-index: 2;
  }

  .clouds {
    margin: 0;
    overflow: hidden;
    height: 200px;
    position: relative;
  }

  .cloud {
    position: absolute;
    top: 0%;
    width: 0px;
    right: 0;
    opacity: 1;
    height: 60%;
  }

  .cloud.smaller {
    margin-right: 400px;
    width: 100px;
    margin-top: 50px;
  }

  .cloud.small {
    margin-right: 200px;
    width: 150px;
  }

  .cloud.big {
    width: 500px;
    margin-top: 50px;
    margin-right: 150px;
  }

  .cloud.massive {
    width: 600px;
    margin-top: 20px;
    margin-right: 0px;
  }

  .mp-modal-content {
    margin: 0 10px;
    width: auto !important;
  }

  .mp-modal {
    padding-top: 30px;
  }

  .mp-dropdown-hover.mp-mobile .mp-dropdown-content,
  .mp-dropdown-click.mp-mobile .mp-dropdown-content {
    position: relative;
  }

  .mp-hide-small {
    display: none !important;
  }

  .mp-mobile {
    display: block;
    width: 100% !important;
  }

  .mp-bar-item.mp-mobile,
  .mp-dropdown-hover.mp-mobile,
  .mp-dropdown-click.mp-mobile {
    text-align: center;
  }

  .mp-dropdown-hover.mp-mobile,
  .mp-dropdown-hover.mp-mobile .mp-btn,
  .mp-dropdown-hover.mp-mobile .mp-button,
  .mp-dropdown-click.mp-mobile,
  .mp-dropdown-click.mp-mobile .mp-btn,
  .mp-dropdown-click.mp-mobile .mp-button {
    width: 100%;
  }

  .mp-demo-app-bkg {
    background-position: center;
    background-image: url(../images/mobile-bg.jpg);
    background-size: cover;
  }
}

/* 
@media (max-width: 768px) {
  .mp-modal-content {
    width: 500px;
  }

  .mp-modal {
    padding-top: 50px;
  }
}

@media (min-width: 993px) {
  .mp-modal-content {
    width: 900px;
  }

  .mp-hide-large {
    display: none !important;
  }

  .mp-sidebar.mp-collapse {
    display: block !important;
  }
}

@media (max-width: 992px) and (min-width: 601px) {
  .mp-hide-medium {
    display: none !important;
  }
}

@media (max-width: 992px) {
  .mp-sidebar.mp-collapse {
    display: none;
  }

  .mp-main {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .mp-auto {
    max-width: 60%;
  }
} */