@media (min-width: 501px) and (max-width: 1024px) {
  html {
    font-size: 62.2%;
  }
  .forleft li {
    display: none;
  }
  .forleft {
    position: relative;
  }
  .forleft img {
    position: absolute;
    top: 1.5rem;
    width: 7rem !important;
  }
  
  .section-header p {
    width: 50%;
    text-align: center;
    line-height: 1.2;
  }

  header {
    padding: 1rem 2rem !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .left {
    justify-content: space-between;
  }
  .forright {
    display: none;
  }
  .forsmallscreen {
    display: block !important;
  }
  .reducewidth {
    display: none;
  }
  .section-1 {
    background-size: cover;
  }
  .containering {
    flex-direction: column;
    width: 95%;
    margin: auto;
  }
  .section2 {
    padding: 15rem 6.4rem !important;
  }
  .image-container img {
    width: 95%;
    height: auto;
  }
  .normaltext {
    width: 95%;
  }
  .section-1 {
    background-image: url("assets/Hero\ \(1\).jpg");
  }

  .kidscool {
    font-size: 4.5rem;
  }
  .accountnow {
    width: 82%;
    padding: 0 2.8rem;
    text-align: center;
  }
  .registernow {
    padding: 0.9rem 3.3rem;
    color: black;
  }

  .strectcher {
    padding: 0 0;
  }
  .hidder {
    display: none;
  }

  footer h3 {
    font-size: 2.2rem;
  }
  .footerlists {
    text-align: center;
    flex-wrap: wrap;
    flex-basis: 60vw;
    gap: 8.3rem !important;
  }

  footer li :hover {
    color: white;
  }
  .social-icons img:hover {
    color: white;
  }

  .profile-icon img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    position: relative;
    top: 1.8rem;
  }
  .testt img {
    width: 29rem;
    height: auto;
  }

  .deepwhitewithzindex {
    position: relative;
    z-index: 1;
  }

  .cardcolor {
    display: flex;
    position: absolute;
    padding: 2rem 1.4rem;
    min-width: 15rem;
    background-color: white;
    justify-content: center;
    color: black;
    left: 22rem;
    top: 10rem;
  }
  .tryyyy {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.7rem 0 !important;
    gap: 1.5rem !important;
    margin: 0 !important;
    font-size: 1.6rem;
  }
  .tryyyy img {
    width: 8rem;
    height: auto;
    margin-bottom: 2.9rem;
  }
  .tryyyy li a:hover {
    color: greenyellow;
    text-decoration: underline;
  }

  .line {
    border-bottom: 1px solid grey;
  }

  a {
    text-decoration: none;
    color: black;
  }

  .forlefts {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .toparea {
    display: flex;
    margin-bottom: 1rem;
    padding-bottom: 1.5rem;
    flex-direction: column;
    align-items: center;
    gap: 1.3rem;
  }

  .deepfont {
    font-size: 1.8rem;
    font-weight: 700;
  }

  .smallerfont {
    font-size: 1.8rem;
    font-weight: 400;
  }

  .twoareas {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .textandimg p {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 0.9rem;
  }

  .topareas {
    display: flex;
    margin-top: 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  .textandimg {
    display: flex;
    gap: 1.5rem;
  }

  .textandimg img {
    position: relative;
    top: -1.1rem;
  }

  /* Dropdown Menu Styles */
  .profile-icon {
    position: relative;
    cursor: pointer;
    display: block !important;
  }
  .section-2 {
    height: 50h !important;
  }

  .forleft {
    position: relative;
  }
  .forleft img {
    width: 140%;

    position: absolute;
    right: -1rem;
  }

  .dropdown-content {
    display: none;
    position: absolute;
    background-color: white !important;
    bottom: 6rem;
    right: 40rem;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
  }

  .profile-icon:hover .dropdown-content {
    display: block;
  }
}
