/* FAQs page: the accordion (Loop Grid + "Card: FAQ" loop item with an Elementor Toggle; wp-admin > FAQs). px at the 1556 design width.
   Selectors start with .di-loop--faqs so they beat the widget settings Elementor generates. */

/* Questions read across the rows. An incomplete last row sits to the right (as designed). */
@media (min-width: 1025px) {
	.di-loop--faqs .elementor-loop-container > div.e-loop-item:last-of-type:nth-of-type(3n+1) { grid-column-start: 3; }
	.di-loop--faqs .elementor-loop-container > div.e-loop-item:nth-last-of-type(2):nth-of-type(3n+1) { grid-column-start: 2; }
}
.di-loop--faqs .elementor-loop-container { align-items: start; }

.di-loop--faqs .e-loop-item .elementor-element.di-faq { border: 1px solid #A9DDD6; border-radius: 14px; background: #fff; }
.di-loop--faqs .e-loop-item .di-faq .elementor-toggle { margin: 0; text-align: left; }
.di-loop--faqs .e-loop-item .di-faq .elementor-toggle-item { margin: 0; }

/* the question (Hello Elementor and the Elementor kit style headings and links: reset what we use) */
.di-loop--faqs .e-loop-item .di-faq .elementor-tab-title {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	box-sizing: border-box;
	min-height: 89px;
	margin: 0;
	padding: 15px 25px 12px;
	border: 0;
	border-radius: 13px;
	background: none;
	font-family: var(--di-head);
	font-size: 23.1px;
	font-weight: 500;
	line-height: 28px;
	letter-spacing: 0;
	text-align: left;
	text-transform: none;
	cursor: pointer;
}
.di-loop--faqs .e-loop-item .di-faq .elementor-tab-title .elementor-toggle-title { max-width: 330px; font-weight: 500; color: var(--di-navy); cursor: pointer; text-decoration: none; }
.di-loop--faqs .e-loop-item .di-faq .elementor-tab-title:hover .elementor-toggle-title { color: #2B8C84; }
.di-loop--faqs .e-loop-item .di-faq .elementor-tab-title:has(.elementor-toggle-title:focus-visible) { outline: 2px solid var(--di-navy); outline-offset: 2px; }
.di-loop--faqs .e-loop-item .di-faq .elementor-tab-title .elementor-toggle-title:focus { outline: 0; }
.di-loop--faqs .e-loop-item .di-faq .elementor-tab-title.elementor-active { min-height: 0; }
.di-loop--faqs .e-loop-item .di-faq .elementor-tab-title.elementor-active .elementor-toggle-title { color: var(--di-navy); }

/* the arc: points up when closed, turns over when open */
.di-faq .elementor-tab-title::after {
	content: "";
	flex: 0 0 30px;
	width: 30px;
	height: 18px;
	margin-top: 6px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 18'%3E%3Cdefs%3E%3ClinearGradient id='g'%3E%3Cstop stop-color='%235EC8B7'/%3E%3Cstop offset='1' stop-color='%236BBF2B'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M3 15.5A12 12.5 0 0 1 27 15.5' fill='none' stroke='url(%23g)' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
	transition: transform .2s;
}
.di-faq .elementor-tab-title.elementor-active::after { transform: rotate(180deg); }

/* the answer */
.di-loop--faqs .e-loop-item .di-faq .elementor-tab-content {
	margin: 0;
	padding: 3px 34px 16px 25px;
	border: 0;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 15px;
	line-height: 19px;
	color: var(--di-navy);
}
.di-faq .elementor-tab-content p { margin: 0 0 9px; }
.di-faq .elementor-tab-content ul, .di-faq .elementor-tab-content ol { margin: 0 0 9px; padding-left: 20px; }
.di-faq .elementor-tab-content > :last-child { margin-bottom: 0; }
.di-faq .elementor-tab-content a { color: #23766F; text-decoration: underline; }
.di-faq .elementor-tab-content a:hover { color: var(--di-navy); }

@media (prefers-reduced-motion: reduce) { .di-faq .elementor-tab-title::after { transition: none; } }

@media (max-width: 1430px) and (min-width: 1025px) {
	.elementor .elementor-element.di-loop--faqs.elementor-widget { --grid-column-gap: 28px; }
	.di-loop--faqs .e-loop-item .di-faq .elementor-tab-title { font-size: clamp(19px, 1.62vw, 23.1px); }
}
@media (max-width: 1024px) {
	.di-loop--faqs .e-loop-item .di-faq .elementor-tab-title { min-height: 64px; padding: 18px 20px 16px; font-size: 21px; line-height: 26px; }
	.di-loop--faqs .e-loop-item .di-faq .elementor-tab-title .elementor-toggle-title { max-width: none; }
	.di-loop--faqs .e-loop-item .di-faq .elementor-tab-content { padding: 0 20px 18px; font-size: 16px; line-height: 23px; }
}
@media (max-width: 767px) {
	.di-loop--faqs .e-loop-item .di-faq .elementor-tab-title { min-height: 60px; font-size: 19px; line-height: 24px; }
}
