/**
 * Magic Bento port — Financial Services feature grid
 * Brand glow: CashCom teal #78DED4 (120, 222, 212)
 *
 * Target desktop layout:
 *   [ Money Transfer (live) ] [ Simple App (live) ]
 *   [ Request ] [ Recharge ] [ Bills ] [ Wallet ]
 */

body.ccp-magic-bento {
	--ccp-bento-glow: 120, 222, 212;
	--ccp-bento-glow-strong: rgba(120, 222, 212, 0.55);
	--ccp-bento-glow-soft: rgba(120, 222, 212, 0.22);
}

/* Wrapper created by JS around the two Elementor feature rows only */
body.ccp-magic-bento .ccp-bento-grid {
	display: grid !important;
	grid-template-columns: 1fr;
	gap: 0.85rem;
	align-items: stretch;
	width: 100%;
	margin: 0.5rem 0 0;
}

/* Flatten nested Elementor row containers into this grid */
body.ccp-magic-bento .ccp-bento-grid > .e-con,
body.ccp-magic-bento .ccp-bento-grid > .e-con > .e-con-inner {
	display: contents !important;
}

@media (min-width: 600px) {
	body.ccp-magic-bento .ccp-bento-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1rem;
	}
}

@media (min-width: 1024px) {
	body.ccp-magic-bento .ccp-bento-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 1.1rem;
	}

	body.ccp-magic-bento .ccp-bento-live {
		grid-column: span 2;
		min-height: 260px;
	}

	body.ccp-magic-bento .ccp-bento-soon {
		grid-column: span 1;
		min-height: 200px;
	}
}

/* Kill Elementor flex/width so grid owns layout */
body.ccp-magic-bento .ccp-bento-live,
body.ccp-magic-bento .ccp-bento-soon {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	height: auto;
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
	flex: none !important;
	align-self: stretch;
}

body.ccp-magic-bento .ccp-bento-live > .elementor-widget-container,
body.ccp-magic-bento .ccp-bento-soon > .elementor-widget-container {
	height: 100%;
	min-height: inherit;
	position: relative;
	z-index: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem 1.25rem !important;
	box-sizing: border-box;
	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease,
		border-color 0.25s ease,
		opacity 0.25s ease;
}

body.ccp-magic-bento .ccp-bento-live .elementor-icon-box-wrapper,
body.ccp-magic-bento .ccp-bento-soon .elementor-icon-box-wrapper {
	width: 100%;
}

/*
 * Light mint wells (same family as phone screen) + navy glyphs.
 * Soft product-UI chrome on dark glass — not solid teal/white tiles.
 */
body.ccp-magic-bento .ccp-bento-live.elementor-view-stacked .elementor-icon,
body.ccp-magic-bento .ccp-bento-soon.elementor-view-stacked .elementor-icon {
	background: linear-gradient(160deg, #e8f8f6 0%, #ffffff 100%) !important;
	background-color: #f4fbfa !important;
	color: #003e52 !important;
	fill: #003e52 !important;
	border: 1px solid rgba(120, 222, 212, 0.45) !important;
	box-shadow:
		0 4px 16px rgba(0, 0, 0, 0.18),
		inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

body.ccp-magic-bento .ccp-bento-live.elementor-view-stacked .elementor-icon i,
body.ccp-magic-bento .ccp-bento-soon.elementor-view-stacked .elementor-icon i,
body.ccp-magic-bento .ccp-bento-live.elementor-view-stacked .elementor-icon svg,
body.ccp-magic-bento .ccp-bento-soon.elementor-view-stacked .elementor-icon svg {
	color: #003e52 !important;
	fill: #003e52 !important;
}

/* Soon cards: same well, slightly softer so live still wins */
body.ccp-magic-bento .ccp-bento-soon.elementor-view-stacked .elementor-icon {
	opacity: 0.72;
	filter: saturate(0.85);
}

/* —— Live: bright glass + border glow —— */
body.ccp-magic-bento .ccp-bento-live > .elementor-widget-container {
	background: rgba(0, 62, 82, 0.42) !important;
	border: 1px solid rgba(120, 222, 212, 0.4) !important;
	border-radius: 16px;
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	box-shadow:
		0 8px 32px rgba(0, 0, 0, 0.22),
		0 0 24px rgba(120, 222, 212, 0.12);
	--glow-x: 50%;
	--glow-y: 50%;
	--glow-intensity: 0;
	--glow-radius: 280px;
}

body.ccp-magic-bento .ccp-bento-live > .elementor-widget-container::after {
	content: '';
	position: absolute;
	inset: 0;
	padding: 2px;
	border-radius: inherit;
	background: radial-gradient(
		var(--glow-radius) circle at var(--glow-x) var(--glow-y),
		rgba(var(--ccp-bento-glow), calc(var(--glow-intensity) * 0.85)) 0%,
		rgba(var(--ccp-bento-glow), calc(var(--glow-intensity) * 0.4)) 30%,
		transparent 60%
	);
	-webkit-mask:
		linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask:
		linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	mask-composite: exclude;
	pointer-events: none;
	z-index: 2;
	opacity: 1;
}

body.ccp-magic-bento .ccp-bento-live > .elementor-widget-container:hover {
	border-color: rgba(120, 222, 212, 0.75) !important;
	box-shadow:
		0 12px 36px rgba(0, 0, 0, 0.28),
		0 0 36px var(--ccp-bento-glow-soft);
	transform: translateY(-3px);
}

/* —— Coming soon: muted, obvious, still clickable —— */
body.ccp-magic-bento .ccp-bento-soon > .elementor-widget-container {
	background: rgba(0, 62, 82, 0.18) !important;
	border: 1px solid rgba(120, 222, 212, 0.12) !important;
	border-radius: 16px;
	opacity: 0.52;
	box-shadow: none !important;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transform: none !important;
	filter: saturate(0.6);
}

body.ccp-magic-bento .ccp-bento-soon > .elementor-widget-container:hover {
	opacity: 0.68;
	transform: none !important;
	box-shadow: none !important;
	border-color: rgba(120, 222, 212, 0.22) !important;
}

body.ccp-magic-bento .ccp-bento-soon .elementor-icon-box-title,
body.ccp-magic-bento .ccp-bento-soon .elementor-icon-box-title a {
	color: rgba(255, 255, 255, 0.72) !important;
	text-shadow: none !important;
}

body.ccp-magic-bento .ccp-bento-soon .elementor-icon-box-description {
	color: rgba(255, 255, 255, 0.5) !important;
	font-style: italic;
}

/* Global spotlight (created by JS) */
.ccp-bento-spotlight {
	position: fixed;
	width: 720px;
	height: 720px;
	border-radius: 50%;
	pointer-events: none;
	z-index: 3;
	opacity: 0;
	transform: translate(-50%, -50%);
	mix-blend-mode: screen;
	background: radial-gradient(
		circle,
		rgba(120, 222, 212, 0.16) 0%,
		rgba(120, 222, 212, 0.08) 18%,
		rgba(120, 222, 212, 0.03) 35%,
		transparent 68%
	);
	will-change: left, top, opacity;
}

@media (prefers-reduced-motion: reduce) {
	body.ccp-magic-bento .ccp-bento-live > .elementor-widget-container:hover {
		transform: none;
	}

	body.ccp-magic-bento .ccp-bento-live > .elementor-widget-container::after {
		display: none;
	}

	.ccp-bento-spotlight {
		display: none !important;
	}
}

@supports not (backdrop-filter: blur(1px)) {
	body.ccp-magic-bento .ccp-bento-live > .elementor-widget-container {
		background: rgba(0, 62, 82, 0.7) !important;
	}

	body.ccp-magic-bento .ccp-bento-soon > .elementor-widget-container {
		background: rgba(0, 40, 55, 0.55) !important;
	}
}

/* —— News & Articles — whole-card soft teal frame —— */
body.ccp-magic-bento .elementor-element-24a76d4 .elementor-post {
	background: rgba(0, 62, 82, 0.28);
	border: 1px solid rgba(120, 222, 212, 0.32);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	transition:
		border-color 0.25s ease,
		box-shadow 0.25s ease,
		transform 0.25s ease,
		background 0.25s ease;
}

body.ccp-magic-bento .elementor-element-24a76d4 .elementor-post:hover {
	border-color: rgba(120, 222, 212, 0.65);
	background: rgba(0, 62, 82, 0.4);
	box-shadow:
		0 12px 32px rgba(0, 0, 0, 0.24),
		0 0 28px rgba(120, 222, 212, 0.12);
	transform: translateY(-3px);
}

body.ccp-magic-bento .elementor-element-24a76d4 .elementor-post__thumbnail {
	overflow: hidden;
}

body.ccp-magic-bento .elementor-element-24a76d4 .elementor-post__thumbnail img {
	transition: transform 0.35s ease;
}

body.ccp-magic-bento .elementor-element-24a76d4 .elementor-post:hover .elementor-post__thumbnail img {
	transform: scale(1.04);
}

body.ccp-magic-bento .elementor-element-24a76d4 .elementor-post__text,
body.ccp-magic-bento .elementor-element-24a76d4 .elementor-post__meta-data,
body.ccp-magic-bento .elementor-element-24a76d4 .elementor-post__read-more {
	padding-left: 1rem;
	padding-right: 1rem;
}

body.ccp-magic-bento .elementor-element-24a76d4 .elementor-post__text {
	padding-bottom: 1.1rem;
}

@media (prefers-reduced-motion: reduce) {
	body.ccp-magic-bento .elementor-element-24a76d4 .elementor-post,
	body.ccp-magic-bento .elementor-element-24a76d4 .elementor-post__thumbnail img {
		transition: none;
	}

	body.ccp-magic-bento .elementor-element-24a76d4 .elementor-post:hover {
		transform: none;
	}

	body.ccp-magic-bento .elementor-element-24a76d4 .elementor-post:hover .elementor-post__thumbnail img {
		transform: none;
	}
}

