@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;
    }
    .about_section {
        border-radius: 90px;
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 420px) {}

@media (max-width: 376px) {}

/* Ultra-wide desktop optimizations (1440px+) */
@media (min-width: 1200px) {
    .container {
        max-width: 1170px;
    }
}

/* Large desktop displays (1440px - 1920px) */
@media (min-width: 1440px) {
    .container {
        max-width: 1340px;
    }

    .hero_area .hero_bg_box {
        width: 100%;
        left: 0;
    }

    .slider_section .detail-box h1 {
        font-size: 3rem;
        line-height: 1.2;
    }

    .slider_section .detail-box p {
        font-size: 14px;
        line-height: 1.6;
    }

    .slider_section .img-box img {
        max-width: 375px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        transition: transform 0.3s ease;
        will-change: transform;
    }

    .slider_section .img-box img:hover {
        transform: scale(1.02);
    }

    .department_section .box {
        padding: 40px 30px;
        margin: 30px 0;
        gap: 15px;
    }

    .department_section .box .img-box img {
        width: 100px;
        height: 100px;
    }

    .department_section .box .detail-box h5 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .department_section .box .detail-box p {
        font-size: 16px;
        line-height: 1.7;
    }

    .about_section .detail-box h3 {
        font-size: 2.5rem;
    }

    .about_section .detail-box p {
        font-size: 18px;
        line-height: 1.6;
    }

    .doctor_section .box {
        margin-top: 60px;
    }

    .doctor_section .box .detail-box {
        padding: 30px 20px;
    }

    .client_section .box {
        margin: 60px 30px;
        padding: 30px;
    }

    .client_section .box .detail-box .name h6 {
        font-size: 24px;
    }

    .footer_section h4 {
        font-size: 20px;
    }

    .footer_section .footer_social a {
        width: 90px;
        height: 90px;
        font-size: 56px;
    }
}

/* Ultra-wide displays (1920px+) */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }

    .hero_area .hero_bg_box {
        width: 100%;
        left: 0;
    }

    .slider_section .detail-box h1 {
        font-size: 4.5rem;
        line-height: 1.1;
    }

    .slider_section .detail-box p {
        font-size: 17px;
        line-height: 1.6;
    }

    .department_section .box {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .slider_section .img-box img {
        max-width: 450px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        transition: transform 0.3s ease;
        will-change: transform;
    }

    .slider_section .img-box img:hover {
        transform: scale(1.05);
    }

    .department_section .heading_container h2 {
        font-size: 3.5rem;
    }

    .department_section .heading_container p {
        font-size: 22px;
        max-width: 1000px;
    }

    .department_section .box {
        padding: 50px 40px;
        margin: 40px 0;
        gap: 20px;
    }

    .department_section .box .img-box img {
        width: 120px;
        height: 120px;
    }

    .department_section .box .detail-box h5 {
        font-size: 26px;
        margin-bottom: 25px;
    }

    .department_section .box .detail-box p {
        font-size: 18px;
        line-height: 1.8;
    }

    .about_section .img-box img {
        border-radius: 20px;
    }

    .about_section .detail-box h3 {
        font-size: 3rem;
    }

    .about_section .detail-box p {
        font-size: 20px;
        line-height: 1.7;
    }

    .doctor_section .box {
        margin-top: 80px;
        border-radius: 15px;
    }

    .doctor_section .box .img-box img {
        width: 100%;
        height: auto;
    }

    .doctor_section .box .detail-box {
        padding: 40px 25px;
    }

    .doctor_section .box .detail-box h5 {
        font-size: 24px;
    }

    .doctor_section .box .detail-box p {
        font-size: 18px;
    }

    .client_section .box {
        margin: 80px 40px;
        padding: 40px;
        border-radius: 20px;
    }

    .client_section .box .img-box img {
        width: 160px;
        height: 160px;
        border: 10px solid rgba(255, 255, 255, 0.45);
    }

    .client_section .box .detail-box .name h6 {
        font-size: 28px;
    }

    .client_section .box .detail-box p {
        font-size: 18px;
    }

    .footer_section {
        padding: 80px 0 20px 0;
    }

    .footer_section h4 {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .footer_section .footer_social a {
        width: 100px;
        height: 100px;
        font-size: 60px;
    }

    .footer_section .footer-info p {
        font-size: 18px;
        padding: 30px 0;
    }
}

/* 4K and larger displays (2560px+) */
@media (min-width: 2560px) {
    .container {
        max-width: 2000px;
    }

    .hero_area .hero_bg_box {
        width: 100%;
        left: 0;
    }

    .slider_section .detail-box h1 {
        font-size: 6rem;
        line-height: 1.05;
    }

    .slider_section .detail-box p {
        font-size: 20px;
        line-height: 1.6;
    }

    .slider_section .img-box img {
        max-width: 550px;
        box-shadow: 0 12px 35px rgba(0,0,0,0.25);
        transition: transform 0.3s ease;
        will-change: transform;
    }

    .slider_section .img-box img:hover {
        transform: scale(1.05);
    }

    .department_section .heading_container h2 {
        font-size: 4.5rem;
    }

    .department_section .heading_container p {
        font-size: 26px;
        max-width: 1200px;
    }

    .department_section .box {
        padding: 60px 50px;
        margin: 50px 0;
        gap: 25px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .department_section .box .img-box img {
        width: 140px;
        height: 140px;
    }

    .department_section .box .detail-box h5 {
        font-size: 30px;
        margin-bottom: 30px;
    }

    .department_section .box .detail-box p {
        font-size: 20px;
        line-height: 1.8;
    }

    .about_section .img-box img {
        border-radius: 25px;
    }

    .about_section .detail-box h3 {
        font-size: 3.5rem;
    }

    .about_section .detail-box p {
        font-size: 22px;
        line-height: 1.7;
    }

    .doctor_section .box {
        margin-top: 100px;
        border-radius: 20px;
    }

    .doctor_section .box .detail-box {
        padding: 50px 30px;
    }

    .doctor_section .box .detail-box h5 {
        font-size: 28px;
    }

    .doctor_section .box .detail-box p {
        font-size: 20px;
    }

    .client_section .box {
        margin: 100px 50px;
        padding: 50px;
        border-radius: 25px;
    }

    .client_section .box .img-box img {
        width: 180px;
        height: 180px;
        border: 12px solid rgba(255, 255, 255, 0.45);
    }

    .client_section .box .detail-box .name h6 {
        font-size: 32px;
    }

    .client_section .box .detail-box p {
        font-size: 20px;
    }

    .footer_section {
        padding: 100px 0 25px 0;
    }

    .footer_section h4 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .footer_section .footer_social a {
        width: 110px;
        height: 110px;
        font-size: 64px;
    }

    .footer_section .footer-info p {
        font-size: 20px;
        padding: 35px 0;
    }
}

/* Accessibility enhancements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.custom_nav-container .navbar-nav .nav-item .nav-link:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.slider_section .img-box img:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}