@charset "utf-8";

/* FAQ 전용 스타일 */
.cb-faq-container {
	/* max-width: 1200px; */
	margin: 0 auto;
	padding: 120px 20px 40px; /* 상단 패딩 증가로 네비게이션 겹침 방지 */
	background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
	min-height: 100vh;
}

.cb-faq-header {
	text-align: center;
	margin-bottom: 30px;
	position: relative;
}

.cb-faq-header::before {
	content: '';
	position: absolute;
	top: -20px;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 4px;
	background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
	border-radius: 2px;
}

.cb-faq-title {
	font-size: 32px;
	font-weight: 700;
	color: #1a202c;
	margin-bottom: 15px;
	letter-spacing: -0.02em;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.cb-faq-subtitle {
	font-size: 16px;
	color: #64748b;
	font-weight: 400;
	line-height: 1.6;
}

.cb-faq-tabs-wrapper {
	display: flex;
	justify-content: center;
	margin-bottom: 0px;
}

.cb-faq-tabs {
	display: inline-flex;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 16px;
	padding: 8px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.cb-faq-tab {
	padding: 12px 28px;
	margin: 0 4px;
	border: none;
	background: transparent;
	color: #64748b;
	font-size: 0.95rem;
	font-weight: 500;
	cursor: pointer;
	border-radius: 12px;
	transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
}

.cb-faq-tab::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
	transition: left 0.5s;
}

.cb-faq-tab:hover::before {
	left: 100%;
}

.cb-faq-tab:hover {
	color: #4f46e5;
	transform: translateY(-2px);
}

.cb-faq-tab.active {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
	transform: translateY(-2px);
}

.cb-faq-controls {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 12px;
}

.cb-faq-toggle-all {
	position: relative;
	padding: 14px 28px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border: none;
	border-radius: 12px;
	color: white;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
	overflow: hidden;
	min-width: 160px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.cb-faq-toggle-all::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
	transition: left 0.6s;
}

.cb-faq-toggle-all:hover::before {
	left: 100%;
}

.cb-faq-toggle-all:hover {
	transform: translateY(-2px) scale(1.02);
	box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

.cb-faq-toggle-all:active {
	transform: translateY(0) scale(0.98);
}

.cb-faq-toggle-all.closed {
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.cb-faq-toggle-all.closed:hover {
	box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

.cb-faq-toggle-icon {
	width: 18px;
	height: 18px;
	transition: transform 0.3s ease;
}

.cb-faq-toggle-all.closed .cb-faq-toggle-icon {
	transform: rotate(180deg);
}

.cb-faq-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.cb-faq-item {
	background: rgba(255, 255, 255, 0.95);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(10px);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
}

.cb-faq-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(102, 126, 234, 0.05);
	opacity: 0;
	transition: opacity 0.3s ease;
	border-radius: 16px;
	z-index: 1;
}

.cb-faq-item:hover {
	transform: translateY(-6px) scale(1.01);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
	border-color: rgba(102, 126, 234, 0.3);
}

.cb-faq-item:hover::before {
	opacity: 1;
}

.cb-faq-item.hidden {
	display: none;
}

.cb-faq-question {
	padding: 22px 32px 18px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: rgba(255, 255, 255, 0.95);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	border-bottom: 2px solid transparent;
	z-index: 2;
}

.cb-faq-question::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 3px;
	background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.cb-faq-item:hover .cb-faq-question::after {
	opacity: 1;
}

.cb-faq-item:hover .cb-faq-question {
	background: rgba(255, 255, 255, 0.98);
	border-bottom-color: rgba(102, 126, 234, 0.1);
}

.cb-faq-item.open .cb-faq-question {
	background: rgba(255, 255, 255, 0.98);
	border-bottom-color: rgba(102, 126, 234, 0.2);
}

.cb-faq-item.open .cb-faq-question::after {
	width: 100%;
}

.cb-faq-question-text {
	font-size: 1.15rem;
	font-weight: 600;
	color: #1e293b;
	line-height: 1.5;
	flex: 1;
	margin-right: 20px;
	position: relative;
	z-index: 3;
	transition: color 0.3s ease;
}

.cb-faq-item:hover .cb-faq-question-text {
	color: #4f46e5;
}

.cb-faq-icon {
	width: 24px;
	height: 24px;
	color: #64748b;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	flex-shrink: 0;
	position: relative;
	z-index: 3;
}

.cb-faq-item:hover .cb-faq-icon {
	color: #667eea;
	transform: scale(1.1);
}

.cb-faq-item.open .cb-faq-icon {
	transform: rotate(180deg) scale(1.1);
	color: #667eea;
}

.cb-faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
	background: linear-gradient(135deg, #fafbfc 0%, #f8fafc 100%);
	border-top: 1px solid rgba(226, 232, 240, 0.5);
}

.cb-faq-answer.open {
	max-height: 1000px;
}

.cb-faq-answer-content {
	padding: 20px 32px;
	color: #475569;
	line-height: 1.8;
	font-size: 1rem;
	background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
	position: relative;
}

.cb-faq-answer-content::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 4px;
	height: 100%;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 0 2px 2px 0;
}

.cb-faq-answer-content p {
	margin-bottom: 0;
}

.cb-faq-answer-content p:last-child {
	margin-top: 8px;
	margin-bottom: 4px;
	line-height: 1.2;
}

.cb-faq-answer-content strong {
	color: #1e293b;
	font-weight: 700;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.cb-faq-answer-content ul {
	margin: 0;
	padding-left: 0;
	list-style: none;
}

.cb-faq-answer-content li {
	position: relative;
	padding: 8px 0 8px 0;
	/* margin-bottom: 6px; */
	/* background: rgba(255, 255, 255, 0.6); */
	border-radius: 8px;
	padding-left: 28px;
	padding-right: 0px;
	line-height: 1.2;
}

.cb-faq-answer-content li::before {
	content: '';
	position: absolute;
	left: 8px;
	top: 50%;
	width: 8px;
	height: 8px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 50%;
	transform: translateY(-50%);
	box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.bottom_padding_last_60 {
	height: 60px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
	.cb-faq-container {
		padding: 100px 15px 20px;
	}

	.cb-faq-title {
		font-size: 28px;
	}

	.cb-faq-subtitle {
		font-size: 14px;
	}

	.cb-faq-tabs-wrapper {
		padding: 0;
		margin-bottom: 16px;
	}

	.cb-faq-tabs::-webkit-scrollbar {
		display: none;
	}

	.cb-faq-tabs {
		width: 100%;
		display: flex;
		flex-wrap: nowrap;
		justify-content: space-between;
		gap: 0;
		padding: 8px 6px;
		border-radius: 12px;
		overflow-x: auto;
		scrollbar-width: none;
		-ms-overflow-style: none;
	}

	.cb-faq-tab {
		flex: 1;
		min-width: 0;
		padding: 12px 8px;
		margin: 0 2px;
		font-size: 0.85rem;
		text-align: center;
		white-space: nowrap;
		border-radius: 8px;
	}

	.cb-faq-question {
		padding: 20px 20px 16px;
	}

	.cb-faq-question-text {
		font-size: 1.05rem;
	}

	.cb-faq-answer-content {
		padding: 16px 20px;
	}

	.cb-faq-toggle-all {
		padding: 12px 20px;
		font-size: 0.9rem;
		min-width: 140px;
	}
}

/* 더 작은 화면을 위한 추가 최적화 */
@media (max-width: 480px) {
	.cb-faq-tabs-wrapper {
		padding: 0;
	}

	.cb-faq-tabs {
		padding: 8px 4px;
	}

	.cb-faq-tab {
		padding: 12px 4px;
		margin: 0 1px;
		font-size: 0.8rem;
	}
}

/* 스크롤바 스타일링 */
.cb-faq-container::-webkit-scrollbar {
	width: 8px;
}

.cb-faq-container::-webkit-scrollbar-track {
	background: rgba(241, 245, 249, 0.5);
	border-radius: 4px;
}

.cb-faq-container::-webkit-scrollbar-thumb {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 4px;
}

.cb-faq-container::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}
