/*
	File: assets/css/04-faq.css
	Description: Centered FAQ accordion and no-script fallback styles.
	Last modified: 2026-07-17
	Copyright: (c) 2026 mytag.sol Community. All rights reserved.
*/

.faq-section {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.45rem;
	width: 100%;
	max-width: var(--content-width);
	margin: 0 auto;
	padding: 3rem 1.2rem;
	color-scheme: only dark;
}

.faq-list {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	width: min(100%, 720px);
	margin: 0 auto;
}

.faq-item {
	overflow: hidden;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-card);
	background: linear-gradient(135deg, rgba(31, 14, 82, 0.62), rgba(14, 0, 31, 0.64));
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.32);
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.faq-item.is-open {
	border-color: var(--color-border-strong);
	box-shadow: var(--shadow-card);
}

.faq-q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
	min-height: 58px;
	padding: 1rem 1.15rem;
	border: 0;
	background: transparent;
	color: rgba(255, 255, 255, 0.92);
	font-size: clamp(0.95rem, 2vw, 1.05rem);
	font-weight: 600;
	line-height: 1.35;
	text-align: left;
	transition: color 0.18s ease;
}

.faq-q:hover,
.faq-q[aria-expanded="true"] {
	color: var(--color-gold);
}

.faq-chevron {
	position: relative;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
}

.faq-chevron::before,
.faq-chevron::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 9px;
	height: 2px;
	border-radius: 2px;
	background: rgba(255, 192, 0, 0.86);
	transition: transform 0.22s ease;
}

.faq-chevron::before {
	right: 50%;
	transform: translateY(-50%) rotate(45deg) translateX(2.5px);
}

.faq-chevron::after {
	left: 50%;
	transform: translateY(-50%) rotate(-45deg) translateX(-2.5px);
}

.faq-q[aria-expanded="true"] .faq-chevron::before {
	transform: translateY(-50%) rotate(-45deg) translateX(2.5px);
}

.faq-q[aria-expanded="true"] .faq-chevron::after {
	transform: translateY(-50%) rotate(45deg) translateX(-2.5px);
}

.faq-a {
	overflow: hidden;
	max-height: none;
	transition: max-height 0.24s ease;
}

.js .faq-a {
	max-height: 0;
}

.faq-a:not([hidden]) {
	max-height: 560px;
}

.no-js .faq-a,
.no-js .faq-a:not([hidden]) {
	max-height: none;
}

.faq-a[hidden] {
	display: block !important;
	visibility: hidden;
}

.faq-a p {
	padding: 0 1.15rem 1.1rem;
	color: var(--color-text-muted);
	font-size: clamp(0.88rem, 2vw, 0.97rem);
	line-height: var(--line-readable);
	text-align: left;
}

.faq-a a {
	color: rgba(255, 192, 0, 0.86);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.faq-a a:hover {
	color: var(--color-gold-bright);
}

@media (min-width: 640px) {
	.faq-section {
		padding-right: 2rem;
		padding-left: 2rem;
	}
}

@media print {
	.faq-a {
		display: block !important;
		max-height: none !important;
		visibility: visible !important;
	}

	.faq-chevron {
		display: none;
	}

	.faq-item {
		border: 1px solid #cccccc !important;
		background: #ffffff !important;
		box-shadow: none !important;
	}
}
