@media only screen and (min-width: 300px) and (max-width: 767px) {


  html {
    scroll-padding-top: 100px; /* Adjust based on navbar height */
}





  .navbar-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    margin: 0%;
  }

  .nav-item {
    flex: 1 0 25%; 
    text-align: center; 
    padding: 0%;
    margin: 0%;
  }


  .nav-link {
    font-size: 0.9rem !important; 
  }



  #faq {
    justify-content: center;
    font-size: 30px;
  }

  #about {
    text-align: center;
    font-size: 30px;
  }

  #ab p {
    text-align: center !important;
  }

  #contact {
    text-align: center;
    font-size: 30px;
  }
  #con p {
    text-align: center !important;
  }

  .find1 {
    text-align: center;
    font-size: 30px;
    padding-top: 3rem;
  }

  #ifram {
    width: 350px;
    height: 200px;
  }

  #feahead {
    text-align: center;
    font-size: 30px;
  }

  .first-footer {
    padding: 4rem;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .first-footer .footercontent {
    justify-content: space-evenly !important;
  }

  .first-footer .footercontent h2::after {
    display: block;
    height: 3px;
    font-weight: bold;
    background-color: #ff385c;
    content: " ";
    width: 50px;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .first-footer .footercontent ul li a {
    text-decoration: none;
    color: white;
  }
  #navfoot {
    padding-top: 1rem;
  }

  /**Copyrights page**/

  .copy h3 {
    font-size: 0.9rem;
    font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
    color: black;
    font-weight: bold;
  }

  #an1 {
    padding-bottom: 1rem;
  }

  #ad1 {
    padding-bottom: 1rem;
  }

  .home1section {
    padding-top: 14rem !important;
    padding-left: 4rem !important;
    padding-right: 4rem !important;
  }

  .home1section .homecard1 {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .home1section .homecard2 {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .home1section .homecard3 {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .home1section .video {
    margin-top: 2rem;
  }



  

  /* faq design */

  /* .faqsec {
    padding: 2rem;
  } */

  /* about design */

  /* .aboutsec {
    padding: 2rem;
  } */

  /* features section */

  /* .features {
    padding: 2rem;
  } */

  /* contact us */
  /* .contactsec {
    padding: 2rem;
  } */

  #ifram {
    width: auto !important;
    height: 400px;
  }
}

@media (max-width: 768px) {

  html {
    scroll-padding-top: 100px; /* Adjust based on navbar height */
}




  .navbar-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    margin: 0%;
  }

  .nav-item {
    flex: 1 0 25%; /* This ensures 4 items per row (25% width each) */
    text-align: center;
    padding: 0%;
    margin: 0%;
  }

  .nav-link {
    font-size: 0.9rem !important; 
  }



  #homecon {
    left: 5%;
    right: 5%;
    width: auto;
    max-width: 90%;
    padding: 1rem;
    /* Adjusted padding for smaller screens */
  }

  #homecon h1 {
    font-size: 1.5rem;
  }

  #homecon h3 {
    font-size: 1.2rem;
  }

  #homecon p {
    font-size: 1rem;
  }

  .first-footer {
    padding: 4rem;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .first-footer .footercontent {
    justify-content: space-evenly !important;
  }

  .first-footer .footercontent h2::after {
    display: block;
    height: 3px;
    font-weight: bold;
    background-color: rgb(233, 153, 4);
    content: " ";
    width: 50px;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .first-footer .footercontent ul li a {
    text-decoration: none;
    color: white;
  }

  /**Copyrights page**/

  .copy h3 {
    font-size: 0.9rem;
    font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
    color: black;
    font-weight: bold;
  }

  .home1section {
    padding-top: 14rem !important;
    padding-left: 4rem !important;
    padding-right: 4rem !important;
  }

  .home1section .homecard1 {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .home1section .homecard2 {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .home1section .homecard3 {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .home1section .video {
    margin-top: 2rem;
  }

  /* faq design */

  /* .faqsec {
    padding-left: 2rem;
    padding-right: 2rem;
  } */

  /* about design */

  /* .aboutsec {
    padding: 2rem;
  } */

  /* features section */

  /* .features {
    padding: 2rem;
  } */

  /* contact us */
  /* .contactsec {
    padding: 2rem;
  } */

  #ifram {
    width: auto !important;
    height: 400px;
  }
}
