/**
 * Blog Listing Styles for /blogs/news/
 * Matches _reference-html/blogs/news/index.html layout and aesthetics
 */

:root {
	--per-row: 4;
}

.section-main-blog {
	padding-top: 3.2rem;
	padding-bottom: 3.2rem;
}

@media screen and (min-width: 1560px) {
	.section-main-blog {
		padding-top: 4rem;
		padding-bottom: 4rem;
	}
}

.section-template--20102101303475__main-padding {
	padding-top: 0;
	padding-bottom: 3.2rem;
}

@media screen and (min-width: 1560px) {
	.section-template--20102101303475__main-padding {
		padding-bottom: 8rem;
	}
}

.blog-articles {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
}

@media screen and (min-width: 576px) {
	.blog-articles {
		grid-template-columns: repeat(2, 1fr);
		gap: 2.4rem;
	}
}

@media screen and (min-width: 990px) {
	.blog-articles {
		grid-template-columns: repeat(3, 1fr);
		gap: 3rem;
	}
}

@media screen and (min-width: 1200px) {
	.blog-articles {
		grid-template-columns: repeat(var(--per-row, 4), 1fr);
		gap: 3.2rem 2.4rem;
	}
}

.article-card {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.article-card__image-wrapper {
	position: relative;
	width: 100%;
	border-radius: 12px;
	overflow: hidden;
	background-color: rgb(var(--color-background-secondary, 245, 245, 245));
}

.article-card__image {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.article-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.article-card:hover .article-card__image img {
	transform: scale(1.04);
}

.article-card__text {
	padding-top: 1.6rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.article-card__title {
	margin: 0 0 1rem 0;
	font-size: 1.5rem;
	line-height: 1.35;
	font-weight: 600;
}

@media screen and (min-width: 576px) {
	.article-card__title {
		font-size: 1.8rem;
	}
}

.article-card__title a {
	text-decoration: none;
	color: inherit;
	transition: color 0.2s ease;
}

.article-card__title a:hover {
	color: rgb(var(--color-link, 0, 102, 204));
}

.article-card__info {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	font-size: 1.3rem;
	color: rgba(var(--color-foreground, 0, 0, 0), 0.6);
	margin-top: auto;
}

.article-card__delimiter::before {
	content: "•";
	opacity: 0.5;
}

.pagination-wrapper,
.navigation.pagination {
	margin-top: 4rem;
	margin-bottom: 2rem;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
}

.pagination-wrapper .screen-reader-text,
.navigation.pagination .screen-reader-text {
	display: none !important;
}

.pagination-wrapper .nav-links,
.navigation.pagination .nav-links,
.pagination-wrapper ul.page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.8rem;
	list-style: none;
	padding: 0;
	margin: 0;
	flex-wrap: wrap;
}

.pagination-wrapper .page-numbers,
.navigation.pagination .page-numbers,
.nav-links .page-numbers,
.pagination-wrapper .page-numbers li a,
.pagination-wrapper .page-numbers li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 4rem;
	height: 4rem;
	padding: 0 1.6rem;
	border-radius: 2rem;
	border: 1px solid rgba(var(--color-foreground, 18, 18, 18), 0.15);
	text-decoration: none;
	font-size: 1.4rem;
	font-weight: 500;
	color: rgb(var(--color-foreground, 18, 18, 18));
	background-color: rgb(var(--color-background, 255, 255, 255));
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	box-sizing: border-box;
}

.pagination-wrapper .page-numbers.current,
.navigation.pagination .page-numbers.current,
.nav-links .page-numbers.current,
.pagination-wrapper .page-numbers li span.current {
	background-color: #000000 !important;
	color: #ffffff !important;
	border-color: #000000 !important;
	font-weight: 700;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.pagination-wrapper a.page-numbers:hover,
.navigation.pagination a.page-numbers:hover,
.nav-links a.page-numbers:hover,
.pagination-wrapper .page-numbers li a:hover {
	background-color: #0066cc !important;
	color: #ffffff !important;
	border-color: #0066cc !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 102, 204, 0.25);
}

.pagination-wrapper .next.page-numbers,
.pagination-wrapper .prev.page-numbers,
.navigation.pagination .next.page-numbers,
.navigation.pagination .prev.page-numbers {
	padding: 0 2.2rem;
	border-radius: 2.2rem;
}


/* Single Article Share Buttons Simple Horizontal Flex */
.article-template__footer-content .share-buttons-simple,
ul.share-buttons-simple {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	flex-wrap: wrap !important;
	gap: 1.2rem !important;
	list-style: none !important;
	padding: 0 !important;
	margin: 2.4rem 0 !important;
}

ul.share-buttons-simple > span {
	font-size: 1.5rem !important;
	font-weight: 700 !important;
	opacity: 0.7;
	margin-right: 0.6rem;
}

ul.share-buttons-simple .share-buttons-simple__item {
	display: inline-flex !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

ul.share-buttons-simple .share-buttons-simple__button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 3.6rem !important;
	height: 3.6rem !important;
	border-radius: 50% !important;
	background-color: rgba(var(--color-foreground, 0, 0, 0), 0.05) !important;
	color: inherit !important;
	text-decoration: none !important;
	transition: background-color 0.2s ease, opacity 0.2s ease !important;
}

ul.share-buttons-simple .share-buttons-simple__button:hover {
	background-color: rgba(var(--color-foreground, 0, 0, 0), 0.12) !important;
	opacity: 0.9 !important;
}

ul.share-buttons-simple .share-buttons-simple__button .icon,
ul.share-buttons-simple .share-buttons-simple__button svg {
	width: 1.8rem !important;
	height: 1.8rem !important;
	display: block !important;
}

/* Container Blog (Configured max-width & increased padding) */
.container-blog {
	max-width: 165rem !important;
	margin-left: auto;
	margin-right: auto;
	padding-left: 3.2rem;
	padding-right: 3.2rem;
	width: 100%;
}


@media screen and (min-width: 750px) {
	.container-blog {
		padding-left: 4.8rem;
		padding-right: 4.8rem;
	}
}

@media screen and (min-width: 1100px) {
	.container-blog {
		padding-left: 6.4rem;
		padding-right: 6.4rem;
	}
}

/* Single Article Full-Width Single Column Layout (No empty right column) */
.article-template .article-template__content-box {
	display: block !important;
	width: 100% !important;
	grid-template-columns: none !important;
	padding: 3.2rem 0 !important;
}


.article-template__content {
	max-width: 100% !important;
	width: 100% !important;
}

.article-template__footer {
	width: 100% !important;
	margin-top: 4rem !important;
	border-top: 1px solid rgba(var(--color-foreground, 0, 0, 0), 0.1);
	padding-top: 2.4rem;
}

.article-template__footer-content {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	width: 100%;
}

.article-template__footer-content .share-buttons-simple {
	margin: 0 !important;
}

.article-template__footer-content .article-template__back {
	text-align: left;
	margin-top: 1rem;
}

.article-template__footer-content .article-template__navigation {
	margin-top: 1rem;
}

/* Single Article Header Center Alignment */
.article-template__header--column .article-template__info-wrapper,
.article-template__header--column .article-template__info,
.article-template__header--column .article-template__text {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}

.article-template__header--column .article-template__title,
.article-template__title {
	text-align: center;
	margin-left: auto;
	margin-right: auto;
	max-width: 150rem !important;
}

.article-template__info-wrapper {
	max-width: 150rem !important;
	width: 100%;
}


.article-template__header--column .article-template__meta {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
}

.article-template__header--column .article-template__meta .article-template__item {
	justify-content: center;
}

/* WordPress Content Editor Alignments (Follow WP Editor Settings) */
.article-template__content.rte .aligncenter,
.article-template__content.rte img.aligncenter,
.article-template__content.rte figure.aligncenter,
.article-template__content.rte p.aligncenter,
.rte .aligncenter,
.rte img.aligncenter,
.rte figure.aligncenter {
	display: block !important;
	margin-left: auto !important;
	margin-right: auto !important;
	text-align: center !important;
	clear: both !important;
}

.article-template__content.rte .alignleft,
.article-template__content.rte img.alignleft,
.article-template__content.rte figure.alignleft,
.rte .alignleft,
.rte img.alignleft,
.rte figure.alignleft {
	float: left !important;
	margin-right: 2rem !important;
	margin-bottom: 2rem !important;
	margin-left: 0 !important;
	clear: left !important;
}

.article-template__content.rte .alignright,
.article-template__content.rte img.alignright,
.article-template__content.rte figure.alignright,
.rte .alignright,
.rte img.alignright,
.rte figure.alignright {
	float: right !important;
	margin-left: 2rem !important;
	margin-bottom: 2rem !important;
	margin-right: 0 !important;
	clear: right !important;
}

.article-template__content.rte .alignnone,
.article-template__content.rte img.alignnone,
.rte .alignnone,
.rte img.alignnone {
	margin: 1.5rem 0 !important;
}

/* Paragraph alignment wrappers */
.article-template__content.rte p.has-text-align-center,
.article-template__content.rte .has-text-align-center,
.rte p.has-text-align-center,
.rte .has-text-align-center,
.article-template__content.rte p[style*="text-align: center"],
.article-template__content.rte p[style*="text-align:center"] {
	text-align: center !important;
}

.article-template__content.rte p.has-text-align-left,
.article-template__content.rte .has-text-align-left,
.rte p.has-text-align-left,
.rte .has-text-align-left,
.article-template__content.rte p[style*="text-align: left"],
.article-template__content.rte p[style*="text-align:left"] {
	text-align: left !important;
}

.article-template__content.rte p.has-text-align-right,
.article-template__content.rte .has-text-align-right,
.rte p.has-text-align-right,
.rte .has-text-align-right,
.article-template__content.rte p[style*="text-align: right"],
.article-template__content.rte p[style*="text-align:right"] {
	text-align: right !important;
}

/* Paragraph containing aligned image */
.article-template__content.rte p:has(img.aligncenter),
.article-template__content.rte p:has(.aligncenter),
.rte p:has(img.aligncenter),
.rte p:has(.aligncenter) {
	text-align: center !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
}

/* General images in article content */
.article-template__content.rte img,
.rte img {
	max-width: 100% !important;
	height: auto !important;
}

/* ACF Blog Article Settings Styling */
.article-template__subtitle {
	font-size: 1.8rem;
	line-height: 1.4;
	opacity: 0.8;
	margin-top: 1.2rem;
	margin-bottom: 0;
	font-weight: 500;
}

.article-template__badge {
	display: inline-block;
	padding: 0.4rem 1.2rem;
	border-radius: 2rem;
	background-color: #0066cc;
	color: #ffffff;
	font-size: 1.2rem;
	font-weight: 600;
	text-transform: uppercase;
	margin-bottom: 1.6rem;
	letter-spacing: 0.05em;
}

.article-card__tag--badge {
	background-color: #0066cc !important;
	color: #ffffff !important;
	font-weight: 600;
}

.article-template__related-product {
	margin-bottom: 3.2rem;
	padding: 2.4rem;
	border: 1px solid rgba(var(--color-foreground, 0, 0, 0), 0.1);
	border-radius: 1.2rem;
	background-color: rgba(var(--color-foreground, 0, 0, 0), 0.02);
}

.related-product__heading {
	font-size: 1.6rem;
	font-weight: 700;
	margin-bottom: 1.6rem;
}

.related-product__card {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.related-product__image {
	width: 8rem;
	height: 8rem;
	flex-shrink: 0;
	border-radius: 0.8rem;
	overflow: hidden;
}

.related-product__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.related-product__title {
	font-size: 1.6rem;
	margin: 0 0 0.6rem 0;
	font-weight: 600;
}

.related-product__title a {
	text-decoration: none;
	color: inherit;
}

.related-product__price {
	font-size: 1.5rem;
	font-weight: 600;
	color: #0066cc;
}

/* Synchronize search template input to match header modal style (white background pill) */
.template-search__search .field input[type=search],
.template-search__search .field .field__input {
	background-color: #ffffff !important;
}

/* Ensure the search modal and template search fields span full width like on the home page */
.search-modal .search__form-inner .field,
.template-search__search .search__form-inner .field {
	max-width: 100% !important;
}

/* Search Results Page Overrides for Equal Heights and Rokid Styling */
.template-search__item {
	display: flex !important;
	flex-direction: column !important;
	height: 100% !important;
}

.template-search__item > * {
	flex-grow: 1 !important;
	height: 100% !important;
}

.template-search__page.card-wrapper {
	height: 100% !important;
}

.template-search__page .card-page {
	height: 100% !important;
	box-sizing: border-box !important;
}

.template-search__page .card-page::after {
	display: none !important;
}

/* WooCommerce Product Card alignment in search results */
.template-search__item .product-card {
	display: flex !important;
	flex-direction: column !important;
	height: 100% !important;
}

.template-search__item .product-card .card--product {
	flex-grow: 1 !important;
	display: flex !important;
	flex-direction: column !important;
}

.template-search__item .product-card .card-information {
	margin-top: auto !important;
}

/* Responsive mobile 2 column for search page results */
@media screen and (max-width: 575px) {
	.template-search .blog-articles {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 1.6rem 1.2rem !important;
	}
	/* Ensure card margins / paddings are slightly reduced for narrow screens */
	.template-search__item .article-card__text {
		padding: 1.2rem !important;
	}
	.template-search__item .card-page {
		padding: 2rem !important;
	}
}






