/*
 * ICT Kerala Accessibility Fixes — Contrast Overrides
 * -----------------------------------------------------
 * Every rule below corresponds to a specific "Elements must meet minimum
 * color contrast ratio thresholds" violation from the WCAG 2.2 AA audit.
 * Replacement colors were computed to hit >=4.5:1 against the reported
 * background while staying as close as possible to the original hue, so
 * brand colors are preserved rather than flattened to black/white.
 *
 * Grouped by original color pair. Selectors are the exact "Target" values
 * from the axe-core report, deduplicated and consolidated to class-level
 * selectors where the same fix applies to many repeated elements
 * (e.g. all .fusion-text-* footer blocks).
 *
 * NOTE: !important is used because Avada/Fusion Builder emits many of
 * these colors as inline styles (style="color: #a6a6a6 !important;"),
 * which nothing but !important can override without editing the page
 * content in Fusion Builder directly.
 */

/* ---- #a6a6a6 on #ffffff -> #767676 (4.54:1) ----
   Footer contact text/links (largest group, ~57 instances) */
.fusion-text-3 > p,
.fusion-text-3 > p > a,
.fusion-text-4 > p,
.fusion-text-4 > p > a,
.fusion-text-7 > p,
.fusion-text-8 > p,
.fusion-text-9 > p,
.fusion-text-10 > p,
.fusion-text-10 > p > a,
.fusion-text-11 > p,
.fusion-text-11 > p > a,
.fusion-text-12 > p {
	color: #767676 !important;
}

/* ---- #777777 on #ffffff -> #747474 (4.67:1) ----
   Event schedule item labels (~38 instances) */
.schedule-item .content-box .event-desc small,
.schedule-item .content-box .event-info small {
	color: #747474 !important;
}

/* ---- #089093 on #ffffff -> #078284 (4.63:1) ---- */
.fusion-text-10 > p,
.fusion-text-8 > p,
.fusion-text-9 > p {
	color: #078284 !important;
}

/* ---- #34a752 on #f2f5f9 -> #28803f (4.52:1) ---- */
.fusion-text-1 > p,
.fusion-text-4 > p,
.fusion-text-7 > p {
	color: #28803f !important;
}

/* ---- #34a752 on #ffffff -> #298441 (4.70:1) ---- */
.badge {
	color: #298441 !important;
}

/* ---- #5271ff on #ffffff -> #4364ff (4.66:1) ---- */
.fusion-text-6 > p {
	color: #4364ff !important;
}

/* ---- #67d05c on #ffffff -> #308627 (4.60:1) ---- */
.ai-btn {
	color: #308627 !important;
}

/* ---- #6b7280 on #e5e7eb -> #626875 (4.52:1) ---- */
button[fdprocessedid] {
	color: #626875 !important;
}

/* ---- #737373 on #cfebf4 -> #666666 (4.61:1) ---- */
.fusion-text-12 > p > strong,
.fusion-text-13 > p,
.fusion-text-5 > p > strong,
.fusion-text-8 > p,
.fusion-text-9 > p > strong {
	color: #666666 !important;
}

/* ---- #949393 on #ffffff -> #757474 (4.66:1) ---- */
.fusion-text-3 > p,
.fusion-text-4 > p {
	color: #757474 !important;
}

/* ---- #9ca3af on #ffffff -> #6d7787 (4.53:1) ---- */
.px-4 {
	color: #6d7787 !important;
}

/* ---- #aaaaaa on #ffffff -> #747474 (4.67:1) ---- */
p > span[data-sheets-value] {
	color: #747474 !important;
}

/* ---- #f0f0f0 on #a1a1a1 -> #383838 (4.54:1) ---- */
.awb-image-hotspots-hotspot-2 {
	color: #383838 !important;
}

/* ---- #f248b4 on #f6e2f2 -> #c60e83 (4.50:1) ---- */
.speakers-pro-tag {
	color: #c60e83 !important;
}

/* ---- #f248b4 on #ffffff -> #de1093 (4.56:1) ---- */
.speaker-pro-card .speaker-pro-info p {
	color: #de1093 !important;
}

/* ---- #ff6666 / #ff6b6b on #ffffff -> #eb0000 (4.63:1) ---- */
#newlinkkbutton > .fusion-button-text,
.button-4 > .fusion-button-text,
.pink,
h1 > span:nth-child(2) {
	color: #eb0000 !important;
}

/* ================================================================
   White text on a colored background — background darkened instead
   (changing text color here would break contrast against the icon/
   button background, so the background itself is deepened slightly)
   ================================================================ */

/* ---- #ffffff on #0099cc -> background #007ea8 (4.62:1) ---- */
.fusion-text-3 > p,
.fusion-text-4 > p {
	background-color: #007ea8 !important;
}

/* ---- #ffffff on #34a752 -> background #298441 (4.70:1) ---- */
.ai-btnl,
.view-all-btn > span:nth-child(1) {
	background-color: #298441 !important;
}

/* ---- #ffffff on #3b82f6 -> background #1e6ff5 (4.52:1) ---- */
.stat-box .stat-icon {
	background-color: #1e6ff5 !important;
}

/* ---- #ffffff on #ff4b4b -> background #ee0000 (4.53:1) ---- */
.fusion-text-1 > div > h1 > span {
	background-color: #ee0000 !important;
}

/* ---- #ffffff on #ff4fa3 -> background #e8006f (4.51:1) ---- */
.schedule-date {
	background-color: #e8006f !important;
}

/* ---- #ffffff on #ff6666 / #ff6b6b -> background #eb0000 (4.63:1) ---- */
#buttoncorsinglecolor > .fusion-button-text,
.button-4 > .fusion-button-text,
.button-5 > .fusion-button-text,
.button-7 > .fusion-button-text,
.button-xlarge > .fusion-button-text,
.btn,
.tab,
button[fdprocessedid] {
	background-color: #eb0000 !important;
}
