/**
 * Community Values & Time for Family Component Styles
 * Single block with two sections side-by-side.
 *
 * @package Imagemakers\Project
 */

.values-and-family-component {
	background: var(--color-dark-blue, #1c2e45);
	color: #fff;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.values-and-family-component::before {
	background: url('/app/themes/lovekansas/dist/images/love-kansas-texture.webp') top center;
	content: "";
	display: block;
	height: 100%;
	left: 0;
	mix-blend-mode: color-burn;
	position: absolute;
	top: 0;
	width: 100%;
	z-index: 0;
}

.values-and-family-inner {
	margin: 0 auto;
	max-width: calc(var(--content-max-width) + (2 * var(--content-gutter)));
	position: relative;
	width: 100%;
	z-index: 1;
}

.values-and-family-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	width: 100%;
}

.values-and-family-section--family::before {
	background: rgba(0, 0, 0, 0.3);
	content: '';
	display: block;
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
	width: 100vw;
}

.values-and-family-section--community::before {
	background: rgba(62, 88, 121, 0.3);
	content: '';
	display: block;
	height: 100%;
	position: absolute;
	right: 0;
	top: 0;
	width: 100vw;
}

.values-and-family-section {
	padding: 3.75rem var(--content-gutter);
	position: relative;
}

.values-and-family-section-inner {
	max-width: var(--content-max-width);
	margin: 0 auto;
}

.values-and-family-headline,
.simple-page__content .values-and-family-headline {
	color: #fff;
	display: block;
	font-family: var(--font-heading);
	font-size: 1.875rem;
	font-weight: 700;
	line-height: 1.2em;
	margin: 0 0 1rem;
	position: relative;
	max-width: 27.5rem;
}

.values-and-family-description {
	color: #B8C1D5;
	font-size: 1rem;
	line-height: 1.6em;
	font-weight: 400;
	margin: 0 0 1.5em;
	max-width: 31.75em;
}

.values-and-family-description strong {
	font-weight: 700;
	color: #fff;
}

.values-and-family-description ol,
.values-and-family-description ul {
	margin: 0 0 0 1.5rem;
}

.values-and-family-description ol li {
	display: list-item;
	list-style-type: decimal;
	position: relative;
}

.values-and-family-description ul li {
	display: list-item;
	list-style-type: disc;
	position: relative;
}

.values-and-family-tags {
	align-items: flex-start;
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	justify-content: flex-start;
	max-width: 27.5rem;
}


/* Shared styles */
.values-and-family-tag {
	border-radius: 5em;
	border: none;
	color: #fff;
	cursor: pointer;
	display: inline-block;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.3em;
	padding: 0.5em 1em;
	position: relative;
	text-decoration: none;
	transition: 0.2s;
	vertical-align: top;
}

.values-and-family-section--community .values-and-family-tag {
	background-color: rgba(9, 20, 34, 0.45);
}

.values-and-family-section--family .values-and-family-tag {
	background-color: rgba(71, 83, 99, 0.45);
}

.values-and-family-section--community .values-and-family-tag:hover,
.values-and-family-section--community .values-and-family-tag:focus-visible {
	background-color: rgba(9, 20, 34, 1);
}

.values-and-family-section--family .values-and-family-tag:hover,
.values-and-family-section--family .values-and-family-tag:focus-visible {
	background-color: rgba(71, 83, 99, 1);
}

.values-and-family-tag:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

span.values-and-family-tag {
	cursor: default;
}

@media (min-width: 768px) {
	.values-and-family-grid {
		grid-template-columns: 1fr 1fr;
	}

	.values-and-family-section {
		padding: 5rem var(--content-gutter);
	}
}

@media (min-width: 1200px) {
    .values-and-family-tag {
        font-size: 1.125rem;
    }
}

@media (min-width: 1600px) {

	.values-and-family-section {
		padding: 6.25rem var(--content-gutter);
	}

	.values-and-family-headline,
	.simple-page__content .values-and-family-headline {
		font-size: 3rem;
		line-height: 1.2em;
		margin: 0 0 1rem;
		max-width: 27.5rem;
	}

	.values-and-family-description {
		font-size: 1.125rem;
	}

	.values-and-family-tags {
		row-gap: 0.75rem;
		column-gap: 0.5rem;
	}
}

/* -------------------------------------------------------------------------
   Time for Family Modal
   ------------------------------------------------------------------------- */

.tff-modal {
	align-items: stretch;
	display: flex;
	inset: 0;
	justify-content: flex-end;
	position: fixed;
	z-index: 100000;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.tff-modal[aria-hidden="true"] {
	opacity: 0;
	pointer-events: none;
	visibility: hidden;
}

.tff-modal[aria-hidden="false"] {
	opacity: 1;
	visibility: visible;
}

.tff-modal__backdrop {
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(4px);
	cursor: pointer;
	position: absolute;
	inset: 0;
}

.tff-modal__panel {
	background: #f5f5f5;
	box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
	display: flex;
	flex-direction: column;
	max-height: 100vh;
	overflow: hidden;
	position: relative;
	width: 100%;
	z-index: 1;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tff-modal[aria-hidden="true"] .tff-modal__panel {
	transform: translateX(100%);
}

.tff-modal[aria-hidden="false"] .tff-modal__panel {
	transform: translateX(0);
}

.tff-modal__close {
	align-items: center;
	background: #f4c430;
	border: none;
	border-radius: 50%;
	color: #000;
	cursor: pointer;
	display: flex;
	height: 2.5rem;
	justify-content: center;
	padding: 0;
	position: absolute;
	right: 1rem;
	top: 1rem;
	width: 2.5rem;
	z-index: 10;
	transition: background 0.2s ease, transform 0.2s ease;
}

.tff-modal__close:hover,
.tff-modal__close:focus-visible {
	background: #e0b020;
	transform: scale(1.05);
}

.tff-modal__close:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.tff-modal__close span {
	font-size: 1.5rem;
	line-height: 1;
	display: block;
	height: 30px;
}

.tff-modal__slider-wrap {
	background: #2d2d2d;
	flex-shrink: 0;
	position: relative;
	width: 100%;
}

.tff-modal__slider {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.tff-modal__slider-track {
	display: flex;
	height: 100%;
	transition: transform 0.35s ease;
	width: 100%;
	will-change: transform;
}

.tff-modal__slide {
	flex: 0 0 100%;
	height: 100%;
	position: relative;
	width: 100%;
}

.tff-modal__slide-img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.tff-modal__slider-arrow {
	align-items: center;
	background: rgba(0, 0, 0, 0.50);
    backdrop-filter: blur(3px);
	border: none;
	border-radius: 50%;
	bottom: 4%;
	color: #fff;
	cursor: pointer;
	display: none;
	height: 53px;
	justify-content: center;
	padding: 0;
	position: absolute;
	transform: translateY(4%);
	width: 53px;
	z-index: 2;
	transition: background 0.2s ease, opacity 0.2s ease;
}

.tff-modal__slider-wrap--has-arrows .tff-modal__slider-arrow {
	display: flex;
}

.tff-modal__slider-arrow:hover,
.tff-modal__slider-arrow:focus-visible {
	background: rgba(0, 0, 0, 0.9);
}

.tff-modal__slider-arrow:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.tff-modal__slider-arrow--prev {
	left: 1rem;
}

.tff-modal__slider-arrow--next {
	right: 1rem;
}

@media (max-width: 767px) {
	.tff-modal__slider-wrap--has-arrows .tff-modal__slider-arrow {
		display: none;
	}
}

.tff-modal__slider-dots {
	align-items: center;
	bottom: 0.75rem;
	display: none;
	gap: 0.5rem;
	justify-content: center;
	left: 0;
	position: absolute;
	right: 0;
	z-index: 2;
}

.tff-modal__slider-dots--multiple {
	display: flex;
}

.tff-modal__slider-dot {
	background: rgba(255, 255, 255, 0.6);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	height: 8px;
	padding: 0;
	transition: background 0.2s ease, transform 0.2s ease;
	width: 8px;
}

.tff-modal__slider-dot:hover {
	background: rgba(255, 255, 255, 0.9);
}

.tff-modal__slider-dot.is-active {
	background: #fff;
	transform: scale(1.25);
	width: 23px;
	border-radius: 12px;
}

.tff-modal__body {
	flex: 1;
	overflow-y: auto;
	padding: 1.5rem 1.5rem 2rem;
	-webkit-overflow-scrolling: touch;
}

.tff-modal__headline {
	color: #142132;
	font-family: var(--font-heading, inherit);
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 0.5rem;
}

.tff-modal__description {
	color: #626262;
	font-size: 1rem;
	line-height: 1.6;
	font-weight: 400;
}

.tff-modal__description p {
	margin: 0.75em 0;
}

.tff-modal__description p:first-child {
	margin-top: 0;
}

.tff-modal__description strong {
	font-weight: 700;
	color: #1e1e1e;
}

.tff-modal__description ul {
	list-style: none;
	margin: 0.75em 0 1em;
	padding: 0 0 0 1.25em;
}

.tff-modal__description ul li {
	margin: 0.35em 0;
	padding-left: 1em;
	position: relative;
}

.tff-modal__description ul li::before {
	content: "";
	background: #f4c430;
	border-radius: 2px;
	height: 6px;
	left: 0;
	position: absolute;
	top: 0.55em;
	width: 6px;
}

body.tff-modal-open {
	overflow: hidden;
}

/* Desktop: modal panel ~60–70% width, right-aligned */
@media (min-width: 768px) {
	.tff-modal__panel {
		max-width: 34%;
		border-radius: 12px 0 0 12px;
	}
}

@media (min-width: 1024px) {
	.tff-modal__panel {
		max-width: 34%;
	}

	.tff-modal__body {
		padding: 2rem 2.5rem 2.5rem;
	}

	.tff-modal__headline {
		font-size: 2.25rem;
	}
}

/* Mobile: ensure headline and X are never hidden */
@media (max-width: 767px) {
	.tff-modal__panel {
		border-radius: 12px 12px 0 0;
		margin-top: auto;
		max-height: 92vh;
	}

	.tff-modal[aria-hidden="true"] .tff-modal__panel {
		transform: translateY(100%);
	}

	.tff-modal[aria-hidden="false"] .tff-modal__panel {
		transform: translateY(0);
	}

	.tff-modal__close {
		right: 0.75rem;
		top: 0.75rem;
	}

	.tff-modal__headline {
		font-size: 2rem;
	}
}