/* =========================================================================
 * Trang chi tiết Catalogue (chế độ FULL) — flipbook nhúng + nút fullscreen + FAQ
 * Font kế thừa "Lexend" từ body. Tông màu brand: var(--primary-color).
 * ====================================================================== */

.idn-cat {
	max-width: 1180px;
	margin: 0 auto;
	padding: 28px 16px 60px;
}

.idn-cat__title {
	text-align: center;
	font-size: 28px;
	font-weight: 700;
	color: #1f2430;
	margin: 6px 0 22px;
	line-height: 1.3;
}

/* ----- Khung flipbook nhúng (iframe) ----- */
.idn-cat__viewer {
	position: relative;
	width: 100%;
	background: #2f2f37;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}

.idn-cat__frame {
	display: block;
	width: 100%;
	height: 76vh;
	min-height: 480px;
	max-height: 820px;
	border: 0;
}

/* ----- Nút "Xem toàn màn hình" ----- */
.idn-cat__actions {
	text-align: center;
	margin: 22px 0 8px;
}

.idn-cat__fs {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--primary-color, #2496ea);
	color: #fff;
	border: 0;
	border-radius: 30px;
	padding: 13px 32px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: filter .2s, transform .1s;
}

.idn-cat__fs:hover { filter: brightness(.93); }
.idn-cat__fs:active { transform: translateY(1px); }
.idn-cat__fs svg { display: block; }

.idn-cat__empty {
	text-align: center;
	color: #d63638;
	padding: 40px 0;
	font-size: 16px;
}

/* ----- Câu hỏi thường gặp (accordion) ----- */
.idn-cat-faq {
	max-width: 980px;
	margin: 46px auto 0;
}

.idn-cat-faq__title {
	text-align: center;
	font-size: 26px;
	font-weight: 700;
	color: #1f2430;
	margin: 0 0 28px;
}

.idn-cat-faq__item {
	border: 1px solid #e3e6ec;
	border-radius: 14px;
	background: #fff;
	margin-bottom: 20px;
	box-shadow: 0 2px 10px rgba(17, 24, 39, .04);
	overflow: hidden;
}

.idn-cat-faq__q {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 26px;
	background: none;
	border: 0;
	margin: 0;
	text-align: left;
	font-size: 17px;
	font-weight: 600;
	color: #1f2430;
	cursor: pointer;
	line-height: 1.45;
}

/* Vòng tròn đen + mũi tên xuống (xoay khi mở) */
.idn-cat-faq__ico {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #2b2f3a;
	position: relative;
	transition: transform .3s ease;
}

.idn-cat-faq__ico::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 44%;
	width: 8px;
	height: 8px;
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: translate(-50%, -50%) rotate(45deg);
}

.idn-cat-faq__item.is-open .idn-cat-faq__ico { transform: rotate(180deg); }

/* Thân câu trả lời: đóng/mở bằng max-height (JS set theo nội dung) */
.idn-cat-faq__a {
	max-height: 0;
	overflow: hidden;
	transition: max-height .35s ease;
}

.idn-cat-faq__a-inner {
	padding: 0 26px 22px;
	color: #4a5160;
	font-size: 15.5px;
	line-height: 1.7;
}

.idn-cat-faq__a-inner p:first-child { margin-top: 0; }
.idn-cat-faq__a-inner p:last-child { margin-bottom: 0; }

/* ----- Mobile ----- */
@media (max-width: 768px) {
	.idn-cat__title { font-size: 22px; }
	.idn-cat__frame { height: 64vh; min-height: 380px; }
	.idn-cat-faq__title { font-size: 21px; }
	.idn-cat-faq__q { padding: 18px 18px; font-size: 15.5px; }
	.idn-cat-faq__a-inner { padding: 0 18px 18px; }
}
