@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 {
    margin-bottom: 45px;
  }

  .custom_nav-container .navbar-nav {
    padding-top: 15px;
    align-items: center;
  }

  .custom_nav-container .navbar-nav .nav-item .nav-link {
    padding: 5px 25px;
    margin: 5px 0;
  }

  .footer_section .footer_bg_box img {
    -o-object-position: 10% top;
    object-position: 10% top;
  }
}

@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) {}

@media (max-width: 480px) {
  .slider_section .detail-box h1 {
    font-size: 2rem !important;
  }

  .slider_section .detail-box p{
    font-size: 14px !important;
  }

  .about_section {
    border-radius: 90px;
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 420px) {}

@media (max-width: 376px) {}

@media (min-width: 1200px) {
  .container {
    max-width: 1170px;
  }
}


@media (max-width: 768px) {
  .hero_bg_box picture, .hero_bg_box img{
    object-fit: contain; /* or adjust position */
    object-position: center top;
  }
}


/* Responsive adjustments for mobile screens */
@media (max-width: 991px) {
  .about_section .row {
    flex-direction: column-reverse; /* Image below text for better flow */
    /*text-align: center; */
  }

  .about_section .col-lg-6 {
    width: 100%;
  }

  .about_section .index_about {
    margin-bottom: 30px; /* Space between text and image */
  }

  .about_section .img-box,
  .about_section .custom-shape {
    display: flex;
    justify-content: center;
  }

  .about_section .person-image {
    width: 80%;
    height: auto;
    max-width: 350px;
    border-radius: 15px;
  }

  /*.about_section .d-flex {*/
  /*  justify-content: center;*/
  /*}*/

  .about_section .service_btn {
    padding: 10px 35px;
    font-size: 16px;
  }

}

/* For very small screens (e.g., <576px) */
@media (max-width: 576px) {
  .about_section .person-image {
    width: 100%;
    max-width: 300px;
  }

  .about_section .index_about {
    padding: 0 15px;
  }
}

@media (max-width: 768px) {
  .service_header {
    background-size: cover; /* fills mobile screen better */
    background-position: center;
    clip-path: none; /* removes curve on small screens for clean look */
  }

  .sub_page .slider_section {
    min-height: 70vh;
    text-align: center;
    padding: 0px 0px;
  }

  .sub_page .slider_section .detail-box {
    margin-top: 0px;
  }

  .sub_page .slider_section .detail-box h1 {
    font-size: 1.8rem;
  }

  .sub_page .slider_section .detail-box p {
    font-size: 1rem;
  }
  .slider_section .detail-box{
    padding: 0px;
  }
  .sub_page .hero_area{
    border-bottom-left-radius: 20%;
    border-bottom-right-radius: 20%;
  }
  .navbar-brand span{
    font-size: 18px !important;
     color: var(--primary-color);

  }
  .navbar-brand small{
    font-size: 12px !important;  
  }

}

/* For extra small screens */
@media (max-width: 480px) {
  .sub_page .slider_section {
    min-height: 40vh;
  }

  .sub_page .slider_section .detail-box h1 {
    font-size: 1.6rem;
  }
}