

/* new header  start*/

.custom-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #ffffff; /* Changed to start transparent so the scroll effect is visible */
    padding: 15px 40px;
    transition: all .3s ease;
}

/* Sticky Action State - CHANGED BACKGROUND TO RED */
.custom-header.scrolled {
   background: rgba(0,0,0,.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,.2);
}

.custom-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-box img {
    height: 75px;
}

/* MAIN MENU INTERFACE */
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav ul li a {
    color: #31276d;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

/* RIGHT HAND UTILITIES */
.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* PILL DESIGN SEARCH TRIGGER */
.search-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: none;
    height: 42px;
    padding: 0 24px;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, background 0.2s ease;
}

.search-trigger-btn:hover {
    background: #f7f7f7;
    transform: translateY(-1px);
}

.search-trigger-btn span {
    font-size: 16px;
    color: #757575;
    font-weight: 600;
}

.icon-search, .input-icon-search {
    width: 18px;
    height: 18px;
    color: #757575;
}

/* AUTHENTICATION ACTION SELECTION BUTTON */
.login-btn {
    height: 42px;
    min-width: 130px;
    border-radius: 10px;
    background: #31276d;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    text-decoration: none;
}

.login-btn:hover {
    color: #fff;
}

/* MOBILE TOGGLE (HIDDEN ON DESKTOP) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
}

/* ==========================================================================
   2. MODALS LAYOUT CONFIGURATION (SEARCH & LOGIN)
   ========================================================================== */

/* PILL MODAL OVERLAY WRAPPER */
.pill-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pill-search-modal.is-active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1;
}

.modal-content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 500px;
}

.pill-search-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 8px 20px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border: 1px solid #e8e8ee;
}

.pill-search-box .input-icon-search {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #6b7280;
}

.pill-search-box input[type="search"] {
    flex: 1;
    height: 44px;
    min-height: 44px;
    width: auto;
    border: none;
    outline: none;
    background: transparent;
    padding: 0 0 0 12px;
    font-size: 17px;
    font-weight: 500;
    color: #1f2937;
    box-shadow: none;
}

.pill-search-box input[type="search"]:focus {
    border: none;
    box-shadow: none;
}

.pill-search-box input[type="search"]::placeholder {
    color: #9ca3af;
    font-weight: 500;
}

.modal-close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 38px;
    cursor: pointer;
    z-index: 3;
}

/* LOGIN SYSTEM OVERLAY WRAPPER */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.login-modal.active {
    display: flex !important;
}

.login-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.login-box {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px;
    padding: 35px 30px;
    z-index: 2;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin: 0 15px;
}

/* ==========================================================================
   LOGO TRANSITION STATE LOGIC
   ========================================================================== */

   @media (max-width: 991px) {
    /* ... your existing mobile styles ... */

    .logo-box img {
        height: 40px !important; 
    }
    
    /* Ensure the mobile scrolled logo matches the mobile structural constraint */
    .custom-header.scrolled .logo-box .logo-scrolled {
        height: 40px !important;
    }
    
    /* ... your remaining mobile styles ... */
}
.logo-box {
    display: flex;
    align-items: center;
}

/* Hide the scrolled logo by default */
.logo-box .logo-scrolled {
    display: none;
}

/* When the header gains the .scrolled class */
.custom-header.scrolled .logo-box .logo-default {
    display: none;
}

.custom-header.scrolled .logo-box .logo-scrolled {
    display: block;
    height: 75px; /* Matches your desktop logo height asset */
}

/* ==========================================================================
   3. CLEAN CONSOLIDATED RESPONSIVE BREAKPOINT (MAX-WIDTH: 991px)
   ========================================================================== */
@media (max-width: 991px) {
    .custom-header {
        background: #ffffff !important;
        padding: 10px 20px !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .logo-box img {
        height: 40px !important; 
    }

    /* UI Layout Adjustments */
    .search-trigger-btn,
    .login-btn i { 
        display: none !important; 
    }

    /* Target Sliding Drawer Placement Configuration */
    .main-nav {
        position: fixed;
        top: 60px; 
        left: -100%;
        width: 280px;
        height: calc(100vh - 60px); 
        background: #ffffff;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1); 
        z-index: 9998;
        transition: left 0.3s ease;
        padding: 30px 20px;
        display: block !important;
    }

    .main-nav.active {
        left: 0 !important; 
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .main-nav ul li a {
        color: #222222 !important;
    }

    /* Mobile Interaction Link Framework */
    .login-btn {
        height: 36px !important;
        min-width: 95px !important;
        background: #ffffff !important; 
        color: #b10067 !important; 
        border: 1.5px solid #b10067 !important; 
        border-radius: 8px !important; 
        font-size: 14px !important;
        padding: 0 10px;
    }

    /* Pure Structural CSS Two-Line Hamburger Action Item Toggle */
    .menu-toggle {
        display: block !important;
        width: 28px;
        height: 20px;
        background: transparent !important;
        border: none !important;
        position: relative;
        cursor: pointer;
        padding: 0;
    }

    .menu-toggle i {
        display: none !important; /* Strips asset loader injection dependency */
    }

    .menu-toggle::before,
    .menu-toggle::after {
        content: "";
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #000000;
        transition: all 0.3s ease-in-out;
    }

    .menu-toggle::before {
        top: 4px;
    }

    .menu-toggle::after {
        bottom: 4px;
    }

    /* Active State Transformation Morphing into "X" Close Mark */
    .menu-toggle.open::before {
        transform: translateY(5px) rotate(45deg);
        top: 4px;
    }

    .menu-toggle.open::after {
        transform: translateY(-5px) rotate(-45deg);
        bottom: 4px;
    }
}

/* new header  end*/

.pattern-01{
    background: url('../images/background/pattern-01.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}