/************************************/
/***        Blog Section          ***/
/***  Uses existing theme tokens  ***/
/************************************/

/* ---------- Blog listing grid ---------- */
.blog-grid {
	margin-top: 10px;
}

.blog-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--white-color);
	border: 1px solid var(--dark-divider-color);
	border-radius: 20px;
	overflow: hidden;
	transition: all 0.4s ease-in-out;
	margin-bottom: 30px;
}

.blog-card:hover {
	border-color: var(--primary-color);
	box-shadow: 0 18px 40px rgba(12, 141, 70, 0.10);
	transform: translateY(-6px);
}

.blog-card-img {
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: var(--secondary-color);
}

.blog-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease-in-out;
}

.blog-card:hover .blog-card-img img {
	transform: scale(1.06);
}

.blog-card-body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 26px 26px 28px;
}

.blog-tag {
	display: inline-block;
	align-self: flex-start;
	font-family: var(--accent-font);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--primary-color);
	background: var(--secondary-color);
	border-radius: 40px;
	padding: 6px 14px;
	margin-bottom: 14px;
}

.blog-card-body h3 {
	font-size: 21px;
	line-height: 1.35em;
	margin-bottom: 12px;
}

.blog-card-body h3 a {
	color: var(--text-color);
	transition: color 0.3s ease-in-out;
}

.blog-card-body h3 a:hover {
	color: var(--primary-color);
}

.blog-card-body p {
	margin-bottom: 18px;
}

.blog-card-meta {
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid var(--dark-divider-color);
	font-size: 14px;
	color: #6b7a74;
}

.blog-card-meta i {
	color: var(--primary-color);
	margin-right: 6px;
}

/* ---------- Article body ---------- */

/* The theme capitalizes headings and list items site-wide. That reads fine on
   short marketing bullets, but turns long editorial sentences into Title Case.
   Article copy is written in sentence case, so opt out inside the blog only. */
/* Selectors must match the specificity of the theme's `.service-entry ul li`
   (0,1,2) to win, since blog.css is loaded after custom.css. */
.blog-entry h2,
.blog-entry h3,
.blog-entry ul li,
.blog-entry ol li,
.blog-faq h2,
.blog-faq h3,
.blog-cta h3,
.blog-card-body h3 {
	text-transform: none;
}

.blog-entry h2 {
	font-size: 30px;
	line-height: 1.3em;
	margin-top: 38px;
	margin-bottom: 16px;
}

.blog-entry h3 {
	font-size: 22px;
	line-height: 1.35em;
	margin-top: 28px;
	margin-bottom: 12px;
}

.blog-entry p,
.blog-entry li {
	font-size: 16px;
	line-height: 1.75em;
}

.blog-entry > p:first-of-type {
	font-size: 18px;
	line-height: 1.7em;
	color: var(--text-color);
}

.blog-entry ul,
.blog-entry ol {
	margin-bottom: 20px;
	padding-left: 20px;
}

.blog-entry ul li,
.blog-entry ol li {
	margin-bottom: 10px;
}

.blog-meta-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
	padding: 14px 0 18px;
	margin-bottom: 26px;
	border-bottom: 1px solid var(--dark-divider-color);
	font-size: 14px;
	color: #6b7a74;
}

.blog-meta-bar i {
	color: var(--primary-color);
	margin-right: 7px;
}

/* ---------- Comparison tables ---------- */
.blog-table-wrap {
	overflow-x: auto;
	margin: 26px 0 30px;
	-webkit-overflow-scrolling: touch;
}

table.blog-table {
	width: 100%;
	min-width: 520px;
	border-collapse: collapse;
	font-size: 15px;
}

table.blog-table th,
table.blog-table td {
	padding: 13px 16px;
	border: 1px solid var(--dark-divider-color);
	vertical-align: top;
	text-align: left;
}

table.blog-table thead th {
	background: var(--primary-color);
	color: var(--white-color);
	font-family: var(--accent-font);
	font-weight: 600;
	font-size: 15px;
}

table.blog-table tbody tr:nth-child(even) {
	background: var(--secondary-color);
}

table.blog-table td:first-child {
	font-weight: 600;
	color: var(--text-color);
}

/* ---------- Key takeaway box ---------- */
.blog-callout {
	background: var(--secondary-color);
	border-left: 4px solid var(--primary-color);
	border-radius: 0 14px 14px 0;
	padding: 22px 26px;
	margin: 28px 0;
}

.blog-callout p:last-child {
	margin-bottom: 0;
}

.blog-callout strong {
	color: var(--primary-color);
}

/* ---------- FAQ ---------- */
.blog-faq {
	margin-top: 40px;
}

.blog-faq-item {
	border-bottom: 1px solid var(--dark-divider-color);
	padding: 20px 0;
}

.blog-faq-item:first-of-type {
	border-top: 1px solid var(--dark-divider-color);
}

.blog-faq-item h3 {
	font-size: 19px;
	margin: 0 0 10px;
}

.blog-faq-item p:last-child {
	margin-bottom: 0;
}

/* ---------- Inline CTA ---------- */
.blog-cta {
	background: var(--primary-color);
	border-radius: 20px;
	padding: 34px 36px;
	margin: 40px 0 10px;
	color: var(--white-color);
}

.blog-cta h3 {
	color: var(--white-color);
	font-size: 24px;
	margin-bottom: 10px;
}

.blog-cta p {
	color: rgba(255, 255, 255, 0.88);
	margin-bottom: 20px;
}

.blog-cta .btn-default {
	background: var(--white-color);
	color: var(--primary-color);
}

/* ---------- Sidebar recent posts ---------- */
.blog-sidebar-recent ul li {
	padding: 13px 0;
	border-bottom: 1px solid var(--dark-divider-color);
}

.blog-sidebar-recent ul li:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.blog-sidebar-recent ul li a {
	color: var(--text-color);
	font-weight: 500;
	line-height: 1.5em;
	display: block;
	transition: color 0.3s ease-in-out;
}

.blog-sidebar-recent ul li a:hover {
	color: var(--primary-color);
}

/* ---------- Responsive ---------- */
@media only screen and (max-width: 767px) {
	.blog-entry h2 {
		font-size: 25px;
		margin-top: 30px;
	}

	.blog-entry h3 {
		font-size: 20px;
	}

	.blog-cta {
		padding: 26px 22px;
	}

	.blog-card-body {
		padding: 22px 22px 24px;
	}
}

/* ---- FAQ start - managed by tools/build_faq_sections.py ---- */
/* Selectors are anchored on .faq-list, not .service-entry, because the FAQ
   also goes on about/career/contact-us/gallery, which have no .service-entry
   wrapper. Two rules have to be beaten: bootstrap's ".h3, h3" sets a fluid
   font-size, and custom.css's ".service-entry h3" (0,1,1) sets
   text-transform:capitalize, which would Title Case every question.
   ".faq-list .faq-q" is (0,2,0) and wins both. */
/* only used on pages where the FAQ lands at body level and needs its own
   section chrome - about, career, contact-us, gallery */
.faq-section {
	padding: 60px 0 30px;
}

.faq-list {
	margin-top: 10px;
	margin-bottom: 10px;
}

.faq-list .faq-q {
	text-transform: none;
	font-size: 20px;
	line-height: 1.45;
	margin-bottom: 8px;
}

.faq-list .faq-item {
	padding-bottom: 18px;
	margin-bottom: 18px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-list .faq-item:last-child {
	border-bottom: 0;
	margin-bottom: 0;
	padding-bottom: 0;
}
/* ---- FAQ end ---- */

/* ---- content links - managed by tools/build_internal_links.py ---- */
.service-entry p a,
.service-entry > ul li a,
.service-entry > ol li a,
.faq-list a,
.blog-entry p a,
.blog-entry > ul li a,
.blog-entry > ol li a {
	color: var(--primary-color);
	text-decoration: none;
	border-bottom: 1px solid rgba(12, 141, 70, 0.35);
	transition: all 0.3s ease;
}

.service-entry p a:hover,
.service-entry > ul li a:hover,
.service-entry > ol li a:hover,
.faq-list a:hover,
.blog-entry p a:hover,
.blog-entry > ul li a:hover,
.blog-entry > ol li a:hover {
	color: var(--accent-color);
	border-bottom-color: currentColor;
}
/* ---- content links end ---- */
