/* ===== CFSW FRONTEND STYLES ===== */
/* Prefix: cfsw- (Causes & Failure Sources Widget) */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&family=Inter:wght@400;500;700&display=swap');

/* ===== BASE ===== */
.cfsw-wrapper {
	font-family: 'Inter', sans-serif;
	color: #3a3d47;
	line-height: 1.6;
	background-color: #f5f6fa;
	overflow-x: hidden;
}

.cfsw-wrapper h1,
.cfsw-wrapper h2,
.cfsw-wrapper h3,
.cfsw-wrapper h4 {
	font-family: 'Outfit', sans-serif;
	margin-bottom: 20px;
}

.cfsw-wrapper p {
	font-size: 1.05rem;
	color: #666e80;
	margin-bottom: 1.4rem;
	line-height: 1.75;
}

.cfsw-wrapper .cfsw-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 60px 20px;
}

.cfsw-wrapper .cfsw-section-title {
	text-align: center;
	font-size: clamp(1.8rem, 3vw, 2.5rem);
	color: #2e3038;
	margin-bottom: 50px;
	position: relative;
}

.cfsw-wrapper .cfsw-section-title::after {
	content: '';
	display: block;
	width: 70px;
	height: 4px;
	background: linear-gradient(to right, #da570a, #de9b53);
	margin: 14px auto 0;
	border-radius: 2px;
}

.cfsw-wrapper .cfsw-section-intro {
	text-align: center;
	max-width: 860px;
	margin: -20px auto 40px;
}

/* ===== HERO ===== */
.cfsw-hero {
	background: linear-gradient(135deg, #2e3038 0%, #3a3b3f 50%, #2e3038 100%);
	padding: 100px 5%;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.cfsw-hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: -10%;
	width: 25%;
	height: 100%;
	background: rgba(255, 255, 255, 0.03);
	transform: skewX(-15deg);
}

.cfsw-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse at 15% 60%, rgba(218, 87, 10, 0.12) 0%, transparent 50%),
		radial-gradient(ellipse at 85% 40%, rgba(222, 155, 83, 0.10) 0%, transparent 50%);
	pointer-events: none;
}

.cfsw-hero .cfsw-hero-body p {
	font-size: 1.05rem;
	color: #b8bdc8;
	max-width: 900px;
	margin: 0 auto 22px;
	line-height: 1.8;
	position: relative;
	z-index: 1;
}

.cfsw-hero .cfsw-hero-body p:last-child {
	margin-bottom: 0;
}

.cfsw-hero .silver-text {
	color: #e8e8e8;
	text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
}

.cfsw-hero .gold-text {
	background: linear-gradient(180deg, #f2c786 0%, #c4863f 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* ===== CLEAN CARDS (Section 1) ===== */
.cfsw-clean-cards-container {
	display: flex;
	flex-wrap: wrap;
	gap: 36px;
	max-width: 1200px;
	margin: 0 auto 60px;
}

.cfsw-clean-card {
	background: #ffffff;
	border-radius: 14px;
	padding: 40px;
	box-shadow: 0 6px 30px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
	flex: 1;
	min-width: 300px;
	border-top: 4px solid #de9b53;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.cfsw-clean-card:hover {
	box-shadow: 0 16px 50px rgba(218, 87, 10, 0.10), 0 4px 12px rgba(0, 0, 0, 0.06);
	transform: translateY(-4px);
}

.cfsw-clean-card h3 {
	color: #da570a;
	font-size: 1.45rem;
	font-weight: 700;
	margin-bottom: 18px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.cfsw-clean-card .cfsw-card-body p {
	font-size: 0.95rem;
	color: #666e80;
	line-height: 1.7;
	margin-bottom: 16px;
}

.cfsw-clean-list {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.cfsw-clean-list-item {
	background: #fff8f4;
	border: 1px solid #f5dcc8;
	border-radius: 8px;
	padding: 12px 16px;
	font-size: 0.8rem;
	font-weight: 700;
	color: #5a3018;
	display: flex;
	align-items: center;
	gap: 10px;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cfsw-clean-list-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(218, 87, 10, 0.12);
	background: #fff0e6;
	border-color: #e8a87a;
}

/* ===== 3D GRID & CARDS (Section 2, 4) ===== */
.cfsw-3d-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
	gap: 28px;
	margin-bottom: 60px;
}

a.cfsw-3d-card,
div.cfsw-3d-card {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	background: #ffffff;
	border-radius: 16px;
	padding: 38px 30px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	position: relative;
	border-top: 5px solid #da570a;
	text-decoration: none;
	color: inherit;
	border-left: none;
}

a.cfsw-3d-card {
	cursor: pointer;
}

a.cfsw-3d-card:hover,
div.cfsw-3d-card:hover {
	transform: translateY(-10px) rotateX(2deg) rotateY(-2deg);
	box-shadow: 0 20px 50px rgba(218, 87, 10, 0.16);
}

.cfsw-3d-card h3 {
	color: #da570a;
	font-size: 1.4rem;
	margin-bottom: 14px;
	display: flex;
	align-items: center;
	gap: 14px;
}

.cfsw-3d-card h3 i {
	font-size: 1.8rem;
	background: linear-gradient(135deg, #da570a, #de9b53);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.cfsw-3d-card > div p,
.cfsw-3d-card > p {
	font-size: 0.95rem;
	color: #666e80;
	line-height: 1.7;
	margin-bottom: 0;
}

/* ===== NUMBERED LIST (Section 2) ===== */
.cfsw-3d-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
	gap: 16px;
	margin: 36px 0;
}

a.cfsw-3d-list-item,
div.cfsw-3d-list-item {
	background: #ffffff;
	padding: 18px 20px;
	border-radius: 10px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
	display: flex;
	align-items: center;
	font-weight: 600;
	font-family: 'Outfit', sans-serif;
	color: #2e3038;
	transition: all 0.3s ease;
	border-left: 4px solid #de9b53;
	text-decoration: none;
}

a.cfsw-3d-list-item:hover {
	transform: translateX(8px);
	box-shadow: 0 8px 24px rgba(218, 87, 10, 0.12);
	border-left-color: #da570a;
	color: #da570a;
}

.cfsw-3d-list-item .icon {
	margin-right: 14px;
	font-size: 1.3rem;
	background: linear-gradient(135deg, #da570a, #de9b53);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	flex-shrink: 0;
}

/* ===== FOUR PILLARS (Section 3) ===== */
.cfsw-pillars-section {
	background: linear-gradient(135deg, #1e2025 0%, #2c2e35 50%, #1e2025 100%);
	padding: 90px 20px 100px;
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.cfsw-pillars-section::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse at 18% 50%, rgba(218, 87, 10, 0.13) 0%, transparent 55%),
		radial-gradient(ellipse at 82% 50%, rgba(222, 155, 83, 0.10) 0%, transparent 55%);
	pointer-events: none;
}

.cfsw-pillars-eyebrow {
	font-family: 'Outfit', sans-serif;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 5px;
	text-transform: uppercase;
	color: #c88a45;
	margin-bottom: 16px;
	text-align: center;
	position: relative;
	z-index: 1;
}

.cfsw-pillars-title {
	font-family: 'Outfit', sans-serif;
	font-size: clamp(1.9rem, 4vw, 3rem);
	font-weight: 800;
	color: #f0f0f0;
	text-align: center;
	line-height: 1.15;
	margin-bottom: 16px;
	position: relative;
	z-index: 1;
}

.cfsw-pillars-title .highlight {
	background: linear-gradient(90deg, #da570a 0%, #de9b53 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.cfsw-pillars-subtitle {
	font-size: 1rem;
	color: #8a8f9e;
	line-height: 1.75;
	text-align: center;
	max-width: 600px;
	margin: 0 auto 55px;
	position: relative;
	z-index: 1;
}

.cfsw-pillars-subtitle p {
	color: #8a8f9e;
}

.cfsw-pillars-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	max-width: 1180px;
	width: 100%;
	position: relative;
	z-index: 1;
}

a.cfsw-pillars-card,
div.cfsw-pillars-card {
	background: rgba(255, 255, 255, 0.045);
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 16px;
	padding: 36px 26px 32px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	position: relative;
	overflow: hidden;
	gap: 14px;
	transition:
		transform 0.38s cubic-bezier(0.175, 0.885, 0.32, 1.275),
		box-shadow 0.38s ease,
		border-color 0.38s ease,
		background 0.38s ease;
	text-decoration: none;
	color: inherit;
}

a.cfsw-pillars-card {
	cursor: pointer;
}

a.cfsw-pillars-card::before,
div.cfsw-pillars-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, #da570a, #de9b53);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.4s ease;
	border-radius: 16px 16px 0 0;
}

a.cfsw-pillars-card::after,
div.cfsw-pillars-card::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(140deg, rgba(218, 87, 10, 0.07), rgba(222, 155, 83, 0.04));
	opacity: 0;
	transition: opacity 0.38s ease;
	border-radius: 16px;
}

a.cfsw-pillars-card:hover {
	transform: translateY(-10px) scale(1.02);
	box-shadow: 0 28px 55px rgba(218, 87, 10, 0.22), 0 8px 24px rgba(0, 0, 0, 0.45);
	border-color: rgba(222, 155, 83, 0.3);
	background: rgba(255, 255, 255, 0.075);
}

a.cfsw-pillars-card:hover::before {
	transform: scaleX(1);
}

a.cfsw-pillars-card:hover::after {
	opacity: 1;
}

.cfsw-pillars-num {
	position: absolute;
	top: 14px;
	right: 18px;
	font-family: 'Outfit', sans-serif;
	font-size: 3rem;
	font-weight: 900;
	color: rgba(255, 255, 255, 0.05);
	line-height: 1;
	pointer-events: none;
	user-select: none;
	z-index: 0;
}

.cfsw-pillars-icon-ring {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: rgba(218, 87, 10, 0.13);
	border: 2px solid rgba(222, 155, 83, 0.28);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	position: relative;
	z-index: 1;
	transition: background 0.4s ease, transform 0.5s ease, border-color 0.4s ease;
}

.cfsw-pillars-icon-ring i {
	font-size: 1.55rem;
	color: #de9b53;
	transition: color 0.3s ease;
}

a.cfsw-pillars-card:hover .cfsw-pillars-icon-ring {
	background: linear-gradient(135deg, #da570a, #de9b53);
	border-color: transparent;
	transform: rotateY(180deg);
}

a.cfsw-pillars-card:hover .cfsw-pillars-icon-ring i {
	color: #ffffff;
}

.cfsw-pillars-card-title {
	font-family: 'Outfit', sans-serif;
	font-size: 1.05rem;
	font-weight: 700;
	color: #e8e8e8;
	line-height: 1.35;
	position: relative;
	z-index: 1;
}

.cfsw-pillars-card-desc {
	font-size: 0.875rem;
	color: #7e8494;
	line-height: 1.65;
	position: relative;
	z-index: 1;
}

.cfsw-pillars-card-desc p {
	color: #7e8494;
}

.cfsw-pillars-arrow {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.8rem;
	font-weight: 600;
	color: #da570a;
	margin-top: 6px;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.3s ease, transform 0.3s ease;
	position: relative;
	z-index: 1;
}

a.cfsw-pillars-card:hover .cfsw-pillars-arrow {
	opacity: 1;
	transform: translateY(0);
}

/* ===== TIMELINE (Section 5) ===== */
.cfsw-timeline {
	position: relative;
	max-width: 900px;
	margin: 60px auto;
	padding: 20px;
}

.cfsw-timeline::before {
	content: '';
	position: absolute;
	width: 4px;
	background: linear-gradient(to bottom, #da570a, #de9b53);
	top: 0;
	bottom: 0;
	left: 50%;
	margin-left: -2px;
}

.cfsw-timeline-item {
	padding: 20px 40px;
	position: relative;
	background-color: inherit;
	width: 50%;
	box-sizing: border-box;
}

.cfsw-tl-left { left: 0; }
.cfsw-tl-right { left: 50%; }

.cfsw-timeline-item::after {
	content: '';
	position: absolute;
	width: 20px;
	height: 20px;
	background-color: #ffffff;
	border: 4px solid #da570a;
	top: 25px;
	border-radius: 50%;
	z-index: 1;
	box-shadow: 0 0 10px rgba(218, 87, 10, 0.4);
}

.cfsw-tl-left::after  { right: -10px; }
.cfsw-tl-right::after { left: -10px; }

.cfsw-timeline-content {
	padding: 22px 28px;
	background-color: #ffffff;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	border-bottom: 3px solid #de9b53;
}

.cfsw-timeline-content:hover {
	transform: scale(1.04);
	box-shadow: 0 14px 36px rgba(218, 87, 10, 0.12);
}

/* ===== CALLOUT BANNER (Section 6) ===== */
.cfsw-callout {
	background: linear-gradient(135deg, #2e3038, #232530);
	color: #ffffff;
	padding: 60px 50px;
	border-radius: 20px;
	text-align: center;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15);
	margin: 60px 0;
	position: relative;
	overflow: hidden;
}

.cfsw-callout::after {
	content: '\f05a';
	font-family: 'Font Awesome 6 Free';
	font-weight: 900;
	position: absolute;
	right: -20px;
	bottom: -40px;
	font-size: 14rem;
	color: rgba(255, 255, 255, 0.03);
}

.cfsw-callout h3 {
	color: #de9b53;
	font-size: 2.4rem;
	margin-bottom: 18px;
}

.cfsw-callout > div > div {
	font-size: 1.1rem;
	color: #b8bdc8;
	max-width: 800px;
	margin: 0 auto;
}

.cfsw-callout > div > div p {
	color: #b8bdc8;
}

.cfsw-cta-btn {
	display: inline-block;
	margin-top: 32px;
	padding: 14px 36px;
	background: linear-gradient(135deg, #da570a, #de9b53);
	color: #ffffff;
	font-size: 1rem;
	font-weight: 700;
	border-radius: 10px;
	text-decoration: none;
	font-family: 'Outfit', sans-serif;
	transition: filter 0.3s ease;
}

.cfsw-cta-btn:hover {
	filter: brightness(1.1);
}

/* ===== IMAGE DIVIDER ===== */
.cfsw-image-divider {
	padding: 60px 20px;
}

.cfsw-image-divider.layout-contained .cfsw-image-divider-inner {
	max-width: 1200px;
	margin: 0 auto;
}

.cfsw-image-divider.bg-light    { background-color: #f7f8fa; }
.cfsw-image-divider.bg-gradient { background: linear-gradient(135deg, #f0f2f8 0%, #e8eaf2 100%); }
.cfsw-image-divider.bg-dark     { background: linear-gradient(135deg, #1e2025 0%, #2c2e35 100%); }
.cfsw-image-divider.bg-none     { background: transparent; padding: 0; }

.cfsw-image-figure {
	margin: 0;
}

.cfsw-image-figure img {
	width: 100%;
	height: auto;
	border-radius: 12px;
	display: block;
}

.cfsw-image-caption {
	margin-top: 10px;
	text-align: center;
	font-size: 0.9rem;
	color: #888;
	font-style: italic;
}

/* ===== REVEAL ANIMATIONS ===== */
.cfsw-wrapper .reveal {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.cfsw-wrapper .reveal.active {
	opacity: 1;
	transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 960px) {
	.cfsw-pillars-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (max-width: 768px) {
	.cfsw-hero {
		padding: 60px 5%;
	}

	.cfsw-hero .silver-text {
		display: block;
	}

	.cfsw-clean-cards-container {
		flex-direction: column;
	}

	.cfsw-3d-grid,
	.cfsw-3d-list {
		grid-template-columns: 1fr;
	}

	.cfsw-timeline::before {
		left: 31px;
	}

	.cfsw-timeline-item {
		width: 100%;
		padding-left: 70px;
		padding-right: 0;
	}

	.cfsw-tl-left,
	.cfsw-tl-right {
		left: 0;
	}

	.cfsw-tl-left::after,
	.cfsw-tl-right::after {
		left: -10px;
		right: auto;
	}

	.cfsw-pillars-grid {
		grid-template-columns: 1fr;
	}

	.cfsw-callout {
		padding: 40px 24px;
	}

	.cfsw-callout h3 {
		font-size: 1.8rem;
	}

	.cfsw-wrapper .cfsw-container {
		padding: 40px 20px;
	}
}

@media screen and (max-width: 480px) {
	.cfsw-clean-card {
		padding: 24px;
	}

	.cfsw-pillars-card {
		padding: 24px 20px;
	}
}