/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/* Velix Knowledge FAQ */
.velix-knowledge {
	--faq-accent: var(--theme-palette-color-1, #635bff);
	--faq-card: var(--theme-palette-color-8, #ffffff);
	--faq-text: var(--theme-text-color, #1e293b);
	--faq-border: rgba(15, 23, 42, 0.09);
}

.velix-knowledge .rank-math-block .rank-math-list {
	display: grid;
	gap: 14px;
}

.velix-knowledge .rank-math-list-item {
	background: var(--faq-card);
	border: 1px solid var(--faq-border);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 5px 25px rgba(15, 23, 42, 0.035);
transition:
		border-color 0.25s ease,
		box-shadow 0.25s ease;
}

.velix-knowledge .rank-math-list-item:hover {
	border-color: var(--faq-accent);
	box-shadow: 0 10px 35px rgba(15, 23, 42, 0.07);
	transform: none;
}

.velix-knowledge .rank-math-list-item.is-open {
	border-color: var(--faq-accent);
	box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

/* Soru */
.velix-knowledge .rank-math-question {
	position: relative;
	margin: 0;
	padding: 20px 66px 20px 22px;
	color: var(--faq-text);
	font-size: clamp(16px, 1.5vw, 18px);
	font-weight: 650;
	line-height: 1.45;
	cursor: pointer;
	user-select: none;
	transition:
		color 0.25s ease,
		background-color 0.25s ease;
}

.velix-knowledge .rank-math-question:hover,
.velix-knowledge .rank-math-question:focus-visible,
.velix-knowledge .rank-math-list-item.is-open .rank-math-question {
	color: var(--faq-accent);
}

.velix-knowledge .rank-math-question:focus-visible {
	outline: 2px solid var(--faq-accent);
	outline-offset: -3px;
}

/* Artı / eksi ikonu */
.velix-knowledge .rank-math-question::after {
	content: "+";
	position: absolute;
	top: 50%;
	right: 20px;
	display: grid;
	width: 34px;
	height: 34px;
	place-items: center;
	border-radius: 50%;
	background: rgba(99, 91, 255, 0.09);
	color: var(--faq-accent);
	font-size: 23px;
	font-weight: 400;
	line-height: 1;
	transform: translateY(-50%);
	transition:
		transform 0.25s ease,
		background-color 0.25s ease;
}

.velix-knowledge .rank-math-list-item.is-open .rank-math-question::after {
	content: "−";
	background: var(--faq-accent);
	color: #ffffff;
}

/* Accordion cevap */
.velix-knowledge .rank-math-block.velix-faq-ready .rank-math-answer {
	max-height: 0;
	padding: 0 22px;
	overflow: hidden;
	opacity: 0;
	transition:
		max-height 0.35s ease,
		opacity 0.25s ease;
}

.velix-knowledge
	.rank-math-block.velix-faq-ready
	.rank-math-list-item.is-open
	.rank-math-answer {
	opacity: 1;
	border-top: 1px solid var(--faq-border);
}

.velix-knowledge .rank-math-answer p {
	margin: 0;
	padding: 19px 0 22px;
	color: var(--faq-text);
	font-size: 15px;
	line-height: 1.75;
}

/* Kategori başlıkları */
.velix-knowledge h2.wp-block-heading {
	position: relative;
	margin: 45px 0 20px;
	padding-left: 17px;
	font-size: clamp(24px, 3vw, 32px);
}

.velix-knowledge h2.wp-block-heading::before {
	content: "";
	position: absolute;
	top: 12%;
	bottom: 12%;
	left: 0;
	width: 5px;
	border-radius: 10px;
	background: var(--faq-accent);
}

@media (max-width: 767px) {
	.velix-knowledge .rank-math-question {
		padding: 17px 58px 17px 17px;
		font-size: 16px;
	}

	.velix-knowledge .rank-math-question::after {
		right: 15px;
		width: 30px;
		height: 30px;
	}

	.velix-knowledge .rank-math-answer {
		padding-right: 17px;
		padding-left: 17px;
	}
}