/* TGJ FAQ Block Styles */

.tgj-faq {
	margin: 0 auto;
}

/* Navigation styles */
.tgj-faq__nav {
	margin-bottom: 2em;
	padding: 1.5em;
	background-color: #f5f5f5;
	border-radius: 4px;
}

.tgj-faq__nav-title {
	font-size: 1.25em;
	font-weight: bold;
	margin-bottom: 1em;
	color: #0A3B36;
}

.tgj-faq__nav-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.tgj-faq__nav-item {
	margin: 0;
}

.tgj-faq__nav-link {
	display: inline-block;
	padding: 10px 20px;
	background-color: #0A3B36;
	color: #FFFCF7;
	text-decoration: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
	transition: background-color 0.2s ease;
}

.tgj-faq__nav-link:hover,
.tgj-faq__nav-link:focus {
	background-color: #0d4d47;
	color: #FFFCF7;
}

/* Scroll margin for anchor links */
.tgj-faq-section {
	scroll-margin-top: 2em;
}

.tgj-faq-section {
	margin-bottom: 2em;
}

.tgj-faq-section__title {
	font-size: 24px;
	margin-bottom: 1em;

}

.tgj-faq-item {
	margin-bottom: 1.5em;
	border-top: 1px solid #d9d9d9;
	padding-top: 1em;
}

.tgj-faq-item__question {
	font-size: 18px;
	margin-bottom: 0;
}

.tgj-faq-item__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	gap: 1em;
	background: none;
	border: none;
	padding: 0;
	font: inherit;
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
	text-align: left;
	cursor: pointer;
}

.tgj-faq-item__question-text {
	flex: 1;
}

.tgj-faq-item__chevron {
	flex-shrink: 0;
	transition: transform 0.2s ease;
	transform: rotate(0deg);
}

.tgj-faq-item.is-open .tgj-faq-item__chevron {
	transform: rotate(90deg);
}

.tgj-faq-item__answer {
	overflow: hidden;
	max-height: 0;
	margin-bottom: 0;
	line-height: 1.6;
	transition: max-height 0.3s ease, padding-top 0.3s ease;
}

.tgj-faq-item.is-open .tgj-faq-item__answer {
	max-height: 2000px;
	padding-top: 0.75em;
}

.tgj-faq-item__answer p {
	margin-bottom: 1em;
}

.tgj-faq-item__answer p:last-child {
	margin-bottom: 0;
}

@media ( min-width: 768px ) {
	.tgj-faq-section {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: 2em;
	}

	.tgj-faq-section__title {
		grid-column: 1 / -1;
	}
}

/* Editor-specific styles */
.tgj-faq--editor .tgj-faq__editor-content {
	padding: 20px;
}

.tgj-faq--editor .tgj-faq-item {
	background-color: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 20px;
	margin-bottom: 15px;
}

.tgj-faq--editor .tgj-faq-section {
	margin-bottom: 2em;
}

.tgj-faq--editor .tgj-faq-section__title {
	font-size: 1.5em;
	margin-bottom: 1em;
}
