/**
 * Axxanoid FAQs - Public-Facing Styles
 *
 * This file contains the styles for the rendered FAQ list.
 */

/* Search/Filter Bar */
.axxanoid-faqs-search-wrapper {
	margin-bottom: 15px;
}

.axxanoid-faq-search-input {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #ccc;
	border-radius: 3px;
	box-sizing: border-box; /* Important for 100% width */
	font-size: 1em;
	transition: border-color 0.2s;
}
.axxanoid-faq-search-input:focus {
	border-color: #007cba;
	outline: none;
}
/* Controls for Open/Close All */
.axxanoid-faqs-controls {
	margin-bottom: 15px;
	display: flex;
	gap: 10px;
}

.axxanoid-faq-control-button {
	background: none;
	border: 1px solid #ccc;
	padding: 5px 12px;
	cursor: pointer;
	border-radius: 3px;
	font-size: 0.9em;
	color: #555;
	transition: background-color 0.2s, border-color 0.2s;
}

.axxanoid-faq-control-button:hover {
	background-color: #f0f0f0;
}
/* Main container for the FAQ block */
.axxanoid-faqs-container {
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	overflow: hidden;
}

/* Individual FAQ item */
.axxanoid-faq-item {
	border-bottom: 1px solid #e0e0e0;
}

.axxanoid-faq-item:last-child {
	border-bottom: none;
}

/* The clickable question part */
.axxanoid-faq-question {
	padding: 15px 20px 15px 35px; /* Extra left padding for the arrow */
	font-weight: bold;
	cursor: pointer;
	position: relative;
	list-style: none; /* Hide the default triangle marker */
	transition: background-color 0.2s ease-in-out;
}

/* Custom arrow marker */
.axxanoid-faq-question::before {
	content: '►';
	position: absolute;
	left: 15px;
	top: 50%;
	transform: translateY(-50%) rotate(0deg);
	transition: transform 0.2s ease-in-out;
	font-size: 0.8em;
	color: #777;
}

.axxanoid-faq-item[open] > .axxanoid-faq-question::before {
	transform: translateY(-50%) rotate(90deg);
}

/* The answer content area */
.axxanoid-faq-answer {
	padding: 5px 20px 20px 35px; /* Align with question text */
	line-height: 1.6;
}

/* Answer content with a featured image */
.axxanoid-faq-category-image {
	float: left;
	margin-right: 15px;
	margin-bottom: 10px;
	max-width: 150px;
}

.axxanoid-faq-answer::after {
	content: "";
	display: table;
	clear: both;
}
/* No Results Message */
.axxanoid-faqs-no-results {
	padding: 20px;
	text-align: center;
	color: #777;
}