/**
 * FAQ Accordion Block Styles
 *
 * Clean modern editorial Q&A layout.
 * Semantic classes: .trip-faq-*, .blogs-faq-*, .faq-*
 *
 * @package Brandalay
 * @since 1.0.0
 */

.trip-faq-section,
.blogs-faq-section,
.faq-section {
	padding: 4.5rem 0 5rem 0;
	background-color: #f8fafc;
}

.trip-faq-head,
.blogs-faq-head,
.faq-header {
	text-align: center;
	margin-bottom: 2rem;
}

.trip-faq-head .faq-title,
.blogs-faq-head .faq-title,
.faq-header .section-title,
.faq-header .faq-title {
	font-size: clamp(1.75rem, 3.5vw, 2.35rem);
	font-weight: 700;
	color: #0b2938;
	letter-spacing: -0.025em;
	line-height: 1.25;
	margin: 0 0 0.75rem 0;
}

.trip-faq-head .faq-subtitle,
.blogs-faq-head .faq-subtitle,
.faq-header .section-subtitle,
.faq-header .faq-subtitle {
	font-size: 1rem;
	line-height: 1.65;
	color: #64748b;
	max-width: 680px;
	margin: 0 auto;
}

/* Master Expand All / Hide All Toolbar */
.faq-toolbar {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	margin-bottom: 1.15rem;
}

.faq-toggle-all {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 9999px;
	padding: 0.45rem 1.1rem;
	font-family: inherit;
	font-size: 0.85rem;
	font-weight: 600;
	color: #475569;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(11, 41, 56, 0.04);
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	line-height: 1.3;
}

.faq-toggle-all:hover {
	color: #0b2938;
	border-color: #cbd5e1;
	background: #f1f5f9;
	box-shadow: 0 2px 6px rgba(11, 41, 56, 0.06);
}

.faq-toggle-icon {
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-toggle-all.is-expanded .faq-toggle-icon {
	transform: rotate(180deg);
}

/* Accordion Container & Cards */
.trip-faq-list,
.blogs-faq-list,
.faq-list,
.faq-accordion {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.trip-faq-item,
.blogs-faq-item,
.faq-item {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: 0 1px 3px 0 rgba(11, 41, 56, 0.03), 0 1px 2px -1px rgba(11, 41, 56, 0.02);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.trip-faq-item:hover,
.blogs-faq-item:hover,
.faq-item:hover {
	border-color: #cbd5e1;
	box-shadow: 0 4px 12px rgba(11, 41, 56, 0.05);
}

.trip-faq-item.is-open,
.blogs-faq-item.is-open,
.faq-item.is-open {
	border-color: #cbd5e1;
	box-shadow: 0 4px 16px rgba(11, 41, 56, 0.06);
}

/* Trigger Button */
.trip-faq-header,
.blogs-faq-header,
.trip-faq-trigger,
.blogs-faq-trigger,
.faq-button,
.faq-trigger {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.25rem 1.65rem;
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
	font-family: inherit;
	gap: 1.25rem;
	outline: none;
}

.trip-faq-trigger:focus-visible,
.blogs-faq-trigger:focus-visible,
.faq-button:focus-visible,
.faq-trigger:focus-visible {
	outline: 2px solid #047857;
	outline-offset: -2px;
}

.trip-faq-question,
.blogs-faq-question,
.faq-question {
	font-size: 1.05rem;
	font-weight: 600;
	color: #0b2938;
	line-height: 1.45;
	flex: 1;
}

.trip-faq-icon,
.blogs-faq-icon,
.faq-icon,
.faq-icon-badge {
	color: #64748b;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease, background-color 0.2s ease;
}

.trip-faq-item:hover .faq-icon,
.blogs-faq-item:hover .faq-icon,
.faq-item:hover .faq-icon,
.trip-faq-item:hover .faq-icon-badge,
.blogs-faq-item:hover .faq-icon-badge,
.faq-item:hover .faq-icon-badge {
	color: #0b2938;
}

.trip-faq-item.is-open .faq-icon,
.blogs-faq-item.is-open .faq-icon,
.faq-item.is-open .faq-icon,
.trip-faq-item.is-open .faq-icon-badge,
.blogs-faq-item.is-open .faq-icon-badge,
.faq-item.is-open .faq-icon-badge {
	transform: rotate(180deg);
	color: #047857;
	background-color: #f0fdf4;
}

/* Content Area */
.trip-faq-body,
.blogs-faq-body,
.trip-faq-answer,
.blogs-faq-answer,
.faq-answer-wrap {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
	opacity: 0;
}

.trip-faq-item.is-open .trip-faq-body,
.blogs-faq-item.is-open .blogs-faq-body,
.trip-faq-item.is-open .faq-answer-wrap,
.blogs-faq-item.is-open .faq-answer-wrap,
.faq-item.is-open .faq-answer-wrap {
	opacity: 1;
}

.trip-faq-content,
.blogs-faq-content,
.faq-inner,
.faq-answer {
	padding: 0 1.65rem 1.45rem 1.65rem;
	font-size: 0.95rem;
	line-height: 1.7;
	color: #475569;
}

.faq-inner p,
.faq-answer p {
	margin: 0;
}

.faq-inner p + p,
.faq-answer p + p {
	margin-top: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
	.trip-faq-section,
	.blogs-faq-section,
	.faq-section {
		padding: 2.75rem 0;
	}

	.trip-faq-head,
	.blogs-faq-head,
	.faq-header {
		margin-bottom: 1.5rem;
	}

	.faq-header .section-title,
	.faq-header .faq-title {
		font-size: 1.65rem;
		line-height: 1.25;
		margin-bottom: 0.5rem;
	}

	.faq-header .section-subtitle,
	.faq-header .faq-subtitle {
		font-size: 0.95rem;
		line-height: 1.6;
	}

	.faq-toolbar {
		margin-bottom: 1rem;
	}

	.trip-faq-trigger,
	.blogs-faq-trigger,
	.faq-button,
	.faq-trigger {
		padding: 1.15rem 1.25rem;
		gap: 0.85rem;
	}

	.trip-faq-question,
	.blogs-faq-question,
	.faq-question {
		font-size: 0.975rem;
	}

	.trip-faq-content,
	.blogs-faq-content,
	.faq-inner,
	.faq-answer {
		padding: 0 1.25rem 1.25rem 1.25rem;
		font-size: 0.9rem;
	}

	.trip-faq-item,
	.blogs-faq-item,
	.faq-item {
		border-radius: 1rem;
		margin-bottom: 0.75rem;
	}
}
