/*
Theme Name: Astra Child - XGene
Template: astra
Version: 1.0.1
Text Domain: astra-child-xgene
Description: Child theme for XGene Consulting. Adds custom archive/single templates for the Service custom post type (Master Plan Section 4.2 / 8) since the free version of Elementor does not support Theme Builder template overrides.
*/

.xg-service-archive-wrap,
.xg-service-single-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 60px 20px;
}

.xg-service-archive__header h1,
.xg-service-hero__title {
	font-family: 'Plus Jakarta Sans', sans-serif;
	color: #1A2330;
	font-weight: 600;
}

.xg-service-archive__intro,
.xg-service-hero__desc,
.xg-service-card__desc,
.xg-service-content {
	font-family: 'Inter', sans-serif;
	color: #4A5568;
}

.xg-service-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
	margin-top: 32px;
}

.xg-service-card {
	display: block;
	background: #F7F9FB;
	border: 1px solid #D8DCE1;
	border-radius: 8px;
	padding: 24px;
	text-decoration: none;
	transition: box-shadow 0.2s ease;
}

.xg-service-card:hover {
	box-shadow: 0 4px 16px rgba(15, 42, 74, 0.12);
}

.xg-service-card__image img {
	border-radius: 6px;
	margin-bottom: 12px;
}

.xg-service-card__title {
	font-family: 'Plus Jakarta Sans', sans-serif;
	color: #1A2330;
	font-size: 20px;
	margin: 12px 0 8px;
}

.xg-service-card__link {
	color: #1E7A8C;
	font-weight: 600;
	display: inline-block;
	margin-top: 12px;
}

.xg-service-hero {
	text-align: center;
	margin-bottom: 40px;
}

.xg-service-hero__title {
	font-size: 36px;
	margin-bottom: 16px;
}

.xg-service-hero__desc {
	font-size: 18px;
	max-width: 700px;
	margin: 0 auto 24px;
}

.xg-service-cta-btn {
	display: inline-block;
	background: #0F2A4A;
	color: #FFFFFF !important;
	padding: 14px 28px;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 600;
}

.xg-service-cta-btn:hover {
	background: #1E7A8C;
	color: #FFFFFF !important;
}

.xg-service-terms {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 32px;
	justify-content: center;
}

.xg-service-term-group__label {
	font-weight: 600;
	color: #1A2330;
	margin-right: 6px;
}

.xg-service-tag {
	display: inline-block;
	background: #F7F9FB;
	border: 1px solid #D8DCE1;
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 13px;
	color: #4A5568;
	margin-right: 4px;
}

.xg-service-content {
	line-height: 1.7;
	margin-bottom: 40px;
}

.xg-service-proof-points {
	background: #F7F9FB;
	border: 1px solid #D8DCE1;
	border-radius: 8px;
	padding: 32px;
	margin-bottom: 40px;
}

.xg-service-proof-points h2 {
	font-family: 'Plus Jakarta Sans', sans-serif;
	color: #1A2330;
	margin-top: 0;
}

.xg-service-proof-points ul {
	padding-left: 20px;
}

.xg-service-proof-points li {
	margin-bottom: 12px;
	color: #4A5568;
}

.xg-service-cta-footer {
	text-align: center;
	margin-top: 40px;
}

/* Article (xg-article) CPT styles */
.xg-article-archive-wrap,
.xg-article-single-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 60px 20px;
}

.xg-article-archive__header h1,
.xg-article-hero__title {
	font-family: 'Plus Jakarta Sans', sans-serif;
	color: #1A2330;
	font-weight: 600;
}

.xg-article-archive__intro,
.xg-article-hero__meta,
.xg-article-card__excerpt,
.xg-article-content,
.xg-article-archive__empty {
	font-family: 'Inter', sans-serif;
	color: #4A5568;
}

.xg-article-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 24px;
}

.xg-article-filter__link {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	padding: 8px 16px;
	border-radius: 999px;
	border: 1px solid #D8DEE7;
	color: #4A5568;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.xg-article-filter__link:hover,
.xg-article-filter__link.is-active {
	background-color: #1A2330;
	border-color: #1A2330;
	color: #fff;
}

.xg-article-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 28px;
	margin-top: 32px;
}

.xg-article-card {
	display: flex;
	flex-direction: column;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(26, 35, 48, 0.08);
	text-decoration: none;
	background: #fff;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.xg-article-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(26, 35, 48, 0.14);
}

.xg-article-card__image {
	width: 100%;
	height: 190px;
	background-size: cover;
	background-position: center;
	overflow: hidden;
}

.xg-article-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.xg-article-card__image--placeholder {
	background: linear-gradient(135deg, #1A2330, #3A4A63);
}

.xg-article-card__body {
	padding: 20px 22px 24px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.xg-article-card__category,
.xg-article-hero__category {
	display: inline-block;
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #2E6E5E;
	background: #E8F3EF;
	padding: 4px 10px;
	border-radius: 999px;
	margin-bottom: 10px;
	width: fit-content;
}

.xg-article-card__title {
	font-family: 'Plus Jakarta Sans', sans-serif;
	color: #1A2330;
	font-size: 19px;
	font-weight: 600;
	margin: 0 0 10px;
}

.xg-article-card__excerpt {
	font-size: 14px;
	line-height: 1.55;
	margin: 0 0 16px;
	flex-grow: 1;
}

.xg-article-card__meta {
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	color: #8A94A6;
	margin-bottom: 8px;
}

.xg-article-card__link {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #1A2330;
}

.xg-article-hero {
	text-align: left;
	margin-bottom: 28px;
}

.xg-article-hero__title {
	font-size: 36px;
	margin: 10px 0;
}

.xg-article-hero__meta {
	font-size: 14px;
}

.xg-article-hero__image {
	margin: 24px 0 36px;
	border-radius: 12px;
	overflow: hidden;
}

.xg-article-hero__image img {
	width: 100%;
	height: auto;
	display: block;
}

.xg-article-content {
	font-size: 17px;
	line-height: 1.75;
}

.xg-article-content p {
	margin: 0 0 20px;
}

.xg-article-share {
	margin-top: 44px;
	padding-top: 28px;
	border-top: 1px solid #E2E6ED;
}

.xg-article-share__label {
	font-family: 'Inter', sans-serif;
	color: #4A5568;
	margin-bottom: 14px;
}

.xg-article-back {
	margin-top: 24px;
}

.xg-article-back a {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	color: #4A5568;
	text-decoration: none;
}
