/* Faq Accordian Sec */
/*
 * [uks_faq_categories] + [uks_faq_list] - category chips and the accordion.
 *
 * Its own file, loaded only on pages that use one of the FAQ shortcodes.
 * Markup comes from inc/shortcodes.php, the tab filtering + accordion
 * behaviour from js/faq-block.js. [uks_faq_slider] needs no styling here -
 * it is [uks_services_slider], styled by assets/css/services-slider.css.
 *
 * The two pieces are placed independently (wherever a Gutenberg layout puts
 * them), so each declares the custom properties it needs rather than
 * sharing a wrapper to hold them.
 */

/* ----------------------------------------------------------------- tabs -- */

.uks-faq__tabs {
	--uks-faq-navy: #142E71;
	--uks-faq-text: #4B5468;
	--uks-faq-tint: #F6F8FC;
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	padding: 0px!important;
}

.uks-faq__tab {
    padding: 10px 24px;
    border-radius: 100px;
    background-color: #FFFFFF;
    color: #000000CC;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    border: 1px solid #0000001A;
	font-family: 'Jost';
}
.faq-title-wrapper.container-wrapper{
    padding-top: 40px !important;
    border-top: 1px solid #0000001A;
}
.faq-tab-wrapper.has-global-padding  {
    padding: 40px 20px 60px 20px !important;
}
.faq-tab-wrapper h2 {
    margin-top: 8px !important;
	font-size: 30px;
}
.faq-tab-grid.has-global-padding {
	margin-top: 40px!important;
	margin-bottom: 26px!important;
}
.uks-faq__item:focus,
.uks-faq__item:focus-visible {
	outline: none !important;
    outline-style: none !important;
	outline-width: 0px !important;
}
.uks-faq__question:focus,
.uks-faq__question:focus-visible {
	outline: none !important;
	outline-style: none !important;	
	outline-width: 0px !important;
}
.uks-faq__toggle:focus,
.uks-faq__toggle:focus-visible {
	outline: none !important;
	outline-style: none !important;
	outline-width: 0px !important;
}

.uks-faq__tab.is-active {
	border-color: #142E71;
	background-color: #EDF2FF;
	color: #142E71;
	font-weight: 400;
}
.uks-faq__tab:focus,	
.uks-faq__tab:focus-visible {
	outline: none !important;	
	outline-style: none !important;
    outline-width: 0px !important;
}
/* ------------------------------------------------------------- accordion -- */

.uks-faq__list {
	--uks-faq-navy: #142E71;
	--uks-faq-text: #4B5468;
	--uks-faq-line: #E7E9EF;

	display: flex;
	flex-direction: column;
	gap: 14px;
}

.uks-faq__item {
	border: 1px solid #0000001A;
	border-radius: 4px;
	background-color: #FFFFFF;
	overflow: hidden;
	transition: opacity 0.3s ease, transform 0.3s ease, height 0.3s ease, padding 0.3s ease, border-width 0.3s ease;
	padding: 24px;
}

.uks-faq__item--hidden {
	display: none;
}

.uks-faq__item--out {
	opacity: 0;
	transform: scale(0.97);
	pointer-events: none;
}

/*
 * js/faq-block.js pins the item's current pixel height inline right before
 * adding --out, then (a frame later, alongside --out's opacity/transform)
 * sets height/padding/border-width to 0 inline too - the base rule's own
 * "height 0.3s ease, padding 0.3s ease, border-width 0.3s ease" transitions
 * then animate that collapse over the same 0.3s as the fade, so the item's
 * layout space shrinks away together with it instead of staying full-size
 * until HIDDEN_CLASS lands and snapping everything after it upward in one
 * jump.
 */

.uks-faq__item--in {
	opacity: 0;
	transform: scale(0.97);
}

.uks-faq__question {
	margin: 0;
}

.uks-faq__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 0px;
    border: 0;
    background: none;
    color: #142E71;
    font-size: 20px;
    font-weight: 400;
    line-height: 32px;
    text-align: left;
    cursor: pointer;
	font-family: 'Jost';
}
.is-open .uks-faq__toggle {
    padding: 0px !important;
}

.uks-faq__chevron {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	color: var(--uks-faq-navy);
	transition: transform 0.25s ease;
}

.uks-faq__item.is-open .uks-faq__chevron {
	transform: rotate(180deg);
}

.uks-faq__panel {
	overflow: hidden;
	height: 0;
	transition: height 0.3s ease;
}

.uks-faq__answer {
    padding: 0px 0px 0px;
    color: #000000CC;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
	padding-top: 13px;
}

.faq-right-column-wrapper .slider-card-body {
    border: 1px solid #0000001A;
    box-shadow: none;
    border-radius: 4px 4px 0px 0px;
}

.uks-sslider.is-timed {
    border-radius: 4px !important;
}

.faq-right-column-wrapper .uks-sslider__cta {
    background-color: #A7BFFF33;
    border: 1px solid #0000001A;
    color: #142E71;
}

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

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

/* ------------------------------------------------------------ responsive -- */

@media(max-width: 1024px){
	.faq-columns-wrapper{
		flex-direction: column;
	}
	.faq-columns-wrapper .faq-left-column-wrapper {
    	flex-basis: 100% !important;
		width: 100%;
	}
	.faq-columns-wrapper .faq-right-column-wrapper {
    	flex-basis: 100% !important;
		width: 100%!important;
	}
}

@media (max-width: 1280px) {
.faq-columns-wrapper .faq-left-column-wrapper {
    flex-basis: 55% !important;
}
.faq-columns-wrapper .faq-right-column-wrapper {
    flex-basis: 45% !important;
}
}

@media (max-width: 781px) {
    .faq-tab-wrapper h2{
		font-size: 24px !important;
        line-height: 32px!important;
	}

	.faq-tab-title-wrapper.container-wrapper{gap: 0px;}

	.faq-title-wrapper.container-wrapper{padding-top: 40px!important;  gap: 0px;}

	.uks-faq__toggle span.uks-faq__chevron svg {
    	width: 15px!important;
    	height: 8px!important;
	}
	.uks-faq__tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		gap: 8px;
		padding-bottom: 2px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.uks-faq__tabs::-webkit-scrollbar {
		display: none;
	}

	.uks-faq__tab {
		flex: 0 0 auto;
		white-space: nowrap;
	}
	
	.uks-faq__item {
   		padding: 14px;
	    background-color: #F4F5F9;
        border-color: #F4F5F9;
	}
	.uks-faq__item.is-open {
    	background-color: transparent;
    	border-color: #0000001A;
	}
	.uks-faq__toggle {
    align-items: flex-start;
	font-size: 16px;
	color: #000000CC;
	line-height: 20px;
	}

	/* .uks-faq__chevron {
    margin-top: 15px;
	} */
	 .uks-faq__item.is-open button.uks-faq__toggle{
		color: #142E71;
	}
	.uks-faq__item.is-open button.uks-faq__toggle {
    	color: #142E71;
	}
	.uks-faq__answer{
		font-size: 16px;
		line-height: 24px;
		color: #000000CC;
	}
	.faq-tab-wrapper .container-wrapper {
	padding-top: 0px !important;
	padding-bottom: 0px !important;
	padding-left: 0px !important;
	padding-right: 0px !important;
	border-top: none;
	}

	.faq-tab-wrapper .container-wrapper .uks-faq__tabs {
    padding-left: 0px !important;
	}

	.faq-tab-wrapper .container-wrapper .has-link-color {
    padding-left: 0px !important;
	}

	.faq-tab-wrapper .container-wrapper.faq-tab-grid {
    margin-top: 16px !important;
    margin-bottom: 14px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.uks-faq__item,
	.uks-faq__chevron,
	.uks-faq__panel,
	.uks-faq__tab {
		transition: none;
	}
}