/* ============================================================
   Category FAQ Block — Frontend Styles
   Matches your original design + adds column-grid support.
   ============================================================ */

/* ---------- Base wrapper ---------- */
.cat-faq {
	width: 100%;
	display: grid;
	grid-template-columns: 1fr;         /* default: 1 col */
	gap: 15px;
	align-items: start;                 /* items don't stretch to each other */
}

/* ---------- Column variants ---------- */
.cat-faq--cols-2 {
	grid-template-columns: repeat(2, 1fr);
}

.cat-faq--cols-3 {
	grid-template-columns: repeat(3, 1fr);
}

.cat-faq--cols-4 {
	grid-template-columns: repeat(4, 1fr);
}

/* ---------- Individual item ---------- */
.cat-faq__item {
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
	/* Remove margin-bottom – gap on the grid handles spacing */
}

/* ---------- Question row ---------- */
.cat-faq__question {
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	padding: 14px 18px;
	user-select: none;
}

.cat-faq__question-text {
	margin: 0;
	padding: 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	flex: 1;
}

.cat-faq__question:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -2px;
}

/* ---------- Plus / × icon ---------- */
.cat-faq__icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	margin-left: 12px;
	transition: transform 0.3s ease;
}

.cat-faq__item.active .cat-faq__icon {
	transform: rotate(45deg);
}

/* ---------- Answer (accordion) ---------- */
.cat-faq__answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.35s ease;
}

.cat-faq__content {
	padding: 15px 18px;
	font-size: 16px;
	line-height: 1.6;
	border-top: 1px solid #eee;
}

.cat-faq__content p:last-child {
	margin-bottom: 0;
}

/* ---------- Responsive: collapse to 1 col on mobile ---------- */
@media ( max-width: 767px ) {
	.cat-faq--cols-2,
	.cat-faq--cols-3,
	.cat-faq--cols-4 {
		grid-template-columns: 1fr;
	}
}

/* Tablet: max 2 cols for 3 or 4 col layouts */
@media ( min-width: 768px ) and ( max-width: 1023px ) {
	.cat-faq--cols-3,
	.cat-faq--cols-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}
