/**
 * Blog page — Figma: Resonant Engineering / Desktop_Blog (3101:875).
 */

:root {
	--re-accent: #0f52ba;
	--re-blue: #0084ff;
	--re-black: #000;
	--re-ink: #191919;
	--re-gray: #444;
	--re-muted: #565656;
	--re-placeholder: #8a93a3;
	--re-border: #d5dce6;
	--re-card-border: #e3e8f0;
	--re-surface: #f8f8f8;
	--re-navy: #081738;
	--re-font: "Outfit", sans-serif;
	--re-font-tag: "Poppins", sans-serif;
	--re-gutter: 60px;
	--re-container: 1320px;
}

.re-blog {
	background: #fff;
	color: var(--re-black);
	font-family: var(--re-font);
	-webkit-font-smoothing: antialiased;
}

.re-blog *,
.re-blog *::before,
.re-blog *::after {
	box-sizing: border-box;
}

.re-blog img {
	display: block;
	max-width: 100%;
}

.re-blog a {
	text-decoration: none;
}

.re-blog h1,
.re-blog h2,
.re-blog h3,
.re-blog p {
	margin: 0;
}

.re-container {
	width: 100%;
	max-width: calc(var(--re-container) + var(--re-gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--re-gutter);
}

/* ---------- Hero ---------- */

.re-hero {
	position: relative;
	overflow: hidden;
	background: #000;
}

/* Figma image fill: 271.28% × 747.41% of the frame, flipped horizontally. */
.re-hero::before {
	content: "";
	position: absolute;
	top: -615.96%;
	left: -94.42%;
	width: 271.28%;
	height: 747.41%;
	background: var(--re-hero-bg) center / 100% 100% no-repeat;
	transform: scaleX(-1);
	pointer-events: none;
}

.re-hero--custom::before {
	inset: 0;
	width: auto;
	height: auto;
	background-size: cover;
	transform: none;
}

.re-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(15, 82, 186, 0.2);
	pointer-events: none;
}

.re-hero__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 30px;
	max-width: calc(var(--re-container) + var(--re-gutter) * 2);
	margin: 0 auto;
	padding: 120px var(--re-gutter);
	color: #fff;
}

.re-hero__inner .re-hero__title {
	max-width: 907px;
	font-size: 50px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0.075px;
	color: #fff;
}

@media(max-width: 767px) {
  .re-hero__inner .re-hero__title {
    font-size: 34px;
  }
}

.re-hero__title span {
	color: var(--re-blue);
}

.re-hero__text {
	max-width: 907px;
	font-size: 22px;
	font-weight: 300;
	line-height: 1.2;
	letter-spacing: 0.22px;
	text-box: trim-both cap alphabetic;
}

/* ---------- Shared ---------- */

.re-section-title {
	font-size: 50px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--re-black);
}

.re-section-title span {
	color: var(--re-accent);
}

.re-category {
	font-family: var(--re-font-tag);
	font-size: 14px;
	font-style: italic;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--re-blue);
}

.re-category:hover {
	color: var(--re-accent);
}

.re-featured__content .re-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 28px;
	background: var(--re-accent);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.5px;
	color: #fff;
	transition: background-color 0.2s ease;
}

.re-button:hover,
.re-button:focus {
	background: #0c4396;
	color: #fff;
}

.re-button img {
	width: 18px;
	height: 18px;
	transition: transform 0.2s ease;
}

.re-button:hover img {
	transform: translateX(3px);
}

/* ---------- Featured Article ---------- */

.re-featured {
	padding: 100px 0 80px;
	background: #fff;
}

.re-featured .re-container {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.re-featured__card {
	display: flex;
	background: var(--re-surface);
	box-shadow: 0 16px 40px rgba(8, 23, 56, 0.08);
	overflow: hidden;
}

.re-featured__image {
	flex: 0 0 54.5455%; /* 720 / 1320 */
	min-height: 518px;
	position: relative;
	overflow: hidden;
}

.re-featured__image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform 0.4s ease;
}

@media(max-width: 767px) {
  .re-featured__image img {
	position: static;
  }
  
  .re-featured__image {
    /* flex-basis: auto; */
    /* min-height: 0; */
    aspect-ratio: unset !important;
  }

}
 
.re-featured__card:hover .re-featured__image img {
	transform: scale(1.03);
}

.re-featured__content {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 24px;
	min-width: 0;
	padding: 50px;
}

.re-featured__tags {
	display: flex;
	align-items: center;
	gap: 12px;
}

.re-featured__badge {
	padding: 6px 12px;
	background: var(--re-accent);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 1px;
	color: #fff;
}

.re-featured__title {
	font-size: 36px;
	font-weight: 700;
	line-height: 1.1;
}

.re-featured__title a {
	color: var(--re-black);
	transition: color 0.4s ease-in-out;
}

.re-featured__title a:hover {
	color: var(--re-accent);
}

.re-featured__excerpt {
	font-size: 18px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--re-gray);
}

.re-author {
	display: flex;
	align-items: center;
	gap: 14px;
}

.re-author__avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	border-radius: 24px;
	background: var(--re-navy);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
}

.re-author__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	line-height: 1.2;
}

.re-author__name {
	font-size: 16px;
	font-weight: 600;
	color: var(--re-black);
}

.re-author__meta {
	font-size: 15px;
	font-weight: 400;
	white-space: pre;
	color: var(--re-muted);
}

/* ---------- Latest Articles ---------- */

.re-articles {
	padding: 100px 0 120px;
	background: var(--re-surface);
}

.re-articles .re-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 50px;
}

.re-articles__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 30px;
	width: 100%;
}

.re-articles__heading {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.re-articles__intro {
	font-size: 18px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--re-black);
}

.re-search {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 340px;
	width: 340px;
	height: 52px;
	margin: 0;
	padding: 0 18px;
	background: #fff;
	border: 1px solid var(--re-border);
	transition: border-color 0.2s ease;
}

.re-search:focus-within {
	border-color: var(--re-accent);
}

.re-search__submit {
	display: flex;
	flex: 0 0 20px;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
}

.re-search__submit:hover,
.re-search__submit:focus {
	background: none;
}

.re-search .re-search__input,
.re-search .re-search__input:focus {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	height: 100%;
	padding: 0;
	background: transparent;
	border: 0 !important;
	border-radius: 0;
	outline: 0;
	box-shadow: none;
	font-family: var(--re-font);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--re-ink) !important;
}

button.re-search__submit {
    background: transparent !important;
}

.re-search__input::placeholder {
	color: var(--re-placeholder);
	opacity: 1;
}

.re-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 12px;
	width: 100%;
}

.re-filter {
	padding: 12px 22px;
	background: #fff;
	border: 1px solid var(--re-border);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	color: var(--re-ink);
	transition: border-color 0.2s ease, color 0.2s ease;
}

.re-filter:hover {
	border-color: var(--re-accent);
	color: var(--re-accent);
}

.re-filter.is-active {
	background: var(--re-accent);
	border: 0;
	color: #fff;
}

.re-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px 30px;
	width: 100%;
}

.re-card {
	display: flex;
	flex-direction: column;
	margin: 0;
	background: #fff;
	border: 1px solid var(--re-card-border);
	box-shadow: 0 12px 30px rgba(8, 23, 56, 0.08);
	overflow: hidden;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.re-card:hover {
	box-shadow: 0 18px 40px rgba(8, 23, 56, 0.12);
}

.re-card__image {
	position: relative;
	display: block;
	height: 240px;
	overflow: hidden;
}

.re-card__image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform 0.4s ease;
}

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

.re-card__content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	padding: 30px;
}

.re-card__title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	height: 58px;
	overflow: hidden;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.2;
}

.re-card__title a {
	color: var(--re-black);
	transition: color 0.4s ease-in-out;
}

.re-card__title a:hover {
	color: var(--re-accent);
}

.re-card__excerpt {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	height: 72px;
	overflow: hidden;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--re-gray);
}

.re-card__divider {
	width: 100%;
	height: 1px;
	margin: 0;
	background: var(--re-card-border);
	border: 0;
}

.re-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	margin-top: auto;
}

.re-card__date {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.2;
	white-space: pre;
	color: var(--re-muted);
}

.re-card__date img {
	width: 16px;
	height: 16px;
}

.re-card__more {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.5px;
	white-space: nowrap;
	color: var(--re-accent);
}

.re-card__more:hover {
	color: var(--re-accent);
}

.re-card__more img {
	width: 18px;
	height: 18px;
	transition: transform 0.2s ease;
}

.re-card__more:hover img {
	transform: translateX(3px);
}

.re-results {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 50px;
	width: 100%;
	transition: opacity 0.2s ease;
}

.re-results.is-loading {
	opacity: 0.45;
	pointer-events: none;
}

.re-articles__empty {
	width: 100%;
	font-size: 18px;
	color: var(--re-gray);
}

.re-pagination {
	display: flex;
	align-items: center;
	gap: 10px;
}

.re-pagination .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: #fff;
	border: 1px solid var(--re-border);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--re-ink);
	transition: border-color 0.2s ease, color 0.2s ease;
}

.re-pagination a.page-numbers:hover {
	border-color: var(--re-accent);
	color: var(--re-accent);
}

.re-pagination .page-numbers.current {
	background: var(--re-accent);
	border: 0;
	color: #fff;
}

.re-pagination .page-numbers.is-disabled {
	opacity: 0.5;
}

.re-pagination .page-numbers img {
	width: 20px;
	height: 20px;
}

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

@media (max-width: 1100px) {
	:root {
		--re-gutter: 40px;
	}

	.re-featured__card {
		flex-direction: column;
	}

	.re-featured__image {
		flex-basis: auto;
		min-height: 0;
		aspect-ratio: 720 / 518;
	}

	.re-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	:root {
		--re-gutter: 20px;
	}

	.re-hero__inner {
		gap: 20px;
		padding-top: 72px;
		padding-bottom: 72px;
	}

	.re-hero__title,
	.re-section-title {
		font-size: 36px;
	}

	.re-hero__text {
		font-size: 18px;
	}

	.re-featured {
		padding: 64px 0 56px;
	}

	.re-featured .re-container {
		gap: 28px;
	}

	.re-featured__content {
		gap: 20px;
		padding: 28px 20px;
	}

	.re-featured__title {
		font-size: 28px;
	}

	.re-featured__excerpt {
		font-size: 16px;
	}

	.re-articles {
		padding: 64px 0 80px;
	}

	.re-articles .re-container,
	.re-results {
		gap: 32px;
	}

	.re-articles__header {
		flex-direction: column;
		align-items: stretch;
	}

	.re-search {
		flex-basis: auto;
		width: 100%;
	}

	.re-filters {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 4px;
		scrollbar-width: none;
	}

	.re-filters::-webkit-scrollbar {
		display: none;
	}

	.re-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.re-card__content {
		padding: 24px 20px;
	}

	.re-card__title {
		font-size: 22px;
		height: auto;
		max-height: 53px;
	}

	.re-pagination {
		gap: 6px;
	}

	.re-pagination .page-numbers {
		width: 40px;
		height: 40px;
	}
}
