/* ============================================
   Header & Footer Responsive Fix
   ============================================ */

/* Ensure Bootstrap Grid Works */
.header-khatab .container,
.footer-khatab .container {
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}

.header-khatab .row,
.footer-khatab .row {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

/* Header Layout Fix */
.header-khatab .row > [class*="col-"] {
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
}

.header-khatab .col-auto {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 100% !important;
}

.header-khatab .col {
    flex: 1 1 0 !important;
    max-width: 100% !important;
}

.header-khatab .col.d-none.d-lg-flex {
    display: none !important;
}

@media (min-width: 993px) {
    .header-khatab .col.d-none.d-lg-flex {
        display: flex !important;
    }
}

.header-khatab .col.d-none.d-lg-block {
    display: none !important;
}

@media (min-width: 993px) {
    .header-khatab .col.d-none.d-lg-block {
        display: block !important;
    }
}

/* Ensure proper alignment */
.header-khatab .row.align-items-center {
    align-items: center !important;
}

/* Logo section */
.header-khatab .logo-khatab {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Navigation menu */
.header-khatab .nav-menu-khatab {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Header actions */
.header-khatab .header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    flex-wrap: nowrap;
}

/* Footer Layout Fix */
.footer-khatab .row > [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
}

.footer-khatab .row {
    margin: 0;
}

/* Responsive fixes */
@media (max-width: 1200px) {
    .header-khatab .container,
    .footer-khatab .container {
        max-width: 1140px;
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .header-khatab .container,
    .footer-khatab .container {
        max-width: 960px;
        padding: 0 15px;
    }

    .header-khatab .row {
        flex-wrap: nowrap;
    }

    .header-khatab .col {
        flex: 0 0 auto;
    }

    .header-khatab .col.d-none.d-lg-block {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .header-khatab .container,
    .footer-khatab .container {
        max-width: 720px;
        padding: 0 15px;
    }

    .header-khatab .row {
        flex-wrap: wrap;
    }

    .header-khatab .col-auto:first-child {
        flex: 0 0 auto;
        width: auto;
    }

    .header-khatab .col-auto:last-child {
        flex: 0 0 auto;
        width: auto;
        margin-right: auto;
    }
}

@media (max-width: 576px) {
    .header-khatab .container,
    .footer-khatab .container {
        max-width: 100%;
        padding: 0 15px;
    }

    .header-khatab .row {
        justify-content: space-between;
    }
}

/* Force display */
.header-khatab {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.footer-khatab {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Override any conflicting styles */
.header-khatab *,
.footer-khatab * {
    box-sizing: border-box !important;
}

