/* Toggle Switch Styles */
.dlmt-toggle-container {
    display: inline-block;
    vertical-align: middle;
}

.dlmt-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.dlmt-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.dlmt-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2c2c2c;
    transition: .4s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    box-sizing: border-box;
    border: 1px solid #444;
}

.dlmt-slider.round {
    border-radius: 34px;
}

.dlmt-slider.round:before {
    border-radius: 50%;
}

.dlmt-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked+.dlmt-slider {
    background-color: #e0e0e0;
    border: 1px solid #ccc;
}

input:checked+.dlmt-slider:before {
    transform: translateX(26px);
    background-color: #ff9800;
    /* Sun color */
}

.dlmt-icon {
    font-size: 14px;
    z-index: 1;
    user-select: none;
    line-height: 1;
}

/* Base Light Mode Conversion logic (Inverting colors while preserving hues) */
html.is-light-mode {
    filter: invert(1) hue-rotate(180deg);
}

/* Prevent double inversion on media, the toggle itself, and background images */
html.is-light-mode img,
html.is-light-mode svg,
html.is-light-mode video,
html.is-light-mode iframe,
html.is-light-mode .elementor-widget-image img,
html.is-light-mode .elementor-image img,
html.is-light-mode .dlmt-toggle-container,
html.is-light-mode .elementor-background-video,
html.is-light-mode .elementor-bg-video-container,
html.is-light-mode .elementor-background-overlay,
html.is-light-mode .elementor-section:not(.dlmt-exclude):not(#Hero):not(#hero):not(.Hero):not(.hero),
html.is-light-mode .elementor-column:not(.dlmt-exclude),
html.is-light-mode .elementor-widget-wrap:not(.dlmt-exclude),
html.is-light-mode .elementor-background-slideshow,
html.is-light-mode.home .elementor-top-section:first-of-type,
html.is-light-mode #Hero,
html.is-light-mode #hero,
html.is-light-mode .Hero,
html.is-light-mode .hero,
html.is-light-mode .dlmt-exclude {
    filter: invert(1) hue-rotate(180deg) !important;
}

/* Prevent TRIPLE inversion for media inside the excluded sections */
html.is-light-mode.home .elementor-top-section:first-of-type img,
html.is-light-mode.home .elementor-top-section:first-of-type svg,
html.is-light-mode.home .elementor-top-section:first-of-type video,
html.is-light-mode.home .elementor-top-section:first-of-type iframe,
html.is-light-mode.home .elementor-top-section:first-of-type .elementor-background-video,
html.is-light-mode.home .elementor-top-section:first-of-type .elementor-bg-video-container,
html.is-light-mode.home .elementor-top-section:first-of-type .elementor-background-overlay,
html.is-light-mode.home .elementor-top-section:first-of-type .elementor-background-slideshow,
html.is-light-mode #Hero img,
html.is-light-mode #Hero svg,
html.is-light-mode #Hero video,
html.is-light-mode #Hero iframe,
html.is-light-mode #Hero .elementor-background-video,
html.is-light-mode #Hero .elementor-bg-video-container,
html.is-light-mode #Hero .elementor-background-overlay,
html.is-light-mode #Hero .elementor-background-slideshow,
html.is-light-mode #hero img,
html.is-light-mode #hero svg,
html.is-light-mode #hero video,
html.is-light-mode #hero iframe,
html.is-light-mode #hero .elementor-background-video,
html.is-light-mode #hero .elementor-bg-video-container,
html.is-light-mode #hero .elementor-background-overlay,
html.is-light-mode #hero .elementor-background-slideshow,
html.is-light-mode .Hero img,
html.is-light-mode .Hero svg,
html.is-light-mode .Hero video,
html.is-light-mode .Hero iframe,
html.is-light-mode .Hero .elementor-background-video,
html.is-light-mode .Hero .elementor-bg-video-container,
html.is-light-mode .Hero .elementor-background-overlay,
html.is-light-mode .Hero .elementor-background-slideshow,
html.is-light-mode .hero img,
html.is-light-mode .hero svg,
html.is-light-mode .hero video,
html.is-light-mode .hero iframe,
html.is-light-mode .hero .elementor-background-video,
html.is-light-mode .hero .elementor-bg-video-container,
html.is-light-mode .hero .elementor-background-overlay,
html.is-light-mode .hero .elementor-background-slideshow,
html.is-light-mode .dlmt-exclude img,
html.is-light-mode .dlmt-exclude svg,
html.is-light-mode .dlmt-exclude video,
html.is-light-mode .dlmt-exclude iframe,
html.is-light-mode .dlmt-exclude .elementor-background-video,
html.is-light-mode .dlmt-exclude .elementor-bg-video-container,
html.is-light-mode .dlmt-exclude .elementor-background-overlay,
html.is-light-mode .dlmt-exclude .elementor-background-slideshow {
    filter: none !important;
}