@media screen and (max-width: 1400px) {
  header .navbar-dark .navbar-nav .nav-link {
    color: white;
    background: none;
    padding: 8px 6px;
    border-radius: 50px;
  }

  main h4 {
    font-size: 24px;
  }
}

@media screen and (max-width: 1200px) {
  header.navbar-to-stick {
    display: none !important;
  }

  .tabs-sec .nav-item {
    width: 24.65%;
  }

}

@media (min-width: 1200px) {
  #sidebarToggle {
    display: none !important;
  }
}


@media screen and (max-width: 992px) {

  /* Tablet adjustments */
  main .carousel-caption {
    width: 70%;
    left: 15%;
    right: 15%;
  }

  .tabs-sec .nav-item {
    flex: 1 1 48%;
    margin-bottom: 6px;
  }


  .footer .d-flex.align-items-center img {
    /* width: 120px; */
    display: none;
  }
  .footer .about-
  {
    display: none;
  }

}

@media screen and (max-width: 768px) {

  /* Smaller tablets and big phones */
  main h4 {
    font-size: 12px;
    text-align: center;
  }

  .tabs-sec .nav-item {
    width: 100%;
  }

  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }

  header .bg-dark {
    display: none;
  }


  main .carousel-caption p {
    font-size: 16px;
    margin-top: 20px;
  }

  main .logo {
    /* background-color: blue; */
    width: 60px;
  }

  main h4 {
    align-self: center;
    width: auto;
    text-wrap: balance;
    font-size: 16px;
    margin: 0px 0px 0px 0px;

  }

  main .carousel-caption h1 {
    font-size: 22px;
  }

}

@media screen and (max-width: 576px) {

  /* Mobile optimization */
  .about-section h2,
  .what-we-do-section h2,
  .recent-school-visit h2 {
    font-size: 24px;
  }

  .carousel-caption h1 {
    font-size: 20px;
  }

  .tabs-sec .nav-item {
    flex: 1 1 100%;
    margin-bottom: 6px;
  }

  main h4 {
    width: 220px;
    font-size: 12px;
  }

  main .logo {
    /* background-color: blue; */
    width: 50px;
  }
}

@media screen and (max-width: 400px) {

  /* Very small devices */
  .theme-button-1 {
    font-size: 16px;
    padding: 6px 20px;
  }



}

@media screen and (max-width: 320px) {

  /* Legacy or ultra-small adjustments */
  .carousel-caption p {
    font-size: 14px;
    width: 80%;
  }

  header,
  .top-head {
    display: none;
    /* Hide bulky headers if needed */
  }
}