/* ROI Search Guides — scoped styles for Avada compatibility */

.roi-sg {
	--roi-sg-navy: #03466C;
	--roi-sg-orange: #EE8434;
	--roi-sg-orange-hover: #EE8434;
	--roi-sg-text: #5a6570;
	--roi-sg-border: #d0d5da;
	--roi-sg-bg: #ffffff;
	--roi-sg-shadow: 0 4px 18px rgba(10, 47, 78, 0.08);
	--roi-sg-radius: 10px;

	box-sizing: border-box;
	width: 100%;
	margin: 0 auto;
	padding: 20px 56px 40px;
	font-family: lato;
	color: var(--roi-sg-navy);
}

.roi-sg *,
.roi-sg *::before,
.roi-sg *::after {
	box-sizing: border-box;
}

.roi-sg__heading {
	margin: 0 0 28px;
	padding: 0;
	text-align: center;
	font-weight: 600 !important;
	line-height: 1.2;
	color: var(--roi-sg-navy);
	letter-spacing: -0.02em;
	font-family: Lato;
	font-size: 54px;
}

/* Search form */
.roi-sg__search {
	max-width: 640px;
	margin: 0 auto 80px;
}

.roi-sg__search-inner {
	display: flex;
	align-items: stretch;
	width: 100%;
	background: var(--roi-sg-bg);
	border: 1px solid var(--roi-sg-border);
	border-radius: 50px;
	overflow: hidden;
	font-family: Lato;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.roi-sg__search-inner:focus-within {
	border-color: var(--roi-sg-orange);
	box-shadow: 0 0 0 3px rgba(240, 138, 44, 0.15);
}

.roi-sg__search-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 0 0 14px;
	color: #9aa3ab;
	flex-shrink: 0;
}

.roi-sg__search-input {
	flex: 1;
	min-width: 0;
	margin: 0 !important;
	padding: 12px 12px 12px 10px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	outline: none !important;
	font-size: 15px !important;
	line-height: 1.4 !important;
	color: var(--roi-sg-navy) !important;
	height: auto !important;
}

.roi-sg__search-input::placeholder {
	color: #9aa3ab;
	opacity: 1;
}

.roi-sg__search-input::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.roi-sg__search-btn {
	flex-shrink: 0;
	margin: 0 !important;
	padding: 12px 28px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: var(--roi-sg-orange) !important;
	color: #fff !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	cursor: pointer;
	transition: background 0.2s ease;
	height: auto !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	box-shadow: none !important;
}

.roi-sg__search-btn:hover,
.roi-sg__search-btn:focus {
	background: var(--roi-sg-orange-hover) !important;
	color: #fff !important;
}

/* Grid */
.roi-sg__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px 24px;
	min-height: 80px;
}

.roi-sg__grid.is-loading {
	opacity: 0.55;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

.roi-sg-empty {
	grid-column: 1 / -1;
	margin: 24px 0;
	text-align: center;
	font-size: 16px;
	color: var(--roi-sg-text);
}

/* Load more */
.roi-sg__more-wrap {
	display: flex;
	justify-content: center;
	margin-top: 66px;
}

.roi-sg__more-wrap.is-hidden {
	display: none;
}

.roi-sg__more-btn {
	margin: 0 !important;
	padding: 12px 36px !important;
	border: 2px solid var(--roi-sg-orange) !important;
	border-radius: 10px !important;
	background: transparent !important;
	color: var(--roi-sg-orange) !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.roi-sg__more-btn:hover,
.roi-sg__more-btn:focus {
	background: var(--roi-sg-orange) !important;
	color: #fff !important;
}

.roi-sg__more-btn:disabled {
	opacity: 0.6;
	cursor: wait;
}

/* Card */
.roi-sg-card {
	display: flex;
	flex-direction: column;
	background: var(--roi-sg-bg);
	border-radius: 25px;
	box-shadow: var(--roi-sg-shadow);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0px 3px 23px 0px #00000029;

}

.roi-sg-card:hover {
	transform: translateY(-3px);
	box-shadow: 0px 3px 23px 0px #00000029;

}

.roi-sg-card__image-link {
	display: block;
	line-height: 0;
	text-decoration: none !important;
}

.roi-sg-card__image {
	display: block;
	width: 100%;
	height: 180px;
	object-fit: cover;
	object-position: center;
	border: 0;
}

.roi-sg-card__image--placeholder {
	background: linear-gradient(135deg, #d8dee4 0%, #eef1f4 100%);
}

.roi-sg-card__body {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
	padding: 22px 20px 26px;
	text-align: center;
}

.roi-sg-card__title {
	margin: 0 0 12px;
	padding: 0;
	font-weight: 700;
	line-height: 1.3;
	color: var(--roi-sg-navy);
	font-size: 24px;
	line-height: 28px  !important;
	text-align: center;
}

.roi-sg-card__title a {
	color: inherit !important;
	text-decoration: none !important;
	border: 0 !important;
	box-shadow: none !important;
	font-family: Lato;
	font-weight: 700;
	font-size: 24px;
	line-height: 28px  !important;
	text-align: center;
	color: var(--roi-sg-navy) !important;

}

.roi-sg-card__title a:hover {
	color: var(--roi-sg-orange) !important;
}

.roi-sg-card__excerpt {
	margin: 0 0 20px;
	padding: 0;
	flex: 1;
	color: var(--roi-sg-text);
	font-family: Lato;
	font-weight: 300;
	font-style: Light;
	font-size: 18px;
	line-height: 30px;
	text-align: center;

}

.roi-sg-card__btn {
	display: inline-block;
	margin: 0 !important;
	padding: 10px 28px !important;
	border: 2px solid var(--roi-sg-orange) !important;
	border-radius: 10px !important;
	background: transparent !important;
	color: var(--roi-sg-orange) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	text-decoration: none !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	box-shadow: none !important;
	transition: background 0.2s ease, color 0.2s ease;
	cursor: pointer;
}

.roi-sg-card__btn:hover,
.roi-sg-card__btn:focus {
	background: var(--roi-sg-orange) !important;
	color: #fff !important;
	text-decoration: none !important;
}

/* Screen reader only */
.roi-sg .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Responsive */
@media (max-width: 900px) {
	.roi-sg__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 22px 18px;
	}

	.roi-sg__heading {
		font-size: 28px;
	}
}

@media (max-width: 600px) {
	.roi-sg {
		padding: 12px 12px 28px;
	}

	.roi-sg__heading {
		font-size: 24px;
		margin-bottom: 20px;
	}

	.roi-sg__search {
		margin-bottom: 28px;
	}

	.roi-sg__search-btn {
		padding: 12px 18px !important;
	}

	.roi-sg__grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.roi-sg-card__image {
		height: 200px;
	}
}
