/* ========================================
   MOBILE HEADER FIX - APP-LIKE DESIGN
   ======================================== */

/* Prevent horizontal overflow globally */
html,
body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    position: relative;
}

/* Mobile Header Optimization */
@media (max-width: 991px) {

    /* Compact Header */
    .premium-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        padding: 8px 15px !important;
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* App-like Logo */
    .premium-header .logo {
        display: flex;
        align-items: center;
    }

    .premium-header .logo img {
        height: 36px !important;
        width: auto;
        max-width: 120px;
        object-fit: contain;
    }

    /* Header Actions - Compact */
    .premium-header .header-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /* Sign In/Register Buttons - Smaller */
    .btn-header-login,
    .btn-header-register {
        font-size: 13px !important;
        padding: 6px 12px !important;
        border-radius: 6px !important;
        font-weight: 600;
    }

    .btn-header-login {
        color: #0357e9;
        background: transparent;
        border: 1px solid #0357e9;
    }

    .btn-header-register {
        background: #0357e9;
        color: #fff;
        border: none;
    }

    /* Add spacing for fixed header */
    body {
        padding-top: 56px !important;
        padding-bottom: 70px !important;
    }

    /* Container fixes */
    .container,
    .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .row {
        margin-left: -15px !important;
        margin-right: -15px !important;
    }

    .col-1,
    .col-2,
    .col-3,
    .col-4,
    .col-5,
    .col-6,
    .col-7,
    .col-8,
    .col-9,
    .col-10,
    .col-11,
    .col-12,
    .col,
    .col-auto,
    .col-sm-1,
    .col-sm-2,
    .col-sm-3,
    .col-sm-4,
    .col-sm-5,
    .col-sm-6,
    .col-sm-7,
    .col-sm-8,
    .col-sm-9,
    .col-sm-10,
    .col-sm-11,
    .col-sm-12,
    .col-md-1,
    .col-md-2,
    .col-md-3,
    .col-md-4,
    .col-md-5,
    .col-md-6,
    .col-md-7,
    .col-md-8,
    .col-md-9,
    .col-md-10,
    .col-md-11,
    .col-md-12,
    .col-lg-1,
    .col-lg-2,
    .col-lg-3,
    .col-lg-4,
    .col-lg-5,
    .col-lg-6,
    .col-lg-7,
    .col-lg-8,
    .col-lg-9,
    .col-lg-10,
    .col-lg-11,
    .col-lg-12 {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Page Search Section */
    .pageSearch {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
        margin: 0 !important;
    }

    /* Fix wrapper padding */
    .listpgWraper {
        padding-bottom: 85px !important;
        margin: 0 !important;
    }

    /* Search Form - Compact */
    .searchform .input-group {
        flex-wrap: nowrap !important;
    }

    .searchform input {
        font-size: 14px !important;
        padding: 10px 15px !important;
    }

    .searchform .btn {
        padding: 10px 15px !important;
    }

    /* Hero Section - Reduced */
    .searchwrap {
        padding: 30px 0 35px !important;
    }

    /* Hide/minimize extra elements */
    .searchwrap::before,
    .searchwrap::after {
        display: none !important;
    }
}

/* Tablet Responsive */
@media (max-width: 768px) {
    .premium-header {
        padding: 6px 12px !important;
        height: 52px;
    }

    .premium-header .logo img {
        height: 32px !important;
        max-width: 100px;
    }

    body {
        padding-top: 52px !important;
    }
}

/* Small Phone Optimization */
@media (max-width: 375px) {
    .premium-header {
        padding: 5px 10px !important;
        height: 48px;
    }

    .premium-header .logo img {
        height: 28px !important;
        max-width: 90px;
    }

    .btn-header-login,
    .btn-header-register {
        font-size: 12px !important;
        padding: 5px 10px !important;
    }

    body {
        padding-top: 48px !important;
    }
}

/* Fix for search/content sections */
@media (max-width: 991px) {

    /* Ensure no content goes beyond viewport */
    * {
        max-width: 100vw;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    /* Tables responsiveness */
    table {
        width: 100%;
        overflow-x: auto;
        display: block;
    }

    /* Modals */
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
}

/* Material Icons for Header (if using) */
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');