css:root {
    --primary: #7A0D16;
    --secondary: #C89B3C;
    --dark: #2A2A2A;
    --white: #ffffff;
    --light: #f8f8f8;
    --border: #ececec;
}


/* =====================================
   GLOBAL SEARCH WRAPPER
===================================== */

.global-search-wrap {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999999;
}


/* =====================================
   FLOATING SEARCH BUTTON
===================================== */

.global-search-fab {
    width: 60px;
    height: 60px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: linear-gradient( 135deg, var(--primary), #9b1823);
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(122, 13, 22, 0.30);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.global-search-fab:hover {
    background: linear-gradient( 135deg, var(--secondary), #dfb657);
    color: var(--dark);
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 12px 30px rgba(200, 155, 60, 0.35);
}

.global-search-fab:active {
    transform: scale(0.95);
}


/* =====================================
   SEARCH PANEL
===================================== */

.global-search-panel {
    position: absolute;
    right: 0;
    bottom: 75px;
    width: 360px;
    max-width: calc(100vw - 20px);
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(42, 42, 42, 0.18);
    border: 1px solid rgba(122, 13, 22, 0.14);
    overflow: hidden;
    display: none;
}

.global-search-panel.active {
    display: block;
    animation: searchPopIn 0.25s ease;
}

@keyframes searchPopIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* =====================================
   SEARCH HEADER
===================================== */

.global-search-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: linear-gradient( 135deg, var(--primary), #961923);
    border-bottom: 3px solid var(--secondary);
    color: var(--white);
}

.global-search-top h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.3px;
}

.global-search-close {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.global-search-close:hover {
    background: var(--secondary);
    color: var(--dark);
    border-color: var(--secondary);
    transform: rotate(90deg);
}


/* =====================================
   SEARCH INPUT AREA
===================================== */

.global-search-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.global-search-input-wrap input {
    flex: 1;
    min-width: 0;
    height: 44px;
    border: 1.5px solid #e5d5d6;
    border-radius: 12px;
    padding: 0 14px;
    background: var(--light);
    color: var(--dark);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all 0.25s ease;
}

.global-search-input-wrap input::placeholder {
    color: #888;
}

.global-search-input-wrap input:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(122, 13, 22, 0.08);
}


/* Search Button */

#globalSearchBtn {
    flex-shrink: 0;
    height: 44px;
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 0 15px;
    background: linear-gradient( 135deg, var(--primary), #941923);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

#globalSearchBtn:hover {
    background: linear-gradient( 135deg, var(--secondary), #dfb657);
    color: var(--dark);
    border-color: var(--secondary);
    box-shadow: 0 6px 15px rgba(200, 155, 60, 0.22);
}

#globalSearchBtn:active {
    transform: scale(0.96);
}


/* =====================================
   SEARCH RESULTS
===================================== */

.global-search-results {
    max-height: 300px;
    overflow-y: auto;
    padding: 12px;
    background: var(--white);
    color: var(--dark);
    scrollbar-width: thin;
    scrollbar-color: var(--secondary) #f4f0ed;
}


/* Scrollbar for Chrome / Edge */

.global-search-results::-webkit-scrollbar {
    width: 6px;
}

.global-search-results::-webkit-scrollbar-track {
    background: #f4f0ed;
    border-radius: 10px;
}

.global-search-results::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 10px;
}

.global-search-results::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}


/* Empty / No Results */

.global-search-empty,
.global-search-no {
    padding: 18px 12px;
    text-align: center;
    color: #777;
    font-size: 13px;
    line-height: 1.6;
}


/* =====================================
   SEARCH RESULT ITEM
===================================== */

.global-search-item {
    border: 1px solid var(--border);
    border-left: 3px solid var(--secondary);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: var(--white);
}

.global-search-item:last-child {
    margin-bottom: 0;
}

.global-search-item:hover {
    border-color: rgba(122, 13, 22, 0.25);
    border-left-color: var(--primary);
    background: #fff9f7;
    box-shadow: 0 8px 20px rgba(122, 13, 22, 0.09);
    transform: translateX(3px);
}

.global-search-item-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 7px;
    line-height: 1.5;
}

.global-search-item-path {
    display: inline-block;
    font-size: 11px;
    background: #fbf3e3;
    color: #805b16;
    padding: 4px 9px;
    border-radius: 999px;
    font-weight: 600;
    line-height: 1.5;
}


/* =====================================
   SEARCH TARGET HIGHLIGHT
===================================== */

.global-search-target-highlight {
    outline: 3px solid var(--secondary) !important;
    box-shadow: 0 0 0 8px rgba(200, 155, 60, 0.20) !important;
    border-radius: 8px !important;
    scroll-margin-top: 100px;
}


/* =====================================
   ACCESSIBILITY
===================================== */

.global-search-fab:focus-visible,
.global-search-close:focus-visible,
#globalSearchBtn:focus-visible,
.global-search-item:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 3px;
}


/* =====================================
   TABLET RESPONSIVE
===================================== */

@media (max-width: 768px) {
    .global-search-wrap {
        right: 14px;
        bottom: 14px;
    }
    .global-search-fab {
        width: 54px;
        height: 54px;
        font-size: 20px;
    }
    .global-search-panel {
        width: 360px;
        max-width: calc(100vw - 28px);
        right: -2px;
        bottom: 68px;
        border-radius: 16px;
    }
    .global-search-top {
        padding: 14px 16px;
    }
    .global-search-input-wrap {
        padding: 13px;
    }
    .global-search-results {
        max-height: 280px;
    }
}


/* =====================================
   MOBILE RESPONSIVE
===================================== */

@media (max-width: 480px) {
    .global-search-wrap {
        right: 12px;
        bottom: 14px;
    }
    .global-search-fab {
        width: 52px;
        height: 52px;
        font-size: 21px;
    }
    .global-search-panel {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 76px;
        width: auto;
        max-width: none;
        max-height: calc(100dvh - 100px);
        border-radius: 16px;
    }
    .global-search-top {
        padding: 14px;
    }
    .global-search-top h3 {
        font-size: 16px;
    }
    .global-search-input-wrap {
        padding: 12px;
        gap: 7px;
    }
    .global-search-input-wrap input {
        height: 43px;
        padding: 0 10px;
        font-size: 13px;
    }
    .global-search-input-wrap button,
    #globalSearchBtn {
        height: 43px;
        padding: 0 12px;
        font-size: 12px;
    }
    .global-search-results {
        max-height: 250px;
        padding: 10px;
    }
    .global-search-item {
        padding: 11px;
    }
}


/* =====================================
   SMALL MOBILE
===================================== */

@media (max-width: 360px) {
    .global-search-panel {
        left: 8px;
        right: 8px;
        bottom: 68px;
    }
    .global-search-input-wrap {
        gap: 6px;
    }
    .global-search-input-wrap input {
        padding: 0 8px;
    }
    #globalSearchBtn {
        padding: 0 9px;
    }
}


/* =====================================
   REDUCED MOTION
===================================== */

@media (prefers-reduced-motion: reduce) {
    .global-search-fab,
    .global-search-panel,
    .global-search-close,
    #globalSearchBtn,
    .global-search-item {
        animation: none !important;
        transition: none !important;
    }
}


/* =====================================
   LINKEDIN BUTTON
   Original styling retained
===================================== */

.linkedin-btn {
    background: #0077B5;
    color: #fff;
}

.linkedin-btn:hover {
    background: #005E93;
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 10px 25px rgba(0, 119, 181, 0.4);
}