/* ==========================================================================
   TC Fan Cards - Elementor Widget Styles
   ========================================================================== */

.tcfc-section {
	--tcfc-cream: #efece4;
	--tcfc-ink: #1b1b1b;
	font-family: 'Assistant', Arial, sans-serif;
	background: var(--tcfc-cream);
	padding: 90px 20px 70px;
	overflow: hidden;
	direction: rtl;
}

.tcfc-section * {
	box-sizing: border-box;
}

/* ---------- Heading ---------- */
.tcfc-head {
	position: relative;
	text-align: center;
	max-width: 700px;
	margin: 0 auto 70px;
}
.tcfc-head h2 {
	position: relative;
	z-index: 1;
	font-size: clamp(34px, 5vw, 50px);
	font-weight: 800;
	color: var(--tcfc-ink);
	margin: 0 0 6px;
	line-height: 1.15;
}
.tcfc-head p {
	position: relative;
	z-index: 1;
	font-size: clamp(22px, 3vw, 32px);
	font-weight: 600;
	color: var(--tcfc-ink);
	margin: 0;
}

/* ---------- Cards fan wrapper ---------- */
.tcfc-cards-wrap {
	display: flex;
	justify-content: center;
	align-items: stretch; /* <-- equalizes card height automatically, no fixed height needed */
	max-width: 1480px;
	margin: 0 auto;
	padding-top: 70px;
	flex-wrap: nowrap;
}

/* ---------- Single card ---------- */
.tcfc-card {
	position: relative;
	width: 250px;          /* fallback only; overridden by the widget's Card Width control */
	height: auto;         /* content decides the height */
	display: flex;
	flex-direction: column;
	border-radius: 22px;
	padding: 34px 26px 30px;
	color: #fff;
	flex-shrink: 0;
	cursor: pointer;
	transform-origin: bottom center;
	transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease, z-index 0s;
	box-shadow: 0 10px 18px rgba(0,0,0,.15);
	--r: 0deg;
	--y: 0px;
	transform: rotate(var(--r)) translateY(var(--y));
}
.tcfc-card + .tcfc-card {
	margin-inline-start: -64px;
}

/* Only apply the fan hover interaction when explicitly enabled */
.tcfc-fan-enabled .tcfc-card.is-hovered {
	transform: rotate(0deg) translateY(-34px) scale(1.06) !important;
	z-index: 10 !important;
	box-shadow: 0 26px 40px rgba(0,0,0,.28);
}
.tcfc-fan-enabled .tcfc-card.push-left {
	transform: translateX(-46px) rotate(var(--r)) translateY(var(--y));
}
.tcfc-fan-enabled .tcfc-card.push-right {
	transform: translateX(46px) rotate(var(--r)) translateY(var(--y));
}

/* ---------- Top image / icon ---------- */
.tcfc-card-icon {
	position: absolute;
	top: -46px;
	right: 14px;
	transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.tcfc-card-icon img,
.tcfc-card-icon svg {
	width: 80px;
	height: auto;
	display: block;
	filter: drop-shadow(0 6px 8px rgba(0,0,0,.25));
}
.tcfc-card.is-hovered .tcfc-card-icon {
	transform: rotate(0deg) scale(1.08) !important;
}

/* ---------- Title / rule ---------- */
.tcfc-card h3 {
	font-size: 24px;
	font-weight: 800;
	margin: 6px 0 10px;
}
.tcfc-rule {
	width: 44px;
	height: 3px;
	background: rgba(255,255,255,.85);
	margin-bottom: 18px;
	flex-shrink: 0;
}

/* ---------- List ---------- */
.tcfc-card ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 11px;
	flex-grow: 1; /* fills remaining space so footers align if you add one later */
}
.tcfc-card li {
	font-size: 15px;
	font-weight: 400;
	line-height: 1.35;
	display: flex;
	align-items: flex-start;
	gap: 8px;
}
.tcfc-item-icon {
	font-size: 11px;
	line-height: 1;
	margin-top: 4px;
	flex-shrink: 0;
	opacity: .9;
	display: inline-flex;
}
.tcfc-item-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}
.tcfc-item-text {
	flex: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
	.tcfc-cards-wrap {
		flex-wrap: wrap;
		gap: 40px 0;
		padding-top: 40px;
		align-items: stretch;
	}
	.tcfc-card + .tcfc-card {
		margin-inline-start: 0;
	}
	.tcfc-card {
		transform: none !important;
	}
	.tcfc-card-icon {
		transform: none !important;
	}
}


/* Popup */
.tcfc-modal {
	display:none;
	position:fixed;
	inset:0;
	background:rgba(0,0,0,.65);
	z-index:99999;
	padding:20px;
	align-items:center;
	justify-content:center;
}
.tcfc-modal.is-open{
	display:flex;
}
.tcfc-modal-content{
	background:#fff;
	color:#111;
	width:min(700px,100%);
	max-height:90vh;
	overflow:auto;
	border-radius:24px;
	padding:40px;
	position:relative;
	transform:scale(.92);
	opacity:0;
	transition:transform .35s cubic-bezier(.22,1,.36,1),opacity .35s ease;
}
.tcfc-modal.is-open .tcfc-modal-content{
	transform:scale(1);
	opacity:1;
}
.tcfc-modal-close{
	position:absolute;
	right:18px;
	top:12px;
	font-size:30px;
	cursor:pointer;
}
.tcfc-modal-card h3{
	font-size:36px;
	margin:0 0 20px;
}
.tcfc-modal-card ul{
	padding:0;
	list-style:none;
}
.tcfc-modal-card li{
	font-size:20px;
	margin:12px 0;
}
@media(max-width:767px){
	.tcfc-modal-content{
		padding:25px 20px;
	}
	.tcfc-modal-card h3{
		font-size:28px;
	}
	.tcfc-modal-card li{
		font-size:17px;
	}
}
