/* 
 * Style for White Text with High Contrast 
 * Usage: Add class "white-text-contrast" to any element or container
 * Version: 1.0.5 - Cache bust version with nuclear CSS resets for line-height
 */

/* Main Container Style */
.white-text-contrast {
    color: #ffffff !important;
    background-color: rgba(0, 0, 0, 0.75) !important;
    padding: 20px !important;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Force all text content inside to be white */
.white-text-contrast,
.white-text-contrast * {
    color: #ffffff !important;
    text-shadow: none !important;
}

/* Re-apply shadow only to direct text elements for clarity */
.white-text-contrast h1,
.white-text-contrast h2,
.white-text-contrast h3,
.white-text-contrast h4,
.white-text-contrast h5,
.white-text-contrast h6,
.white-text-contrast p,
.white-text-contrast li,
.white-text-contrast span {
    text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
}

/* Elementor Specific Fixes */
.elementor-widget-text-editor.white-text-contrast .elementor-widget-container {
    color: #ffffff !important;
}

/* Link Styles */
.white-text-contrast a,
.white-text-contrast a:visited,
.white-text-contrast a:active {
    color: #ffffff !important;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.5);
}

.white-text-contrast a:hover {
    color: #e2e8f0 !important;
    text-decoration-color: #ffffff;
}

/* NUCLEAR Elementor Text Formatting Fixes */

/* Extreme Specificity for <br> */
body .elementor-widget-text-editor br,
body .elementor-text-editor br,
body .elementor-widget-heading br {
    display: block !important;
    margin-bottom: 1em !important;
    content: " " !important;
}

body .elementor-widget-text-editor br + br,
body .elementor-text-editor br + br,
body .elementor-widget-heading br + br {
    margin-bottom: 2em !important;
}

/* Extreme Specificity for Paragraphs */
body .elementor-widget-text-editor p,
body .elementor-text-editor p,
body .elementor-widget-container p {
    margin-bottom: 1.5em !important;
    margin-top: 0 !important;
    line-height: 1.8 !important; /* Force highly readable line height */
    padding-bottom: 0 !important;
}

body .elementor-widget-text-editor p:last-child,
body .elementor-text-editor p:last-child,
body .elementor-widget-container p:last-child {
    margin-bottom: 0 !important;
}

/* General Container Fixes */
body .elementor-widget-text-editor,
body .elementor-text-editor {
    line-height: 1.8 !important;
}
