/* Custom Header Widget Styles */
.custom-header-wrapper {
    position: relative;
    width: 100%;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.custom-header-wrapper.sticky-enabled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.elementor-widget-custom_header,
.elementor-widget-custom_header > .elementor-widget-container {
    background: transparent !important;
}

.custom-header-wrapper.is-sticky {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.9) !important;
}

.custom-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 30px;
    box-sizing: border-box;
}

/* Logo */
.custom-header-logo a {
    display: block;
    line-height: 0;
}

.custom-header-logo img {
    max-height: 60px;
    width: auto;
}

/* Navigation */
.custom-header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.custom-header-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.custom-header-menu > li {
    position: relative;
}

.custom-header-menu > li > a {
    display: block;
    padding: 10px 0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Submenu */
.custom-header-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    list-style: none;
    margin: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
    background: #fff;
    z-index: 100;
}

.custom-header-menu > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-header-menu .sub-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.custom-header-menu .sub-menu li a {
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Menu dropdown icon */
.custom-header-menu > li.menu-item-has-children > a {
    display: flex;
    align-items: center;
    gap: 6px;
}

.custom-header-menu > li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* Custom dropdown icon */
.custom-header-wrapper[style*="--dropdown-icon"] .custom-header-menu > li.menu-item-has-children > a::after {
    background-image: var(--dropdown-icon);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Default dropdown arrow */
.custom-header-wrapper:not([style*="--dropdown-icon"]) .custom-header-menu > li.menu-item-has-children > a::after {
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    width: 6px;
    height: 6px;
    transform: rotate(45deg);
    margin-top: -3px;
}

/* Nested Submenu */
.custom-header-menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
}

.custom-header-menu .sub-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Icons */
.custom-header-icons {
    display: flex;
    align-items: center;
}

.custom-header-icons > div {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.custom-header-icons > div:hover {
    opacity: 0.7;
}

.custom-header-icons svg {
    width: 20px;
    height: 20px;
}

.header-language {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.header-language .language-text {
    font-size: 14px;
    font-weight: 400;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    min-width: 160px;
    margin: 0;
    padding: 10px 0;
    list-style: none;
    background: rgba(80, 80, 80, 0.95);
    border-radius: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.header-language:hover .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.language-dropdown li {
    margin: 0;
    padding: 0;
}

.language-dropdown li a {
    display: block;
    padding: 8px 20px;
    color: #fff;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    transition: background 0.3s;
}

.language-dropdown li a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.gt_float_switcher,
.gtranslate_wrapper {
    position: fixed !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

.skiptranslate,
#goog-gt-tt,
.goog-te-banner-frame {
    display: none !important;
}
body { top: 0 !important; }
font font { background-color: transparent !important; box-shadow: none !important; }

/* Body lock when mobile menu open */
body.mobile-menu-open {
    overflow: hidden;
}

/* Mobile Bar (hidden on desktop) */
.custom-header-mobile-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 16px;
    background: #fff;
    box-sizing: border-box;
}

.mobile-language {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

.mobile-language svg {
    width: 28px;
    height: 28px;
    stroke: #333;
}

.mobile-language .language-dropdown {
    left: 0;
    transform: translateX(0) translateY(5px);
}

.mobile-language:hover .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) translateY(0);
}

.mobile-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.mobile-logo a {
    display: block;
    line-height: 0;
}

.mobile-logo img {
    width: 80px;
    height: auto;
}

.mobile-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.mobile-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* Fullscreen Mobile Menu */
.mobile-fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 10001;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-overflow-scrolling: touch;
}

.mobile-fullscreen-menu.is-active {
    transform: translateX(0);
}

.mobile-fullscreen-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 32px;
    line-height: 1;
    color: #333;
    cursor: pointer;
    z-index: 2;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-fullscreen-nav {
    padding: 60px 0 30px;
}

.mobile-fullscreen-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-fullscreen-list li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-fullscreen-list > li > a {
    display: block;
    padding: 16px 24px;
    color: #1a1a2e;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
}

.mobile-fullscreen-list > li.menu-item-has-children > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-fullscreen-list > li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border: solid #999;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-top: -3px;
}

.mobile-fullscreen-list > li.menu-item-has-children.is-open > a::after {
    transform: rotate(-135deg);
    margin-top: 3px;
}

.mobile-fullscreen-list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    background: transparent;
}

.mobile-fullscreen-list .sub-menu li {
    border-bottom: none;
}

.mobile-fullscreen-list .sub-menu li a {
    display: block;
    padding: 0px 0px 10px 40px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
}

.mobile-fullscreen-list .sub-menu li a:hover {
    color: #1a1a2e;
}

.mobile-fullscreen-list .sub-menu .sub-menu li a {
    padding-left: 56px;
}

/* Old Mobile Toggle (legacy, hidden) */
.custom-header-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
}

.custom-header-mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.custom-header-mobile-toggle.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.custom-header-mobile-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.custom-header-mobile-toggle.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Fullscreen Search Overlay */
.fullscreen-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    pointer-events: none;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-overlay-bg {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 0;
    transform: translateY(-50%);
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.fullscreen-search-overlay.is-active {
    pointer-events: auto;
}

.fullscreen-search-overlay.is-active .search-overlay-bg {
    height: 100vh;
}

.search-overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.4s ease 0.2s;
}

.fullscreen-search-overlay.is-active .search-overlay-content {
    opacity: 1;
    transform: scale(1);
}

.search-close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
}

.fullscreen-search-overlay.is-active .search-close-btn {
    opacity: 1;
    visibility: visible;
}

.search-close-btn::before,
.search-close-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: #fff;
}

.search-close-btn::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.search-close-btn::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.search-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.search-title {
    position: absolute;
    top: 15%;
    left: 0;
    width: 100%;
    font-size: 32px;
    font-weight: 400;
    text-align: center;
    margin: 0;
    letter-spacing: 3px;
}

.search-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.search-form-wrapper form {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.search-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid #999;
    padding: 15px 0;
    font-size: 18px;
    color: #fff;
    outline: none;
    text-align: left;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.search-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
}

.search-mode-toggle {
    display: flex;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.search-mode-btn {
    padding: 10px 24px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    user-select: none;
}

.search-mode-btn.is-active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-weight: 600;
}

.search-mode-btn:hover:not(.is-active) {
    color: rgba(255, 255, 255, 0.85);
}

.search-submit-btn {
    background: #2563eb;
    border: none;
    padding: 15px 45px;
    font-size: 14px;
    color: #fff;
    cursor: pointer;
    font-weight: 500;
    letter-spacing: 1px;
    transition: background 0.3s;
}

.search-submit-btn:hover {
    background: #1d4ed8;
}

/* Mobile Menu */
.custom-header-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 80%;
    height: 100vh;
    background: #fff;
    z-index: 10001;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.custom-header-mobile-menu.is-active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
}

.mobile-menu-nav {
    padding: 20px 0;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-list li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-list li a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.mobile-menu-list li a:hover {
    background: #f5f5f5;
}

.mobile-menu-list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f9f9f9;
}

.mobile-menu-list .sub-menu li a {
    padding-left: 40px;
    font-weight: 400;
}

.mobile-menu-list .sub-menu .sub-menu li a {
    padding-left: 60px;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10000;
}

.mobile-menu-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 991px) {
    .custom-header-wrapper {
        background-color: transparent !important;
    }

    .custom-header-inner {
        display: none;
    }

    .custom-header-mobile-bar {
        display: flex;
        position: relative;
    }

    .custom-header-wrapper.sticky-enabled {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }

    .custom-header-wrapper.sticky-enabled .custom-header-mobile-bar {
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    }

    .custom-header-wrapper.is-sticky .custom-header-mobile-bar {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    }
}

@media (max-width: 576px) {
    .custom-header-mobile-bar {
        padding: 0 12px;
    }
}
