/**
 * State page golf guide, FAQ and Related Articles (template-parts/state/golf-guide.php, WEB-453).
 *
 * Translated from the Elementor CSS of the state pages (post-<id>.css: the guide container,
 * nested accordion, text editor, accordion and loop grid widgets, the same on every state),
 * loop item 40170 (blog card) and the site-wide custom CSS for .e-con-boxed, .faq accordions
 * and .elementor-widget-text-editor content.
 */

.tgp-sg-root {
	--tgp-sg-primary: #023047;
	--tgp-sg-secondary: #3aaf56;
	--tgp-sg-text: #404040;
	--tgp-sg-gutter: 4vw;
	font-family: "League Spartan", sans-serif;
}

/* Boxed sections: 1140px content, side gutter 4vw / 32px / 16px. */
.tgp-sg,
.tgp-sg-related {
	padding: 0 var(--tgp-sg-gutter);
}

.tgp-sg__inner,
.tgp-sg-related__inner {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
	padding: 40px 0;
}

/* ---------- Golf guide ---------- */

.tgp-sg {
	background-color: #f9fafb;
}

.tgp-sg__inner {
	gap: 20px;
}

.tgp-sg__heading {
	margin: 0;
	padding: 0;
	font-family: "League Spartan", sans-serif;
	font-size: 25px;
	font-weight: 600;
	line-height: 1;
	color: var(--tgp-sg-primary);
}

.tgp-sg__accordion {
	width: 100%;
}

.tgp-sg__item {
	display: flex;
	flex-direction: column;
	position: relative;
}

.tgp-sg__title {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 0 10px;
	padding: 10px 0;
	border-bottom: 1px solid #d5d8dc;
	color: #1f2124;
	cursor: pointer;
	list-style: none;
}

.tgp-sg__title::-webkit-details-marker,
.tgp-sg__faq-q::-webkit-details-marker {
	display: none;
}

.tgp-sg__title::marker,
.tgp-sg__faq-q::marker {
	content: "";
}

.tgp-sg__title-text {
	font-size: 17px;
	font-weight: 600;
	line-height: 1.5;
}

.tgp-sg__icon {
	display: flex;
	align-items: center;
	width: fit-content;
}

.tgp-sg__icon i {
	align-items: center;
	height: 10px;
	font-size: 10px;
	color: #9ca3af;
}

.tgp-sg__icon .fa-plus,
.tgp-sg__item[open] > .tgp-sg__title .fa-minus {
	display: flex;
}

.tgp-sg__icon .fa-minus,
.tgp-sg__item[open] > .tgp-sg__title .fa-plus {
	display: none;
}

.tgp-sg__panel {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 20px 0;
	border-bottom: 1px solid #d5d8dc;
}

.tgp-sg__row {
	display: flex;
	flex-direction: row;
	gap: 32px;
}

.tgp-sg__row--center {
	align-items: center;
}

.tgp-sg__col {
	display: flex;
	flex-direction: column;
	flex: 0 1 100%;
	gap: 20px;
	min-width: 0;
}

.tgp-sg__row--center .tgp-sg__col:has(> .tgp-sg__image:only-child) {
	align-items: center;
	justify-content: center;
}

/* Text blocks (Elementor text editor widget). */
.tgp-sg__text {
	font-size: 17px;
	font-weight: 400;
	color: #00000099;
}

.tgp-sg__text > :not(:last-child),
.tgp-sg__text p:not(:last-child),
.tgp-sg__text h2,
.tgp-sg__text h3,
.tgp-sg__text h4,
.tgp-sg__text h5,
.tgp-sg__text h6 {
	margin-bottom: 1em;
}

/* Site custom CSS: .elementor-widget-container p:not([class]) { line-height: inherit } */
.tgp-sg-root p:not([class]) {
	line-height: inherit;
}

.tgp-sg__text ul,
.tgp-sg__faq-a ul {
	padding-left: 20px;
	list-style-type: disc;
}

.tgp-sg__text ol {
	padding-left: 20px;
	list-style-type: decimal;
}

.tgp-sg__text ul li:not(:last-child),
.tgp-sg__text ol li:not(:last-child) {
	margin-bottom: 10px;
}

.tgp-sg__text a:not([class]),
.tgp-sg__faq-a a:not([class]) {
	font-weight: bold;
	text-decoration: underline !important;
}

.tgp-sg__image {
	width: 100%;
	text-align: center;
}

.tgp-sg__image img {
	display: inline-block;
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

/* ---------- FAQ (inside the last accordion item) ---------- */

.tgp-sg__faq-intro {
	align-self: center;
	width: 360px;
	max-width: 360px;
	margin-bottom: 26px;
	font-size: 20px;
	font-weight: 400;
	line-height: 1em;
	text-align: center;
	color: #00000080;
}

.tgp-sg__faq-intro > :not(:last-child) {
	margin-bottom: 1em;
}

.tgp-sg__faq {
	width: 100%;
	text-align: start;
}

.tgp-sg__faq-item {
	display: block;
	padding: 32px;
	border: 1px solid #ddd;
	border-radius: 15px;
}

.tgp-sg__faq-item:not(:last-child) {
	margin-bottom: 32px;
}

.tgp-sg__faq-q {
	display: block;
	margin: 0;
	padding: 0;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	outline: none;
	list-style: none;
}

.tgp-sg__faq-icon {
	display: inline-block;
	float: right;
	width: 1.5em;
	margin-top: 3px;
	margin-left: 10px;
	text-align: right;
	color: var(--tgp-sg-primary);
}

.tgp-sg__faq-icon .fa-chevron-down,
.tgp-sg__faq-item[open] .tgp-sg__faq-icon .fa-chevron-right {
	display: none;
}

.tgp-sg__faq-item[open] .tgp-sg__faq-icon .fa-chevron-down {
	display: inline-block;
	color: var(--tgp-sg-secondary);
}

.tgp-sg__faq-q-text {
	font-family: "League Spartan", sans-serif;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.3em;
	color: #000;
}

.tgp-sg__faq-item[open] .tgp-sg__faq-q-text {
	font-size: 22px;
	font-weight: 600;
	color: var(--tgp-sg-secondary);
}

.tgp-sg__faq-a {
	padding: 10px 80px 0 0;
	font-family: "League Spartan", sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.3em;
	color: #00000099;
}

.tgp-sg__faq-a p:not(:last-child) {
	margin-bottom: 0.5em;
}

/* ---------- Related Articles ---------- */

.tgp-sg-related__inner {
	gap: 40px;
}

.tgp-sg-related__heading {
	text-align: center;
}

.tgp-sg-related__title {
	margin: 0;
	padding: 0;
	font-family: "League Spartan", sans-serif;
	font-size: 28px;
	font-weight: 600;
	line-height: 1;
	color: var(--tgp-sg-primary);
}

/* Large title (site style .tgp-title-h2), used by Georgia. */
.tgp-sg-related__heading--large {
	margin-bottom: 20px;
}

.tgp-sg-related__heading--large .tgp-sg-related__title {
	padding-bottom: 10px;
	font-family: Poppins, sans-serif;
	font-size: 35px;
	font-weight: 700;
	line-height: 1.3em;
}

.tgp-sg-related__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-auto-rows: 1fr;
	gap: 30px;
}

.tgp-sg-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	background-color: #fff;
	border: 1px solid #f1f5f9;
	border-radius: 12px;
	transition: transform 0.25s, box-shadow 0.25s;
}

.tgp-sg-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.tgp-sg-card__img {
	position: relative;
	min-height: 200px;
	overflow: hidden;
	background-image: linear-gradient(135deg, #023047 0%, #039cbb 100%);
}

.tgp-sg-card__img a {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
}

.tgp-sg-card__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 8px;
	transition: transform 0.4s;
}

.tgp-sg-card:hover .tgp-sg-card__img img {
	transform: scale(1.05);
}

.tgp-sg-card__body {
	display: flex;
	flex-direction: column;
	padding: 22px 22px 24px;
}

.tgp-sg-card__cat {
	margin-bottom: 8px;
	font-size: 16px;
	line-height: 24px;
	color: #039cbb;
	word-break: break-word;
}

.tgp-sg-card__cat a {
	color: #039cbb;
}

.tgp-sg-card__title {
	margin: 0 0 10px;
	font-family: "League Spartan", sans-serif;
	font-size: 19px;
	font-weight: 800;
	line-height: 1.3em;
	letter-spacing: -0.3px;
	color: #023047;
	word-break: break-word;
}

.tgp-sg-card__title a {
	color: inherit;
	text-decoration: none;
}

.tgp-sg-card__excerpt {
	display: -webkit-box;
	overflow: hidden;
	font-size: 15px;
	line-height: 1.6em;
	color: var(--tgp-sg-text);
	word-break: break-word;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.tgp-sg-related__more {
	text-align: center;
}

.tgp-sg-related__button {
	display: inline-block;
	padding: 15px 39px;
	font-family: "League Spartan", sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	color: #fff;
	text-align: center;
	background-color: var(--tgp-sg-secondary);
	border-radius: 3px;
}

.tgp-sg-related__button:hover,
.tgp-sg-related__button:focus {
	color: #fff;
	text-decoration: underline;
}

@media (max-width: 1024px) {
	.tgp-sg-root {
		--tgp-sg-gutter: 32px;
	}

	.tgp-sg-related__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.tgp-sg-root {
		--tgp-sg-gutter: 16px;
	}

	.tgp-sg__row {
		flex-wrap: wrap;
	}

	.tgp-sg-related__heading--large .tgp-sg-related__title {
		font-size: 25px;
	}

	.tgp-sg__faq-intro {
		width: 100%;
		max-width: 100%;
		font-size: 18px;
	}

	.tgp-sg__faq-item {
		padding: 12px 17px;
	}

	.tgp-sg__faq-item:not(:last-child) {
		margin-bottom: 21px;
	}

	.tgp-sg__faq-icon {
		width: 1.2em;
	}

	.tgp-sg__faq-a {
		padding: 10px 0 0;
	}

	.tgp-sg-related__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}
