/* Y Accordion2 — CityLife Church */

.yacc2-wrapper,
.yacc2-wrapper *,
.yacc2-wrapper *::before,
.yacc2-wrapper *::after {
	box-sizing: border-box;
}

.yacc2-wrapper {
	width: 100% !important;
	max-width: 100%;
	display: block;
}

/* Accordion */
.yacc2-accordion {
	display: block;
	width: 100%;
}

.yacc2-item {
	display: block;
	width: 100%;
	float: none;
	border-top: 1px solid #E4E1DA;
}

.yacc2-item:last-child {
	border-bottom: 1px solid #E4E1DA;
}

.yacc2-item.yacc2-item-hidden {
	display: none;
}

.yacc2-item-header {
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 100%;
	background: none;
	background-color: transparent;
	border: 0;
	border-radius: 0;
	margin: 0;
	padding: 24px 0;
	text-align: left;
	cursor: pointer;
	gap: 20px;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
	-webkit-appearance: none;
	appearance: none;
	box-shadow: none;
}

.yacc2-item-header:hover,
.yacc2-item-header:focus,
.yacc2-item-header:active {
	background: none;
	background-color: transparent;
	border: 0;
	box-shadow: none;
}

.yacc2-item-header:focus-visible {
	outline: 2px solid #B08D57;
	outline-offset: 2px;
}

.yacc2-number {
	flex: 0 0 auto;
	font-size: 14px;
	font-weight: 700;
	color: #B08D57;
	min-width: 28px;
}

.yacc2-item-title {
	flex: 1 1 auto;
	margin: 0;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.4;
	color: #1A1A1A;
	transition: color 0.2s ease;
}

.yacc2-item.yacc2-active .yacc2-item-title {
	color: #B08D57;
}

/* Icon */
.yacc2-icon {
	position: relative;
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	color: #B08D57;
}

.yacc2-icon-plus-minus .yacc2-icon-line {
	position: absolute;
	top: 50%;
	left: 50%;
	background: currentColor;
	transform: translate(-50%, -50%);
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.yacc2-icon-plus-minus .yacc2-icon-line-1 {
	width: 100%;
	height: 2px;
}

.yacc2-icon-plus-minus .yacc2-icon-line-2 {
	width: 2px;
	height: 100%;
}

.yacc2-item.yacc2-active .yacc2-icon-plus-minus .yacc2-icon-line-2 {
	transform: translate(-50%, -50%) rotate(90deg);
	opacity: 0;
}

.yacc2-icon-chevron,
.yacc2-icon-arrow {
	border: none;
}

.yacc2-icon-chevron .yacc2-icon-line,
.yacc2-icon-arrow .yacc2-icon-line {
	position: absolute;
	top: 50%;
	width: 10px;
	height: 2px;
	background: currentColor;
	transition: transform 0.25s ease;
}

.yacc2-icon-chevron .yacc2-icon-line-1,
.yacc2-icon-arrow .yacc2-icon-line-1 {
	left: 2px;
	transform: translateY(-50%) rotate(45deg);
}

.yacc2-icon-chevron .yacc2-icon-line-2,
.yacc2-icon-arrow .yacc2-icon-line-2 {
	right: 2px;
	transform: translateY(-50%) rotate(-45deg);
}

.yacc2-item.yacc2-active .yacc2-icon-chevron .yacc2-icon-line-1,
.yacc2-item.yacc2-active .yacc2-icon-arrow .yacc2-icon-line-1 {
	transform: translateY(-50%) rotate(-45deg);
}

.yacc2-item.yacc2-active .yacc2-icon-chevron .yacc2-icon-line-2,
.yacc2-item.yacc2-active .yacc2-icon-arrow .yacc2-icon-line-2 {
	transform: translateY(-50%) rotate(45deg);
}

/* Panel */
.yacc2-item-panel {
	padding: 0 0 28px 48px;
}

.yacc2-item-content {
	font-size: 16px;
	line-height: 1.6;
	color: #5B5B5B;
}

.yacc2-item-content p {
	margin: 0 0 1em;
}

.yacc2-item-content p:last-child {
	margin-bottom: 0;
}

.yacc2-reference {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.yacc2-reference-pill {
	display: inline-flex;
	align-items: center;
	padding: 8px 18px;
	border: 1px solid #B08D57;
	border-radius: 24px;
	background: transparent;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.2px;
	color: #B08D57;
	white-space: nowrap;
	line-height: 1.2;
}

/* Fade wrap — positions the fade overlay and pill relative to the accordion */
.yacc2-accordion-wrap {
	position: relative;
}

/* Last visible item fades out under the overlay while collapsed */
.yacc2-item.yacc2-fade-item .yacc2-item-title,
.yacc2-item.yacc2-fade-item .yacc2-number {
	opacity: 0.35;
	transition: opacity 0.25s ease;
}

.yacc2-accordion-wrap.yacc2-expanded .yacc2-item.yacc2-fade-item .yacc2-item-title,
.yacc2-accordion-wrap.yacc2-expanded .yacc2-item.yacc2-fade-item .yacc2-number {
	opacity: 1;
}

/* Gradient fade overlay sitting over the bottom of the visible list */
.yacc2-fade-overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 150px;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #1E2B1B);
	pointer-events: none;
	opacity: 1;
	transition: opacity 0.25s ease;
	z-index: 1;
}

.yacc2-accordion-wrap.yacc2-expanded .yacc2-fade-overlay {
	opacity: 0;
}

/* Show-all pill: overlaps the boundary between the last visible and hidden items while collapsed */
.yacc2-show-all-wrap {
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translate(-50%, 50%);
	z-index: 2;
}

.yacc2-accordion-wrap.yacc2-expanded .yacc2-show-all-wrap {
	position: static;
	transform: none;
	display: flex;
	justify-content: center;
	margin-top: 32px;
}

.yacc2-show-all {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: #C97A3D;
	border: 0;
	border-radius: 999px;
	padding: 14px 30px;
	font-size: 14px;
	font-weight: 700;
	color: #FFFFFF;
	cursor: pointer;
	font-family: inherit;
	white-space: nowrap;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
	transition: color 0.2s ease, background-color 0.2s ease;
}

.yacc2-show-all-icon-down,
.yacc2-show-all-icon-up {
	font-size: 0.85em;
	line-height: 1;
}

.yacc2-show-all-icon-up {
	display: none !important;
}

.yacc2-show-all.yacc2-expanded .yacc2-show-all-icon-down {
	display: none !important;
}

.yacc2-show-all.yacc2-expanded .yacc2-show-all-icon-up {
	display: inline-block !important;
}

@media (max-width: 767px) {
	.yacc2-item-panel {
		padding-left: 0;
	}

	.yacc2-item-header {
		gap: 14px;
	}

	.yacc2-fade-overlay {
		height: 110px;
	}
}
