/* ============================================================
   Osoulk FAQ Accordion – Styles
   ============================================================ */

.osoulk-faq-accordion {
	max-width: 860px;
	margin: 0 auto;
	padding: 0;
	font-family: inherit;
}

.osoulk-faq-item {
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	margin-bottom: 12px;
	overflow: hidden;
	background: #ffffff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	transition: box-shadow 0.25s ease;
}

.osoulk-faq-item:hover {
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
}

/* Question button */
.osoulk-faq-question {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	background: transparent;
	border: none;
	cursor: pointer;
	text-align: right;
	direction: rtl;
	font-size: 1rem;
	font-weight: 600;
	color: #1a202c;
	transition: background 0.2s ease, color 0.2s ease;
}

.osoulk-faq-question:hover,
.osoulk-faq-item.is-open .osoulk-faq-question {
	background: #f7faff;
	color: #004DA8;
}

.osoulk-faq-question-text {
	flex: 1;
	line-height: 1.5;
}

/* Chevron icon */
.osoulk-faq-icon {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #eef3ff;
	color: #004DA8;
	transition: transform 0.3s ease, background 0.2s ease;
}

.osoulk-faq-item.is-open .osoulk-faq-icon {
	transform: rotate(180deg);
	background: #004DA8;
	color: #ffffff;
}

/* Answer region */
.osoulk-faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.35s ease;
}

.osoulk-faq-answer[hidden] {
	display: block !important; /* override browser hidden so CSS transition works */
	max-height: 0;
	visibility: hidden;
}

.osoulk-faq-item.is-open .osoulk-faq-answer {
	max-height: 1000px;
	visibility: visible;
}

.osoulk-faq-answer-inner {
	padding: 0 22px 20px 22px;
	direction: rtl;
	text-align: right;
	color: #4a5568;
	line-height: 1.75;
	font-size: 0.95rem;
	border-top: 1px solid #e2e8f0;
}

.osoulk-faq-answer-inner p:first-child {
	margin-top: 14px;
}

/* Empty state */
.osoulk-faq-empty {
	text-align: center;
	color: #718096;
	font-style: italic;
}

/* Responsive */
@media (max-width: 600px) {
	.osoulk-faq-question {
		padding: 14px 16px;
		font-size: 0.9rem;
	}
	.osoulk-faq-answer-inner {
		padding: 0 16px 16px;
	}
}
