/* ================================================================
   Category Archive Page — scoped to body.category
   ================================================================ */

/* ---- Hide parent theme's hero banner / archive header ---- */
body.category .foxiz-archive-header,
body.category .archive-header-default,
body.category .rb-archive-header,
body.category .category-header-wrap {
	display: none !important;
}

/* ================================================================
   CATEGORY HEADER
   ================================================================ */

.vcs-cat-header {
	background: #F8F3ED;
	border-bottom: 1px solid #EDE8E2;
	padding: 36px 32px 40px;
}

.vcs-cat-header-inner {
	max-width: 1040px;
	margin: 0 auto;
}

/* Breadcrumb */
.vcs-cat-breadcrumb {
	font-family: 'Nunito Sans', sans-serif;
	font-size: 13px;
	color: #8E857D;
	margin-bottom: 20px;
}

.vcs-cat-breadcrumb a {
	color: #8E857D;
	text-decoration: none;
	transition: color 0.2s ease;
}

.vcs-cat-breadcrumb a:hover {
	color: #C4813A;
}

.vcs-cat-breadcrumb .sep {
	margin: 0 8px;
	color: #EDE8E2;
}

/* Title area */
.vcs-cat-title-area {
	max-width: 640px;
}

.vcs-cat-title {
	font-family: 'Libre Baskerville', serif;
	font-weight: 400;
	font-size: 36px;
	line-height: 1.25;
	color: #1E1B18;
	margin: 0 0 8px;
}

.vcs-cat-count {
	font-family: 'Nunito Sans', sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #C4813A;
	margin-bottom: 12px;
	display: inline-block;
}

.vcs-cat-description {
	font-family: 'Nunito Sans', sans-serif;
	font-size: 16px;
	color: #3B3632;
	line-height: 1.65;
	margin: 0;
}

.vcs-cat-description p {
	margin: 0;
}

/* Child category pills */
.vcs-cat-children {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #EDE8E2;
}

.vcs-cat-children-label {
	font-family: 'Nunito Sans', sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: #8E857D;
}

.vcs-child-pill {
	font-family: 'Nunito Sans', sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: #3B3632;
	text-decoration: none;
	padding: 6px 14px;
	background: #FFFFFF;
	border: 1px solid #EDE8E2;
	border-radius: 50px;
	transition: all 0.25s ease;
	white-space: nowrap;
}

.vcs-child-pill:hover {
	background: #C4813A;
	color: #FFFFFF !important;
	border-color: #C4813A;
}

.vcs-child-pill span {
	font-size: 11px;
	color: #8E857D;
	margin-left: 3px;
}

.vcs-child-pill:hover span {
	color: rgba( 255, 255, 255, 0.8 );
}

/* ================================================================
   ARTICLES SECTION
   ================================================================ */

.vcs-cat-articles {
	max-width: 1040px;
	margin: 0 auto;
	padding: 48px 32px 0;
}

.vcs-cat-articles-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 28px;
}

.vcs-cat-articles-title {
	font-family: 'Libre Baskerville', serif;
	font-weight: 400;
	font-size: 22px;
	color: #1E1B18;
	margin: 0;
}

.vcs-cat-sort {
	font-family: 'Nunito Sans', sans-serif;
	font-size: 13px;
	color: #8E857D;
}

/* Articles Grid */
.vcs-cat-grid {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 24px;
	margin-bottom: 48px;
}

/* ================================================================
   ARTICLE CARD
   ================================================================ */

.vcs-cat-card {
	display: flex;
	flex-direction: column;
	background: #FFFFFF;
	border: 1px solid #EDE8E2;
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.3s cubic-bezier( 0.25, 0.46, 0.45, 0.94 );
}

.vcs-cat-card:hover {
	transform: translateY( -3px );
	box-shadow: 0 12px 40px rgba( 30, 27, 24, 0.07 );
	border-color: rgba( 196, 129, 58, 0.25 );
}

.vcs-cat-card__image-link {
	display: block;
	text-decoration: none;
}

.vcs-cat-card__image {
	position: relative;
	width: 100%;
	height: 0;
	padding-bottom: 60%;
	overflow: hidden;
	background: #F8F3ED;
}

.vcs-cat-card__img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.vcs-cat-card:hover .vcs-cat-card__img {
	transform: scale( 1.03 );
}

.vcs-cat-card__placeholder {
	position: absolute;
	inset: 0;
	background: linear-gradient( 135deg, #F8F3ED 0%, #FDF3E8 100% );
}

.vcs-cat-card__content {
	display: flex;
	flex-direction: column;
	padding: 18px 22px 22px;
	flex: 1;
}

.vcs-cat-card__subcategory {
	font-family: 'Nunito Sans', sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #C4813A;
	text-decoration: none;
	margin-bottom: 6px;
	display: inline-block;
	align-self: flex-start;
}

.vcs-cat-card__subcategory:hover {
	color: #B3722F;
}

.vcs-cat-card__title {
	font-family: 'Libre Baskerville', serif;
	font-weight: 700;
	font-size: 17px;
	line-height: 1.38;
	margin: 0;
	flex: 1;
}

.vcs-cat-card__title a {
	color: #1E1B18;
	text-decoration: none;
	transition: color 0.2s ease;
}

.vcs-cat-card:hover .vcs-cat-card__title a {
	color: #C4813A;
}

.vcs-cat-card__meta {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid #EDE8E2;
	font-family: 'Nunito Sans', sans-serif;
	font-size: 12px;
	color: #8E857D;
}

.vcs-cat-card__dot {
	color: #EDE8E2;
}

/* ================================================================
   PAGINATION
   ================================================================ */

.vcs-cat-pagination {
	max-width: 1040px;
	margin: 0 auto;
	padding: 0 32px 56px;
}

.vcs-cat-pagination .nav-links {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.vcs-cat-pagination .page-numbers {
	font-family: 'Nunito Sans', sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: #8E857D;
	text-decoration: none;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	transition: all 0.2s ease;
}

.vcs-cat-pagination .page-numbers:hover {
	background: #F8F3ED;
	color: #C4813A;
}

.vcs-cat-pagination .page-numbers.current {
	background: #C4813A;
	color: #FFFFFF !important;
	font-weight: 700;
}

.vcs-cat-pagination .page-numbers.prev,
.vcs-cat-pagination .page-numbers.next {
	font-weight: 600;
	color: #3B3632;
	padding: 0 12px;
	width: auto;
	border: 1px solid #EDE8E2;
}

.vcs-cat-pagination .page-numbers.prev:hover,
.vcs-cat-pagination .page-numbers.next:hover {
	border-color: #C4813A;
	color: #C4813A !important;
	background: transparent;
}

.vcs-cat-pagination .page-numbers.dots {
	color: #8E857D;
	width: auto;
}

/* ================================================================
   EXPLORE MORE TOPICS
   ================================================================ */

.vcs-cat-related-topics {
	max-width: 1040px;
	margin: 0 auto;
	padding: 0 32px 64px;
}

.vcs-cat-related-header {
	margin-bottom: 20px;
	padding-top: 36px;
	border-top: 1px solid #EDE8E2;
}

.vcs-cat-related-header h2 {
	font-family: 'Libre Baskerville', serif;
	font-weight: 400;
	font-size: 22px;
	color: #1E1B18;
	margin: 0;
}

.vcs-cat-related-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.vcs-related-topic-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 22px;
	background: #FFFFFF;
	border: 1px solid #EDE8E2;
	border-radius: 10px;
	text-decoration: none;
	transition: all 0.25s ease;
	min-width: 200px;
	flex: 1;
	max-width: calc( 33.333% - 8px );
}

.vcs-related-topic-card:hover {
	border-color: rgba( 196, 129, 58, 0.3 );
	background: #FEFCF9;
	transform: translateY( -1px );
	box-shadow: 0 4px 16px rgba( 30, 27, 24, 0.05 );
}

.vcs-related-topic-info {
	display: flex;
	flex-direction: column;
}

.vcs-related-topic-name {
	font-family: 'Nunito Sans', sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: #1E1B18;
	transition: color 0.2s;
}

.vcs-related-topic-card:hover .vcs-related-topic-name {
	color: #C4813A;
}

.vcs-related-topic-count {
	font-family: 'Nunito Sans', sans-serif;
	font-size: 12px;
	color: #8E857D;
	margin-top: 2px;
}

.vcs-related-topic-arrow {
	font-size: 16px;
	color: #EDE8E2;
	transition: all 0.2s ease;
	flex-shrink: 0;
}

.vcs-related-topic-card:hover .vcs-related-topic-arrow {
	color: #C4813A;
	transform: translateX( 3px );
}

/* ================================================================
   EMPTY STATE
   ================================================================ */

.vcs-cat-empty {
	text-align: center;
	padding: 60px 20px;
	max-width: 1040px;
	margin: 0 auto;
}

.vcs-cat-empty p {
	font-family: 'Nunito Sans', sans-serif;
	font-size: 16px;
	color: #8E857D;
	margin: 0 0 16px;
}

.vcs-cat-empty a {
	font-family: 'Nunito Sans', sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #C4813A;
	text-decoration: none;
}

.vcs-cat-empty a:hover {
	text-decoration: underline;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media ( max-width: 768px ) {
	.vcs-cat-header {
		padding: 28px 20px 32px;
	}
	.vcs-cat-title {
		font-size: 28px;
	}
	.vcs-cat-grid {
		grid-template-columns: repeat( 2, 1fr );
		gap: 20px;
	}
	.vcs-related-topic-card {
		max-width: calc( 50% - 6px );
	}
}

@media ( max-width: 540px ) {
	.vcs-cat-header {
		padding: 24px 16px 28px;
	}
	.vcs-cat-title {
		font-size: 24px;
	}
	.vcs-cat-articles {
		padding: 32px 16px 0;
	}
	.vcs-cat-pagination {
		padding: 0 16px 48px;
	}
	.vcs-cat-related-topics {
		padding: 0 16px 48px;
	}
	.vcs-cat-grid {
		grid-template-columns: 1fr;
	}
	.vcs-cat-children {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-bottom: 4px;
	}
	.vcs-cat-children::-webkit-scrollbar {
		display: none;
	}
	.vcs-related-topic-card {
		max-width: 100%;
	}
}
