/* EG FAQ Accordion — frontend
 * Uses CSS variables so a theme can override colours easily.
 */

.eg-faq {
	--eg-faq-accent: #000000;
	--eg-faq-border: #e2e5e9;
	--eg-faq-bg: #ffffff;
	--eg-faq-q-color: #1d2327;
	--eg-faq-a-color: #3c434a;
	--eg-faq-radius: 8px;

	margin: 2em 0;
	font-size: 1rem;
	line-height: 1.6;
}

.eg-faq__heading {
	margin: 0;
    font-size: 30px;
    line-height: 40px;
    margin-bottom: 15px !important;
}

.eg-faq__list {
	display: block;
}

.eg-faq__item {
	background: var(--eg-faq-bg);
}

/* Question button (reset native button styling) */
.eg-faq__q {
	margin: 0;
	padding: 0;
	font-size: inherit;
	line-height: inherit;
}

.eg-faq__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	margin: 0;
	background: #f5f5f5;
    padding: 18px 20px;
	border: 0;
	text-align: left;
	font: inherit;
	font-weight: 600;
	color: var(--eg-faq-q-color);
	cursor: pointer;
	transition: color 0.15s ease, background 0.15s ease;
}

.eg-faq__trigger:hover,
.eg-faq__trigger:focus-visible {
	color: var(--eg-faq-accent);
}

.eg-faq__trigger:focus-visible {
	outline: 2px solid var(--eg-faq-accent);
	outline-offset: -2px;
}

.eg-faq__q-text {
	flex: 1 1 auto;
	font-size:18px;
	    font-family: 'GraphikMedium';
	    font-weight:500;
}

.eg-faq__answer p, .eg-faq__answer a{
    font-size:16px;
    line-height:26px;
}

.eg-faq__answer p{
    margin-bottom:20px;
}

.eg-faq__answer > :last-child {
    margin-bottom: 0 !important;
}

/* Plus / minus icon */
.eg-faq__icon {
	position: relative;
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
}

/*.eg-faq__icon::before,*/
/*.eg-faq__icon::after {*/
/*	content: "";*/
/*	position: absolute;*/
/*	top: 50%;*/
/*	left: 50%;*/
/*	background: currentColor;*/
/*	transition: transform 0.2s ease, opacity 0.2s ease;*/
/*}*/

/*.eg-faq__icon::before {*/
/*	content: '';*/
/*    position: absolute;*/
/*    right: 20px;*/
/*    top: 50%;*/
/*    width: 10px;*/
/*    height: 10px;*/
/*    border-right: 2px solid #000;*/
/*    border-bottom: 2px solid #000;*/
/*    transform: translateY(-50%) rotate(-45deg);*/
/*    transition: transform 0.3s ease;*/
/*}*/

.eg-faq__icon::after {
		content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    width: 13px;
    height: 13px;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    transform: translateY(-50%) rotate(-45deg);
    transition: transform 0.3s ease;
}

.eg-faq__item.is-open .eg-faq__icon::after {
	    transform: translateY(-50%) rotate(45deg);
}

/* Panel (animated open/close handled inline + JS) */
.eg-faq__panel {
	overflow: hidden;
	transition: height 0.25s ease;
}

.eg-faq__answer {
	padding: 18px 18px;
	color: #333333;
}

.eg-faq__answer ul li, ol li{
    font-size:16px!important;
    line-height: 26px !important;
    margin-bottom:8px !important;
}

.eg-faq__answer ul, ol {
    margin-bottom:15px!important;
}

.eg-faq__answer > :first-child {
	margin-top: 0;
}

.eg-faq__answer > :last-child {
	margin-bottom: 0;
}

/* ------------------------------------------------------------------ *
 * Style: Boxed (default) — soft cards with subtle separators
 * ------------------------------------------------------------------ */
.eg-faq--boxed .eg-faq__item {
	border: 1px solid var(--eg-faq-border);
	border-radius: var(--eg-faq-radius);
	margin-bottom: 10px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.eg-faq--boxed .eg-faq__item.is-open {
	    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 5px;
}

/* ------------------------------------------------------------------ *
 * Style: Minimal — just thin dividing lines, no boxes
 * ------------------------------------------------------------------ */
.eg-faq--minimal .eg-faq__list {
	border-top: 1px solid var(--eg-faq-border);
}

.eg-faq--minimal .eg-faq__item {
	border-bottom: 1px solid var(--eg-faq-border);
}

.eg-faq--minimal .eg-faq__trigger {
	padding-left: 0;
	padding-right: 0;
}

.eg-faq--minimal .eg-faq__answer {
	padding-left: 0;
	padding-right: 0;
}

/* ------------------------------------------------------------------ *
 * Style: Bordered / Card — one outer frame, divided rows
 * ------------------------------------------------------------------ */
.eg-faq--bordered .eg-faq__list {
	border: 1px solid var(--eg-faq-border);
	border-radius: var(--eg-faq-radius);
	overflow: hidden;
}

.eg-faq--bordered .eg-faq__item + .eg-faq__item {
	border-top: 1px solid var(--eg-faq-border);
}

.eg-faq--bordered .eg-faq__item.is-open .eg-faq__trigger {
	background: #f6f8fa;
}

/* ------------------------------------------------------------------ *
 * Style: Filled header — coloured question bar
 * ------------------------------------------------------------------ */
.eg-faq--filled .eg-faq__item {
	border: 1px solid var(--eg-faq-border);
	border-radius: var(--eg-faq-radius);
	margin-bottom: 10px;
	overflow: hidden;
}

.eg-faq--filled .eg-faq__trigger {
	background: #f2f5f9;
}

.eg-faq--filled .eg-faq__item.is-open .eg-faq__trigger {
	background: var(--eg-faq-accent);
	color: #fff;
}

.eg-faq--filled .eg-faq__item.is-open .eg-faq__trigger:hover {
	color: #fff;
}

/* Small screens */
@media ( max-width: 480px ) {
	.eg-faq__trigger {
		padding: 14px;
	}
	.eg-faq__answer {
		padding: 0 14px 14px;
	}
}
