/* SMETEC custom overrides. Loaded after Oxygen's stylesheets. */

:root {
	--sm-accent: #4353ff;
	--sm-heading: #0f0f0f;
	--sm-text: #686868;
	--sm-border: #e8e8e8;
	--sm-surface: #f9f9f9;
	--sm-radius: 4px;
	--sm-gap: 32px;
	--sm-measure: 760px;
}

/* ---------- News listing ---------- */

.news-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: var(--sm-gap);
	width: 100%;
}

.news-card {
	display: flex;
	border: 1px solid var(--sm-border);
	border-radius: var(--sm-radius);
	background: #fff;
	overflow: hidden;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.news-card:hover {
	border-color: var(--sm-accent);
	transform: translateY(-2px);
}

.news-card__link {
	display: flex;
	flex-direction: column;
	width: 100%;
	text-decoration: none;
	color: inherit;
}

.news-card__media {
	aspect-ratio: 16 / 9;
	width: 100%;
	background-color: var(--sm-surface);
	overflow: hidden;
}

.news-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.news-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 24px;
}

.news-card__date {
	font-size: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--sm-text);
}

.news-card__title {
	margin: 0;
	font-size: 19px;
	line-height: 1.35;
	color: var(--sm-heading);
}

.news-card__excerpt {
	font-size: 15px;
	line-height: 1.6;
	color: var(--sm-text);
}

/* Oxygen renders repeater pagination inside the repeater container. */
.news-list .oxy-repeater-pages-wrap {
	grid-column: 1 / -1;
	margin-top: 16px;
}

.news-list .oxy-repeater-pages {
	display: flex;
	gap: 8px;
	justify-content: center;
	font-size: 14px;
}

.news-list .oxy-repeater-pages .page-numbers {
	padding: 8px 14px;
	border: 1px solid var(--sm-border);
	border-radius: var(--sm-radius);
	color: var(--sm-text);
	text-decoration: none;
}

.news-list .oxy-repeater-pages a.page-numbers:hover,
.news-list .oxy-repeater-pages .page-numbers.current {
	border-color: var(--sm-accent);
	color: var(--sm-accent);
}

/* ---------- Single post ---------- */

.post-single .ct-section-inner-wrap {
	max-width: var(--sm-measure);
	margin: 0 auto;
}

.post-hero {
	display: block;
	width: 100%;
	max-height: 480px;
	object-fit: cover;
	border-radius: var(--sm-radius);
	margin-bottom: 32px;
}

.post-meta {
	margin-bottom: 24px;
	font-size: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--sm-text);
}

.post-body {
	width: 100%;
	font-size: 16px;
	line-height: 1.75;
	color: var(--sm-text);
}

.post-body h2,
.post-body h3,
.post-body h4 {
	margin: 1.8em 0 0.6em;
	color: var(--sm-heading);
}

.post-body p,
.post-body ul,
.post-body ol {
	margin: 0 0 1.2em;
}

.post-body img {
	max-width: 100%;
	height: auto;
	border-radius: var(--sm-radius);
}

.post-back {
	display: inline-block;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--sm-border);
	font-size: 14px;
	color: var(--sm-accent);
	text-decoration: none;
}

/* ---------- FAQ ---------- */

.faqsection > .ct-section-inner-wrap {
	padding-top: 60px;
	padding-bottom: 60px;
}

.faqsection .ct-div-block {
	width: 100%;
}

.faq-list {
	width: 100%;
	max-width: var(--sm-measure);
	margin: 0 auto;
	border-top: 1px solid var(--sm-border);
}

.faq-item {
	width: 100%;
	align-self: stretch;
	border-bottom: 1px solid var(--sm-border);
}

.faq-q {
	width: 100%;
	align-self: stretch;
	align-items: center;
	gap: 16px;
	padding: 22px 0;
	font-size: 17px;
	color: var(--sm-heading);
}

.faq-q .oxy-toggle-content,
.faq-a {
	width: 100%;
}

.faq-q:hover {
	color: var(--sm-accent);
}

/* Oxygen renders the icon before the label, so reorder to put it on the right. */
.faq-q .oxy-toggle-content {
	order: -1;
}

.faq-q .oxy-expand-collapse-icon {
	margin-right: 0;
	font-size: 13px;
}

.faq-q .oxy-expand-collapse-icon::before,
.faq-q .oxy-expand-collapse-icon::after {
	background-color: currentColor;
}

.faq-a {
	width: 100%;
	padding: 0 0 24px;
	font-size: 15px;
	line-height: 1.7;
	color: var(--sm-text);
}

/* ---------- Responsive ---------- */

@media (max-width: 767px) {
	:root {
		--sm-gap: 24px;
	}

	.news-list {
		grid-template-columns: 1fr;
	}

	.news-card__body {
		padding: 20px;
	}

	.faq-q {
		font-size: 16px;
	}
}
