/*
 Theme Name: Rehub Child
 Template: rehub-theme
 Description: Chuối Xanh overrides. Edit here, deploy with Ansible tag custom.
 Version: 1.4.3
*/

/* Add CSS overrides below. Do not edit the parent theme. */

/*
 * Typography — Vietnamese. Rehub loads Poppins/Roboto latin-only; missing
 * U+1EA0–1EF9 so bold ă/ơ/ệ fallback to a different face.
 * Heading: Be Vietnam Pro. Body: Roboto (already live body stack).
 */
html body,
.rh-outer-wrap,
.post,
.post-inner,
.post-inner p,
.post-inner li,
.entry-content {
	font-family: Roboto, "Be Vietnam Pro", "trebuchet ms", sans-serif !important;
	font-synthesis: none;
}

body h1, body h2, body h3, body h4, body h5, body h6,
body .title h1,
body .widget .title,
body .rehub-main-font,
body .logo .textlogo,
.main-nav,
.responsive_nav,
.menu,
nav,
strong, b,
.rh-post-wrapper .post-inner thead th,
.rh-post-wrapper .post-inner tbody td:first-child,
.single-post .post-inner thead th,
.single-post .post-inner tbody td:first-child,
.page .post-inner thead th,
.page .post-inner tbody td:first-child {
	font-family: "Be Vietnam Pro", Roboto, sans-serif;
}

h1, h2, h3 {
	line-height: 1.35;
}

/*
 * Content tables (posts/pages). Rehub resets borders to 0 — restore readable
 * comparison tables with live brand tokens (BRAND.md).
 * Do not restyle shop/widget/offer tables.
 */
.rh-post-wrapper .post-inner table,
.single-post .post-inner table,
.page .post-inner table {
	width: 100%;
	max-width: 100%;
	border-collapse: collapse;
	border: 1px solid #999999;
	background: #ffffff;
	margin: 1.25em 0;
}

.rh-post-wrapper .post-inner th,
.rh-post-wrapper .post-inner td,
.single-post .post-inner th,
.single-post .post-inner td,
.page .post-inner th,
.page .post-inner td {
	border: 1px solid #999999;
	padding: 10px 12px;
	vertical-align: top;
	text-align: left;
	color: #333333;
}

.rh-post-wrapper .post-inner thead th,
.single-post .post-inner thead th,
.page .post-inner thead th {
	background: #f4f4f4;
	color: #111111;
	font-weight: 600;
}

.rh-post-wrapper .post-inner tbody td:first-child,
.single-post .post-inner tbody td:first-child,
.page .post-inner tbody td:first-child {
	font-weight: 600;
	color: #111111;
	background: #f4f4f4;
}

.rh-post-wrapper .post-inner tbody tr:nth-child(even) td,
.single-post .post-inner tbody tr:nth-child(even) td,
.page .post-inner tbody tr:nth-child(even) td {
	background: #fafafa;
}

.rh-post-wrapper .post-inner tbody tr:nth-child(even) td:first-child,
.single-post .post-inner tbody tr:nth-child(even) td:first-child,
.page .post-inner tbody tr:nth-child(even) td:first-child {
	background: #f2f2f2;
}

.cx-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	max-width: 100%;
	margin: 1.25em 0;
}

.cx-table-wrap table {
	margin: 0;
}

/* Accessible desktop wordmark from the child header template. */
@media (min-width: 1024px) {
	.logo_section_wrap .logo-section {
		height: 90px;
		padding: 10px 0;
		box-sizing: border-box;
	}

	.logo_section_wrap .logo-section .margincenter {
		height: 70px;
	}

	.cx-header-brand {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		height: 70px;
		margin: 0 auto;
		color: #ffffff;
		text-decoration: none !important;
	}

	.cx-header-brand__name {
		font-family: "Be Vietnam Pro", Roboto, sans-serif;
		font-size: 1.65rem;
		font-weight: 700;
		line-height: 1.1;
	}

	.cx-header-brand__tagline {
		margin-top: 4px;
		font-family: Roboto, "Be Vietnam Pro", sans-serif;
		font-size: 0.72rem;
		font-weight: 500;
		line-height: 1.1;
	}
}

/* Homepage (front-page.php) — conversion-first layout. */
.cx-home {
	padding-top: 38px;
	padding-bottom: 48px;
}

.cx-home a:focus-visible {
	outline: 3px solid #286010;
	outline-offset: 3px;
}

.cx-home-intro {
	max-width: 760px;
	margin-bottom: 28px;
}

.cx-home-intro__eyebrow,
.cx-home-section__eyebrow,
.cx-home-hero__eyebrow {
	margin: 0 0 6px;
	color: #286010;
	font-family: "Be Vietnam Pro", Roboto, sans-serif;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.cx-home-intro__title {
	margin: 0 0 10px;
	color: #111111;
	font-family: "Be Vietnam Pro", Roboto, sans-serif;
	font-size: clamp(2rem, 4vw, 3.25rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.025em;
}

.cx-home-intro__tagline {
	max-width: 680px;
	margin: 0;
	color: #555555;
	font-size: 1.08rem;
	line-height: 1.65;
}

.cx-home-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr);
	min-height: 430px;
	margin-bottom: 56px;
	overflow: hidden;
	background: #ffffff;
	border: 1px solid #eeeeee;
	border-radius: 8px;
	box-shadow: 0 12px 34px rgba(17, 17, 17, 0.08);
}

.cx-home-hero__media {
	display: block;
	min-height: 430px;
	overflow: hidden;
	background: #f2f2f2;
}

.cx-home-hero__image {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 430px;
	object-fit: cover;
}

.cx-home-hero__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 40px;
}

.cx-home-hero__title {
	margin: 0 0 14px;
	font-size: clamp(1.65rem, 2.8vw, 2.45rem);
	line-height: 1.25;
}

.cx-home-hero__title a {
	color: #111111;
	text-decoration: none;
}

.cx-home-hero__title a:hover {
	color: #286010;
}

.cx-home-hero__excerpt {
	margin: 0 0 24px;
	color: #555555;
	font-size: 1rem;
	line-height: 1.65;
}

.cx-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	min-height: 44px;
	padding: 12px 20px;
	background: #339900;
	border: 1px solid #339900;
	border-radius: 4px;
	color: #ffffff !important;
	font-family: "Be Vietnam Pro", Roboto, sans-serif;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	transition: background-color 180ms ease, border-color 180ms ease;
}

.cx-button:hover {
	background: #286010;
	border-color: #286010;
}

.cx-button:focus-visible {
	outline-color: #111111 !important;
}

.cx-home-section {
	margin-bottom: 56px;
}

.cx-home-section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}

.cx-home-section__head h2,
.cx-home-coupon h2 {
	margin: 0;
	color: #111111;
	font-size: clamp(1.55rem, 2.6vw, 2rem);
	line-height: 1.3;
}

.cx-home-hubs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.cx-home-hub {
	display: flex;
	flex-direction: column;
	min-height: 210px;
	padding: 26px;
	background: #ffffff;
	border: 1px solid #eeeeee;
	border-top: 4px solid #339900;
	border-radius: 6px;
	color: #333333;
	text-decoration: none !important;
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.cx-home-hub:hover {
	border-color: #cecece;
	border-top-color: #286010;
	box-shadow: 0 10px 25px rgba(17, 17, 17, 0.08);
	transform: translateY(-2px);
}

.cx-home-hub__title {
	margin-bottom: 10px;
	color: #111111;
	font-family: "Be Vietnam Pro", Roboto, sans-serif;
	font-size: 1.3rem;
	font-weight: 700;
}

.cx-home-hub__description {
	color: #555555;
	line-height: 1.6;
}

.cx-home-hub__link {
	margin-top: auto;
	padding-top: 18px;
	color: #009700;
	font-weight: 700;
}

.cx-home-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.cx-home-card {
	overflow: hidden;
	background: #ffffff;
	border: 1px solid #eeeeee;
	border-radius: 6px;
	box-shadow: 0 4px 14px rgba(17, 17, 17, 0.05);
	transition: border-color 180ms ease, box-shadow 180ms ease;
}

.cx-home-card:hover {
	border-color: #cecece;
	box-shadow: 0 10px 24px rgba(17, 17, 17, 0.09);
}

.cx-home-card__media {
	display: block;
	aspect-ratio: 336 / 220;
	overflow: hidden;
	background: #f2f2f2;
}

.cx-home-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 220ms ease;
}

.cx-home-card:hover .cx-home-card__image {
	transform: scale(1.025);
}

.cx-home-card__body {
	padding: 20px;
}

.cx-home-card__category {
	display: inline-block;
	margin-bottom: 8px;
	color: #009700;
	font-size: 0.78rem;
	font-weight: 700;
	text-decoration: none;
}

.cx-home-card__title {
	margin: 0 0 10px;
	font-size: 1.06rem;
	line-height: 1.45;
}

.cx-home-card__title a {
	color: #111111;
	text-decoration: none;
}

.cx-home-card__title a:hover {
	color: #286010;
}

.cx-home-card__excerpt {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: #555555;
	font-size: 0.9rem;
	line-height: 1.55;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.cx-home-coupon {
	margin-bottom: 0;
}

.cx-home-coupon__box {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	padding: 32px;
	background: #f4f4f4;
	border: 1px solid #eeeeee;
	border-radius: 6px;
}

.cx-home-coupon__box p:last-child {
	margin: 8px 0 0;
	color: #555555;
}

@media (prefers-reduced-motion: reduce) {
	.cx-home-hub,
	.cx-home-card,
	.cx-home-card__image,
	.cx-button {
		transition: none;
	}

	.cx-home-hub:hover,
	.cx-home-card:hover .cx-home-card__image {
		transform: none;
	}
}

@media (max-width: 767px) {
	.cx-home {
		padding-top: 28px;
		padding-bottom: 36px;
	}

	.cx-home-intro {
		margin-bottom: 22px;
	}

	.cx-home-intro__title {
		font-size: 2rem;
	}

	.cx-home-intro__tagline {
		font-size: 1rem;
	}

	.cx-home-hero {
		grid-template-columns: 1fr;
		min-height: 0;
		margin-bottom: 42px;
	}

	.cx-home-hero__media,
	.cx-home-hero__image {
		min-height: 0;
		aspect-ratio: 16 / 10;
	}

	.cx-home-hero__body {
		padding: 24px;
	}

	.cx-home-hero__title {
		font-size: 1.55rem;
	}

	.cx-home-hubs,
	.cx-home-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.cx-home-hub {
		min-height: 0;
		padding: 22px;
	}

	.cx-home-section {
		margin-bottom: 42px;
	}

	.cx-home-card {
		display: grid;
		grid-template-columns: 128px minmax(0, 1fr);
	}

	.cx-home-card__media {
		height: 100%;
		aspect-ratio: auto;
	}

	.cx-home-card__body {
		padding: 16px;
	}

	.cx-home-card__excerpt {
		display: none;
	}

	.cx-home-card__title {
		margin-bottom: 0;
		font-size: 0.98rem;
	}

	.cx-home-coupon__box {
		align-items: flex-start;
		flex-direction: column;
		padding: 24px;
	}
}
