/* =========================================================
   DhanSurya — Services Archive Template Styles
   Reuses the same palette as single-service.css for consistency.
   ========================================================= */

body.post-type-archive-service #header-wrapper .main-title-section-wrapper {
	display: none !important;
}   

body.post-type-archive-service #header-wrapper {
	margin: 0 !important;
}

.dhansurya-service-archive {
	--ds-green: #1b4d3e;
	--ds-green-dark: #123529;
	--ds-gold: #E3B224;
	--ds-bg: #f6f7f5;
	--ds-card: #ffffff;
	--ds-text: #1f2d28;
	--ds-muted: #6b7770;
	--ds-border: #e3e7e2;

	margin: 0 auto;
	padding: 60px 24px 100px;
	background: transparent;
	color: var(--ds-text);
}

.dhansurya-service-archive * {
	box-sizing: border-box;
}

/* ---------- Header ---------- */

.archive-header {
	text-align: center;
	max-width: 720px;
	margin: 0 auto 32px;
}

.archive-header h1 {
	font-family: 'Poppins', sans-serif;
	font-weight: 800;
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1.2;
	color: var(--ds-green);
	margin: 0 0 14px;
}

.archive-header p {
	font-size: 15px;
	line-height: 1.7;
	color: var(--ds-muted);
	margin: 0;
}

/* ---------- Filter tabs ---------- */

.archive-filters {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-bottom: 48px;
	flex-wrap: wrap;
}

.filter-btn {
	display: inline-block;
	font-family: 'Poppins', sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	padding: 10px 24px;
	border-radius: 30px;
	border: 1px solid var(--ds-border);
	background: var(--ds-card);
	color: var(--ds-text);
	cursor: pointer;
	text-decoration: none;
	transition: all 0.2s ease;
}

.filter-btn:hover {
	border-color: var(--ds-green);
	color: var(--ds-green);
}

.filter-btn.active {
	background: var(--ds-green);
	border-color: var(--ds-green);
	color: #ffffff;
}

/* ---------- Grid ---------- */

.service-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px 24px;
}

@media (max-width: 1100px) {
	.service-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.service-grid {
		grid-template-columns: 1fr;
	}
}

.no-services {
	grid-column: 1 / -1;
	text-align: center;
	color: var(--ds-muted);
	padding: 40px 0;
}

/* ---------- Card ---------- */

.service-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
}

.service-card-label {
	order: 2;
	padding: 14px 2px;
}

.service-card-image {
	order: 1;
}

/* Label-top variant flips the order (matches the zigzag reference layout) */
.service-card.label-top .service-card-label {
	order: 1;
}

.service-card.label-top .service-card-image {
	order: 2;
}

.service-number {
	display: block;
	font-family: 'Poppins', sans-serif;
	font-weight: 800;
	font-size: 30px;
	line-height: 1;
	color: var(--ds-gold);
	margin-bottom: 4px;
}

.service-name {
	display: block;
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 15px;
	color: var(--ds-green);
	transition: color 0.15s ease;
}

.service-card:hover .service-name {
	color: var(--ds-green-dark);
	text-decoration: underline;
}

.service-card-image {
	width: 100%;
	aspect-ratio: 4 / 5;
	border-radius: 10px;
	overflow: hidden;
	background: var(--ds-border);
}

.service-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.service-card:hover .service-card-image img {
	transform: scale(1.04);
}

.service-card-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--ds-green), var(--ds-green-dark));
}

.service-card-placeholder span {
	font-family: 'Poppins', sans-serif;
	font-weight: 800;
	font-size: 48px;
	color: rgba(255, 255, 255, 0.85);
}

/* Small accent so Dhan vs Surya is still visible at a glance
   Dhan = Green, Surya = Yellow/Gold */
.type-dhan .service-number {
	color: var(--ds-green);
}

.type-surya .service-number {
	color: var(--ds-gold);
}

/* ---------- Pagination ---------- */

.archive-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 56px;
	flex-wrap: wrap;
}

.archive-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border-radius: 6px;
	border: 1px solid var(--ds-border);
	background: var(--ds-card);
	color: var(--ds-text);
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
}

.archive-pagination .page-numbers.current {
	background: var(--ds-green);
	border-color: var(--ds-green);
	color: #ffffff;
}

.archive-pagination .page-numbers:hover:not(.current) {
	border-color: var(--ds-green);
	color: var(--ds-green);
}