
.background-image-wrapper {
    image-rendering: optimizeQuality;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    transform-style: preserve-3d;
    will-change: transform;
}

.background-image-wrapper.custom-background-style-1 {
    background-repeat: no-repeat;
    background-size: cover !important;
    background-position: center center !important;
    transform: scale(1) !important;
    filter: none !important;
    /* Use higher quality image scaling */
    -ms-interpolation-mode: bicubic;
}

.custom-section-background .background-image-wrapper {
    animation: none !important;
}

/* Disable Ken Burns animation completely to prevent blur */
.kenBurnsToRight {
    animation: none !important;
    transform: scale(1) !important;
}

/* Ensure high quality rendering on Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .background-image-wrapper.custom-background-style-1 {
        image-rendering: optimizeQuality;
    }
}

/* Hero image container */
.hero-image-container {
    overflow: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Hero section image optimization */
.hero-background-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    image-rendering: optimizeQuality;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Ensure no blur is applied */
.custom-section-background,
.custom-section-background * {
    filter: none !important;
    -webkit-filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Force GPU acceleration for smoother rendering */
.custom-section-background {
    will-change: transform;
}

/* Ensure picture element takes full space */
.hero-image-container picture {
    display: block;
    width: 100%;
    height: 100%;
}

/* Hero background with maximum sharpness */
.hero-bg-sharp {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    image-rendering: optimizeQuality;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
}

/* Disable any parent transforms */
.custom-section-background {
    transform: none !important;
    filter: none !important;
    -webkit-filter: none !important;
}

/* Simple hero image fix */
.custom-section-background img {
    image-rendering: crisp-edges;
}

.logo-title {
    font-weight: 500;
    margin-left: 0.5rem;
}

.language-button {
    font-weight: 500;
    color: var(--default);
    transition: background-color 120ms;
    padding: 6px 16px;
    border-radius: 4px;
}

.language-button:hover {
    background-color: #0000000f;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 4px 16px !important;
    clear: both;
    font-size: 16px !important;
    font-weight: 400;
    color: black;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}

.dropdown-item:hover {
    text-decoration: none;
    color: var(--primary) !important;
    background-color: #f8f9fa;
}

#header .header-nav-top .dropdown-menu-custom {
    width: fit-content !important;
}

.dropdown-menu-custom {
    display: none;
    border: 1px solid rgba(0, 0, 0, 0.175) !important;
    border-radius: 4px !important;
    position: absolute;
    z-index: 1000;
    background: white;
    left: 50%;
    transform: translateX(-50%);
}

.dropdown-menu-custom.show {
    display: block;
}

.color-inherit {
    color: inherit !important;
}