/**
 * 色彩對比度修正 (GN2140300E)
 *
 * 修正不符合 WCAG 2.1 AA 標準（對比度 ≥ 4.5:1）的色彩組合
 *
 * @package EZC
 * @since 1.3.4
 */

/* ==========================================================================
   1. 綠色文字 (#318177) 在淺藍背景 (#DEF1FA) 上
      原始對比度: 3.98:1 → 修正後: 5.37:1 (PASS)
      修正色: #256b63
   ========================================================================== */

/* 標籤、徽章 */
.elementor-widget-wrap [style*="color:#318177"],
.elementor-widget-wrap [style*="color: #318177"],
.elementor-widget-wrap [style*="color:#318177"] *,
.elementor-widget-wrap [style*="color: #318177"] * {
    color: #256b63 !important;
}

/* 按鈕、連結 */
a[style*="color:#318177"],
a[style*="color: #318177"] {
    color: #256b63 !important;
}

/* Elementor 特定元件 */
.elementor-icon[style*="color:#318177"],
.elementor-icon-list-icon[style*="color:#318177"] {
    color: #256b63 !important;
}

/* ==========================================================================
   2. 綠色文字 (#1C8276) 在淺藍背景 (#DEF1FA) 上
      原始對比度: 4.01:1 → 修正後: 5.22:1 (PASS)
      修正色: #1a6e64
   ========================================================================== */

.elementor-widget-wrap [style*="color:#1C8276"],
.elementor-widget-wrap [style*="color: #1C8276"],
.elementor-widget-wrap [style*="color:#1c8276"],
.elementor-widget-wrap [style*="color: #1c8276"],
.elementor-widget-wrap [style*="color:#1C8276"] *,
.elementor-widget-wrap [style*="color: #1C8276"] *,
.elementor-widget-wrap [style*="color:#1c8276"] *,
.elementor-widget-wrap [style*="color: #1c8276"] * {
    color: #1a6e64 !important;
}

a[style*="color:#1C8276"],
a[style*="color: #1C8276"],
a[style*="color:#1c8276"],
a[style*="color: #1c8276"] {
    color: #1a6e64 !important;
}

.elementor-icon[style*="color:#1C8276"],
.elementor-icon[style*="color:#1c8276"],
.elementor-icon-list-icon[style*="color:#1C8276"],
.elementor-icon-list-icon[style*="color:#1c8276"] {
    color: #1a6e64 !important;
}

/* ==========================================================================
   3. 橘色文字 (#EB9600) 在白色背景上
      原始對比度: 2.36:1 → 修正後: 6.04:1 (PASS)
      修正色: #8a5800
   ========================================================================== */

/* 標註、標籤、強調文字 */
.elementor-widget-wrap [style*="color:#EB9600"],
.elementor-widget-wrap [style*="color: #EB9600"],
.elementor-widget-wrap [style*="color:#eb9600"],
.elementor-widget-wrap [style*="color: #eb9600"],
.elementor-widget-wrap [style*="color:#EB9600"] *,
.elementor-widget-wrap [style*="color: #EB9600"] *,
.elementor-widget-wrap [style*="color:#eb9600"] *,
.elementor-widget-wrap [style*="color: #eb9600"] * {
    color: #8a5800 !important;
}

a[style*="color:#EB9600"],
a[style*="color: #EB9600"],
a[style*="color:#eb9600"],
a[style*="color: #eb9600"] {
    color: #8a5800 !important;
}

span[style*="color:#EB9600"],
span[style*="color: #EB9600"],
span[style*="color:#eb9600"],
span[style*="color: #eb9600"] {
    color: #8a5800 !important;
}

.elementor-icon[style*="color:#EB9600"],
.elementor-icon[style*="color:#eb9600"],
.elementor-icon-list-icon[style*="color:#EB9600"],
.elementor-icon-list-icon[style*="color:#eb9600"] {
    color: #8a5800 !important;
}

/* ==========================================================================
   4. 白色文字 (#FFFFFF) 在灰色背景 (#888888) 上
      原始對比度: 3.54:1 → 修正後: 7.00:1 (PASS)
      修正背景色: #595959
   ========================================================================== */

/* 引用區塊、說明文字區塊 */
[style*="background-color:#888888"],
[style*="background-color: #888888"],
[style*="background:#888888"],
[style*="background: #888888"] {
    background-color: #595959 !important;
}

/* Elementor 背景色 */
.elementor-element[style*="background-color:#888888"],
.elementor-element[style*="background-color: #888888"] {
    background-color: #595959 !important;
}

.elementor-widget-wrap[style*="background-color:#888888"],
.elementor-widget-wrap[style*="background-color: #888888"] {
    background-color: #595959 !important;
}

/* Elementor Section/Column 背景 */
.elementor-section[data-settings] > .elementor-container > .elementor-column > .elementor-widget-wrap[style*="background-color:#888"],
.elementor-section[data-settings] > .elementor-container > .elementor-column > .elementor-widget-wrap[style*="background-color: #888"] {
    background-color: #595959 !important;
}

/* 按鈕背景 */
.elementor-button[style*="background-color:#888888"],
.elementor-button[style*="background-color: #888888"],
a.elementor-button[style*="background-color:#888888"],
a.elementor-button[style*="background-color: #888888"] {
    background-color: #595959 !important;
}
