/**
 * FAQ Page Styles - Accordion Style
 * Based on screenshot 3 design
 *
 * @package Together_Theme
 * @since 1.0.0
 */

.together-faq-page {
	background: #fff;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px;
}

.together-faq-page .container {
	max-width: 100%;
	padding: 0;
}

.together-faq-page .page-header {
	margin-bottom: 40px;
	padding-bottom: 0;
	border-bottom: none;
}

.together-faq-page .page-title {
	font-size: 2.5em;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 20px 0;
	line-height: 1.3;
}

.faq-content-wrapper {
	background: transparent;
	position: relative;
	overflow: visible;
	width: 100%;
}

/* Hide ALL black shapes and decorative elements aggressively */
.faq-content-wrapper *[style*="background: black"],
.faq-content-wrapper *[style*="background:#000"],
.faq-content-wrapper *[style*="background-color: black"],
.faq-content-wrapper *[style*="background-color:#000"],
.faq-content-wrapper *[style*="background-color:black"],
.faq-content-wrapper *[style*="background-color: rgb(0, 0, 0)"],
.faq-content-wrapper *[style*="background-color:rgb(0,0,0)"],
.faq-content-wrapper *[style*="background-color:#000000"],
.faq-content-wrapper *[style*="background:#000000"] {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	overflow: hidden !important;
	width: 0 !important;
	opacity: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* FAQ Section (H2) Styling */
.faq-section {
	margin-bottom: 50px;
}

.faq-section-title {
	font-size: 1.8em;
	font-weight: 600;
	color: #1a1a1a;
	margin: 60px 0 30px 0;
	padding-top: 40px;
	border-top: 2px solid #e9ecef;
	display: flex;
	align-items: center;
	gap: 12px;
}

.faq-section:first-of-type .faq-section-title {
	border-top: none;
	padding-top: 0;
	margin-top: 0;
}

.faq-section-icon {
	font-size: 1.2em;
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #ff6b35;
	border-radius: 50%;
	flex-shrink: 0;
}

/* FAQ Accordion Container */
.faq-accordion {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin-bottom: 30px;
}

/* FAQ Item */
.faq-item {
	border: 1px solid #e9ecef;
	border-radius: 8px;
	margin-bottom: 12px;
	background: #fff;
	overflow: hidden;
	transition: all 0.3s ease;
}

.faq-item:hover {
	border-color: #447AB3;
	box-shadow: 0 2px 8px rgba(61, 78, 243, 0.1);
}

/* FAQ Question Button */
.faq-question {
	width: 100%;
	background: transparent;
	border: none;
	padding: 18px 24px;
	text-align: left;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	font-size: 1.05em;
	font-weight: 600;
	color: #447AB3;
	transition: all 0.3s ease;
	font-family: inherit;
}

.faq-question:hover {
	color: #2d3dd3;
	background: #f8f9fa;
}

.faq-question.active {
	color: #447AB3;
	background: #f8f9fa;
}

.faq-question-text {
	flex: 1;
	margin: 0;
	padding: 0;
}

/* FAQ Icon (Plus/Minus) */
.faq-icon {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	position: relative;
	color: #447AB3;
	display: flex;
	align-items: center;
	justify-content: center;
}

.faq-icon svg {
	width: 24px;
	height: 24px;
	display: block;
	transition: opacity 0.3s ease;
	position: absolute;
	top: 0;
	left: 0;
}

.faq-icon-plus {
	opacity: 1;
}

.faq-icon-minus {
	opacity: 0;
}

.faq-question.active .faq-icon-plus {
	opacity: 0;
	display: none;
}

.faq-question.active .faq-icon-minus {
	opacity: 1;
	display: block;
}

/* FAQ Answer */
.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease, padding 0.4s ease;
	background: #fff;
	padding: 0 24px;
}

.faq-answer.active {
	max-height: 2000px;
	padding: 0 24px 24px 24px;
}

.faq-answer-content {
	padding-top: 20px;
	color: #666;
	line-height: 1.8;
	font-size: 1em;
}

.faq-answer-content p {
	margin-bottom: 15px;
	color: #666;
}

.faq-answer-content p:last-child {
	margin-bottom: 0;
}

.faq-answer-content ul,
.faq-answer-content ol {
	margin: 15px 0 15px 25px;
	padding: 0;
	color: #666;
}

.faq-answer-content li {
	margin-bottom: 10px;
	line-height: 1.7;
}

.faq-answer-content strong,
.faq-answer-content b {
	font-weight: 600;
	color: #333;
}

/* Hide any problematic elements */
.faq-content-wrapper svg:not(.faq-icon svg) {
	display: none !important;
}

.faq-content-wrapper [class*="shape"],
.faq-content-wrapper [class*="decoration"],
.faq-content-wrapper [class*="blob"] {
	display: none !important;
}

/* Ensure no overflow */
.faq-content-wrapper {
	overflow-x: hidden;
	word-wrap: break-word;
}

.faq-content-wrapper * {
	box-sizing: border-box;
}

/* Responsive Design */
@media (max-width: 768px) {
	.together-faq-page {
		padding: 20px 15px;
	}
	
	.together-faq-page .page-title {
		font-size: 2em;
	}
	
	.faq-section-title {
		font-size: 1.5em;
		margin: 40px 0 25px 0;
		padding-top: 30px;
		flex-wrap: wrap;
	}
	
	.faq-section-icon {
		width: 35px;
		height: 35px;
		font-size: 1em;
	}
	
	.faq-question {
		padding: 15px 18px;
		font-size: 0.95em;
	}
	
	.faq-answer.active {
		padding: 0 18px 18px 18px;
	}
	
	.faq-answer-content ul,
	.faq-answer-content ol {
		margin-left: 20px;
	}
}
