/* ==========================================================
   DIGBANG — SHARED FAQ BANNER
========================================================== */

.db-faq-banner {
	position: relative;

	width: 100%;
	height: 410.99px;

	margin-top: 88px;

	direction: rtl;
}

.db-faq-banner,
.db-faq-banner * {
	box-sizing: border-box;
}


/* ==========================================================
   BACKGROUND
========================================================== */

.db-faq-banner__background {
	position: absolute;
	top: 79px;
	right: 0;

	width: 100%;
	height: 252px;

	background: #FDF6F6;
}


/* ==========================================================
   CONTENT
========================================================== */

.db-faq-banner__content {
	position: absolute;
	right: 251px;
	bottom: 27px;
	z-index: 2;

	text-align: right;
}

.db-faq-banner__title {
	margin: 0;

	color: #3D3631;

	font-family: "Vazirmatn", sans-serif;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.5;
}

.db-faq-banner__subtitle {
	margin: 0;

	color: #3D3631;

	font-family: "Vazirmatn", sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.8;
}

.db-faq-banner__description {
	margin: 20px 0 0;

	color: #3D3631;

	font-family: "Vazirmatn", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.9;

	text-align: right;
}


/* ==========================================================
   BUTTON
========================================================== */

.db-faq-banner__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-width: 138.17px;
	min-height: 35.28px;

	margin-top: 20px;
	padding: 8px 26.13px;

	color: #FFFFFF;
	background: #FF6600;

	border: 0;
	border-radius: 5.23px;

	font-family: "Vazirmatn", sans-serif;
	font-size: 11.76px;
	font-weight: 600;
	line-height: 1;

	text-decoration: none;

	gap: 7.84px;
}

.db-faq-banner__button:hover,
.db-faq-banner__button:focus-visible {
	color: #FFFFFF;
	background: #CC5200;
}

.db-faq-banner__button-icon {
	display: block;

	width: 13.07px;
	height: 13.07px;

	object-fit: contain;
}


/* ==========================================================
   HAND IMAGE
========================================================== */

.db-faq-banner__hand {
	position: absolute;
	right: 60px;
	bottom: 0;
	z-index: 3;

	display: block;

	width: 145px;
	height: 328px;

	object-fit: contain;
	object-position: center bottom;
}


/* ==========================================================
   ACCORDION
========================================================== */

.db-faq-banner__accordion {
	position: absolute;
	top: 50%;
	left: 60px;
	z-index: 4;

	display: flex;
	flex-direction: column;

	width: 441px;
	min-height: 288px;

	padding: 32px;

	background: #F6EDDE;
	border-radius: 28px;

	box-shadow: 0 8px 24px rgba(61, 54, 49, 0.12);

	gap: 22px;

	transform: translateY(-50%);
}

.db-faq-banner__item {
	width: 100%;
}


/* ==========================================================
   QUESTION
========================================================== */

.db-faq-banner__question {
	display: flex;

	/*
	 * آیکن + نسبت به خط اول متن تراز می‌شود،
	 * نه نسبت به کل ارتفاع سؤال.
	 */
	align-items: flex-start;

	justify-content: space-between;

	width: 100%;
	min-height: 60px;

	padding: 16px 20px;

	color: #3D3631;
	background: transparent;

	border: 1px solid #261402;
	border-radius: 12px;

	font-family: "Vazirmatn", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.7;

	text-align: right;

	cursor: pointer;
}

.db-faq-banner__question-text {
	flex: 1;

	padding-left: 16px;
}


/* ==========================================================
   PLUS ICON
========================================================== */

.db-faq-banner__plus {
	display: block;
	flex: 0 0 12.5px;

	width: 12.5px;
	height: 12.5px;

	/*
	 * تراز دقیق‌تر با مرکز خط اول سؤال
	 */
	margin-top: 7px;

	object-fit: contain;

	transition: transform 0.2s ease;
}


/* ==========================================================
   OPEN ITEM
========================================================== */

.db-faq-banner__item.is-open {
	background: #FFFFFF;

	border: 1px solid #261402;
	border-radius: 12px;
}

.db-faq-banner__item.is-open .db-faq-banner__question {
	min-height: auto;

	padding-bottom: 8px;

	background: #FFFFFF;

	border: 0;
	border-radius: 12px 12px 0 0;
}

.db-faq-banner__item.is-open .db-faq-banner__plus {
	transform: rotate(45deg);
}


/* ==========================================================
   ANSWER
========================================================== */

.db-faq-banner__answer {
	padding: 0 20px 16px;

	color: #3D3631;
	background: #FFFFFF;

	border-radius: 0 0 12px 12px;
}

.db-faq-banner__answer p {
	margin: 0;

	font-family: "Vazirmatn", sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.9;

	text-align: right;
}

/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1199px) {

	.db-faq-banner {
		height: auto;
		min-height: 600px;
	}

	.db-faq-banner__background {
		position: relative;
		top: 0;

		height: auto;
		min-height: 500px;

		padding: 48px 32px;
	}

	.db-faq-banner__content {
		position: relative;
		right: auto;
		bottom: auto;

		width: calc(100% - 500px);
	}

	.db-faq-banner__accordion {
		left: 32px;
		top: 48px;
	}

	.db-faq-banner__hand {
		right: 32px;
	}

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 767px) {

	.db-faq-banner {
		position: relative;

		width: 100%;
		height: auto;
		min-height: 0;

		margin-top: 56px;

		padding: 0;

		overflow: visible;
	}


	/* ======================================================
	   BACKGROUND / MOBILE FLOW
	====================================================== */

	.db-faq-banner__background {
		position: relative;

		top: auto;
		right: auto;

		display: flex;
		flex-direction: column;

		width: 100%;
		height: auto;
		min-height: 0;

		padding: 40px 16px 0;

		background: #FDF6F6;
	}


	/* ======================================================
	   CONTENT
	====================================================== */

	.db-faq-banner__content {
		position: relative;

		right: auto;
		bottom: auto;

		order: 1;

		width: 100%;

		text-align: right;
	}


	.db-faq-banner__title {
		margin: 0;

		font-size: 26px;
		line-height: 1.5;
	}


	.db-faq-banner__subtitle {
		margin: 0;

		font-size: 15px;
		line-height: 1.8;
	}


	.db-faq-banner__description {
		margin: 16px 0 0;

		font-size: 15px;
		line-height: 1.9;
	}


	.db-faq-banner__description br {
		display: none;
	}


	/* ======================================================
	   BUTTON
	====================================================== */

	.db-faq-banner__button {
		margin-top: 16px;
	}


	/* ======================================================
	   ACCORDION
	====================================================== */

	.db-faq-banner__accordion {
		position: relative;

		top: auto;
		left: auto;

		order: 2;

		width: 100%;
		min-height: 0;

		margin: 32px 0 0;
		padding: 20px;

		background: #F6EDDE;

		border-radius: 20px;

		gap: 16px;

		transform: none;

		box-shadow:
			0 8px 24px rgba(61, 54, 49, 0.08);
	}


	.db-faq-banner__item {
		width: 100%;
	}


	.db-faq-banner__question {
		width: 100%;
		min-height: 56px;

		padding: 14px 16px;

		font-size: 14px;
		line-height: 1.7;
	}


	.db-faq-banner__question-text {
		padding-left: 12px;
	}


	.db-faq-banner__answer {
		padding: 0 16px 14px;
	}


	.db-faq-banner__answer p {
		font-size: 13px;
		line-height: 1.9;
	}


	/* ======================================================
	   HAND IMAGE
	====================================================== */
.db-faq-banner__hand {
	display: none !important;
}
}

/* ==========================================================
   HOME VARIANT
   SAME COMPONENT — COLORS ONLY
========================================================== */


/* ==========================================================
   BACKGROUND
========================================================== */

.db-faq-banner--home .db-faq-banner__background {
	background: #261402;
}


/* ==========================================================
   CONTENT COLORS
========================================================== */

.db-faq-banner--home .db-faq-banner__title {
	color: #FFFFFF;
}

.db-faq-banner--home .db-faq-banner__subtitle {
	color: #FFFFFF;
}

.db-faq-banner--home .db-faq-banner__description {
	color: #F6EDDE;
}


/* ==========================================================
   BUTTON
========================================================== */

.db-faq-banner--home .db-faq-banner__button {
	color: #FFFFFF;
	background: #FF6600;
}

.db-faq-banner--home .db-faq-banner__button:hover,
.db-faq-banner--home .db-faq-banner__button:focus-visible {
	color: #FFFFFF;
	background: #CC5200;
}


/* ==========================================================
   ACCORDION
========================================================== */

.db-faq-banner--home .db-faq-banner__accordion {
	background: #261402;

	border: 1px solid #6A452B;

	box-shadow:
		0 8px 24px rgba(38, 20, 2, 0.22);
}


/* ==========================================================
   CLOSED QUESTION
========================================================== */

.db-faq-banner--home .db-faq-banner__question {
	color: #FFFFFF;

	background: #4B2D19;

	border-color: #8E6B52;
}


/* ==========================================================
   OPEN ITEM
========================================================== */

.db-faq-banner--home .db-faq-banner__item.is-open {
	background: #FFFFFF;

	border-color: #F6EDDE;
}

.db-faq-banner--home
.db-faq-banner__item.is-open
.db-faq-banner__question {
	color: #261402;

	background: #FFFFFF;
}


/* ==========================================================
   ANSWER
========================================================== */

.db-faq-banner--home .db-faq-banner__answer {
	color: #261402;
	background: #FFFFFF;
}

.db-faq-banner--home .db-faq-banner__answer p {
	color: #261402;
}