/* ===== COMPREHENSIVE RESPONSIVE CSS FOR ALL SCREEN SIZES ===== */

/* ===== HEADER & NAVIGATION RESPONSIVE ===== */
@media (max-width: 991px) {
    .navbar-brand img {
        height: 45px;
    }

    .navbar-collapse {
        background: white;
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 0.75rem 1rem;
    }

    .mega-menu .dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        max-height: 400px;
        overflow-y: auto;
    }

    .search-wrapper,
    .translate-wrapper {
        margin: 0.5rem 0;
    }

    .container.my-5{
        padding: 1.5rem 0.75rem 0 0.75rem !important;
        margin: auto !important;
    }

    .d-flex.align-items-center {
        flex-direction: column;
        align-items: flex-start !important;
        width: 100%;
    }

    .navbar .d-flex.align-items-center {
        width: 35% !important;
    }

    .search-wrapper{
        margin: 0 !important;
    }
        .col-md-6 {
            margin: 0 !important;
        }
    
}

@media (max-width: 768px) {
    .navbar .container {
        padding-left: 0;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .navbar-brand img {
        height: 40px;
    }

    .navbar-toggler {
        padding: 0.4rem;
        font-size: 1.2rem;
    }

    .search-input {
        width: 100%;
        font-size: 0.9rem;
        padding: 8px 12px;
    }

    .search-suggestions {
        min-width: 100%;
        max-height: 250px;
    }

    .search-suggestion {
        padding: 10px 15px;
        font-size: 0.9rem;
        flex-direction: column !important;
    }

    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        height: 35px;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }

    .dropdown-menu {
        font-size: 0.85rem;
    }

    .search-input {
        font-size: 0.85rem;
        padding: 6px 10px;
    }

    .whatsapp-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        bottom: 12px;
        right: 12px;
    }
}

/* ===== CAROUSEL & HERO SECTION RESPONSIVE ===== */
@media (max-width: 991px) {
    .hero-section {
        height: 70vh;
    }

    .carousel-caption {
        margin: auto 5%;
        max-width: 90%;
        padding: 1.5rem;
    }

    .carousel-caption h1 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .carousel-caption p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .carousel-caption .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin: 0.3rem;
    }

    .progress-container {
        width: 80%;
        margin: 15px auto 15px 0;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 60vh;
    }

    .carousel-caption {
        margin: auto 3%;
        padding: 1.2rem;
        text-align: center !important;
        justify-content: center !important;
    }

    .carousel-caption .container {
        text-align: center !important;
    }

    .carousel-caption h1 {
        font-size: 1.6rem;
        text-align: center;
    }

    .carousel-caption p {
        font-size: 0.9rem;
        text-align: center;
    }

    .carousel-caption .btn {
        display: inline-block;
        width: auto;
        min-width: 140px;
        padding: 8px 16px;
        font-size: 0.85rem;
        margin: 0.3rem 0.2rem;
    }

    .carousel-caption .d-flex {
        flex-direction: row;
        justify-content: center !important;
        flex-wrap: wrap;
    }

    .progress-container {
        width: 90%;
        margin: 12px auto 0;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 50vh;
        min-height: 400px;
    }

    .carousel-caption {
        padding: 1rem;
        margin: auto 2%;
    }

    .carousel-caption h1 {
        font-size: 1.3rem;
        margin-bottom: 0.6rem;
    }

    .carousel-caption p {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
        line-height: 1;
        margin-top: 5px;
    }

    .carousel-caption .btn {
        display: block;
        width: 100%;
        min-height: auto !important;
        margin: 0.5rem 0 !important;
        padding: 5px 12px;
        font-size: 0.75rem;
        line-height: 1.3 !important;
    }

    .carousel-caption .d-flex {
        flex-direction: column;
        align-items: center;
    }

    .progress-container {
        width: 95%;
        height: 2px;
        margin: 10px auto 0;
    }

    .carousel-control-prev {
        left: 8px;
    }

    .carousel-control-next {
        right: 8px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .hero-section {
        height: 45vh;
        min-height: 350px;
    }

    .carousel-caption h1 {
        font-size: 1.1rem;
    }

    .carousel-caption p {
        font-size: 0.75rem;
    }
     .navbar .d-flex.align-items-center {
        width: 45% !important;
    }

    .carousel-caption .btn {
        display: block;
        width: 100%;
        min-height: auto;
        margin: 0.5rem 0 !important;
        padding: 5px 12px;
        font-size: 0.75rem;
        line-height: 1.3;
    }
}

/* ===== CONTAINER & SECTION SPACING RESPONSIVE ===== */
@media (max-width: 991px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .my-5 {
        margin: 0rem !important;
        align-items: center !important;
        display: flex;
        flex-direction: column;
    }

    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .why-choose-us-section{
        padding: 2rem 0rem!important;
    }
    .my-5 {
        margin: 0rem !important;
    }

    .arrow{
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: start !important;
        gap: 0 !important;
    }

    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .mb-5 {
        margin-bottom: 2rem !important;
    }

    .mb-4 {
        margin-bottom: 1.5rem !important;
    }

    .mb-3 {
        margin-bottom: 1rem !important;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .my-5 {
        margin: 0rem !important;
    }

    .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .mb-5 {
        margin-bottom: 1.5rem !important;
    }

    .mb-4 {
        margin-bottom: 1rem !important;
    }
}

/* ===== TYPOGRAPHY RESPONSIVE ===== */
@media (max-width: 991px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h5 {
        font-size: 1.1rem;
    }

    .display-4 {
        font-size: 2.5rem;
    }

    .lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    h5 {
        font-size: 1rem;
    }

    h6 {
        font-size: 0.95rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1rem;
    }

    p {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.15rem;
    }

    h5 {
        font-size: 0.95rem;
    }

    h6 {
        font-size: 0.9rem;
    }

    .display-4 {
        font-size: 1.75rem;
    }

    .lead {
        font-size: 0.95rem;
    }

    p {
        font-size: 0.9rem;
    }
}

/* ===== PRODUCT CARDS RESPONSIVE ===== */
@media (max-width: 991px) {

    .col-md-3,
    .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .card-img-top {
        height: 160px;
    }

    .card-body {
        padding: 1rem;
    }

    .card-title {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {

    .col-md-3,
    .col-md-4,
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .card {
        margin-bottom: 1.5rem;
    }

    .card-img-top {
        height: 180px;
    }

    .card-body {
        padding: 1.2rem;
    }

    .card-title {
        font-size: 1rem;
        margin-bottom: 10px !important;
    }

    .btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

@media (max-width: 576px) {
    .card-img-top {
        height: 150px;
    }

    .card-body {
        padding: 1rem;
    }

    .card-title {
        font-size: 0.95rem;
    }

    .card-text {
        font-size: 0.85rem;
    }

    .btn {
        font-size: 0.85rem;
        padding: 7px 14px;
    }
}

/* ===== INDUSTRIES SECTION RESPONSIVE ===== */
@media (max-width: 991px) {
    .industries {
        max-width: 98%;
        padding: 1rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .scroll-arrow {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }

    #industryTabs .nav-link {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }

    .industry-content.active {
        gap: 2rem;
    }

    .text h3 {
        font-size: 1.5rem;
    }

    .text p {
        font-size: 0.95rem;
    }

    .image img {
        width: 100%;
        max-width: 450px;
    }
}

@media (max-width: 768px) {
    .industries {
        max-width: 100%;
        padding: 0.8rem 1.5rem;
    }

    .section-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .tabs-container {
        margin-bottom: 1.5rem;
    }

    .scroll-arrow {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    #industryTabs {
        margin: 0 8px;
    }

    #industryTabs .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .industry-content.active {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .text {
        max-width: 100%;
    }

    .text h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .text p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .image img {
        width: 100% !important;
        max-width: 100%;
    }

    .details-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .industries {
        padding: 0.5rem 1.5rem;
        margin: 0.5rem auto;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .card .h-100 { 
        height: auto !important;
    }

    .scroll-arrow {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    #industryTabs {
        margin: 0 5px;
    }

    #industryTabs .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .text h3 {
        font-size: 1.15rem;
    }

    .text p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .details-btn {
        padding: 7px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 400px) {
    .section-title {
        font-size: 1.3rem !important;
    }

    .scroll-arrow {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    #industryTabs .nav-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }

    .text h3 {
        font-size: 1rem;
    }

    .text p {
        font-size: 0.8rem;
    }
}

/* ===== SERVICES SECTION RESPONSIVE ===== */
@media (max-width: 991px) {
    .rounded-circle {
        width: 70px !important;
        height: 70px !important;
    }

    .rounded-circle i {
        font-size: 1.8rem !important;
    }
}

@media (max-width: 768px) {
    .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .rounded-circle {
        width: 65px !important;
        height: 65px !important;
    }

    .rounded-circle i {
        font-size: 1.6rem !important;
    }
}

@media (max-width: 576px) {
    .rounded-circle {
        width: 60px !important;
        height: 60px !important;
    }

    .rounded-circle i {
        font-size: 1.5rem !important;
    }
}

/* ===== TESTIMONIALS SECTION RESPONSIVE ===== */
@media (max-width: 991px) {
    .testimonials-section .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .testimonials-section .card-body {
        padding: 1.5rem;
    }

    .testimonials-section .card-text {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .testimonials-section .card-body {
        padding: 1.2rem;
    }

    .testimonials-section .card-text {
        font-size: 0.9rem;
    }
}

/* ===== FOOTER RESPONSIVE ===== */
@media (max-width: 991px) {

    footer .col-lg-4,
    footer .col-lg-2,
    footer .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 2rem;
    }

    footer .navbar-brand img {
        height: 45px;
    }
}

@media (max-width: 768px) {

    footer .col-lg-4,
    footer .col-lg-2,
    footer .col-lg-3,
    footer .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }

    footer .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    footer h6 {
        font-size: 1rem;
    }

    footer p,
    footer li {
        font-size: 0.9rem;
    }

    footer .d-flex.gap-3 {
        justify-content: center;
        margin-top: 1rem;
    }

    footer .navbar-brand img {
        height: 40px;
    }

    footer .text-md-end {
        text-align: center !important;
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    footer .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    footer h6 {
        font-size: 0.95rem;
    }

    footer p,
    footer li {
        font-size: 0.85rem;
    }

    footer .navbar-brand img {
        height: 35px;
    }

    footer .fs-5 {
        font-size: 1.1rem !important;
    }
}

/* ===== BUTTONS RESPONSIVE ===== */
@media (max-width: 768px) {
    .btn-lg {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .btn-lg {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .btn {
        padding: 7px 14px;
        font-size: 0.85rem;
    }
}

/* ===== CTA SECTION RESPONSIVE ===== */
@media (max-width: 768px) {
    .bg-primary .col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .bg-primary h2 {
        font-size: 1.6rem;
    }

    .bg-primary .lead {
        font-size: 1rem;
    }

    .bg-primary .d-flex {
        flex-direction: column;
        gap: 0.8rem !important;
    }

    .bg-primary .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .bg-primary h2 {
        font-size: 1.4rem;
    }

    .bg-primary .lead {
        font-size: 0.95rem;
    }

    .bg-primary .btn {
        max-width: 250px;
    }
}

/* ===== WHY CHOOSE SECTION RESPONSIVE ===== */
@media (max-width: 768px) {
    .bg-light .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .bg-light h3 {
        font-size: 1.3rem;
    }

    .bg-light ul li,
    .bg-light a {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .bg-light h3 {
        font-size: 1.2rem;
    }

    .bg-light ul li,
    .bg-light a {
        font-size: 0.85rem;
    }
}

/* ===== GRID SYSTEM RESPONSIVE ===== */
@media (max-width: 991px) {
    .row {
        margin-left: -0.75rem;
        margin-right: -0.75rem;
    }

    .row>* {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

@media (max-width: 768px) {
    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }

    .row>* {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* ===== OVERFLOW PREVENTION ===== */
@media (max-width: 991px) {
    body {
        overflow-x: hidden;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ===== FLEXBOX RESPONSIVE UTILITIES ===== */
@media (max-width: 768px) {
    .d-flex {
        flex-wrap: wrap;
    }

    .justify-content-between {
        justify-content: center !important;
    }

    .text-md-end {
        text-align: center !important;
    }
}

/* ===== MEGA MENU RESPONSIVE ===== */
@media (max-width: 991px) {
    .mega-menu .dropdown-menu .row {
        flex-direction: column;
    }

    .mega-menu .dropdown-menu .col-md-4 {
        max-width: 100%;
        flex: 0 0 100%;
    }

    .dropdown-header {
        font-size: 0.95rem;
    }

    .dropdown-item {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

/* ===== BREADCRUMB RESPONSIVE ===== */
@media (max-width: 768px) {
    .breadcrumb {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .breadcrumb-item {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .breadcrumb {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        flex-wrap: wrap;
    }
}

/* ===== SIDEBAR RESPONSIVE ===== */
@media (max-width: 991px) {
    .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .col-md-9 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ===== LANDSCAPE ORIENTATION ===== */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        height: 80vh;
    }

    .carousel-caption {
        padding: 1rem;
    }

    .carousel-caption h1 {
        font-size: 1.4rem;
    }

    .carousel-caption p {
        font-size: 0.85rem;
    }
}

/* ===== TABLET SPECIFIC ===== */
@media (min-width: 768px) and (max-width: 991px) {

    .col-md-3,
    .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ===== SMALL TABLET ===== */
@media (min-width: 576px) and (max-width: 767px) {
    .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* ===== EXTRA SMALL DEVICES ===== */
@media (max-width: 400px) {
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    .btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* ===== CAROUSEL CAPTION BUTTONS RESPONSIVE ===== */
@media (max-width: 768px) {

    .carousel-caption .btn-light,
    .carousel-caption .btn-outline-light {
        padding: 8px 16px;
        font-size: 0.85rem;
        border-radius: 20px;
        min-width: 130px;
    }
}

@media (max-width: 576px) {

    .carousel-caption .btn-light,
    .carousel-caption .btn-outline-light {
        padding: 7px 14px;
        font-size: 0.8rem;
        border-radius: 18px;
        min-width: 120px;
        display: block;
        margin: 0.3rem auto !important;
    }

    .carousel-caption .d-flex.justify-content-center {
        flex-direction: column;
        align-items: center;
        gap: 0.3rem;
    }
}

@media (max-width: 400px) {

    .carousel-caption .btn-light,
    .carousel-caption .btn-outline-light {
        padding: 6px 12px;
        font-size: 0.75rem;
        min-width: 110px;
    }
}

/* ===== SLIDER DOTS RESPONSIVE ===== */
@media (max-width: 768px) {
    .slider-dot {
        width: 10px !important;
        height: 10px !important;
        margin: 0 4px !important;
    }

    .carousel-indicators [data-bs-target] {
        width: 10px !important;
        height: 10px !important;
        margin: 0 4px !important;
    }
}

@media (max-width: 576px) {
    .slider-dot {
        width: 8px !important;
        height: 8px !important;
        margin: 0 3px !important;
    }

    .carousel-indicators [data-bs-target] {
        width: 8px !important;
        height: 8px !important;
        margin: 0 3px !important;
    }

    .carousel-indicators {
        bottom: 10px !important;
    }
}

@media (max-width: 400px) {
    .slider-dot {
        width: 7px !important;
        height: 7px !important;
        margin: 0 2px !important;
    }

    .carousel-indicators [data-bs-target] {
        width: 7px !important;
        height: 7px !important;
        margin: 0 2px !important;
    }
}

/* ===== PROGRESS BAR RESPONSIVE ===== */
@media (max-width: 768px) {
    .progress-container {
        width: 85% !important;
        margin: 12px auto 0 !important;
    }
}

@media (max-width: 576px) {
    .progress-container {
        width: 90% !important;
        height: 2px !important;
        margin: 10px auto 0 !important;
    }
}

@media (max-width: 400px) {
    .progress-container {
        width: 95% !important;
        height: 2px !important;
    }
}

/* ===== CONTENT WRAPPER RESPONSIVE ===== */
@media (max-width: 768px) {
    .content-wrapper {
        padding-top: 0;
    }
}

/* ===== STATS SECTION RESPONSIVE ===== */
@media (max-width: 768px) {
    .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0.5rem;
    }
}

@media (max-width: 576px) {
    .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }
}

/* ===== IMAGE RESPONSIVE ===== */
@media (max-width: 768px) {
    img {
        max-width: 100%;
        height: auto;
    }

    .card-img-top {
        object-fit: contain;
        background: #f8f9fa;
    }
}

/* ===== TEXT ALIGNMENT RESPONSIVE ===== */
@media (max-width: 768px) {
    .text-center {
        text-align: center !important;
        margin-bottom: 10px;
    }

    .btn{
        min-height: auto !important;
    }

    .card:nth-child(1){
        height: auto !important;
    }
    .carousel-caption {
        text-align: center !important;
    }

    .carousel-caption h1,
    .carousel-caption p {
        text-align: center !important;
    }
}

/* ===== NAVBAR COLLAPSE RESPONSIVE ===== */
@media (max-width: 991px) {

    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        background: white;
        max-height: calc(100vh - 76px);
        overflow-y: auto;
        z-index: 9999;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
}

@media (max-width: 768px) {

    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        top: 65px;
        max-height: calc(100vh - 65px);
    }
}

@media (max-width: 576px) {

    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        top: 60px;
        max-height: calc(100vh - 60px);
    }
}

/* ===== PREVENT HORIZONTAL SCROLL ===== */
@media (max-width: 991px) {

    html,
    body {
        overflow-x: hidden;
        max-width: 100%;
    }

    * {
        max-width: 100%;
    }
}

/* ===== TOUCH OPTIMIZATION ===== */
@media (max-width: 768px) {

    .btn,
    .nav-link,
    .dropdown-item,
    .search-suggestion {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ===== SPACING ADJUSTMENTS ===== */
@media (max-width: 576px) {
 

    .ms-3 {
        margin-left: 0.5rem !important;
    }

    .px-3 {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .py-3 {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }
}