/* =============================================================
   ARC Resource Cards Widget
   ============================================================= */

/* ── Section wrapper ─────────────────────────────────────────── */
.arc-resource-cards {
	font-family: inherit;
}

/* ── Inner container — aligns with site content area ─────────── */
.arc-rc-container {
	max-width: var(--arc-container, 1200px);
	margin-inline: auto;
	padding-inline: 24px;
	box-sizing: border-box;
}

/* ── Section header ──────────────────────────────────────────── */
.arc-rc-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 48px;
	flex-wrap: wrap;
}

.arc-rc-header.align-center {
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.arc-rc-header.align-right {
	text-align: right;
}

.arc-rc-label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--arc-rc-accent, #79ba3a);
	margin-bottom: 12px;
}

.arc-rc-label::before {
	content: '';
	display: block;
	width: 28px;
	height: 1.5px;
	background: currentColor;
	flex-shrink: 0;
}

.arc-rc-heading {
	font-size: clamp(26px, 2.8vw, 40px);
	font-weight: 700;
	color: var(--arc-rc-heading-color, #0a3d47);
	margin: 0 0 14px;
	line-height: 1.15;
}

.arc-rc-subheading {
	font-size: 16px;
	line-height: 1.65;
	color: var(--arc-rc-sub-color, rgba(10,61,71,.62));
	margin: 0;
	max-width: 620px;
}

.arc-rc-header.align-center .arc-rc-subheading {
	margin-inline: auto;
}

.arc-rc-view-all {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 14px;
	font-weight: 600;
	color: var(--arc-rc-accent, #79ba3a) !important;
	text-decoration: none !important;
	flex-shrink: 0;
	white-space: nowrap;
	transition: gap .2s;
}

.arc-rc-view-all:hover { gap: 11px; }

.arc-rc-view-all svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	transition: transform .2s;
}

.arc-rc-view-all:hover svg { transform: translateX(2px); }

/* ── Grid ────────────────────────────────────────────────────── */
.arc-rc-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr); /* overridden by Elementor */
	gap: 24px;
}

/* ── Card base ───────────────────────────────────────────────── */
.arc-rc-card {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0,0,0,.06), 0 4px 20px rgba(0,0,0,.05);
	border: 1px solid rgba(0,0,0,.07);
	display: flex;
	flex-direction: column;
	position: relative;
	transition:
		transform .3s cubic-bezier(.34,1.2,.64,1),
		box-shadow .3s ease,
		border-color .3s ease;
}

/* Bottom accent strip */
.arc-rc-card::before {
	content: '';
	position: absolute;
	bottom: 0; left: 0; right: 0;
	height: 3px;
	background: var(--card-accent, #79ba3a);
	z-index: 1;
}

.arc-rc-card:hover {
	transform: translateY(-7px);
	box-shadow:
		0 8px 28px rgba(0,0,0,.1),
		0 20px 52px rgba(0,0,0,.07),
		0 0 0 1px color-mix(in srgb, var(--card-accent, #79ba3a) 28%, transparent);
}

/* Wide card: spans 2 grid columns */
.arc-rc-card.is-wide {
	grid-column: span 2;
}

/* ── Card body ───────────────────────────────────────────────── */
.arc-rc-body {
	padding: 22px 24px 20px;
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 16px;
	flex: 1;
}

/* Text column beside the icon */
.arc-rc-content {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
}

/* Overlay keeps a column layout — text anchors to bottom of image */
.arc-rc-card.is-overlay .arc-rc-body {
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
}

/* ── Icon ────────────────────────────────────────────────────── */
.arc-rc-icon-wrap {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: color-mix(in srgb, var(--card-accent, #79ba3a) 12%, #fff);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: transform .25s cubic-bezier(.34,1.3,.64,1);
}

.arc-rc-card:hover .arc-rc-icon-wrap {
	transform: scale(1.12) rotate(-5deg);
}

.arc-rc-icon-wrap i,
.arc-rc-icon-wrap svg {
	color: var(--card-accent, #79ba3a) !important;
	fill: var(--card-accent, #79ba3a) !important;
	font-size: 20px;
	width: 20px;
	height: 20px;
}

/* ── Badge ───────────────────────────────────────────────────── */
.arc-rc-badge {
	display: inline-block;
	align-self: flex-start;
	font-size: 10px;
	font-weight: 600;
	text-transform: capitalize;
	color: var(--card-accent, #79ba3a);
	background: color-mix(in srgb, var(--card-accent, #79ba3a) 10%, #fff);
	padding: 3px 10px;
	border-radius: 50px;
	margin-bottom: 12px;
	border: 1px solid color-mix(in srgb, var(--card-accent, #79ba3a) 22%, transparent);
}

/* ── Title ───────────────────────────────────────────────────── */
.arc-rc-title {
	font-size: 16px;
	font-weight: 700;
	color: #0a3d47;
	margin: 0 0 10px;
	line-height: 1.35;
	letter-spacing: -.01em;
}

/* ── Description ─────────────────────────────────────────────── */
.arc-rc-desc {
	font-size: 13.5px;
	line-height: 1.65;
	color: rgba(10,61,71,.6);
	margin: 0;
	flex: 1;
}

/* ── Link row ────────────────────────────────────────────────── */
.arc-rc-link-row {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid rgba(0,0,0,.06);
}

.arc-rc-link {
	font-size: 13px;
	font-weight: 600;
	color: var(--card-accent, #79ba3a) !important;
	text-decoration: none !important;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: gap .2s;
}

.arc-rc-card:hover .arc-rc-link { gap: 10px; }

.arc-rc-link svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	transition: transform .2s;
}

.arc-rc-card:hover .arc-rc-link svg { transform: translateX(3px); }

/* ── Image-top variant ───────────────────────────────────────── */
.arc-rc-card.is-image-top .arc-rc-img-wrap {
	height: 200px;
	overflow: hidden;
	flex-shrink: 0;
}

.arc-rc-card.is-image-top .arc-rc-img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .5s ease;
}

.arc-rc-card.is-image-top:hover .arc-rc-img-wrap img {
	transform: scale(1.05);
}

/* ── Overlay variant ─────────────────────────────────────────── */
.arc-rc-card.is-overlay {
	min-height: 300px;
}

.arc-rc-card.is-overlay::before {
	display: none; /* accent strip hidden on full-bg cards */
}

.arc-rc-card.is-overlay .arc-rc-img-wrap {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.arc-rc-card.is-overlay .arc-rc-img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .6s ease;
}

.arc-rc-card.is-overlay:hover .arc-rc-img-wrap img {
	transform: scale(1.06);
}

.arc-rc-card.is-overlay .arc-rc-overlay-gradient {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(10,61,71,.93) 0%,
		rgba(10,61,71,.55) 52%,
		rgba(10,61,71,.18) 100%
	);
	z-index: 1;
	transition: opacity .3s;
}

.arc-rc-card.is-overlay:hover .arc-rc-overlay-gradient {
	opacity: .85;
}

.arc-rc-card.is-overlay .arc-rc-body {
	position: relative;
	z-index: 2;
	justify-content: flex-end;
}

.arc-rc-card.is-overlay .arc-rc-title        { color: #fff; }
.arc-rc-card.is-overlay .arc-rc-desc         { color: rgba(255,255,255,.75); }
.arc-rc-card.is-overlay .arc-rc-link-row     { border-color: rgba(255,255,255,.18); }
.arc-rc-card.is-overlay .arc-rc-link         { color: #fff !important; }

/* Accent dot on overlay cards */
.arc-rc-card.is-overlay .arc-rc-accent-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--card-accent, #79ba3a);
	margin-bottom: 12px;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--card-accent, #79ba3a) 30%, transparent);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
	.arc-rc-card.is-wide { grid-column: span 1; }
	.arc-rc-header        { margin-bottom: 36px; }
}

@media (max-width: 767px) {
	.arc-rc-card.is-wide   { grid-column: span 1; }
	.arc-rc-header         { margin-bottom: 28px; gap: 16px; }
	.arc-rc-heading        { font-size: clamp(22px, 7vw, 32px); }
	.arc-rc-subheading     { font-size: 15px; }
	.arc-rc-card.is-overlay { min-height: 240px; }
}
