@media (max-width: 1299px) {
  .hero_area .hero_bg_box {
    top: 0;
    left: 0;
    width: 100%;
  }

}

@media (max-width: 1120px) {}

@media (max-width: 992px) {
  .hero_area {
    min-height: auto;
  }

  .slider_section .detail-box p {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }

  .slider_section .detail-box h1 {
    font-size: 2.2rem;
    line-height: 1.4;
  }

  .custom_nav-container .navbar-nav {
    padding-top: 15px;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    padding-bottom: 20px;
  }

  /* Dark mode support for mobile menu */
  [data-theme="dark"] .custom_nav-container .navbar-nav {
    background: rgba(30, 30, 40, 0.95);
  }

  [data-theme="dark"] .custom_nav-container .navbar-nav .nav-item .nav-link {
    color: #ffffff !important;
  }

  .custom_nav-container .navbar-nav .nav-item .nav-link {
    padding: 10px 25px !important;
    margin: 5px 0;
    width: 100%;
    text-align: center;
    color: #1a3a8f !important;
    /* Dark text for light mode background */
  }

  .footer_section .footer_bg_box img {
    -o-object-position: 10% top;
    object-position: 10% top;
  }

  .contact_section .form_container {
    margin-inline-end: 0 !important;
  }

  .contact_info_box {
    padding-inline-start: 0 !important;
  }

  /* Hide custom indicator on mobile since it's vertical */
  .nav-indicator {
    display: none !important;
  }

  .about_section .detail-box {
    margin-right: 0 !important;
    margin-left: 0 !important;
    width: 100% !important;
    padding: 0 15px;
  }

  .about_section .img-box {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }
}

@media (max-width: 767px) {

  .about_section .img-box {
    margin-bottom: 30px;
  }

  .contact_section .form_container {
    margin-bottom: 45px;
  }

  .client_section .box {
    margin: 45px 0;
  }

  .hero_area .hero_bg_box img {
    -o-object-position: center top;
    object-position: center top;
  }
}

@media (max-width: 576px) {

  /* Mobile padding reduction */
  .about_section,
  .contact_section,
  .client_section {
    padding: 40px 15px;
  }

  .heading_container h2,
  .Unit_section h2,
  .about_section h2,
  .doctor_section h2,
  .contact_section h2 {
    font-size: 2rem !important;
    /* Smaller headings on very small screens */
  }

  .nav-actions-wrapper {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .slider_section .detail-box h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .about_section {
    border-radius: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .detail-box p {
    font-size: 0.95rem;
  }

  /* Make sure buttons stack if needed */
  .btn-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
}

@media (max-width: 420px) {
  .contact_detail_card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px 10px;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .contact_detail_card .icon_wrapper {
    margin-bottom: 5px;
  }

  .contact_detail_card .text_content {
    width: 100%;
  }

  .contact_detail_card .text_content p {
    font-size: 0.85rem;
  }
}

@media (max-width: 376px) {}

@media (min-width: 1200px) {
  .container {
    max-width: 1170px;
  }
}