@media (min-width: 1200px) {
  .container {
    max-width: 95% !important;
  }
}

.right-part a {
  color: black !important;
  text-decoration: none !important;
}

#main-nav-bar {
  display: flex;
  flex-direction: column;
  width: 100% !important;
  position: fixed !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  top: 4vh;
  z-index: 5000 !important;
  height: fit-content !important;
  border-radius: 20px !important;
  padding-inline: 20px !important;
  /* box-shadow: 0 8px 0 #f0f0f0; */
  border: 3px solid #f0f0f0;
  background-color: white;
}

.nav-bar {
  width: 100% !important;
  background-color: rgb(255, 255, 255);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* border: 3px solid #f0f0f0; */
  padding-inline: 20px !important;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  z-index: 10000;
}

.logo {
  height: 40px;
  width: 146px;
}

.mobile-menu-section {
  display: none;
}

.menu-icon {
  display: none;
}

.navlinks-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.navlinks-container a {
  text-decoration: none;
  color: black;
}

.nav-button {
  height: 60px;
  border: 2px solid white;
  border-radius: 15px;
  display: flex;
  background-color: transparent;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  position: relative;
  transition: all 0.3s ease-in-out; /* Smooth transition */
}

.nav-button:hover {
  background-color: #dfdadae5;
  border: 2px solid #dfdadae5;
}

.nav-button::after {
  content: "";
  width: 0; /* Start with width 0 */
  height: 2px;
  background-color: orangered;
  position: absolute;
  bottom: 0px;
  left: 50%; /* Start from the center */
  transform: translateX(-50%); /* Center the pseudo-element */
  transition: width 0.5s ease-in-out; /* Smooth transition */
}

.nav-button:hover::after {
  width: 70%; /* On hover, grow to 70% */
  left: 50%; /* Ensure it grows from center */
  transform: translateX(-50%); /* Maintain centering */
}

.nav-button h4 {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  line-height: 19.6px;
  margin: 0;
}
.nav-button p {
  font-size: 12px;
  font-weight: 400;
  text-align: center;
  line-height: 16.8px;
  margin: 0;
  color: #909090;
}

.login-btn {
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  color: black;
  border: 2px solid #f0f0f0;
  background-color: transparent;
  border: 2px solid #f0f0f0;
  background-color: transparent;
  font-size: 14px;
  font-weight: 600;
  height: 40px;
  border-radius: 8px;
  transition: background-color 0.2s linear;
}

/* expanded navbar css */

.expanded-parent {
  /* position: fixed !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  top: 18vh; */
  display: flex;
  z-index: 50000 !important;
  width: 100% !important;
  justify-content: center;
  z-index: 50000 !important;
  height: fit-content !important;
}

.nav-expanded-container {
  /* position: absolute !important; */
  background-color: white;
  display: none;
  justify-content: space-between !important;
  /* gap: 40px !important; */
  align-items: start !important;
  padding: 40px;
  min-height: 306px !important;
  /* border: 2px solid #f0f0f0; */
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  opacity: 0;
  transform: translateY(-100px); /* Start 20px lower */
  transition: opacity 0.5s ease, transform 0.5s ease;
  outline: none !important;
  width: 100% !important;
  padding: 30px;
}

#live-classes-green {
  background-color: #c6f5d3;
}

#live-classes-blue {
  background-color: #cbf4ff;
}

.nav-expanded-container-active {
  padding-inline: 30px !important;
  display: flex !important;
  min-height: 306px !important;
  flex-wrap: wrap;
  justify-content: space-between !important;
  opacity: 1;
  transform: translateY(0);
}

.left-part {
  /* position: relative; */
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: space-evenly;
  padding-inline: 25px;
  min-height: 300px !important;
  width: 350px !important;
  border-radius: 12px;
}

.middle-part {
  display: flex;
  flex-direction: column;
  width: 250px !important;
  justify-content: center;
  align-items: start;
  gap: 20px;
}

.feature-part {
  display: flex;
  align-items: start;
  justify-content: center;
  gap: 10px;
}

.feature-part img {
  margin-top: 3px;
  width: 16px;
  height: 16px;
}

.feature-part p {
  font-size: 16px;
  margin: 0;
}

#homesubsimage {
  position: absolute;
  top: 0px;
  right: 5%;
  width: 7.5vw;
}

.finger-image-group1 {
  display: flex;
  position: absolute;
  top: -4%;
  right: 9%;
  width: fit-content;
  height: 2vw;
}

.finger-image-group2 {
  display: flex;
  position: absolute;
  top: -4%;
  right: 29%;
  width: fit-content;
  height: 2vw;
}

.fingerimage {
  object-fit: cover;
  width: 1vw;
}

.left-part h3 {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 42px;
  line-height: 42px;
  width: 297px;
}

.left-part p {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 19.6px;
  width: 297px;
  margin-top: 10px;
}

/* common button class for all signup buttons */

.signup-button {
  border-radius: 12px;
  font-size: 20px;
  font-weight: 500;
  line-height: 30.8px;
  width: fit-content;
  height: 72px;
  padding-block: 14px;
  padding-inline: 20px;
  color: white;
  transition: all 0.2s ease-in;
}

.left-blue {
  background-color: #cbf4ff;
}

.left-green {
  background-color: #c6f5d3;
}

.left-yellow {
  background-color: #fff1a2 !important;
}

.black {
  background-color: #000000;
  border: 1px solid #000000;
}


.right-part {
  min-height: 300px !important;
  display: grid;
  grid-template-columns: 180px 180px !important;
  align-content: start;
  column-gap: 20px;
  row-gap: 30px;
  justify-content: start;
}

/* common class for grade buttons */

.grade-buttons {
  background-color: transparent;
  border-radius: 32px;
  width: 100%;
  height: 60px !important;
  transition: 0.2s linear;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.grade-buttons svg {
  width: 40px;
  height: 40px;
}

.grade-buttons-white-orange {
  background-color: white;
  border: 4px solid #ffbd80;
  box-shadow: 0 10px 0 #ffbd80;
}

.grade-buttons-white-gray {
  background-color: white;
  border: 4px solid #b0cdf9;
  box-shadow: 0 10px 0 #b0cdf9;
}

.grade-buttons-white-green {
  background-color: white;
  border: 4px solid #84d89b;
  box-shadow: 0 10px 0 #84d89b;
}

.grade-buttons-white-blue {
  background-color: white;
  border: 4px solid #b0cdf9;
  box-shadow: 0 10px 0 #b0cdf9;
}

.grade-buttons-white-yellow {
  background-color: white;
  border: 4px solid #ffe759;
  box-shadow: 0 10px 0 #ffe759;
}

.grade-buttons-orange {
  border: 4px solid #ffbd80;
  box-shadow: 0 10px 0 #ffbd80;
}

.grade-buttons-green {
  border: 4px solid #84d89b;
  box-shadow: 0 10px 0 #84d89b;
}

.grade-buttons-blue {
  border: 4px solid #b0cdf9;
  box-shadow: 0 10px 0 #b0cdf9;
}

.grade-buttons-yellow {
  border: 4px solid #ffe759;
  box-shadow: 0 10px 0 #ffe759;
}

.grade-buttons h3 {
  margin: 0;
  font-size: 25px;
  font-weight: 700;
}

.grade-buttons h3 span {
  margin: 0;
  color: #909090;
  font-size: 12px !important;
  font-weight: 500;
}

.grade-buttons i {
  font-size: 36px;
}

.grade-buttons:hover {
  box-shadow: none;
  transform: translateY(10px);
}

@media (max-width: 475px) {
  #main-nav-bar {
    display: none;
  }

  .subsection-content-lower .col-6 a {
    color: black !important;
    text-decoration: none !important;
  }

  .mobile-menu-section {
    border: 2px solid #cecece;
    display: flex !important;
    width: 90%;
    background-color: white;
    margin-inline: auto;
    height: 58px;
    position: fixed;
    top: 3vh;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 20px;
    padding-inline: 15px;
    padding-block: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10000000;
  }

  .mobile-logo {
    width: 25%;
  }

  .mobile-logo img {
    height: 80%;
    width: 100%;
  }

  .mobile-nav-right {
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    gap: 7px;
  }

  .login-btn-mobile {
    text-decoration: none;
    color: black;
    border-radius: 8px;
    border: 2px solid #f0f0f0;
    padding-inline: 26px;
    padding-block: 8px;
    background-color: white;
    font-size: 14px;
    font-weight: 600;
  }

  .mobile-menu-icon {
    border-radius: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* Initial hidden modal styles */
  .mobile-menu-modal {
    display: block !important;
    position: fixed;
    top: 0;
    right: -100%; /* Initially hidden outside of the screen */
    width: 100%;
    height: 100%;
    background-color: #fff;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    z-index: 10000000;
    transition: left 0.3s ease; /* Slide-in animation */
  }

  /* Content inside the modal */
  .mobile-modal-content {
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: start !important;
    gap: 30px !important;
  }

  /* Close icon */
  .close-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0 !important;
    margin-left: auto;
  }

  /* Button styles */
  .menu-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-inline: 20px;
    margin: 20px 0px;
    height: 80px;
    background-color: #eee;
    cursor: pointer;
    border-radius: 20px;
    border: 2px solid #f0f0f0;
    background-color: transparent;
    flex-shrink: 0 !important;
    box-shadow: 0px 7px 0px #f0f0f0;
    text-decoration: none;
    color: black;
  }

  .menu-btn:active {
    box-shadow: 0px 0px 0px #f0f0f0;
    transform: translateY(7px);
  }

  .menu-btn-left h5 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
  }

  .menu-btn-left p {
    color: #909090;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
    text-align: left;
  }

  /* Slide-in when modal is opened */
  .mobile-menu-modal.open {
    right: 0; /* Slide into view */
    transition: all 0.3s ease;
  }

  .mobile-menu-section.slide-out {
    transform: translateX(-300%); /* Moves the navbar out of the view */
    transition: all 0.3s ease; /* Smooth slide-out transition */
  }

  /* When navbar is in its default state */
  .mobile-menu-section {
    transition: all 0.3s ease;
  }

  .contact-login-div {
    margin-top: auto;
    display: flex;
    height: 70px;
    border-top: 2px solid #f0f0f0;
    justify-content: center;
    align-items: end;
    flex-shrink: 0 !important;
    gap: 15px;
  }

  .contact-login-div button:nth-child(1) {
    background-color: #ff7f56;
    font-size: 14px;
    font-weight: 600;
    color: white;
    width: 160px;
    height: 48px;
    border: none;
    border-radius: 8px;
  }
  .contact-login-div button:nth-child(2) {
    background-color: white;
    font-size: 14px;
    font-weight: 600;
    color: black;
    width: 160px;
    height: 48px;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
  }

  .subsection-content {
    display: none;
    margin-top: 10px;
    border: 2px solid #f0f0f0;
    padding: 20px;
    border-radius: 20px;
    height: 100% !important;
  }

  .subsection-content-upper {
    height: 200px;
    padding: 20px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: start;
  }

  .subsection-content-lower {
    margin-top: 5px !important;
  }
  .mobile-grade-btn {
    height: 40px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    padding-inline: 10px;
    align-items: center;
    border-radius: 10px;
  }

  .mobile-grade-btn:active {
    box-shadow: 0px 0px 0px;
    transform: translateY(6px);
  }

  .mobile-grade-btn-home {
    border: 3px solid #b0cdf9;
    box-shadow: 0px 6px 0px #b0cdf9;
  }

  .mobile-grade-btn-live {
    border: 3px solid #84d89b;
    box-shadow: 0px 6px 0px #84d89b;
  }

  .mobile-grade-btn-school {
    border: 3px solid #ffe759;
    box-shadow: 0px 6px 0px #ffe759;
  }

  .mobile-grade-btn img {
    width: 21px;
    height: 27px;
  }

  .mobile-grade-btn-inner h5 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
  }

  .mobile-grade-btn-inner span {
    font-size: 12px;
    margin: 0;
  }

  .mobile-grade-btn-inner {
    display: flex;
    align-items: end;
    gap: 5px;
  }

  .subsection-content-upper h4 {
    font-size: 22px;
  }

  .subsection-content-upper p {
    font-size: 12px;
  }

  .signup-button-subsection-live {
    height: 40px;
    background-color: #14a312 !important;
    color: white;
    padding-inline: 20px !important;
    border-radius: 15px;
  }

  .signup-button-subsection-school {
    height: 40px;
    background-color: #ffbf31 !important;
    color: white;
    padding-inline: 25px !important;
    border-radius: 15px;
  }

  .signup-button-subsection-home {
    height: 40px;
    background-color: #5d51fc !important;
    color: white;
    padding-inline: 25px !important;
    border-radius: 15px;
  }

  .subsection-content-upper-live {
    background-color: #c6f5d3;
  }

  .subsection-content-upper-home {
    background-color: #cbf4ff;
  }

  .subsection-content-upper-school {
    background-color: #fff1a2;
  }

  /* Simple styling for the back button */
  .subsection-content button {
    background-color: transparent;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    margin-bottom: 20px;
  }

  .backToMenuHome,
  .backToMenuLive,
  .backToMenuSchool {
    rotate: 180deg;
    top: 23px;
    position: absolute;
    border: none;
  }
}

@media (max-width: 300px) {
  .subsection-content-lower .col-6 a {
    color: black !important;
    text-decoration: none !important;
  }
  .subsection-content-upper {
    padding: 10px;
  }

  .subsection-content-upper h4 {
    font-size: 20px;
    margin-bottom: 10px;
  }
  .subsection-content-upper p {
    margin-bottom: 10px;
  }

  .signup-button-subsection-home {
    height: 30px;
    background-color: #5d51fc !important;
    color: white;
    padding-inline: 20px !important;
    border-radius: 15px;
    margin: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
  }

  .signup-button-subsection-live {
    font-size: 12px;
  }

  .signup-button-subsection-school {
    font-size: 12px;
  }
  .mobile-grade-btn img {
    width: 15px;
    height: 12px;
    display: none;
  }

  .mobile-grade-btn-inner {
    gap: 3px !important;
  }

  .mobile-grade-btn-inner h5 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
  }

  .mobile-grade-btn-inner span {
    font-size: 10px;
    margin: 0;
  }
}

@media (min-width: 476px) and (max-width: 730px) {
  #main-nav-bar {
    display: none;
  }
  .subsection-content-lower .col-6 a {
    color: black !important;
    text-decoration: none !important;
  }

  .mobile-menu-section {
    border: 2px solid #cecece;

    display: flex !important;
    width: 90%;
    background-color: white;
    margin-inline: auto;
    height: 58px;
    position: fixed;
    top: 3vh;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 20px;
    padding-inline: 15px;
    padding-block: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10000000;
  }

  .mobile-nav-right {
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    gap: 7px;
  }

  .login-btn-mobile {
    text-decoration: none;
    color: black;
    border-radius: 8px;
    border: 2px solid #f0f0f0;
    padding-inline: 26px;
    padding-block: 8px;
    background-color: white;
    font-size: 14px;
    font-weight: 600;
  }

  .mobile-menu-icon {
    border-radius: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .mobile-menu-modal {
    display: block !important;
    position: fixed;
    top: 0;
    right: -100%; /* Initially hidden outside of the screen */
    width: 80%;
    height: 100%;
    background-color: #fff;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    z-index: 10000000;
    transition: all 0.3s ease;
  }

  /* Content inside the modal */
  .mobile-modal-content {
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: start !important;
    overflow-y: auto !important;
  }

  /* Close icon */
  .close-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0 !important;
  }

  /* Button styles */
  .menu-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-inline: 20px;
    margin: 20px 0px;
    height: 120px;
    background-color: #eee;
    cursor: pointer;
    border-radius: 20px;
    border: 2px solid #f0f0f0;
    background-color: transparent;
    box-shadow: 0px 7px 0px #f0f0f0;
    flex-direction: 0 !important;
    text-decoration: none;
    color: black;
  }

  .menu-btn:active {
    box-shadow: 0px 0px 0px #f0f0f0;
    transform: translateY(7px);
  }

  .menu-btn-left h5 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
  }

  .menu-btn-left p {
    margin-top: 15px !important;
    color: #909090;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
    text-align: left;
  }

  /* Slide-in when modal is opened */
  .mobile-menu-modal.open {
    right: 0; /* Slide into view */
    transition: all 0.3s ease;
  }

  .mobile-menu-section.slide-out {
    transform: translateX(-300%); /* Moves the navbar out of the view */
    transition: transform 0.3s ease; /* Smooth slide-out transition */
  }

  /* When navbar is in its default state */
  .mobile-menu-section {
    transition: transform 0.3s ease;
  }

  .contact-login-div {
    margin-top: auto;
    display: flex;
    height: 70px;
    border-top: 2px solid #f0f0f0;
    justify-content: space-between;
    align-items: end;
    gap: 15px;
    flex-shrink: 0 !important;
  }

  .contact-login-div button:nth-child(1) {
    background-color: #ff7f56;
    font-size: 16px;
    font-weight: 600;
    color: white;
    width: 160px;
    height: 48px;
    border: none;
    border-radius: 8px;
  }
  .contact-login-div button:nth-child(2) {
    background-color: white;
    font-size: 16px;
    font-weight: 600;
    color: black;
    width: 160px;
    height: 48px;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
  }

  .subsection-content {
    display: none;
    margin-top: 50px;
    border: 2px solid #f0f0f0;
    padding: 20px;
    border-radius: 20px;
  }

  .subsection-content-upper {
    height: 200px;
    padding: 20px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: start;
  }

  .subsection-content-lower {
    margin-top: 5px !important;
  }
  .mobile-grade-btn {
    height: 40px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    padding-inline: 10px;
    align-items: center;
    border-radius: 10px;
  }

  .mobile-grade-btn:active {
    box-shadow: 0px 0px 0px;
    transform: translateY(6px);
  }

  .mobile-grade-btn-home {
    border: 3px solid #b0cdf9;
    box-shadow: 0px 6px 0px #b0cdf9;
  }

  .mobile-grade-btn-live {
    border: 3px solid #84d89b;
    box-shadow: 0px 6px 0px #84d89b;
  }

  .mobile-grade-btn-school {
    border: 3px solid #ffe759;
    box-shadow: 0px 6px 0px #ffe759;
  }

  .mobile-grade-btn img {
    width: 21px;
    height: 27px;
  }

  .mobile-grade-btn-inner h5 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
  }

  .mobile-grade-btn-inner span {
    font-size: 12px;
    margin: 0;
  }

  .mobile-grade-btn-inner {
    display: flex;
    align-items: end;
    gap: 5px;
  }

  .subsection-content-upper h4 {
    font-size: 22px;
  }

  .subsection-content-upper p {
    font-size: 12px;
  }

  .signup-button-subsection-live {
    height: 40px;
    background-color: #14a312 !important;
    color: white;
    padding-inline: 20px !important;
    border-radius: 15px;
  }

  .signup-button-subsection-school {
    height: 40px;
    background-color: #ffbf31 !important;
    color: white;
    padding-inline: 25px !important;
    border-radius: 15px;
  }

  .signup-button-subsection-home {
    height: 40px;
    background-color: #5d51fc !important;
    color: white;
    padding-inline: 25px !important;
    border-radius: 15px;
  }

  .subsection-content-upper-live {
    background-color: #c6f5d3;
  }

  .subsection-content-upper-home {
    background-color: #cbf4ff;
  }

  .subsection-content-upper-school {
    background-color: #fff1a2;
  }

  /* Simple styling for the back button */
  .subsection-content button {
    background-color: transparent;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    margin-bottom: 20px;
  }

  .backToMenuHome,
  .backToMenuLive,
  .backToMenuSchool {
    rotate: 180deg;
    top: 23px;
    position: absolute;
    border: none;
  }
}

@media (min-width: 731px) and (max-width: 1024px) {
  #main-nav-bar {
    display: none;
  }
  .subsection-content-lower .col-6 a {
    color: black !important;
    text-decoration: none !important;
  }

  .subsection-content-upper a {
    text-decoration: none;
  }

  .mobile-menu-section {
    border: 2px solid #cecece;
    display: flex !important;
    width: 90%;
    background-color: white;
    margin-inline: auto;
    height: 70px;
    position: fixed;
    top: 3vh;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 20px;
    padding-inline: 15px;
    padding-block: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10000000;
  }

  .mobile-logo {
    width: 20%;
  }

  .mobile-logo img {
    height: 60%;
    width: 100%;
    object-fit: cover;
  }

  .mobile-nav-right {
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    gap: 10px;
  }

  .login-btn-mobile {
    text-decoration: none;
    color: black;
    border-radius: 8px;
    border: 2px solid #f0f0f0;
    padding-inline: 40px;
    padding-block: 8px;
    background-color: white;
    font-size: 16px;
    font-weight: 600;
  }

  .mobile-menu-icon {
    background-color: #5d51fc;
    border-radius: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .mobile-menu-modal {
    display: block !important;
    position: fixed;
    top: 0;
    right: -100%; /* Initially hidden outside of the screen */
    width: 80%;
    height: 100%;
    background-color: #fff;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    z-index: 10000000;
    transition: all 0.3s ease;
  }

  /* Content inside the modal */
  .mobile-modal-content {
    height: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: start !important;
    overflow-y: auto !important;
  }

  /* Close icon */
  .close-icon {
    width: 40px;
    height: 40px;
    background-color: #5d51fc;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0 !important;
  }

  /* Button styles */
  .menu-btn {
    flex-shrink: 0 !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-inline: 20px;
    margin: 50px 0px;
    height: 150px;
    background-color: #eee;
    cursor: pointer;
    border-radius: 20px;
    border: 2px solid #f0f0f0;
    background-color: transparent;
    box-shadow: 0px 7px 0px #f0f0f0;
    text-decoration: none;
    color: black;
  }

  .menu-btn:active {
    box-shadow: 0px 0px 0px #f0f0f0;
    transform: translateY(7px);
  }

  .menu-btn-left h5 {
    font-size: 30px;
    font-weight: 600;
    margin: 0;
  }

  .menu-btn-left p {
    margin-top: 15px !important;
    color: #909090;
    font-size: 20px;
    font-weight: 600;
    margin-top: 10px;
    text-align: left;
  }

  /* Slide-in when modal is opened */
  .mobile-menu-modal.open {
    right: 0; /* Slide into view */
    transition: all 0.3s ease;
  }

  .mobile-menu-section.slide-out {
    transform: translateX(-300%); /* Moves the navbar out of the view */
    transition: transform 0.3s ease; /* Smooth slide-out transition */
  }

  /* When navbar is in its default state */
  .mobile-menu-section {
    transition: all 0.3s ease;
  }

  .contact-login-div {
    flex-shrink: 0 !important;
    margin-top: auto;
    display: flex;
    height: 100px;
    border-top: 2px solid #f0f0f0;
    justify-content: space-between;
    align-items: end;
    gap: 15px;
  }

  .contact-login-div button:nth-child(1) {
    background-color: #ff7f56;
    font-size: 24px;
    font-weight: 600;
    color: white;
    width: 200px;
    height: 60px;
    border: none;
    border-radius: 8px;
  }
  .contact-login-div button:nth-child(2) {
    background-color: white;
    font-size: 24px;
    font-weight: 600;
    color: black;
    width: 250px !important;
    height: 60px;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
  }

  .subsection-content-upper h4 {
    font-size: 40px !important;
  }

  .subsection-content-upper p {
    font-size: 18px !important;
  }

  .subsection-content-upper button {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    padding-inline: 40px !important;
    padding-block: 30px !important;
    font-weight: 600;
  }

  .subsection-content {
    display: none;
    margin-top: 50px;
    border: 2px solid #f0f0f0;
    padding: 20px;
    border-radius: 20px;
  }

  .subsection-content-upper {
    height: 300px;
    padding: 20px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: start;
  }

  .subsection-content-lower {
    margin-top: 5px !important;
  }
  .mobile-grade-btn {
    height: 50px;
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    padding-inline: 10px;
    align-items: center;
    border-radius: 10px;
  }

  .mobile-grade-btn:active {
    box-shadow: 0px 0px 0px;
    transform: translateY(6px);
  }

  .mobile-grade-btn-home {
    border: 3px solid #b0cdf9;
    box-shadow: 0px 6px 0px #b0cdf9;
  }

  .mobile-grade-btn-live {
    border: 3px solid #84d89b;
    box-shadow: 0px 6px 0px #84d89b;
  }

  .mobile-grade-btn-school {
    border: 3px solid #ffe759;
    box-shadow: 0px 6px 0px #ffe759;
  }

  .mobile-grade-btn img {
    width: 21px;
    height: 27px;
  }

  .mobile-grade-btn-inner h5 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
  }

  .mobile-grade-btn-inner span {
    font-size: 14px;
    margin: 0;
  }

  .mobile-grade-btn-inner {
    display: flex;
    align-items: end;
    gap: 5px;
  }

  .subsection-content-upper h4 {
    font-size: 22px;
  }

  .subsection-content-upper p {
    font-size: 12px;
  }

  .signup-button-subsection-live {
    height: 40px;
    background-color: #14a312 !important;
    color: white;
    padding-inline: 20px !important;
    border-radius: 15px;
  }

  .signup-button-subsection-school {
    height: 40px;
    background-color: #ffbf31 !important;
    color: white;
    padding-inline: 25px !important;
    border-radius: 15px;
  }

  .signup-button-subsection-home {
    height: 40px;
    background-color: #5d51fc !important;
    color: white;
    padding-inline: 25px !important;
    border-radius: 15px;
  }

  .subsection-content-upper-live {
    background-color: #c6f5d3;
  }

  .subsection-content-upper-home {
    background-color: #cbf4ff;
  }

  .subsection-content-upper-school {
    background-color: #fff1a2;
  }

  /* Simple styling for the back button */
  .subsection-content button {
    background-color: transparent;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    margin-bottom: 20px;
  }

  .backToMenuHome,
  .backToMenuLive,
  .backToMenuSchool {
    rotate: 180deg;
    top: 23px;
    position: absolute;
    border: none;
  }
}

@media (min-width: 1025px) and (max-width: 1199px) {
  .logo {
    height: 40px;
    width: 100px;
  }
  .subsection-content-lower .col-6 a {
    color: black !important;
    text-decoration: none !important;
  }

  .navlinks-container {
    gap: 30px;
  }

  .nav-button {
    width: fit-content !important;
  }

  .login-btn {
    text-decoration: none;
    color: black;
    font-size: 16px;
    width: 12% !important;
  }

  .nav-expanded-container-active {
    flex-wrap: nowrap !important;
    padding-inline: 0px !important;
  }

  .left-part {
    width: 300px !important;
  }

  .middle-part {
    width: 200px !important;
  }
  .signup-button {
    font-size: 18px;
    padding-inline: 20px;
    height: 60px;
  }
  .right-part {
    grid-template-columns: 150px 150px !important;
  }
  .grade-buttons {
    border-radius: 28px;
    height: 50px !important;
  }

  .grade-buttons h3 {
    font-size: 20px;
  }

  .grade-buttons h3 span {
    font-size: 10px !important;
  }

  .grade-buttons i {
    font-size: 30px;
  }
}
