/* ============================================================
   Public website header
   - Mobile drawer: 0-767px
   - Global navigation: 768px and above
   This file is deliberately namespaced to avoid legacy CSS clashes.
============================================================ */

:root {
    --pc-header-dark: #111528;
    --pc-header-darker: #0b1020;
    --pc-header-accent: #2aacff;
    --pc-header-accent-hover: #078bdd;
    --pc-header-surface: #ffffff;
    --pc-header-text: #15324a;
    --pc-header-muted: #6b7d8f;
    --pc-header-border: #e5edf4;
    --pc-header-shadow: 0 8px 28px rgba(17, 21, 40, 0.12);
    --pc-topbar-height: 40px;
    --pc-mainbar-height: 78px;
    --pc-tablet-mainbar-height: 72px;
    --pc-mobile-mainbar-height: 64px;
}

/* Prevent legacy header rules from creating duplicate spacing. */
body {
    padding-top: calc(var(--pc-topbar-height) + var(--pc-mainbar-height)) !important;
}

body.pc-mobile-menu-open {
    overflow: hidden !important;
    touch-action: none;
}

.pc-site-header,
.pc-site-header *,
.pc-mobile-drawer,
.pc-mobile-drawer *,
.pc-mobile-overlay,
.pc-whatsapp-button {
    box-sizing: border-box;
}

/* ==========================================================
   Reset conflicting legacy global button styles
   ========================================================== */
.pc-site-header button,
.pc-mobile-drawer button {
   
    
    
    bottom: auto !important;
    left: auto !important;

    margin: 0 !important;
    text-transform: none !important;
    font-family: inherit !important;
    line-height: normal;
}

/* Dropdown buttons require relative positioning for active line */
.pc-global-menu-toggle {
    position: relative !important;
}

/* Ensure every theme control remains visible and aligned */
.pc-theme-control {
    position: static !important;
    flex-shrink: 0;
}

.pc-site-header {
    position: fixed !important;
    inset: 0 0 auto 0 !important;
    z-index: 9990 !important;
    width: 100% !important;
    font-family: 'Lato', Arial, sans-serif;
}

.pc-header-container {
    width: min(1170px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
}

.pc-topbar {
    height: var(--pc-topbar-height);
    background: var(--pc-header-dark);
    color: #ffffff;
}

.pc-topbar-inner,
.pc-mainbar-inner,
.pc-topbar-contact,
.pc-topbar-actions,
.pc-social-links,
.pc-desktop-auth,
.pc-tablet-actions {
    display: flex;
    align-items: center;
}

.pc-topbar-inner {
    justify-content: space-between;
    gap: 24px;
}

.pc-topbar-contact,
.pc-topbar-actions {
    gap: 18px;
    min-width: 0;
}

.pc-topbar-contact a,
.pc-desktop-auth a,
.pc-social-links a {
    color: #ffffff !important;
    text-decoration: none !important;
}

.pc-topbar-contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    white-space: nowrap;
}

.pc-topbar-contact i {
    color: var(--pc-header-accent);
    font-size: 14px;
}

.pc-social-links {
    gap: 4px;
}

.pc-social-links a,
.pc-theme-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #c9d2dc;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    position: relative;
}

.pc-social-links a:hover,
.pc-theme-switch:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
}

/* ==========================================================
   Moon and sun theme icons
   Uses inline SVG, so it does not depend on Font Awesome.
   ========================================================== */
.pc-theme-control {
    color: #ffffff !important;
}

.pc-theme-control .pc-theme-icon {
    display: block;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    min-height: 18px;

    color: inherit !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;

    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none;
}

/* The moon icon uses a filled shape */
.pc-theme-control .pc-theme-icon-moon {
    fill: currentColor !important;
    stroke: none !important;
}

/* Sun is initially hidden because light mode is active */
.pc-theme-control .pc-theme-icon-sun {
    display: none !important;
}

/* In dark mode, hide moon and show sun */
.pc-theme-control[aria-pressed="true"] .pc-theme-icon-moon {
    display: none !important;
}

.pc-theme-control[aria-pressed="true"] .pc-theme-icon-sun {
    display: block !important;
}

/* Desktop topbar button */
.pc-theme-switch {
    color: #ffffff !important;
}

/* Tablet theme button */
#pcTabletThemeSwitch {
    color: #ffffff !important;
}

/* Mobile drawer icon wrapper */
.pc-theme-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 10px;
    background: rgba(42, 172, 255, 0.15);
    color: #2aacff !important;
}



.pc-x-symbol {
    font-size: 12px;
    font-weight: 900;
}

.pc-desktop-auth {
    gap: 12px;
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.pc-desktop-auth a {
    font-size: 12px;
    font-weight: 700;
}

.pc-desktop-auth a:hover {
    color: var(--pc-header-accent) !important;
}

.pc-mainbar {
    height: var(--pc-mainbar-height);
    background: var(--pc-header-surface);
    border-bottom: 1px solid var(--pc-header-border);
    box-shadow: var(--pc-header-shadow);
}

.pc-mainbar-inner {
    gap: 24px;
}

.pc-header-brand,
.pc-drawer-brand {
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 auto;
    min-width: 0;
    text-decoration: none !important;
}

.pc-header-brand img {
    display: block !important;
    width: auto !important;
    max-width: 132px !important;
    height: auto !important;
    max-height: 54px !important;
    object-fit: contain !important;
}

.pc-global-nav {
    display: flex !important;
    align-items: stretch;
    justify-content: flex-end;
    flex: 1 1 auto;
    align-self: stretch;
    min-width: 0;
}

.pc-global-nav > ul {
    display: flex !important;
    align-items: stretch;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.pc-global-nav > ul > li {
    position: relative;
    display: flex;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.pc-global-nav > ul > li > a,
.pc-global-menu-toggle {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 100%;
    margin: 0 !important;
    padding: 0 11px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--pc-header-text) !important;
    font: inherit;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: 0.05px;
    text-decoration: none !important;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
}

.pc-global-nav > ul > li > a::after,
.pc-global-menu-toggle::after {
    content: '';
    position: absolute;
    right: 10px;
    bottom: 0;
    left: 10px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--pc-header-accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.pc-global-nav > ul > li:hover > a::after,
.pc-global-nav > ul > li:hover > .pc-global-menu-toggle::after,
.pc-global-nav > ul > li.is-active > a::after,
.pc-global-nav > ul > li.is-active > .pc-global-menu-toggle::after,
.pc-global-nav > ul > li.is-open > .pc-global-menu-toggle::after {
    transform: scaleX(1);
}

.pc-global-nav > ul > li:hover > a,
.pc-global-nav > ul > li:hover > .pc-global-menu-toggle,
.pc-global-nav > ul > li.is-active > a,
.pc-global-nav > ul > li.is-active > .pc-global-menu-toggle {
    color: var(--pc-header-accent-hover) !important;
}

.pc-global-menu-toggle > i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.pc-global-has-menu.is-open > .pc-global-menu-toggle > i {
    transform: rotate(180deg);
}

.pc-global-dropdown {
    position: absolute !important;
    top: calc(100% - 1px) !important;
    left: 0 !important;
    z-index: 20 !important;
    display: block !important;
    min-width: 230px !important;
    margin: 0 !important;
    padding: 8px !important;
    border: 1px solid var(--pc-header-border) !important;
    border-bottom: 3px solid var(--pc-header-accent) !important;
    border-radius: 0 0 14px 14px !important;
    background: #ffffff !important;
    box-shadow: 0 18px 45px rgba(17, 21, 40, 0.18) !important;
    list-style: none !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

.pc-global-dropdown > li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.pc-global-dropdown a {
    display: flex !important;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px !important;
    border-radius: 9px;
    color: var(--pc-header-text) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    text-transform: none !important;
    white-space: nowrap;
}

.pc-global-dropdown a:hover,
.pc-global-dropdown a:focus,
.pc-global-dropdown a[aria-current='page'] {
    color: var(--pc-header-accent-hover) !important;
    background: #eef8ff !important;
}

@media (hover: hover) and (min-width: 768px) {
    .pc-global-has-menu:hover > .pc-global-dropdown,
    .pc-global-has-menu:focus-within > .pc-global-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}

.pc-global-has-menu.is-open > .pc-global-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.pc-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--pc-header-border);
    border-radius: 12px;
    background: #eef7ff;
    color: var(--pc-header-dark) !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.pc-icon-button:hover {
    color: #ffffff !important;
    background: var(--pc-header-accent);
    border-color: var(--pc-header-accent);
    transform: translateY(-1px);
    position: relative;
}

.pc-menu-toggle,
.pc-mobile-header-spacer,
.pc-tablet-actions,
.pc-mobile-drawer,
.pc-mobile-overlay {
    display: none !important;
}

/* Tablet: global navigation remains visible, topbar is removed to save space. */
/* ==========================================================
   TABLET: global navigation + compact top header
   ========================================================== */
@media (min-width: 768px) and (max-width: 1023px) {
    body {
        padding-top: calc(
            var(--pc-topbar-height) +
            var(--pc-tablet-mainbar-height)
        ) !important;
    }

    /* Keep the top header visible on tablet */
    .pc-topbar {
        display: block !important;
        height: var(--pc-topbar-height) !important;
    }

    /*
       Hide contact and social information on tablet to avoid
       overcrowding. Keep Login/Register and theme control.
    */
    

    .pc-topbar-inner {
        display: flex !important;
        
        align-items: center !important;
    }

    .pc-topbar-actions {
        display: flex !important;
        width: 100%;
        justify-content: flex-end !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .pc-desktop-auth {
        display: flex !important;
        align-items: center;
        gap: 8px;
        padding-left: 0;
        border-left: 0;
    }

    .pc-desktop-auth a {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-height: 30px;
        padding: 0 12px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff !important;
        font-size: 12px;
        font-weight: 800;
        line-height: 1;
        text-decoration: none !important;
        transition:
            background-color 0.2s ease,
            color 0.2s ease;
    }

    .pc-desktop-auth a:hover,
    .pc-desktop-auth a:focus {
        background: var(--pc-header-accent);
        color: #ffffff !important;
    }

    /* Show moon/sun control in tablet top header */
    .pc-theme-switch {
        display: inline-flex !important;
        position: static !important;
        flex: 0 0 30px;
    }

    .pc-mainbar {
        height: var(--pc-tablet-mainbar-height);
    }

    .pc-header-container {
        width: calc(100% - 20px);
    }

    .pc-mainbar-inner {
        gap: 8px;
    }

    .pc-header-brand img {
        width: auto !important;
        max-width: 82px !important;
        max-height: 42px !important;
    }

    .pc-global-nav > ul > li > a,
    .pc-global-menu-toggle {
        padding: 0 5px !important;
        font-size: 10.5px !important;
        letter-spacing: -0.1px;
    }

    .pc-global-menu-toggle > i {
        font-size: 10px;
    }

    /*
       Account and appearance controls are already in the topbar,
       so hide the duplicated tablet controls from the main bar.
    */
    .pc-tablet-actions {
        display: none !important;
    }
}

/* Mobile: only the compact header and drawer are used. */
@media (max-width: 767px) {
    body {
        padding-top: var(--pc-mobile-mainbar-height) !important;
    }

    .pc-topbar,
    .pc-global-nav,
    .pc-tablet-actions {
        display: none !important;
    }

    .pc-mainbar {
        height: var(--pc-mobile-mainbar-height);
    }

    .pc-header-container {
        width: 100%;
        padding: 0 12px;
    }

    .pc-mainbar-inner {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        gap: 10px;
    }

    .pc-menu-toggle,
    .pc-mobile-header-spacer {
        display: inline-flex !important;
        position: relative;
    }

    .pc-header-brand {
        justify-content: center;
        min-width: 0;
    }

    .pc-header-brand img {
        max-width: 116px !important;
        max-height: 46px !important;
    }

    .pc-mobile-header-spacer {
        justify-self: end;
        width: 44px;
        height: 44px;
        pointer-events: none;
    }

    .pc-mobile-drawer {
        position: fixed !important;
        inset: 0 auto 0 0 !important;
        z-index: 10020 !important;
        display: flex !important;
        flex-direction: column;
        width: min(88vw, 360px) !important;
        height: 100dvh !important;
        overflow: hidden !important;
        background: var(--pc-header-dark) !important;
        color: #ffffff !important;
        box-shadow: 20px 0 48px rgba(0, 0, 0, 0.3) !important;
        transform: translate3d(-105%, 0, 0);
        visibility: hidden;
        transition: transform 0.26s ease, visibility 0.26s ease;
        will-change: transform;
    }

    .pc-mobile-drawer.is-open {
        transform: translate3d(0, 0, 0);
        visibility: visible;
    }

    .pc-drawer-header {
        flex: 0 0 auto;
        padding: max(16px, env(safe-area-inset-top)) 16px 16px;
        background: var(--pc-header-darker);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .pc-drawer-brand-row,
    .pc-drawer-actions {
        display: flex;
        align-items: center;
    }

    .pc-drawer-brand-row {
        justify-content: space-between;
        gap: 16px;
    }

    .pc-drawer-brand img {
        display: block !important;
        width: auto !important;
        max-width: 132px !important;
        height: auto !important;
        max-height: 50px !important;
        object-fit: contain !important;
    }

    .pc-drawer-close {
        flex: 0 0 44px;
        border-color: rgba(255, 255, 255, 0.16);
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff !important;
        position: relative;
    }

    .pc-drawer-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 16px;
    }

    .pc-drawer-action {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 1 1 auto;
        gap: 7px;
        min-height: 44px;
        padding: 9px 12px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 11px;
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff !important;
        font-size: 14px;
        font-weight: 800;
        text-decoration: none !important;
    }

    .pc-drawer-action-primary {
        border-color: var(--pc-header-accent);
        background: var(--pc-header-accent);
    }

    .pc-drawer-action-wide {
        grid-column: 1 / -1;
    }

    .pc-drawer-theme {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 54px;
        padding: 8px 12px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff !important;
        font: inherit;
        text-align: left;
        cursor: pointer;
        transition: background-color 0.2s ease, border-color 0.2s ease;
        position: relative;
    }

    .pc-drawer-theme:hover,
    .pc-drawer-theme:focus-visible {
        border-color: rgba(42, 172, 255, 0.55);
        background: rgba(42, 172, 255, 0.15);
    }

    .pc-theme-icon-wrap {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 38px;
        width: 38px;
        height: 38px;
        margin-right: 11px;
        border-radius: 10px;
        background: rgba(42, 172, 255, 0.18);
        color: var(--pc-header-accent);
    }

    .pc-drawer-theme-copy {
        display: flex;
        flex-direction: column;
        min-width: 0;
        line-height: 1.25;
    }

    .pc-drawer-theme-title {
        color: #ffffff;
        font-size: 14px;
        font-weight: 900;
    }

    .pc-theme-state {
        margin-top: 2px;
        color: #abc0d2;
        font-size: 12px;
        font-weight: 700;
    }

    .pc-drawer-scroll {
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding: 12px 12px max(24px, env(safe-area-inset-bottom));
    }

    .pc-mobile-menu,
    .pc-mobile-submenu {
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    .pc-mobile-menu > li {
        margin: 4px 0 !important;
        padding: 0 !important;
        border: 0 !important;
        list-style: none !important;
    }

    .pc-mobile-menu > li > a,
    .pc-mobile-submenu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 50px;
        padding: 11px 13px !important;
        border: 0 !important;
        border-radius: 12px !important;
        background: transparent !important;
        color: #dce9f4 !important;
        font: inherit;
        font-size: 15px !important;
        font-weight: 800 !important;
        line-height: 1.35 !important;
        text-align: left;
        text-decoration: none !important;
        cursor: pointer;
        position: relative;
    }

    .pc-mobile-menu > li > a:hover,
    .pc-mobile-submenu-toggle:hover,
    .pc-mobile-menu > li.is-active > a,
    .pc-mobile-menu > li.is-active > .pc-mobile-submenu-toggle {
        color: #ffffff !important;
        background: rgba(42, 172, 255, 0.16) !important;
    }

    .pc-mobile-menu-label {
        display: flex;
        align-items: center;
        min-width: 0;
        gap: 12px;
    }

    .pc-mobile-menu-label > i {
        flex: 0 0 22px;
        width: 22px;
        color: var(--pc-header-accent);
        text-align: center;
    }

    .pc-mobile-chevron {
        margin-left: 12px;
        color: #87b6d3;
        transition: transform 0.22s ease;
    }

    .pc-mobile-has-submenu.is-open > .pc-mobile-submenu-toggle .pc-mobile-chevron {
        transform: rotate(180deg);
    }

    .pc-mobile-submenu {
        max-height: 0;
        padding-left: 35px !important;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.28s ease, opacity 0.2s ease, padding 0.28s ease;
    }

    .pc-mobile-has-submenu.is-open > .pc-mobile-submenu {
        max-height: 520px;
        padding-top: 4px !important;
        padding-bottom: 7px !important;
        opacity: 1;
    }

    .pc-mobile-submenu li {
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        list-style: none !important;
    }

    .pc-mobile-submenu a {
        display: flex !important;
        align-items: center;
        min-height: 42px;
        margin: 2px 0;
        padding: 9px 12px !important;
        border-left: 2px solid rgba(42, 172, 255, 0.25);
        border-radius: 0 10px 10px 0;
        color: #afc0cf !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        line-height: 1.4 !important;
        text-decoration: none !important;
    }

    .pc-mobile-submenu a:hover,
    .pc-mobile-submenu a[aria-current='page'] {
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.07) !important;
        border-left-color: var(--pc-header-accent);
    }

    .pc-mobile-overlay {
        position: fixed !important;
        inset: 0 !important;
        z-index: 10010 !important;
        display: block !important;
        background: rgba(5, 10, 20, 0.68) !important;
        backdrop-filter: blur(2px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.26s ease, visibility 0.26s ease;
    }

    .pc-mobile-overlay[hidden] {
        display: none !important;
    }

    .pc-mobile-overlay.is-open {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 380px) {
    .pc-mobile-drawer {
        width: 92vw !important;
    }

    .pc-drawer-actions {
        grid-template-columns: 1fr;
    }

    .pc-drawer-action-wide,
    .pc-drawer-theme {
        grid-column: 1;
    }
}

/* Header dark mode. */
body.darkmode .pc-mainbar {
    background: var(--pc-header-dark);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.darkmode .pc-global-nav > ul > li > a,
body.darkmode .pc-global-menu-toggle {
    color: #ffffff !important;
}

body.darkmode .pc-icon-button {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff !important;
    position: relative;
}

/* Floating WhatsApp button kept clear of the header. */
.pc-whatsapp-button {
    position: fixed !important;
    bottom: 90px !important;
    left: 0 !important;
    z-index: 900 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 14px 0 12px;
    border-radius: 0 12px 12px 0;
    background: #25d366;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transform: translateX(calc(-100% + 48px));
    transition: transform 0.25s ease;
}

.pc-whatsapp-button i {
    order: 2;
    font-size: 25px;
}

.pc-whatsapp-button:hover,
.pc-whatsapp-button:focus {
    color: #ffffff !important;
    transform: translateX(0);
}

.pc-site-header a:focus-visible,
.pc-site-header button:focus-visible,
.pc-mobile-drawer a:focus-visible,
.pc-mobile-drawer button:focus-visible {
    outline: 3px solid rgba(42, 172, 255, 0.55) !important;
    outline-offset: 3px !important;
}

@media (prefers-reduced-motion: reduce) {
    .pc-mobile-drawer,
    .pc-mobile-overlay,
    .pc-mobile-chevron,
    .pc-global-dropdown,
    .pc-global-menu-toggle > i,
    .pc-whatsapp-button {
        transition: none !important;
    }
}



    /* ==========================================================
       Header search — stable same-row replacement
       Uses CSS Grid instead of absolute positioning so the search
       occupies exactly the main navigation row without changing
       header height or overlapping the top contact bar.
       ========================================================== */

    .pc-search-sr-only {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }

    /* Put the normal header row and search row in the same grid cell. */
    .pc-site-header .pc-mainbar {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: 100% !important;
        position: relative !important;
        overflow: visible !important;
        isolation: isolate;
    }

    .pc-site-header .pc-mainbar > .pc-mainbar-inner,
    .pc-site-header .pc-mainbar > .pc-header-search-panel {
        grid-column: 1 !important;
        grid-row: 1 !important;
        min-width: 0;
        min-height: 0;
    }

    .pc-site-header .pc-mainbar > .pc-mainbar-inner {
        position: relative;
        z-index: 1;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: opacity .16s ease, visibility .16s ease, transform .16s ease;
    }

    body.pc-search-is-open .pc-site-header .pc-mainbar > .pc-mainbar-inner {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translateY(-4px);
    }

    .pc-global-search-item {
        display: flex;
        align-items: center;
    }

    /* Reset legacy global button rules for all search controls. */
    .pc-site-header .pc-header-search-toggle,
    .pc-site-header .pc-header-search-submit,
    .pc-site-header .pc-header-search-cancel {
        float: none !important;
        bottom: auto !important;
        left: auto !important;
        margin: 0 !important;
        font-family: inherit !important;
        text-transform: none !important;
        box-sizing: border-box !important;
        -webkit-appearance: none;
        appearance: none;
    }

    .pc-header-search-toggle {
        position: static !important;
        width: 42px;
        height: 42px;
        min-width: 42px;
        padding: 0 !important;
        margin-left: 6px !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0 !important;
        border-radius: 10px;
        background: transparent !important;
        color: var(--pc-header-text) !important;
        cursor: pointer;
        transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
    }

    .pc-header-search-toggle:hover,
    .pc-header-search-toggle[aria-expanded="true"] {
        color: #2aacff;
        background: rgba(42, 172, 255, .11) !important;
    }

    .pc-header-search-toggle:focus-visible {
        color: #2aacff;
        outline: none;
        box-shadow: 0 0 0 3px rgba(42, 172, 255, .28);
    }

    .pc-header-search-toggle .fa {
        display: block !important;
        position: static !important;
        margin: 0 !important;
        font-size: 19px;
        line-height: 1 !important;
    }

    /* Search row: same cell and same height as .pc-mainbar-inner. */
    .pc-header-search-panel {
        position: relative !important;
        inset: auto !important;
        z-index: 2;
        width: 100%;
        height: 100%;
        padding: 0 !important;
        display: flex;
        align-items: center;
        background: #ffffff;
        border: 0;
        border-bottom: 1px solid #e1e8ef;
        box-shadow: none;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(4px);
        transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
    }

    .pc-header-search-panel.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }

    .pc-header-search-form {
        width: min(1170px, calc(100% - 32px));
        height: 100%;
        margin: 0 auto;
        padding: 0;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .pc-header-search-field {
        position: relative !important;
        flex: 1 1 auto;
        min-width: 0;
        margin: 0 !important;
    }

    .pc-header-search-input {
        display: block !important;
        width: 100% !important;
        height: 46px !important;
        min-height: 46px !important;
        margin: 0 !important;
        padding: 0 52px 0 16px !important;
        border: 1px solid #667384 !important;
        border-radius: 6px !important;
        background: #ffffff !important;
        color: #111528 !important;
        font-family: inherit !important;
        font-size: 15px !important;
        font-weight: 400 !important;
        line-height: 46px !important;
        box-shadow: none !important;
        outline: none !important;
        transition: border-color .18s ease, box-shadow .18s ease;
    }

    .pc-header-search-input::placeholder {
        color: #667384;
        opacity: 1;
    }

    .pc-header-search-input:focus {
        border-color: #2aacff !important;
        box-shadow: 0 0 0 3px rgba(42, 172, 255, .18) !important;
    }

    .pc-header-search-input::-webkit-search-cancel-button {
        -webkit-appearance: none;
        appearance: none;
    }

    .pc-header-search-submit {
        position: absolute !important;
        top: 50% !important;
        right: 5px !important;
        transform: translateY(-50%) !important;
        width: 38px !important;
        height: 38px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: 0 !important;
        border-radius: 8px !important;
        background: transparent !important;
        color: #111528 !important;
        cursor: pointer;
    }

    .pc-header-search-submit:hover,
    .pc-header-search-submit:focus-visible {
        color: #2aacff !important;
        background: rgba(42, 172, 255, .10) !important;
        outline: none;
    }

    .pc-header-search-submit .fa {
        display: block !important;
        position: static !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 18px !important;
        line-height: 1 !important;
    }

    .pc-header-search-cancel {
        position: static !important;
        flex: 0 0 auto;
        min-width: 92px;
        height: 46px !important;
        padding: 0 18px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: 1px solid #111528 !important;
        border-radius: 6px !important;
        background: #ffffff !important;
        color: #111528 !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        line-height: 1 !important;
        cursor: pointer;
        transition: background-color .18s ease, color .18s ease, border-color .18s ease;
    }

    .pc-header-search-cancel:hover,
    .pc-header-search-cancel:focus-visible {
        background: #111528 !important;
        color: #ffffff !important;
        outline: none;
    }

    .pc-mobile-search-toggle {
        display: none;
    }

    /* Dark mode */
    body.darkmode .pc-header-search-panel,
    body.dark-theme .pc-header-search-panel {
        background: #111528;
        border-color: rgba(255,255,255,.14);
    }

    body.darkmode .pc-header-search-input,
    body.dark-theme .pc-header-search-input {
        background: #1b2135 !important;
        border-color: #6b778b !important;
        color: #ffffff !important;
    }

    body.darkmode .pc-header-search-input::placeholder,
    body.dark-theme .pc-header-search-input::placeholder {
        color: #b7c0cc;
    }

    body.darkmode .pc-header-search-submit,
    body.dark-theme .pc-header-search-submit {
        color: #ffffff !important;
    }

    body.darkmode .pc-header-search-cancel,
    body.dark-theme .pc-header-search-cancel {
        background: transparent !important;
        border-color: #ffffff !important;
        color: #ffffff !important;
    }

    body.darkmode .pc-header-search-cancel:hover,
    body.dark-theme .pc-header-search-cancel:hover {
        background: #ffffff !important;
        color: #111528 !important;
    }

    /* Tablet keeps global navigation and uses the same compact row. */
    @media (min-width: 768px) and (max-width: 1023px) {
        .pc-header-search-toggle {
            width: 34px;
            height: 34px;
            min-width: 34px;
            margin-left: 2px !important;
        }

        .pc-header-search-toggle .fa {
            font-size: 15px;
        }

        .pc-header-search-form {
            width: calc(100% - 24px);
            gap: 8px;
        }

        .pc-header-search-input,
        .pc-header-search-cancel {
            height: 42px !important;
            min-height: 42px !important;
        }

        .pc-header-search-input {
            padding-left: 13px !important;
            padding-right: 46px !important;
            font-size: 13px !important;
            line-height: 42px !important;
        }

        .pc-header-search-submit {
            width: 34px !important;
            height: 34px !important;
        }

        .pc-header-search-cancel {
            min-width: 74px;
            padding: 0 12px !important;
            font-size: 12px !important;
        }
    }

    /* Mobile search replaces the mobile header row, not the page below it. */
    @media (max-width: 767px) {
        .pc-global-search-item {
            display: none !important;
        }

        .pc-mobile-header-spacer {
            display: none !important;
        }

        .pc-mobile-search-toggle {
            display: inline-flex !important;
            justify-self: end;
            margin: 0 !important;
            color: inherit;
        }

        .pc-header-search-form {
            width: 100%;
            padding: 0 10px;
            gap: 7px;
        }

        .pc-header-search-input,
        .pc-header-search-cancel {
            height: 40px !important;
            min-height: 40px !important;
        }

        .pc-header-search-input {
            padding-left: 12px !important;
            padding-right: 44px !important;
            font-size: 13px !important;
            line-height: 40px !important;
        }

        .pc-header-search-submit {
            width: 32px !important;
            height: 32px !important;
        }

        .pc-header-search-submit .fa {
            font-size: 15px !important;
        }

        .pc-header-search-cancel {
            min-width: 62px;
            padding: 0 9px !important;
            font-size: 11px !important;
        }
    }

    @media (max-width: 360px) {
        .pc-header-search-form {
            gap: 5px;
        }

        .pc-header-search-cancel {
            min-width: 56px;
            padding: 0 7px !important;
        }

        .pc-header-search-input {
            font-size: 12px !important;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .pc-header-search-panel,
        .pc-mainbar-inner,
        .pc-header-search-toggle,
        .pc-header-search-input,
        .pc-header-search-cancel {
            transition: none !important;
        }
    }

/* ==========================================================
   FIX SEARCH ICON COLOR IN DARK MODE
   ========================================================== */
body.darkmode .pc-site-header .pc-header-search-toggle,
body.dark-theme .pc-site-header .pc-header-search-toggle {
    color: #ffffff !important;
    background: transparent !important;
}

body.darkmode .pc-site-header .pc-header-search-toggle .fa,
body.dark-theme .pc-site-header .pc-header-search-toggle .fa {
    color: inherit !important;
}

body.darkmode .pc-site-header .pc-header-search-toggle:hover,
body.darkmode .pc-site-header .pc-header-search-toggle:focus-visible,
body.dark-theme .pc-site-header .pc-header-search-toggle:hover,
body.dark-theme .pc-site-header .pc-header-search-toggle:focus-visible {
    color: var(--pc-header-accent) !important;
    background: rgba(42, 172, 255, 0.14) !important;
}

body.darkmode .pc-site-header .pc-header-search-toggle[aria-expanded="true"],
body.dark-theme .pc-site-header .pc-header-search-toggle[aria-expanded="true"] {
    color: var(--pc-header-accent) !important;
    background: rgba(42, 172, 255, 0.16) !important;
}
