/* ==========================================================================
   CATRE — base + header/footer + home page. Mobile-first.
   Tokens: near-black #231f20, red #be1e2d, body text #666666,
   box/footer bg #f2f2f2, button hover #333439. Font: Bai Jamjuree.
   ========================================================================== */

* {
	box-sizing: border-box;
}

.wp-site-blocks > * {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}

body {
	margin: 0;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	text-decoration: none;
}

.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--secondary);
	color: #ffffff;
	font-weight: 600;
	font-size: 14px;
	padding: 12px 28px;
	border-radius: 100px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	border: 1px solid var(--wp--preset--color--secondary);
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.wp-block-button__link:hover {
	background: var(--wp--preset--color--button-hover);
	border-color: var(--wp--preset--color--button-hover);
	color: #ffffff;
}

/* ---------- Header ---------- */

.catre-header {
	background: #ffffff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
	position: relative;
	z-index: 100;
}

.catre-header__inner {
	max-width: 1320px;
	margin: 0 auto;
	padding: 14px 20px;
}

.catre-header__bar {
	margin-block-start: 0 !important;
	position: relative;
}

.catre-header__logo img {
	display: block;
	width: 140px;
	height: auto;
}

.catre-header__toggle-input {
	display: none;
}

.catre-header__toggle-label {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 28px;
	height: 28px;
	cursor: pointer;
}

.catre-header__toggle-label span {
	display: block;
	height: 2px;
	background: var(--wp--preset--color--primary);
	border-radius: 2px;
}

.catre-header__panel {
	display: none !important;
	width: 100%;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	margin-top: 16px;
}

#catre-nav-toggle:checked ~ .catre-header__panel {
	display: flex !important;
}

.catre-header__nav ul {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
}

.catre-header__nav .wp-block-navigation-item__content {
	font-weight: 500;
	font-size: 15px;
	color: var(--wp--preset--color--primary) !important;
}

.catre-header__nav .wp-block-navigation-item__content:hover,
.catre-header__nav .wp-block-navigation-item__content.is-current {
	color: var(--wp--preset--color--secondary) !important;
}

.catre-header__lang {
	font-weight: 500;
	font-size: 15px;
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.catre-header__lang:hover {
	color: var(--wp--preset--color--secondary);
}

.catre-header__actions {
	gap: 16px;
	width: 100%;
}

.catre-header__search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	padding: 0;
	background: none;
	border: none;
	color: #231f20;
	cursor: pointer;
}

.catre-search-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.92);
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease;
}

.catre-search-overlay.is-active {
	opacity: 1;
	visibility: visible;
}

.catre-search-overlay__inner {
	position: relative;
	width: 100%;
	max-width: 900px;
	display: flex;
	align-items: center;
}

.catre-search-overlay__search.wp-block-search {
	width: 100%;
}

.catre-search-overlay__search .wp-block-search__input {
	width: 100%;
	background: transparent;
	border: none;
	border-bottom: 2px solid #ffffff;
	border-radius: 0;
	color: #ffffff;
	font-size: 22px;
	padding: 10px 44px 10px 0;
	outline: none;
}

.catre-search-overlay__search .wp-block-search__input:focus {
	outline: none;
	box-shadow: none;
}

.catre-search-overlay__search .wp-block-search__input::placeholder {
	color: rgba(255, 255, 255, 0.6);
}

.catre-search-overlay__search .wp-block-search__button {
	display: none;
}

.catre-search-overlay__close {
	position: absolute;
	right: 0;
	background: none;
	border: none;
	color: #ffffff;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	padding: 0 0 0 16px;
}

@media (min-width: 960px) {
	.catre-search-overlay__search .wp-block-search__input {
		font-size: 32px;
	}
}

.catre-header__social {
	display: flex;
	align-items: center;
	gap: 14px;
}

.catre-header__social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.catre-header__social-icon img {
	width: auto;
	height: 18px;
}

/* ---------- Footer ---------- */

.catre-footer {
	background: #ffffff;
}

.catre-footer__row {
	max-width: 1320px;
	margin: 0 auto;
	padding: 24px 20px 20px;
}

.catre-footer__cols.wp-block-columns {
	align-items: center;
	margin-bottom: 20px;
	gap: 20px;
}

.catre-footer__col-address {
	display: none;
}

.catre-footer__address {
	color: #231f20;
	font-size: 14px;
	line-height: 1.4;
	margin: 0;
}

.catre-footer__col-logo {
	display: flex;
	justify-content: center;
}

.catre-footer__logo img {
	width: 220px;
	height: auto;
}

.catre-footer__col-contact {
	display: flex;
	justify-content: center;
}

.catre-footer__contact {
	display: flex;
	align-items: center;
	gap: 10px;
}

.catre-footer__contact .catre-header__social {
	gap: 10px;
}

.catre-footer__tel {
	margin: 0;
}

.catre-footer__tel a {
	color: #231f20;
	font-size: 14px;
}

.catre-footer__copyright {
	text-align: center;
	color: #a0a0a0;
	font-size: 11px;
	margin: 0;
}

@media (min-width: 960px) {
	.catre-header__inner {
		padding: 16px 20px;
	}

	.catre-header__logo img {
		width: 160px;
	}

	.catre-header__toggle-label {
		display: none;
	}

	.catre-header__panel {
		display: flex !important;
		flex-direction: row;
		align-items: center;
		gap: 32px;
		width: auto;
		margin-top: 0;
	}

	.catre-header__nav ul {
		flex-direction: row;
		gap: 36px;
	}

	.catre-header__actions {
		width: auto;
	}

	.catre-footer__row {
		padding: 30px 20px 20px;
	}

	.catre-footer__col-address {
		display: block;
	}

	.catre-footer__logo img {
		width: 352px;
	}
}

/* ---------- Home: hero ---------- */

.catre-hero-rs {
	overflow: hidden;
}

/* ---------- Home: about ---------- */

.catre-about {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	z-index: 1;
}

.catre-about__media {
	height: 240px;
	background-size: cover;
	background-position: center;
}

.catre-about__content {
	position: relative;
	z-index: 2;
	padding: 32px 20px;
}

.catre-about__accent {
	display: none;
}

.catre-about__cta .wp-block-button__link,
.catre-what-we-do__cta .wp-block-button__link {
	background: #ffffff;
	color: var(--wp--preset--color--secondary);
	border: 1px solid var(--wp--preset--color--secondary);
	font-weight: 500;
	font-size: 15px;
	padding: 10px 30px;
	text-transform: none;
	letter-spacing: normal;
}

.catre-about__cta .wp-block-button__link:hover,
.catre-what-we-do__cta .wp-block-button__link:hover {
	background: var(--wp--preset--color--secondary);
	color: #ffffff;
}

.catre-about__eyebrow {
	color: var(--wp--preset--color--secondary);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 0 0 8px;
}

.catre-about__title {
	margin: 0 0 16px;
	font-size: 26px;
	line-height: 1.25;
}

.catre-about__title a {
	color: var(--wp--preset--color--primary);
}

.catre-about__desc {
	color: var(--wp--preset--color--text);
	font-size: 15px;
	line-height: 1.7;
	margin: 0 0 20px;
}

@media (min-width: 960px) {
	.catre-about {
		display: block;
		min-height: 560px;
		padding: 0;
	}

	.catre-about__media {
		position: absolute;
		inset: 0;
		height: 100%;
		background-size: contain;
		background-repeat: no-repeat;
		background-position: center right;
	}

	.catre-about__content {
		width: 55%;
		margin-left: 45%;
		padding: 80px 60px;
		min-height: 560px;
		display: flex;
		flex-direction: column;
		justify-content: center;
		background: #ffffff;
	}

	.catre-about__title {
		font-size: 36px;
	}

	.catre-about__accent {
		display: block;
		background: var(--wp--preset--color--secondary);
		height: clamp(110px, 24.4vw, 390px);
		margin-top: clamp(-320px, -20vw, -70px);
		position: relative;
		z-index: 0;
	}
}

/* ---------- Home: what we do ---------- */

.catre-what-we-do {
	background-size: cover;
	background-position: center center;
	background-color: #f2f2f2;
	padding: 48px 20px;
	min-height: 360px;
	display: flex;
	align-items: center;
}

.catre-what-we-do__inner {
	max-width: 500px;
}

.catre-what-we-do__title {
	margin: 0 0 16px;
	font-size: 28px;
}

.catre-what-we-do__title a {
	color: var(--wp--preset--color--primary);
}

.catre-what-we-do__desc {
	color: var(--wp--preset--color--primary);
	font-size: 15px;
	line-height: 1.7;
	margin: 0 0 20px;
}

@media (min-width: 960px) {
	.catre-what-we-do {
		padding: 120px 60px;
		min-height: 600px;
	}

	.catre-what-we-do__inner {
		margin-left: 28%;
	}

	.catre-what-we-do__title {
		font-size: 40px;
	}
}

/* ---------- Home: service ---------- */

.catre-service {
	background: #ffffff;
	padding: 48px 20px;
}

.catre-service__inner {
	display: flex;
	flex-direction: column;
	gap: 32px;
	max-width: 1320px;
	margin: 0 auto;
}

.catre-service__eyebrow {
	color: var(--wp--preset--color--secondary);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 0 0 8px;
}

.catre-service__title {
	font-size: 32px;
	font-weight: 600;
	margin: 0 0 12px;
	color: var(--wp--preset--color--primary);
}

.catre-service__desc {
	color: #666666;
	font-size: 16px;
	line-height: 1.5;
	margin: 0 0 24px;
}

.catre-service__phone {
	display: inline-block;
	max-width: 240px;
}

.catre-service__col {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.catre-service__item {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 20px;
}

.catre-service__item-icon {
	width: 52px;
	height: auto;
	flex-shrink: 0;
}

.catre-service__item-title {
	font-weight: 600;
	font-size: 20px;
	color: var(--wp--preset--color--primary);
	margin: 0 0 10px;
}

.catre-service__item-desc {
	color: #666666;
	font-size: 16px;
	line-height: 1.5;
	margin: 0;
}

@media (min-width: 960px) {
	.catre-service__inner {
		flex-direction: row;
		gap: 20px;
	}

	.catre-service__intro,
	.catre-service__col {
		width: calc(33.333% - 13.33px);
		flex-shrink: 0;
	}
}

/* ---------- Home: equipment ---------- */

.catre-equipment {
	background: transparent;
	padding: 24px 20px;
}

.catre-equipment__inner {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	max-width: 1320px;
	margin: 0 auto;
}

.catre-equipment__item img {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
}

@media (min-width: 960px) {
	.catre-equipment__inner {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* ---------- Home: service CTA row ---------- */

.catre-service-cta {
	background: #ffffff;
	padding: 32px 20px 48px;
}

.catre-service-cta__inner {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 1100px;
	margin: 0 auto;
}

.catre-service-cta__item {
	display: block;
	border-radius: 8px;
	overflow: hidden;
}

.catre-service-cta__item img {
	display: block;
	width: 100%;
	transition: transform 0.2s ease;
}

.catre-service-cta__item:hover img {
	transform: scale(1.02);
}

@media (min-width: 768px) {
	.catre-service-cta__inner {
		flex-direction: row;
	}

	.catre-service-cta__item {
		flex: 1;
	}
}

/* ---------- Home: CATRE update ---------- */

.catre-update {
	background-size: cover;
	background-position: center;
	background-color: #1d1d1d;
	padding: 48px 20px;
}

.catre-update__inner {
	max-width: 1320px;
	margin: 0 auto;
}

.catre-update__intro {
	margin-bottom: 24px;
}

.catre-update__eyebrow {
	color: var(--wp--preset--color--secondary);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 0 0 8px;
}

.catre-update__title {
	color: #ffffff;
	font-size: 32px;
	font-weight: 600;
	margin: 0;
}

.catre-update__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
	margin-bottom: 28px;
}

.catre-update__card {
	display: block;
	background: #ffffff;
	box-shadow: 0 0 14px rgba(0, 0, 0, 0.1);
}

.catre-update__card-image {
	aspect-ratio: 91 / 50;
	overflow: hidden;
}

.catre-update__card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.catre-update__card-body {
	padding: 20px 20px 10px;
}

.catre-update__card-date {
	color: #737373;
	font-size: 12px;
	margin: 0 0 13px;
}

.catre-update__card-title {
	color: #231f20;
	font-weight: 600;
	font-size: 18px;
	line-height: 1.2;
	margin: 0 0 20px;
}

.catre-update__card-title a {
	color: inherit;
}

.catre-update__card-excerpt {
	color: #231f20;
	font-size: 14px;
	line-height: 1.5;
	margin: 0;
}


@media (min-width: 960px) {
	.catre-update {
		padding: 100px 0;
	}

	.catre-update__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.catre-update__card-body {
		padding: 20px 30px 10px;
	}
}

/* ---------- Who we are: intro ---------- */

.catre-whoweare-intro {
	padding: 40px 20px;
}

.catre-whoweare-intro__inner {
	display: flex;
	flex-direction: column;
	gap: 32px;
	max-width: 1320px;
	margin: 0 auto;
}

.catre-whoweare-intro__text {
	flex: 1;
	min-width: 0;
}

.catre-whoweare-intro__eyebrow {
	color: var(--wp--preset--color--secondary);
	font-weight: 600;
	font-size: 14px;
	margin: 0 0 8px;
}

.catre-whoweare-intro__title {
	color: var(--wp--preset--color--primary);
	font-size: 26px;
	font-weight: 600;
	line-height: 1.25;
	margin: 0 0 20px;
}

.catre-whoweare-intro__text > p {
	color: var(--wp--preset--color--text);
	font-size: 15px;
	line-height: 1.7;
	margin: 0 0 18px;
}

.catre-whoweare-intro__highlight {
	color: var(--wp--preset--color--secondary);
}

.catre-whoweare-intro__subtitle {
	color: var(--wp--preset--color--primary);
	font-size: 22px;
	font-weight: 600;
	margin: 12px 0 24px;
}

.catre-whoweare-feature {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 24px;
}

.catre-whoweare-feature__icon-col {
	flex-shrink: 0;
}

.catre-whoweare-feature__icon {
	width: 50px;
	height: auto;
}

.catre-whoweare-feature__body {
	flex: 1;
	min-width: 0;
}

.catre-whoweare-feature__title {
	position: relative;
	z-index: 1;
	display: block;
	width: calc(100% + 26px);
	margin: 0 -13px -12px;
	background: var(--wp--preset--color--secondary);
	color: #ffffff;
	font-size: 18px;
	font-weight: 400;
	padding: 10px 0 10px 15px;
	border-radius: 30px;
	box-shadow: 0 5px 12px rgba(0, 0, 0, 0.5);
	box-sizing: border-box;
}

.catre-whoweare-feature__desc {
	position: relative;
	background: rgba(153, 0, 0, 0.063);
	color: var(--wp--preset--color--text);
	font-size: 15px;
	line-height: 1.6;
	margin: 0;
	padding: 24px 20px 20px;
}

.catre-whoweare-intro__media {
	display: none;
}

@media (min-width: 960px) {
	.catre-whoweare-intro {
		padding: 80px 60px;
	}

	.catre-whoweare-intro__inner {
		flex-direction: row;
		align-items: flex-start;
		gap: 60px;
	}

	.catre-whoweare-intro__title {
		font-size: 36px;
	}

	.catre-whoweare-intro__media {
		display: block;
		position: relative;
		width: 320px;
		flex-shrink: 0;
	}

	.catre-whoweare-intro__building {
		width: 100%;
		height: auto;
		border-radius: 10px;
	}

	.catre-whoweare-intro__sem {
		position: absolute;
		top: 12%;
		left: -24%;
		width: 48%;
		height: auto;
	}

	.catre-whoweare-feature {
		flex-direction: row;
		align-items: flex-start;
		gap: 16px;
	}

	.catre-whoweare-feature__icon-col {
		width: 19%;
	}

	.catre-whoweare-feature__icon {
		width: 60px;
	}
}

/* ---------- Who we are: members ---------- */

.catre-whoweare-members {
	padding: 40px 20px 60px;
	background: var(--wp--preset--color--box);
}

.catre-whoweare-members__inner {
	max-width: 1320px;
	margin: 0 auto;
}

.catre-whoweare-members__title {
	color: var(--wp--preset--color--primary);
	font-size: 26px;
	font-weight: 600;
	margin: 0 0 28px;
}

.catre-members-carousel__track {
	position: relative;
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding-bottom: 8px;
	cursor: grab;
}

.catre-members-carousel__track::-webkit-scrollbar {
	display: none;
}

.catre-members-carousel__track.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
	user-select: none;
}

.catre-members-carousel__item {
	-webkit-user-drag: none;
}

.catre-members-carousel__item img {
	-webkit-user-drag: none;
	pointer-events: none;
}

.catre-members-carousel__item {
	flex: 0 0 100%;
	scroll-snap-align: start;
	text-align: center;
}

.catre-members-carousel__photo {
	width: 140px;
	height: 140px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto 14px;
	display: block;
}

.catre-members-carousel__role {
	color: var(--wp--preset--color--text);
	font-weight: 600;
	font-size: 14px;
	margin: 0 0 4px;
}

.catre-members-carousel__name {
	color: var(--wp--preset--color--text);
	font-size: 13px;
	margin: 0;
}

.catre-members-carousel__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
}

.catre-members-carousel__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 2px solid var(--wp--preset--color--secondary);
	background: transparent;
	padding: 0;
	cursor: pointer;
}

.catre-members-carousel__dot.is-active {
	background: var(--wp--preset--color--secondary);
}

@media (min-width: 640px) {
	.catre-members-carousel__item {
		flex: 0 0 calc(33.333% - 14px);
	}
}

@media (min-width: 960px) {
	.catre-members-carousel__item {
		flex: 0 0 calc(20% - 16px);
	}

	.catre-members-carousel__photo {
		width: 170px;
		height: 170px;
	}
}

/* ---------- What we do ---------- */

.catre-whatwedo {
	background-repeat: no-repeat;
	background-position: top center;
	background-size: contain;
	padding: 60px 20px;
}

.catre-whatwedo__inner {
	max-width: 1320px;
	margin: 0 auto;
}

.catre-whatwedo__title {
	color: var(--wp--preset--color--secondary);
	text-align: center;
	font-size: 26px;
	font-weight: 600;
	line-height: 1;
	margin: 0 0 20px;
}

.catre-whatwedo__intro {
	text-align: center;
	margin-bottom: 40px;
}

.catre-whatwedo__intro p {
	color: var(--wp--preset--color--text);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	margin: 0 0 16px;
}

.catre-whatwedo__highlight {
	color: var(--wp--preset--color--secondary);
}

.catre-whatwedo-category {
	margin-bottom: 40px;
}

.catre-whatwedo-category__head {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 10px;
}

.catre-whatwedo-category__title {
	color: var(--wp--preset--color--primary);
	font-size: 20px;
	font-weight: 600;
	margin: 0;
}

.catre-whatwedo-category__hint {
	color: var(--wp--preset--color--secondary);
	font-size: 14px;
	font-weight: 600;
}

.catre-whatwedo-category__rule {
	border: none;
	border-top: 1px solid #c9c9c9;
	margin: 0 0 24px;
}

.catre-whatwedo-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.catre-whatwedo-card {
	display: flex;
	align-items: center;
	gap: 14px;
	background: var(--wp--preset--color--box);
	color: var(--wp--preset--color--text);
	font-size: 14px;
	line-height: 1.5;
	padding: 16px 20px;
	border-radius: 10px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	text-decoration: none;
}

.catre-whatwedo-card.is-hidden {
	display: none;
}

.catre-whatwedo-card__icon {
	flex-shrink: 0;
	width: 24px;
	height: auto;
}

.catre-whatwedo-category__more {
	display: block;
	width: fit-content;
	margin: 20px auto 0;
	background: transparent;
	border: 1px solid var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--secondary);
	font-size: 15px;
	font-weight: 400;
	padding: 10px 45px;
	border-radius: 50px;
	cursor: pointer;
}

.catre-whatwedo-category__more:hover {
	background: var(--wp--preset--color--secondary);
	color: #ffffff;
}

@media (min-width: 960px) {
	.catre-whatwedo {
		padding: 100px 20px;
	}

	.catre-whatwedo__title {
		font-size: 32px;
	}

	.catre-whatwedo-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* ---------- Page hero (Blog, and other inner pages) ---------- */

.catre-page-hero {
	position: relative;
	display: flex;
	align-items: center;
	overflow: hidden;
	background: var(--wp--preset--color--box);
	min-height: 160px;
	padding: 20px;
}

.catre-page-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 1320px;
	margin: 0 auto;
	width: 100%;
}

.catre-page-hero__eyebrow {
	color: var(--wp--preset--color--secondary);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 0 0 8px;
}

.catre-page-hero__title {
	color: var(--wp--preset--color--primary);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0;
}

.catre-page-hero__image {
	display: none;
}

@media (min-width: 960px) {
	.catre-page-hero {
		min-height: 260px;
		padding: 0 60px;
	}

	.catre-page-hero__title {
		font-size: 32px;
	}

	.catre-page-hero__image {
		display: block;
		position: absolute;
		right: 60px;
		top: 50%;
		transform: translateY(-50%);
		width: 280px;
		height: auto;
		opacity: 0.9;
	}
}

/* ---------- Blog archive ---------- */

.catre-blog {
	padding: 40px 20px 60px;
}

.catre-blog__layout {
	max-width: 1320px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.catre-blog__main {
	min-width: 0;
}

.catre-blog__section-title {
	color: var(--wp--preset--color--primary);
	font-size: 22px;
	font-weight: 600;
	margin: 0 0 12px;
}

.catre-blog__rule {
	border: none;
	border-top: 1px solid #dddddd;
	margin: 0 0 24px;
}

.catre-blog__sidebar {
	min-width: 0;
}

.catre-blog__sidebar .fb-page,
.catre-blog__sidebar iframe {
	width: 100% !important;
	max-width: 500px;
}

.catre-blog__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	margin-bottom: 40px;
}

.catre-blog-card {
	display: block;
	text-decoration: none;
	background: #ffffff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 0 16px rgba(0, 0, 0, 0.08);
}

.catre-blog-card__image {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--wp--preset--color--box);
}

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

.catre-blog-card__body {
	padding: 18px;
}

.catre-blog-card__date {
	color: #999999;
	font-size: 12px;
	margin: 0 0 8px;
}

.catre-blog-card__title {
	color: var(--wp--preset--color--primary);
	font-weight: 600;
	font-size: 16px;
	line-height: 1.4;
	margin: 0 0 8px;
}

.catre-blog-card__excerpt {
	color: var(--wp--preset--color--text);
	font-size: 13px;
	line-height: 1.6;
	margin: 0;
}

.catre-blog__pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
}

.catre-blog__pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 8px;
	border-radius: 6px;
	color: var(--wp--preset--color--primary);
	text-decoration: none;
	font-size: 14px;
}

.catre-blog__pagination .page-numbers.current {
	background: var(--wp--preset--color--secondary);
	color: #ffffff;
}

@media (min-width: 640px) {
	.catre-blog__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 960px) {
	.catre-blog {
		padding: 60px 60px 80px;
	}

	.catre-blog__layout {
		flex-direction: row;
		align-items: flex-start;
	}

	.catre-blog__main {
		flex: 0 0 65%;
		max-width: 65%;
	}

	.catre-blog__sidebar {
		flex: 1;
		position: sticky;
		top: 100px;
	}
}

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

.catre-single {
	padding: 40px 20px 60px;
}

.catre-single__title {
	color: #231f20;
	font-size: 26px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0 0 20px;
}

.catre-single__rule {
	width: 335px;
	max-width: 100%;
	height: 0;
	border: none;
	border-top: 3px solid #e6e6e6;
	margin: 0 0 20px;
}

.catre-single__content {
	color: #666666;
	font-size: 16px;
	line-height: 1.5;
}

.catre-single__content p {
	margin: 0 0 20px;
}

.catre-single__content a {
	color: var(--wp--preset--color--secondary);
}

.catre-gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 0 0 20px;
}

.catre-gallery__item {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
}

.catre-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.catre-mostread {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.catre-mostread__item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}

.catre-mostread__image {
	width: 120px;
	flex-shrink: 0;
	aspect-ratio: 1.075 / 1;
	overflow: hidden;
}

.catre-mostread__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.catre-mostread__title {
	font-size: 16px;
	font-weight: 600;
	color: #231f20;
	line-height: 1.2;
	margin: 0 0 4px;
}

.catre-mostread__date {
	font-size: 12px;
	color: #737373;
	margin: 0 0 4px;
}

.catre-mostread__excerpt {
	font-size: 13px;
	color: #231f20;
	margin: 0;
}

@media (min-width: 960px) {
	.catre-single {
		padding: 0 0 80px;
	}

	.catre-single__title {
		font-size: 32px;
	}

	.catre-gallery {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* ---------- CM tech ---------- */

.catre-cmtech-page-bg {
	background-image: url('../images/cmtech-bg.webp');
	background-repeat: no-repeat;
	background-position: 50% 0%;
	background-size: cover;
}

.catre-cmtech-hero {
	padding: 60px 20px;
	text-align: center;
}

.catre-cmtech-hero__inner {
	max-width: 1320px;
	margin: 0 auto;
}

.catre-cmtech-hero__logo {
	width: 100px;
	height: auto;
	margin: 0 auto 20px;
	display: block;
}

.catre-cmtech-hero__title {
	color: var(--wp--preset--color--primary);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.4;
	margin: 0 0 20px;
}

.catre-cmtech-hero__desc {
	color: var(--wp--preset--color--text);
	font-size: 16px;
	line-height: 1.5;
	margin: 0;
}

.catre-cmtech-hero__desc a {
	color: var(--wp--preset--color--secondary);
}

.catre-cmtech-carousel-wrap {
	padding: 30px 20px 0;
}

.catre-cmtech-carousel {
	position: relative;
	max-width: 1320px;
	margin: 0 auto;
}

.catre-cmtech-carousel__track {
	position: relative;
	aspect-ratio: 1280 / 487;
	border-radius: 8px;
	overflow: hidden;
}

.catre-cmtech-carousel__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.6s ease;
}

.catre-cmtech-carousel__slide.is-active {
	opacity: 1;
	z-index: 1;
}

.catre-cmtech-carousel__slide img {
	width: 100%;
	height: 100%;
	object-fit: fill;
	display: block;
}

.catre-cmtech-carousel__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 25px;
	height: 25px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.8);
	color: var(--wp--preset--color--primary);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
}

.catre-cmtech-carousel__arrow--prev {
	left: 10px;
}

.catre-cmtech-carousel__arrow--next {
	right: 10px;
}

.catre-cmtech-carousel__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
}

.catre-cmtech-carousel__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: none;
	background: #d9d9d9;
	padding: 0;
	cursor: pointer;
}

.catre-cmtech-carousel__dot.is-active {
	background: var(--wp--preset--color--secondary);
}

.catre-cmtech-posts {
	padding: 40px 20px 60px;
}

.catre-cmtech-grid.catre-cmtech-posts__inner {
	max-width: 1320px;
	margin: 0 auto;
}

.catre-cmtech-grid .catre-blog-card__excerpt {
	color: var(--wp--preset--color--primary);
}

.box-hover {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.box-hover:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

@media (min-width: 960px) {
	.catre-cmtech-hero {
		padding: 90px 20px;
	}

	.catre-cmtech-hero__title {
		font-size: 32px;
	}

	.catre-cmtech-carousel-wrap {
		padding: 40px 60px 0;
	}

	.catre-cmtech-posts {
		padding: 60px 60px 80px;
	}

	.catre-cmtech-grid .catre-blog__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 960px) {
	.catre-single {
		padding: 70px 60px 100px;
	}

	.catre-single__title {
		font-size: 36px;
	}
}

/* ---------- HomeLab VR ---------- */

.catre-hlvr-hero,
.catre-hlvr-section {
	padding: 40px 20px;
}

.catre-hlvr-hero__inner,
.catre-hlvr-section__inner {
	max-width: 1100px;
	margin: 0 auto;
}

.catre-hlvr-hero__title {
	color: #ab0d0d;
	text-align: center;
	font-size: 28px;
	font-weight: 600;
	margin: 0 0 24px;
}

.catre-hlvr-hero__inner p {
	text-align: center;
}

.catre-hlvr-hero__inner p,
.catre-hlvr-section__inner > p {
	color: var(--wp--preset--color--text);
	font-size: 15px;
	line-height: 1.8;
	margin: 0 0 18px;
}

.catre-hlvr-rule {
	border: none;
	border-top: 1px solid #c9c9c9;
	margin: 0 0 24px;
}

.catre-hlvr-section__title {
	color: #ab0d0d;
	font-size: 22px;
	font-weight: 500;
	margin: 0 0 20px;
	scroll-margin-top: 100px;
}

.catre-hlvr-list {
	color: var(--wp--preset--color--text);
	font-size: 15px;
	line-height: 1.8;
	margin: 0 0 20px;
	padding-left: 24px;
}

.catre-hlvr-list li {
	margin-bottom: 10px;
}

.catre-hlvr-highlight {
	color: var(--wp--preset--color--secondary);
	font-size: 15px;
	line-height: 1.8;
	margin: 0 0 20px;
}

.catre-hlvr-box-image {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto 20px;
}

.catre-hlvr-row {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin-bottom: 24px;
}

.catre-hlvr-row__col {
	flex: 1;
	min-width: 0;
}

.catre-hlvr-row__col img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	display: block;
}

.catre-hlvr-stack {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	margin-bottom: 24px;
}

.catre-hlvr-stack__image {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	display: block;
}

.catre-hlvr-stack__video {
	width: 100%;
}

.catre-video-embed {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	overflow: hidden;
	background: #000000;
}

.catre-video-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.catre-video-embed--stacked {
	margin-bottom: 16px;
}

.catre-hlvr-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 20px;
	font-size: 14px;
	color: var(--wp--preset--color--text);
}

.catre-hlvr-table th,
.catre-hlvr-table td {
	border: 1px solid #dddddd;
	padding: 10px 14px;
	text-align: left;
}

.catre-hlvr-table th {
	background: var(--wp--preset--color--box);
	color: var(--wp--preset--color--primary);
	font-weight: 600;
}

.catre-hlvr-experiment {
	padding: 20px 0;
	border-bottom: 1px solid #e5e5e5;
}

.catre-hlvr-experiment__title {
	color: var(--wp--preset--color--text);
	font-size: 16px;
	font-weight: 400;
	margin: 0 0 16px;
}

.catre-hlvr-experiment__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.catre-hlvr-experiment__col {
	flex: 1 1 100%;
}

.catre-hlvr-experiment__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: fit-content;
	background: #efefef;
	color: var(--wp--preset--color--text);
	font-size: 14px;
	font-weight: 400;
	text-decoration: none;
	padding: 12px 24px;
	border-radius: 3px;
}

.catre-hlvr-experiment__icon {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
}

.catre-hlvr-experiment__btn:hover {
	background: var(--wp--preset--color--secondary);
	color: #ffffff;
}

@media (min-width: 768px) {
	.catre-hlvr-row {
		flex-direction: row;
	}

	.catre-hlvr-experiment__col {
		flex: 0 0 calc(25% - 8px);
	}
}

@media (min-width: 960px) {
	.catre-hlvr-hero,
	.catre-hlvr-section {
		padding: 60px 60px;
	}

	.catre-hlvr-hero__title {
		font-size: 34px;
	}
}

/* ---------- 404 ---------- */

.catre-404 {
	padding: 80px 20px;
}

.catre-404__inner {
	max-width: 600px;
	margin: 0 auto;
	text-align: center;
}

.catre-404__number {
	color: #e2e2e2;
	font-size: 120px;
	font-weight: 500;
	line-height: 1;
	margin: 0 0 20px;
}

.catre-404__text {
	color: #8c8c8c;
	font-size: 15px;
	margin: 0 0 20px;
}

.catre-404__search.wp-block-search {
	max-width: 400px;
	margin: 0 auto;
}

.catre-404__search .wp-block-search__inside-wrapper {
	border: 1px solid #e6e6e6;
	border-radius: 30px;
	overflow: hidden;
}

.catre-404__search .wp-block-search__input {
	border: none;
	padding: 10px 20px;
}

.catre-404__search .wp-block-search__button {
	background: var(--wp--preset--color--secondary);
	color: #ffffff;
	border: none;
	border-radius: 0;
	padding: 10px 20px;
}

@media (min-width: 960px) {
	.catre-404__number {
		font-size: 220px;
	}
}

/* ---------- Search results ---------- */

.catre-search {
	padding: 48px 20px 80px;
}

.catre-search__inner {
	max-width: 1320px;
	margin: 0 auto;
}

.catre-search__title {
	color: #231f20;
	font-size: 26px;
	font-weight: 500;
	text-align: center;
	margin: 0 0 32px;
}

.catre-search__grid .wp-block-post-template {
	display: grid;
	grid-template-columns: 1fr;
	gap: 35px 30px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.catre-search-card__image img {
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	display: block;
	margin: 0 0 16px;
}

.catre-search-card__title {
	font-size: 18px;
	font-weight: 600;
	color: #231f20;
	line-height: 1.3;
	margin: 0 0 8px;
}

.catre-search-card__title a {
	color: inherit;
}

.catre-search-card__excerpt {
	color: #666666;
	font-size: 14px;
	line-height: 1.6;
}

.catre-search__empty {
	color: #666666;
	font-size: 15px;
}

.catre-search__pagination {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-top: 40px;
}

@media (min-width: 600px) {
	.catre-search__grid .wp-block-post-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 960px) {
	.catre-search__title {
		font-size: 36px;
	}

	.catre-search__grid .wp-block-post-template {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
