/* Guide Shortcode — Two-Column Tab Layout */

.gb-guide {
	box-sizing: border-box;
	font-family: inherit;
	margin: 0 0 2rem;
}

.gb-guide *,
.gb-guide *::before,
.gb-guide *::after {
	box-sizing: inherit;
}

/* ── Outer wrapper ── */
.gb-guide-inner {
	display: flex;
	align-items: flex-start;
	gap: 0;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	overflow: hidden;
	min-height: 300px;
}

/* ── Left nav column ── */
.gb-guide-nav-col {
	flex: 0 0 220px;
	width: 220px;
	background: #f8fafc;
	border-right: 1px solid #e2e8f0;
}

.gb-guide-nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gb-guide-nav-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px;
	cursor: pointer;
	border-bottom: 1px solid #e2e8f0;
	color: #475569;
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1.3;
	transition: background 0.15s ease, color 0.15s ease;
	gap: 8px;
}

.gb-guide-nav-item:last-child {
	border-bottom: none;
}

.gb-guide-nav-item:hover {
	background: #f1f5f9;
	color: #1e293b;
}

.gb-guide-nav-item.gb-active {
	background: #ffffff;
	color: #1e293b;
	font-weight: 600;
	border-right: 3px solid #2563eb;
	margin-right: -1px;
}

.gb-guide-count {
	flex-shrink: 0;
	background: #e2e8f0;
	color: #64748b;
	font-size: 0.75rem;
	font-weight: 600;
	padding: 2px 7px;
	border-radius: 999px;
	line-height: 1.4;
}

.gb-guide-nav-item.gb-active .gb-guide-count {
	background: #2563eb;
	color: #ffffff;
}

/* ── Right content column ── */
.gb-guide-content-col {
	flex: 1 1 0%;
	min-width: 0;
	padding: 20px;
	background: #ffffff;
}

/* ── Panels ── */
.gb-guide-panel {
	display: none;
}

.gb-guide-panel.gb-active {
	display: block;
}

/* ── Empty state ── */
.gb-guide-empty {
	padding: 2rem;
	text-align: center;
	color: #94a3b8;
	font-size: 0.9rem;
}

/* ── Responsive ── */
@media (max-width: 640px) {
	.gb-guide-inner {
		flex-direction: column;
	}

	.gb-guide-nav-col {
		flex: none;
		width: 100%;
		border-right: none;
		border-bottom: 1px solid #e2e8f0;
	}

	.gb-guide-nav-list {
		display: flex;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.gb-guide-nav-item {
		flex-shrink: 0;
		border-bottom: none;
		border-right: 1px solid #e2e8f0;
		white-space: nowrap;
	}

	.gb-guide-nav-item.gb-active {
		border-right: 1px solid #e2e8f0;
		border-bottom: 3px solid #2563eb;
		margin-right: 0;
		margin-bottom: -1px;
	}
}

/* cpt="post" simple card carousel design */
.gb-guide-post-carousel {
	margin: 0 0 2rem;
}

.gb-guide-post-carousel-swiper {
	position: relative;
}

.gb-guide-post-slide {
	padding: 0;
}

.gb-guide-post-card {
	border: 1px solid #d9d9d9;
	border-radius: 28px;
	overflow: hidden;
	background: #ffffff;
}

.gb-guide-post-image-wrap {
	line-height: 0;
}

.gb-guide-post-image-link,
.gb-guide-post-image-wrap img {
	display: block;
	width: 100%;
}

.gb-guide-post-image-wrap img {
	height: auto;
	max-height: 620px;
	object-fit: cover;
}

.gb-guide-post-title-wrap {
	padding: 26px 20px;
	text-align: center;
	background: #f4f4f4;
}

.gb-guide-post-title {
	margin: 0;
	font-size: 52px;
	line-height: 1.08;
	font-weight: 700;
}

.gb-guide-post-title-link {
	color: #000000;
	text-decoration: none;
}

.gb-guide-post-carousel-button {
	position: absolute;
	color: #ffffff;
	width: 56px;
	height: 56px;
	top: 42%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 42px;
	line-height: 1;
	cursor: pointer;
	z-index: 10;
}

.gb-guide-post-carousel-button-prev {
	left: 12px;
}

.gb-guide-post-carousel-button-next {
	right: 12px;
}

.gb-guide-post-carousel .swiper-pagination {
	margin-top: 10px;
}

@media (max-width: 1024px) {
	.gb-guide-post-title {
		font-size: 42px;
	}
}

@media (max-width: 767px) {
	.gb-guide-post-title-wrap {
		padding: 18px 12px;
	}

	.gb-guide-post-title {
		font-size: 32px;
	}

	.gb-guide-post-carousel-button {
		width: 44px;
		height: 44px;
		font-size: 34px;
	}
}
