/* Truenet Theerayut — minimal supplemental CSS for effects core blocks/theme.json can't express. */

/* Kill WP's default 24px root block-gap between header/main/footer template
   parts (".wp-site-blocks > * { margin-block-start: 24px }"). With no gap set
   in theme.json this falls back to 24px, which shows as an unwanted white
   seam (body background) between full-bleed colored sections — e.g. the home
   page's CTA banner butting up against the dark footer. Every section here
   already manages its own spacing explicitly. */
.wp-site-blocks > * {
	margin-block-start: 0 !important;
}

/* Red-to-purple gradient text accent, used for the "true-Partner" brand
   name inline within headings (e.g. "ทำไมต้องเลือก true-Partner"). Defined
   as a class, not inline style, because WordPress's post-save CSS
   sanitizer (safecss_filter_attr) strips unrecognized inline properties
   like background-clip/-webkit-background-clip, silently turning the
   gradient into a solid invisible-text block. */
.truenetthee-accent-gradient {
	background: linear-gradient( 90deg, #861079, #fd0102 );
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* Different "true-Partner" gradient used on the installation gallery
   heading specifically - a 5-stop red-to-cyan sweep, not the simple
   2-stop red/purple one above (confirmed via get_design_context on the
   gallery section's sec-header, not just eyeballed). */
.truenetthee-accent-gradient-alt {
	background: linear-gradient( 90deg, #f20001 0%, #fd0102 59.615%, #8c0d73 69.712%, #2640d9 76.442%, #00a6ff 83.173% );
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* A third distinct "true-Partner" gradient (confirmed via
   get_design_context on node 265:3424, the about-us certificate
   section heading) - compressed into a sharp 40%-60% transition band
   rather than sweeping across the whole word, and set in the logo
   font (Momo Trust Display), not the body font. */
.truenetthee-accent-gradient-logo {
	font-family: var( --wp--preset--font-family--logo );
	background: linear-gradient( 90deg, #fd0102 40%, #8c0d73 48%, #2640d9 52%, #00a6ff 60% );
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* This h2 was inheriting the theme's generic heading size (30px) and
   a loose 1.6-ish line-height, both bigger/looser than Figma's spec:
   text-[28px] on the wrapping block, with leading-[0] on it and
   leading-[normal] + mb-0 on the two lines inside - i.e. tightly
   stacked with no extra line-height padding between them. */
.truenetthee-certificate-heading {
	font-size: 28px !important;
	line-height: 1.25 !important;
}

/* Figma constrains this subtitle to w-[700px], which is what forces it
   to wrap onto 2 lines ("...จาก True Corporation" / "Public Company
   Limited") - without a max-width this had plenty of room in the
   1440px section and just stayed on one line. */
/* The general alignwide-child fix (further up this file) forces
   max-width:100% !important on every direct child of a wide section,
   which beats a plain declaration here by specificity even with
   !important on both sides - matching its exact selector pattern (plus
   this one extra class) is what lets this actually win. */
.wp-block-post-content.is-layout-constrained > .alignwide > .truenetthee-certificate-subtitle {
	max-width: 700px !important;
	/* width:100% (not a literal 700px) so max-width can actually act as
	   a cap instead of a forced size - a literal width:700px!important
	   overflowed any viewport narrower than 700px. */
	width: 100% !important;
	box-sizing: border-box;
	margin-left: auto !important;
	margin-right: auto !important;
	font-size: 15px;
}

/* Same inherited-generic-size problem as the certificate heading, but
   on the installation gallery heading (both the home page's and the
   about-us page's versions - confirmed via get_design_context on both
   copies): rendering at the generic 30px/loose-line-height instead of
   Figma's text-[36px] with tightly-packed lines. */
.truenetthee-gallery-heading {
	font-size: 36px !important;
	line-height: 1.2 !important;
}

/* Small blue accent bar above a few section headings (installation
   gallery, testimonials) - confirmed via Figma metadata: a 48x4px
   rounded rectangle, #098ef6, centered, with 12px gap to the heading
   below it. */
.truenetthee-sec-accent-bar {
	width: 48px;
	height: 4px;
	border-radius: 2px;
	background: #098ef6;
	margin: 0 auto 12px;
}

/* Package card */
.truenetthee-package-card {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0px 4px 15px 0px rgba(0, 138, 178, 0.15);
	display: flex;
	flex-direction: column;
	text-decoration: none;
	height: 100%;
}

.truenetthee-package-card__header {
	height: 140px;
	background-image: url( '../images/cards/card-header-crop.png' );
	background-size: cover;
	background-position: center;
}

.truenetthee-package-card__body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	flex: 1;
}

.truenetthee-package-card__contract {
	font-size: 13px;
	font-weight: 700;
	color: #374151;
}

.truenetthee-package-card__speed-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.truenetthee-package-card__speed .main {
	font-size: 32px;
	font-weight: 800;
	color: #111827;
}

.truenetthee-package-card__speed .main small {
	font-size: 18px;
	font-weight: 700;
}

.truenetthee-package-card__speed .sub {
	font-size: 20px;
	font-weight: 700;
	color: #8b9099;
}

.truenetthee-package-card__speed .sub small {
	font-size: 12px;
}

.truenetthee-package-card__prices {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
}

.truenetthee-package-card__price-tier {
	text-align: right;
	width: 100%;
	padding-bottom: 6px;
	border-bottom: 1px solid #e5e7eb;
}

.truenetthee-package-card__price-tier:last-child {
	border-bottom: none;
}

.truenetthee-package-card__price-tier .amount {
	font-size: 28px;
	font-weight: 800;
	color: #6b7280;
}

.truenetthee-package-card__price-tier.is-truemove .amount {
	background: linear-gradient(90deg, #861079, #fd0102);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.truenetthee-package-card__price-tier.is-switch .amount {
	background: linear-gradient(270deg, #01c6ff, #098ef6);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.truenetthee-package-card__price-tier .unit {
	font-size: 13px;
	color: #6b7280;
	font-weight: 700;
}

.truenetthee-package-card__price-tier .desc {
	font-size: 10px;
	color: #374151;
	display: block;
}

.truenetthee-package-card__bundle-label {
	font-size: 18px;
	font-weight: 700;
	color: #374151;
}

.truenetthee-package-card__bundle-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.truenetthee-package-card__bundle-list li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 700;
	color: #374151;
}

.truenetthee-package-card__bundle-list img {
	width: 40px;
	height: 40px;
	object-fit: contain;
	flex-shrink: 0;
}

.truenetthee-package-card__plain-notes {
	list-style: disc;
	margin: 0;
	padding-left: 19.5px;
	font-size: 13px;
	color: #374151;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.truenetthee-package-card__cta {
	margin-top: auto;
	background: linear-gradient(96.8deg, #fd0102 9.89%, #861079 145.21%);
	color: #fff;
	text-align: center;
	font-weight: 700;
	font-size: 16px;
	border-radius: 50px;
	padding: 14px;
	text-decoration: none;
}

.truenetthee-package-banner {
	aspect-ratio: 1440 / 450;
	object-fit: cover;
	object-position: center;
}

.truenetthee-package-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	margin-top: 32px;
}

.truenetthee-package-filter-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	background: #f9f9fc;
	border-radius: 16px;
	padding: 16px 24px;
	margin-top: 32px;
}

.truenetthee-package-filters {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	font-size: 14px;
	color: #4b5563;
}

.truenetthee-package-filters a {
	padding: 6px 16px;
	border-radius: 50px;
	background: #fff;
	color: #4b5563;
	font-size: 14px;
	text-decoration: none;
	border: 1px solid #e5e7eb;
}

.truenetthee-package-filters a.is-active {
	background: var(--wp--preset--color--primary-red);
	color: #fff;
	border-color: var(--wp--preset--color--primary-red);
}

@media (max-width: 1200px) {
	.truenetthee-package-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 960px) {
	.truenetthee-package-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.truenetthee-package-grid {
		grid-template-columns: 1fr;
	}
}

/* Single package page */
.truenetthee-package-single {
	display: flex;
	gap: 48px;
	margin-top: 24px;
	margin-bottom: 64px;
	align-items: flex-start;
	flex-wrap: wrap;
}

.truenetthee-package-single__card {
	/* flex-shrink:0 (from a plain "0 0 380px") kept this at a literal
	   380px even once the viewport itself was narrower than that,
	   overflowing the page - let it shrink below 380px when there's
	   no room, instead of only ever growing up to it. */
	flex: 0 1 380px;
	max-width: 380px;
	width: 100%;
}

.truenetthee-package-single__info {
	flex: 1 1 500px;
}

.truenetthee-package-single__info h1 {
	font-size: 36px;
	color: #111827;
	margin: 0 0 16px;
}

/* Blog archive */
.truenetthee-blog-intro h1 {
	font-size: 40px;
	color: #111827;
	margin: 8px 0 8px;
}

.truenetthee-blog-intro p {
	font-size: 16px;
	color: #6b7280;
	margin: 0;
}

.truenetthee-section-label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 20px;
	font-weight: 700;
	color: #111827;
	margin: 40px 0 24px;
}

.truenetthee-section-label img {
	width: 22px;
	height: 22px;
}

.truenetthee-featured-article {
	background: #f9f9fc;
	border-radius: 20px;
	display: flex;
	overflow: hidden;
	margin-bottom: 24px;
}

.truenetthee-featured-article__media {
	flex: 1 1 50%;
	min-height: 320px;
}

.truenetthee-featured-article__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.truenetthee-featured-article__content {
	flex: 1 1 50%;
	padding: 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 16px;
}

.truenetthee-featured-article__content .topic {
	color: #da1537;
	font-weight: 700;
	font-size: 14px;
}

.truenetthee-featured-article__content h2 {
	font-size: 32px;
	color: #111827;
	margin: 0;
	line-height: 1.3;
}

.truenetthee-featured-article__content p.excerpt {
	color: #4b5563;
	font-size: 17px;
	line-height: 1.6;
	margin: 0;
}

.truenetthee-reading-time {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #6b7280;
}

.truenetthee-reading-time img {
	width: 16px;
	height: 16px;
}

.truenetthee-btn-read {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--primary-red);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	border-radius: 50px;
	padding: 14px 24px;
	text-decoration: none;
	width: fit-content;
}

.truenetthee-browse-heading {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 48px;
}

.truenetthee-browse-heading h2 {
	font-size: 32px;
	color: #111827;
	margin: 0 0 8px;
}

.truenetthee-browse-heading p {
	color: #6b7280;
	font-size: 16px;
	margin: 0;
}

.truenetthee-search-box {
	display: flex;
	align-items: center;
	gap: 10px;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	padding: 14px 18px;
	min-width: 320px;
}

.truenetthee-search-box img {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.truenetthee-search-box input {
	border: none;
	outline: none;
	font-size: 14px;
	width: 100%;
	font-family: inherit;
}

.truenetthee-topic-filters {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 24px;
}

.truenetthee-topic-filters a {
	padding: 11px 22px;
	border-radius: 50px;
	background: #fff;
	border: 1px solid #ece7e9;
	color: #4b5563;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.truenetthee-topic-filters a.is-active {
	background: var(--wp--preset--color--primary-red);
	border-color: #da1537;
	color: #fff;
}

.truenetthee-results-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 24px;
}

.truenetthee-results-summary__count {
	color: #6b7280;
	font-size: 16px;
	margin: 0;
}

.truenetthee-results-summary__sort {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #4b5563;
	font-size: 16px;
}

.truenetthee-results-summary__sort img {
	width: 16px;
	height: 16px;
}

.truenetthee-article-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 24px;
}

.truenetthee-article-card {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0px 4px 16px 0px rgba(41, 20, 26, 0.04);
	display: flex;
	flex-direction: column;
	text-decoration: none;
}

.truenetthee-article-card__image {
	height: 230px;
}

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

.truenetthee-article-card__body {
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1;
}

.truenetthee-article-card .topic {
	color: #da1537;
	font-weight: 700;
	font-size: 14px;
}

.truenetthee-article-card h3 {
	font-size: 22px;
	color: #111827;
	margin: 0;
	line-height: 1.35;
}

.truenetthee-article-card p.excerpt {
	color: #4b5563;
	font-size: 15px;
	line-height: 1.5;
	margin: 0;
	flex: 1;
}

.truenetthee-article-card__footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 8px;
}

.truenetthee-read-more {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #da1537;
	font-size: 14px;
	font-weight: 700;
}

.truenetthee-read-more img {
	width: 14px;
	height: 14px;
}

@media (max-width: 960px) {
	.truenetthee-featured-article {
		flex-direction: column;
	}
	.truenetthee-article-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.truenetthee-article-grid {
		grid-template-columns: 1fr;
	}
	.truenetthee-search-box {
		min-width: 0;
		width: 100%;
	}
}

/* Query Loop block output -> match custom card styling */
.truenetthee-article-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 24px;
	/* WP's own `:root :where(.is-layout-flow) > :last-child` rule (two
	   pseudo-classes = higher specificity than a single class here) zeroes
	   out any margin-bottom on this grid, since it's the query block's
	   only/last child - !important is needed to actually win. */
	margin-bottom: 80px !important;
}

/* WP's blockGap layout CSS (`:root :where(.is-layout-flow) > * { margin-
   block-start: 24px }`, zeroed only for the very first child overall)
   is meant for vertically-stacked blocks, not a 3-column grid - it still
   applies per-item regardless of column, so the 2nd/3rd cards in row 1
   (not "first child" in DOM order) get pushed down 24px while the 1st
   doesn't, misaligning only that row. The grid's own `gap` already
   handles spacing, so zero it out here (specificity .class > li beats
   their :root + :where(0-specificity) selector, no !important needed). */
.truenetthee-article-grid > li {
	margin-top: 0;
}

.truenetthee-article-grid .truenetthee-article-card {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0px 4px 16px 0px rgba(41, 20, 26, 0.04);
	/* The grid's <li> items stretch to the row's tallest card (CSS Grid's
	   default align-items: stretch), but this inner wrapper div doesn't
	   inherit that - without height:100% a card with a shorter title/
	   excerpt leaves blank space below itself instead of matching its
	   row siblings, so its footer (date/read more) sits higher than theirs. */
	height: 100%;
}

.truenetthee-article-grid .truenetthee-article-card__image img {
	width: 100%;
	height: 230px;
	object-fit: cover;
	margin: 0;
}

.truenetthee-article-grid .truenetthee-article-card__body {
	padding: 24px;
}

.truenetthee-article-grid .wp-block-post-terms.topic {
	color: #da1537;
	font-weight: 700;
	font-size: 14px;
	display: block;
	margin-bottom: 8px;
}

.truenetthee-article-grid .wp-block-post-terms.topic a {
	color: #da1537;
	text-decoration: none;
}

.truenetthee-article-grid h3.wp-block-post-title {
	font-size: 22px;
	line-height: 1.35;
	margin: 0 0 12px;
}

.truenetthee-article-grid h3.wp-block-post-title a {
	color: #111827;
	text-decoration: none;
}

.truenetthee-article-grid .excerpt.wp-block-post-excerpt {
	color: #4b5563;
	font-size: 15px;
	line-height: 1.5;
	margin: 0 0 16px;
}

.truenetthee-article-grid .wp-block-post-excerpt__more {
	display: none;
}

.truenetthee-article-grid .wp-block-post-date {
	color: #6b7280;
	font-size: 14px;
}

.truenetthee-article-grid .wp-block-read-more {
	color: #da1537;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

@media (max-width: 960px) {
	.truenetthee-article-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.truenetthee-article-grid {
		grid-template-columns: 1fr;
	}
}

/* Blog post content */
.truenetthee-tip {
	background: #effcf5;
	border-radius: 12px;
	border-left: 4px solid var(--wp--preset--color--line-green);
}

.truenetthee-tip p {
	margin: 0;
	color: #1a1a2e;
	font-size: 15px;
	line-height: 1.7;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
}

.entry-content table th {
	background: var(--wp--preset--color--light-gray);
	text-align: left;
	padding: 12px;
	font-size: 14px;
}

.entry-content table td {
	padding: 12px;
	border-bottom: 1px solid #e5e7eb;
	font-size: 14px;
}

/* Contact page */
.truenetthee-info-block {
	box-sizing: border-box;
	background: #fff;
	box-shadow: 0px 0px 7.5px rgba(0, 0, 0, 0.15);
	border-radius: 20px;
	padding: 30px;
	display: flex;
	justify-content: space-between;
	align-items: stretch;
	/* Figma: 60px gap from the breadcrumb above (not 24px). */
	margin-top: 60px;
}

.truenetthee-info-block__text {
	/* Figma: a fixed 687px column, not a flexible one sharing a 40px
	   gap with the map - the map fills whatever space is left with no
	   gap between them (confirmed via get_design_context: no gap
	   property on the parent, map's own width exactly equals the
	   remaining space after the text column and the 30px padding). */
	flex: 0 0 687px;
}

.truenetthee-info-block__text h2 {
	font-size: 36px;
	color: #1a1a2e;
	margin: 0 0 12px;
}

.truenetthee-info-block__text > p {
	color: #4b5563;
	font-size: 16px;
	margin: 0 0 28px;
	max-width: 562px;
}

.truenetthee-info-block h3 {
	font-size: 20px;
	color: #1a1a2e;
	margin: 0 0 18px;
}

.truenetthee-contact-card {
	display: flex;
	gap: 16px;
	margin-bottom: 18px;
}

.truenetthee-contact-card > div:last-child {
	/* Without this, a flex item can't shrink below its content's
	   intrinsic width (flexbox's min-width:auto default) - the long
	   address/email lines pushed past the viewport edge on narrow
	   screens instead of wrapping. */
	min-width: 0;
	flex: 1;
}

.truenetthee-contact-card .icon-badge {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50px;
	background: #f9f9fc;
	display: flex;
	align-items: center;
	justify-content: center;
}

.truenetthee-contact-card .icon-badge img {
	width: 20px;
	height: 20px;
}

.truenetthee-contact-card strong {
	display: block;
	font-size: 16px;
	color: #1a1a2e;
	margin-bottom: 4px;
}

.truenetthee-contact-card p {
	font-size: 14px;
	color: #4b5563;
	margin: 0;
}

.truenetthee-contact-card .sub {
	font-size: 13px;
	color: #9ca3af;
	margin-top: 2px;
}

.truenetthee-info-block__map {
	flex: 1 1 auto;
	position: relative;
	border-radius: 20px;
	overflow: hidden;
	min-height: 300px;
}

.truenetthee-info-block__map img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.truenetthee-map-pin {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.truenetthee-map-pin .pin-bubble {
	background: #fff;
	border-radius: 4px;
	padding: 8px 16px;
	font-size: 12px;
	font-weight: 700;
	color: #1f2937;
	white-space: nowrap;
}

.truenetthee-map-pin img {
	width: 32px;
	height: 32px;
}

@media (max-width: 900px) {
	.truenetthee-info-block {
		flex-wrap: wrap;
	}

	.truenetthee-info-block__text {
		flex-basis: 100%;
	}
}

/* FAQ accordion */
.truenetthee-faq-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 1140px;
	margin: 24px auto 0;
}

/* It's the last element in the page content, so WP's own
   `:root :where(.is-layout-flow) > :last-child` rule (higher
   specificity than a plain class) zeroes any margin-bottom here - same
   issue fixed before on the blog archive's article grid. Figma wants a
   60px gap before the footer starts, at any viewport size. */
.wp-block-post-content.is-layout-constrained > .alignwide > .truenetthee-faq-list {
	margin-bottom: 60px !important;
}

/* The generic "force alignwide's direct children to 100%" rule (used to
   fix width-capped sections elsewhere) was also stretching this FAQ list
   to the full 1440px column - it's meant to stay narrower (1140px,
   centered) per Figma, so it needs to win back its own max-width.
   Desktop-only: below 1025px there's no 1440px column to be narrower
   than, so forcing a literal 1140px width here would itself overflow
   the viewport. */
@media (min-width: 1025px) {
	.wp-block-post-content.is-layout-constrained > .alignwide > .truenetthee-faq-list {
		max-width: 1140px !important;
		width: 1140px !important;
		margin-left: auto !important;
		margin-right: auto !important;
	}
}

.truenetthee-faq-item {
	background: #f9f9fc;
	border-radius: 8px;
	padding: 20px;
}

.truenetthee-faq-item summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 16px;
	font-weight: 700;
	color: #111827;
}

.truenetthee-faq-item summary::-webkit-details-marker {
	display: none;
}

.truenetthee-faq-item summary img {
	width: 18px;
	height: 18px;
	transition: transform 0.2s ease;
	flex-shrink: 0;
	margin-left: 16px;
}

.truenetthee-faq-item[open] summary img {
	transform: rotate(180deg);
}

.truenetthee-faq-item p {
	color: #4b5563;
	font-size: 14px;
	line-height: 1.6;
	margin: 12px 0 0;
}

/* Breadcrumb */
.truenetthee-breadcrumb {
	font-size: 14px;
	color: #6b7280;
	display: flex;
	align-items: center;
	/* Figma's gap between every item (link/chevron/link/chevron/current)
	   is 12px, not 8px. */
	gap: 12px;
	padding: 24px 0 0;
}

.truenetthee-breadcrumb a {
	color: #6b7280;
	text-decoration: none;
}

.truenetthee-breadcrumb span {
	color: #da1537;
}

/* A real 14x14 chevron icon, not the "›" text character - confirmed via
   get_design_context on the breadcrumb component (it's an svg, not a
   glyph), which also explains why it looked undersized against Figma:
   a text character's visual size is tied to font rendering, not a
   fixed icon box. */
.truenetthee-breadcrumb__chevron {
	width: 14px;
	height: 14px;
	display: block;
}

/* General fix, not just the about-us hero: on any single-page template
   (page.html), .entry-content/.wp-block-post-content is itself
   constrained to the theme's 1200px contentSize, so an align:wide
   block's own max-width:1440px never has room to actually take effect
   - it was rendering at ~914-1200px instead of Figma's 1440px.
   Confirmed on about-us (hero-section: x=240, width=1440 on a 1920
   page) and the same bug hit every other align:wide section further
   down that same page. Pull every one of them out of the 1200px box
   symmetrically: the gap between 1440 and 1200 is 120px per side.
   Desktop-only (min-width:1025px): below that there isn't 1440px of
   viewport to escape INTO, so this literal width + negative-margin
   escape just overflows the screen - let WP's own responsive
   max-width (unconstrained by these overrides) take over instead. */
@media (min-width: 1025px) {
	.wp-block-post-content.is-layout-constrained > .alignwide {
		max-width: 1440px !important;
		width: 1440px;
		margin-left: -120px !important;
		margin-right: -120px !important;
	}

	/* Widening the wrapper itself isn't enough: each direct child inside
	   it (breadcrumb, hero-section, stats-grid, feature cards, etc.) is
	   its own constrained block and independently caps itself back down
	   to the default 1200px contentSize, sitting flush-left inside the
	   now-1440px wrap with an unused 240px gap on the right - so the
	   visible content hadn't actually gotten any wider, only the
	   invisible wrapper around it had. */
	.wp-block-post-content.is-layout-constrained > .alignwide > * {
		max-width: 100% !important;
		width: 100% !important;
	}

	/* Same bug, different nesting: an .alignwide block sitting INSIDE an
	   .alignfull section (e.g. the gray "จุดเด่นและคุณค่าหลัก" background
	   section) isn't a direct child of the 1200px-constrained root, so
	   the rule above never matched it - it kept capping itself at 1200px
	   even though its own .alignfull parent was already correctly full-
	   width. This one doesn't need the viewport-relative escape (its
	   parent already provides the full 1920px), just the normal wide
	   max-width centered within that already-correct parent. */
	.wp-block-post-content.is-layout-constrained .alignfull > .alignwide {
		max-width: 1440px !important;
		width: 100%;
		margin-left: auto !important;
		margin-right: auto !important;
	}

	.wp-block-post-content.is-layout-constrained .alignfull > .alignwide > * {
		max-width: 100% !important;
		width: 100% !important;
	}
}

.truenetthee-post-hero {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.truenetthee-post-hero__image {
	margin: 0;
}

.truenetthee-post-hero__image img {
	width: 100%;
	/* Figma's hero is exactly 1440x758 - aspect-ratio keeps that same
	   crop at any width instead of a fixed 758px height, which stayed
	   758px tall even when the image itself had shrunk to mobile width,
	   cropping in so tight it looked almost fully zoomed-in. */
	aspect-ratio: 1440 / 758;
	height: auto;
	object-fit: cover;
	border-radius: 20px;
	display: block;
}

.truenetthee-post-heading {
	padding: 32px 16px 0;
}

.truenetthee-post-heading .wp-block-post-date {
	color: #303c46;
	font-size: 14px;
}

.truenetthee-post-heading h1 {
	color: #da1537;
	font-size: 40px;
	font-weight: 700;
	line-height: 1.4;
	margin: 7px 0 0;
}

.truenetthee-post-body {
	box-sizing: border-box;
	padding: 34px 16px 0;
}

.truenetthee-post-body h2,
.truenetthee-post-body h3,
.truenetthee-post-body h4,
.truenetthee-post-body h5 {
	font-size: 32px;
	color: #303c46;
	line-height: 1.4;
	/* This selector (2 classes) is more specific than the generic
	   `> * + *` sibling spacer below, so its own margin-top:0 was
	   silently cancelling that spacer for every heading - collapsing
	   the gap between a paragraph/table and the heading right after it
	   down to 0, regardless of the spacer's value. Set the real spacing
	   here directly instead of relying on the lower-specificity rule. */
	margin: 28px 0 20px;
}

.truenetthee-post-body > :first-child {
	margin-top: 0;
}

.truenetthee-post-body p,
.truenetthee-post-body li {
	font-size: 16px;
	color: #303c46;
	line-height: 1.8;
}

.truenetthee-post-body > * + * {
	margin-top: 28px;
}

.truenetthee-related-articles {
	margin-top: 64px;
}

.truenetthee-related-articles__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

.truenetthee-related-articles__header h2 {
	font-size: 32px;
	color: #111827;
	margin: 0;
}

.truenetthee-related-articles__link {
	font-size: 16px;
	font-weight: 700;
	color: #111827;
	text-decoration: none;
	white-space: nowrap;
}

/* About hero */
.truenetthee-about-hero {
	display: flex;
	align-items: center;
	gap: 48px;
	padding: 24px 0 40px;
	flex-wrap: wrap;
}

.truenetthee-about-hero__text {
	flex: 1 1 400px;
}

.truenetthee-about-hero__text h1 {
	font-size: 48px;
	line-height: 1.2;
	margin: 0 0 20px;
	color: #111827;
}

.truenetthee-about-hero__text p {
	color: #4b5563;
	font-size: 16px;
	line-height: 1.6;
	max-width: 688px;
	margin: 0;
}

.truenetthee-about-hero__image {
	flex: 1 1 400px;
	max-width: 560px;
	border-radius: 20px;
	overflow: hidden;
}

.truenetthee-about-hero__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.truenetthee-line-invite {
	background: #effcf5;
	border-radius: 15px;
	padding: 15px 20px;
	display: flex;
	align-items: center;
	gap: 20px;
	margin-top: 40px;
	max-width: 416px;
}

.truenetthee-line-invite strong {
	display: block;
	font-size: 14px;
	color: #1a1a2e;
	margin-bottom: 2px;
}

.truenetthee-line-invite span {
	display: block;
	font-size: 12px;
	color: #374151;
}

.truenetthee-line-invite a {
	background: #00b900;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	border-radius: 10px;
	padding: 10px 20px;
	text-decoration: none;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

/* Stats grid */
.truenetthee-stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	text-align: center;
	padding: 24px 0;
}

.truenetthee-stats-grid .stat-card {
	border-right: 1px solid #e5e7eb;
}

.truenetthee-stats-grid .stat-card:last-child {
	border-right: none;
}

.truenetthee-stats-grid .stat-number {
	font-size: 36px;
	font-weight: 800;
	color: var(--wp--preset--color--primary-red);
	display: block;
}

.truenetthee-stats-grid .stat-label {
	font-size: 14px;
	color: #4b5563;
	margin-top: 8px;
}

@media (max-width: 767px) {
	.truenetthee-stats-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px 0;
	}
	.truenetthee-stats-grid .stat-card:nth-child(odd) {
		border-right: 1px solid #e5e7eb;
	}
	.truenetthee-stats-grid .stat-card:nth-child(even) {
		border-right: none;
	}
}

/* Strengths grid */
.truenetthee-strengths-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	margin-top: 40px;
}

.truenetthee-strength-card {
	background: #fff;
	border-radius: 12px;
	padding: 40px 24px;
	text-align: center;
	box-shadow: 0px 0px 7.5px rgba(102, 102, 102, 0.15);
}

.truenetthee-strength-card img {
	width: 60px;
	height: 60px;
	margin: 0 auto 16px;
}

.truenetthee-strength-card h3 {
	font-size: 18px;
	margin: 0 0 8px;
	color: #111827;
}

.truenetthee-strength-card p {
	font-size: 14px;
	color: #4b5563;
	line-height: 1.5;
	margin: 0;
}

@media (max-width: 960px) {
	.truenetthee-strengths-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.truenetthee-strengths-grid {
		grid-template-columns: 1fr;
	}
}

/* Certificate placeholder cards */
.truenetthee-certificate-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
	margin-top: 40px;
}

.truenetthee-certificate-card {
	background: #fff;
	border-radius: 12px;
	padding: 24px;
}

.truenetthee-certificate-card h3 {
	font-size: 18px;
	margin: 0 0 16px;
	color: #111827;
}

.truenetthee-certificate-placeholder {
	position: relative;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	aspect-ratio: 660 / 854;
	overflow: hidden;
	background: #fff;
}

/* Figma's placeholder isn't an empty diagonal-hatch pattern - it's a
   real sample certificate image, with the "ภาพตัวอย่าง" badge and
   crossed lines overlaid on top of it to mark it as a stand-in. */
.truenetthee-certificate-placeholder__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.truenetthee-certificate-placeholder::before,
.truenetthee-certificate-placeholder::after {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	width: 1px;
	height: 141.4%;
	background: #d1d5db;
	transform-origin: top center;
	/* Without this, ::before paints below the image (fine) but ::after
	   paints above everything including the span (also fine) while
	   ::before would paint below the image - explicit z-index keeps
	   both lines consistently above the image, below the badge. */
	z-index: 1;
}

.truenetthee-certificate-placeholder::before {
	transform: translateX(-50%) rotate(37.8deg);
}

.truenetthee-certificate-placeholder::after {
	transform: translateX(-50%) rotate(-37.8deg);
}

.truenetthee-certificate-placeholder span {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #d1d5db;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	padding: 6px 12px;
	font-size: 12px;
	color: #4b5563;
	z-index: 2;
}

@media (max-width: 767px) {
	.truenetthee-certificate-grid {
		grid-template-columns: 1fr;
	}
}

/* Partners grid */
.truenetthee-partners-grid {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 60px;
	flex-wrap: wrap;
	margin-top: 40px;
}

.truenetthee-partners-grid img {
	height: 60px;
	width: auto;
	max-width: 120px;
	object-fit: contain;
}

/* Brand wordmark: gradient "truenet" + solid blue "theerayut", edited as normal block text. */
.truenetthee-logo {
	gap: 0;
}

.truenetthee-logo__mark {
	font-family: var( --wp--preset--font-family--logo );
	font-size: 30px;
	line-height: 1.2;
	margin: 0;
	background: var( --wp--preset--gradient--truenet-brand-gradient );
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.truenetthee-logo__sub {
	font-family: var( --wp--preset--font-family--body );
	font-size: 14px;
	font-weight: 700;
	color: var( --wp--preset--color--accent-blue );
	margin: 0;
}

/* A copy of the header logo lives inside the nav block itself (not the
   header's own one) so it also renders inside the mobile overlay menu
   - but that means it's ALSO a normal flex item in the desktop inline
   nav by default. Hide it there; only show it at the top of the open
   mobile overlay, above the links. */
.truenetthee-nav-mobile-logo {
	/* The group block's own generated per-instance layout class
	   (`.wp-container-core-group-is-layout-...`) sets display:flex at
	   the same specificity but prints later in <head>, so it always
	   won without !important here. */
	display: none !important;
}

.wp-block-navigation__responsive-container.is-menu-open .truenetthee-nav-mobile-logo {
	display: flex !important;
	margin-bottom: 32px;
}

/* Header bar shadow + sticky-ready container (template part itself provides bg/padding via block supports). */
.truenetthee-header {
	box-shadow: 0px 4px 7.5px rgba( 93, 219, 255, 0.15 );
}

/* LINE CTA button: core button + LINE icon, swapped in via background-image since core/button has no icon slot. */
.truenetthee-line-cta .wp-block-button__link {
	background-color: var( --wp--preset--color--line-green );
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding-top: 10px;
	padding-bottom: 10px;
}

.truenetthee-line-cta .wp-block-button__link::before {
	content: "";
	display: inline-block;
	width: 20px;
	height: 20px;
	background-image: url( '../images/icon-line-white.svg' );
	background-size: contain;
	background-repeat: no-repeat;
}

/* Footer: dark navy background + translucent photo overlay, text/link colors. */
.truenetthee-footer {
	position: relative;
	background-color: var( --wp--preset--color--dark-navy );
	color: #d1d5db;
}

.truenetthee-footer::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: url( '../images/footer-glow.png' );
	background-size: cover;
	background-position: center bottom;
	opacity: 0.5;
	pointer-events: none;
}

.truenetthee-footer > * {
	position: relative;
	z-index: 1;
	width: 100%;
}

.truenetthee-footer .wp-block-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.truenetthee-footer a {
	color: #d8d8d8;
	text-decoration: none;
}

.truenetthee-footer a:hover {
	color: var( --wp--preset--color--white );
}

.truenetthee-footer h3,
.truenetthee-footer .wp-block-heading {
	color: var( --wp--preset--color--white );
	/* Re-checked directly against the live footer instance (270:5960),
	   not just the component definition: these column headings are
	   14px, same as the "small" preset the has-small-font-size class
	   should already apply - but something in the cascade (likely a
	   theme.json element default) was winning and rendering 13px.
	   Force it here instead of fighting that specificity. Also adds
	   the 16px gap to the list below, which was completely missing
	   (0px) since nothing set a margin-bottom on the heading. */
	/* WordPress's global-styles inline CSS sets
	   .has-small-font-size{font-size:var(--wp--preset--font-size--small)
	   !important}, and that variable itself resolves to 13px somewhere
	   outside this theme's own theme.json (not present there at all) -
	   so a plain declaration here loses to it regardless of selector
	   specificity. !important is necessary to actually win. */
	font-size: 14px !important;
	margin: 0 0 16px;
}

/* Footer-only wordmark: "true-Partner" + blue tagline. The earlier
   comment here said this should be plain white per node 270:6005, but
   re-checking the actual footer instance (270:5960) directly shows a
   cyan-to-red gradient fill on "true-Partner" specifically - that
   instance is what's really on the page, so trusting it over whatever
   270:6005 (likely the base component) showed. */
.truenetthee-footer-logo {
	gap: 0;
}

.truenetthee-footer-logo__mark {
	font-family: var( --wp--preset--font-family--logo );
	font-size: 30px;
	line-height: 1.2;
	margin: 0;
	background: linear-gradient( to left, #01c6ff 18.75%, #fd0102 79.808% );
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.truenetthee-footer-logo__sub {
	font-family: var( --wp--preset--font-family--body );
	font-size: 14px;
	font-weight: 700;
	color: var( --wp--preset--color--accent-blue );
	margin: 0;
}

.truenetthee-footer-bottom {
	/* Figma's border is a solid, fully-opaque #e5e7eb, not the faint
	   20%-opacity version this had. */
	border-top: 1px solid #e5e7eb;
	font-size: 13px;
	color: #d1d5db;
}

/* Social icon circles (Facebook/LINE/TikTok) in the footer — plain <img>
   icons exported straight from Figma, not WP's built-in social-link block,
   since its own icon set didn't match the design closely enough. */
.truenetthee-socials {
	gap: 12px;
}

.truenetthee-social-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 16px;
	background: #fff;
	border: 1px solid #d1d5db;
	transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.truenetthee-social-icon:hover {
	background: var( --wp--preset--color--primary-red );
	border-color: var( --wp--preset--color--primary-red );
	transform: translateY( -2px );
}

.truenetthee-social-icon img {
	width: auto;
	height: auto;
	max-width: 16px;
	max-height: 16px;
	transition: filter 0.2s ease;
}

.truenetthee-social-icon:hover img {
	filter: brightness( 0 ) invert( 1 );
}

.truenetthee-line-cta .wp-block-button__link {
	white-space: nowrap;
}

/* Tablet and down: header/footer side padding shrinks from the 120px desktop spec. */
@media ( max-width: 1024px ) {
	.truenetthee-header,
	.truenetthee-footer {
		padding-left: 40px !important;
		padding-right: 40px !important;
	}
}

body {
	overflow-x: hidden;
}

/* Hero carousel (home page) */
.truenetthee-hero-carousel {
	/* no explicit width: an auto-width block lets the .alignfull negative
	   margins (full-bleed escape) expand it to the true viewport edge;
	   "width:100%" would instead lock it to 100% of its 1200px-constrained
	   parent, undoing the escape. */
	position: relative;
	aspect-ratio: 1920 / 620;
	overflow: hidden;
}

.truenetthee-hero-carousel__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.6s ease;
	z-index: 0;
}

.truenetthee-hero-carousel__slide.is-active {
	opacity: 1;
	z-index: 1;
}

.truenetthee-hero-carousel__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.truenetthee-hero-carousel__dots {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	display: flex;
	gap: 8px;
}

.truenetthee-hero-carousel__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	border: none;
	cursor: pointer;
	padding: 0;
}

.truenetthee-hero-carousel__dot.is-active {
	background: #fff;
}

/* Highlights section */
.truenetthee-highlights {
	position: relative;
	background-color: var(--wp--preset--color--light-gray);
	padding: 80px 24px;
	overflow: hidden;
}

.truenetthee-highlights::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: url('../images/highlights-bg.jpg');
	background-size: cover;
	background-position: center;
	opacity: 0.8;
	mask-image: linear-gradient(180deg, #fff 0%, transparent 20%, transparent 80%, #fff 100%);
	-webkit-mask-image: linear-gradient(180deg, #fff 0%, transparent 20%, transparent 80%, #fff 100%);
}

.truenetthee-highlights__inner {
	position: relative;
	z-index: 1;
	max-width: 1200px;
	margin: 0 auto;
}

.truenetthee-highlights-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	margin-top: 40px;
}

.truenetthee-highlight-card {
	background: #fff;
	border-radius: 16px;
	padding: 28px;
	box-shadow: 0px 4px 16px 0px rgba(41, 20, 26, 0.04);
}

.truenetthee-highlight-card img {
	width: 60px;
	height: 60px;
	margin-bottom: 16px;
}

.truenetthee-highlight-card h3 {
	font-size: 20px;
	margin: 0 0 8px;
	color: #20232d;
}

.truenetthee-highlight-card p {
	font-size: 14px;
	color: #606570;
	line-height: 1.7;
	margin: 0 0 16px;
}

.truenetthee-highlight-card a {
	font-size: 13px;
	font-weight: 700;
	color: #da1537;
}

@media (max-width: 960px) {
	.truenetthee-highlights-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.truenetthee-highlights-grid {
		grid-template-columns: 1fr;
	}
}

/* LINE contact CTA banner (reusable) */
.truenetthee-cta-banner {
	position: relative;
	box-sizing: border-box;
	/* Figma's gradient runs bottom (#050f67) -> 49.5% (#001093) -> top
	   (#02088a) - this previously had the bottom/top colors swapped. */
	background: linear-gradient(0deg, #050f67, #001093 49.5%, #02088a);
	padding: 44px 240px;
	overflow: hidden;
}

@media (max-width: 960px) {
	.truenetthee-cta-banner {
		/* 240px of side padding alone is wider than most phones -
		   box-sizing:border-box (added above) keeps it from literally
		   overflowing the viewport even at the full 240px, but it would
		   still squeeze the heading/button down to almost nothing, so
		   shrink the padding itself here too. */
		padding: 32px 24px;
	}
}

/* Figma positions this as an oversized, upward-shifted image rather
   than a simple "cover" crop, so only the product-row portion (not the
   "True Online home next" headline higher up in the same source image)
   shows through, on the right side only. Values are the Tailwind
   classes from the design (w-[78.22%] h-[191.84%] left-[24.77%]
   top-[-91.67%]) converted directly to plain CSS percentages. */
.truenetthee-cta-banner__bg-image {
	position: absolute;
	left: 24.77%;
	top: -91.67%;
	width: 78.22%;
	height: 191.84%;
	max-width: none;
	z-index: 0;
	pointer-events: none;
}

.truenetthee-cta-banner__glow {
	position: absolute;
	left: 1641px;
	top: -154px;
	width: 460px;
	height: 460px;
	z-index: 0;
	pointer-events: none;
}

.truenetthee-cta-banner__inner {
	position: relative;
	z-index: 1;
	max-width: 850px;
}

.truenetthee-cta-banner h2 {
	color: #fff;
	font-size: 28px;
	margin: 0 0 8px;
}

.truenetthee-cta-banner p {
	color: #ededed;
	font-size: 18px;
	margin: 0;
}

.truenetthee-cta-banner .wp-block-buttons {
	margin-top: 30px;
}

/* Installation gallery */
.truenetthee-gallery {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.truenetthee-gallery__item {
	border-radius: 20px;
	overflow: hidden;
	aspect-ratio: 340 / 477;
}

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

.truenetthee-gallery__cta {
	position: relative;
	border-radius: 20px;
	overflow: hidden;
	/* aspect-ratio alone (as used on .truenetthee-gallery__item) doesn't
	   resolve correctly here: this element is content-box with its own
	   padding, which throws off the aspect-ratio box model and left it
	   ~19px shorter than its row siblings. Forcing height:100% instead
	   just matches whatever row height the photo tiles establish. */
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #fff;
	padding: 24px;
	box-sizing: border-box;
}

.truenetthee-gallery__cta img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

.truenetthee-gallery__cta::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(253,1,2,0.8), rgba(140,13,115,0.8) 35%, rgba(38,64,217,0.8) 65%, rgba(0,166,255,0.8));
	z-index: 1;
}

.truenetthee-gallery__cta-content {
	position: relative;
	z-index: 2;
}

.truenetthee-gallery__cta-content h3 {
	font-size: 16px;
	margin: 0 0 4px;
	color: #fff;
}

.truenetthee-gallery__cta-content p {
	font-size: 14px;
	margin: 0 0 20px;
	color: #fff;
}

.truenetthee-gallery__cta-content a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 0 24px;
	border: 1px solid #fff;
	border-radius: 100px;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

@media (max-width: 960px) {
	.truenetthee-gallery {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.truenetthee-gallery {
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}
}

/* Testimonials */
.truenetthee-testimonials {
	padding: 80px 24px;
}

.truenetthee-testimonials__inner {
	max-width: 1300px;
	margin: 0 auto;
}

.truenetthee-review-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-top: 40px;
}

.truenetthee-review-card {
	background: #fff;
	border-radius: 20px;
	padding: 35px;
	box-shadow: 0px 4px 7.5px rgba(0, 0, 0, 0.15);
}

.truenetthee-review-card p {
	font-size: 16px;
	line-height: 1.5;
	color: #7a7a7a;
	margin: 0 0 20px;
}

.truenetthee-review-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.truenetthee-review-customer {
	display: flex;
	align-items: center;
	gap: 16px;
}

.truenetthee-review-customer img.avatar {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
}

.truenetthee-review-customer span {
	font-weight: 600;
	color: #7a7a7a;
	font-size: 18px;
}

.truenetthee-review-footer img.review-badge {
	width: 32px;
	height: 32px;
}

@media (max-width: 960px) {
	.truenetthee-review-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 600px) {
	.truenetthee-review-grid {
		grid-template-columns: 1fr;
	}
}

@media ( max-width: 600px ) {
	.truenetthee-header,
	.truenetthee-footer {
		padding-left: 20px !important;
		padding-right: 20px !important;
	}

	.truenetthee-header {
		flex-wrap: wrap !important;
		row-gap: 12px;
	}

	.truenetthee-line-cta {
		flex-shrink: 0;
	}

	.truenetthee-line-cta .wp-block-button__link {
		font-size: 13px;
		padding-left: 16px !important;
		padding-right: 16px !important;
		padding-top: 8px !important;
		padding-bottom: 8px !important;
	}

	.truenetthee-footer-bottom {
		flex-wrap: wrap;
		gap: 12px;
	}
}

/* Footer columns: same cramped-text problem shows up earlier than the
   600px phone breakpoint above - at tablet widths the 5 desktop
   percentage-based columns (sized for a 1440px row) are still too
   narrow for their own content, wrapping single words like
   "แพ็กเกจเริ่มต้น" or "true-Partner" across multiple lines. Give
   tablet the same proven wrap+reset-margin layout as mobile instead
   of a second, narrower set of column widths to maintain. */
@media (max-width: 1024px) {
	.truenetthee-footer .wp-block-columns {
		/* The columns block saves its own per-instance flex-wrap as a
		   generated `.wp-container-core-columns-is-layout-...` rule,
		   same specificity as this one but printed later in <head> -
		   it always won without !important here. */
		flex-wrap: wrap !important;
	}

	.truenetthee-footer .wp-block-column {
		flex-basis: 45% !important;
		/* The "เมนู" column's inline margin-left:195px (desktop-only
		   spacing so it sits further from the brand column) still
		   pushes that column sideways here otherwise, breaking the wrap
		   into a lopsided layout instead of the normal 2-up grid every
		   other column gets. */
		margin-left: 0 !important;
	}
}

/* "แพ็กเกจทั้งหมด" promo catalogue page */
.truenetthee-promo-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
	margin: 40px 0 48px;
}

.truenetthee-promo-grid__item {
	display: block;
	border-radius: 20px;
	overflow: hidden;
	aspect-ratio: 462 / 258;
}

.truenetthee-promo-grid__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

@media (max-width: 900px) {
	.truenetthee-promo-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.truenetthee-promo-grid {
		grid-template-columns: 1fr;
	}
}

/* Package pages (switcher/starter/gamer/all/etc.) use the Figma-spec 1440px
   wide measure for their breadcrumb/heading/grid column, not the site's
   default 1200px content width — matching the banner image's own alignwide
   width so everything on the page shares one left/right edge. */
.truenetthee-package-single-main.is-layout-constrained > :where( :not( .alignleft ):not( .alignright ):not( .alignfull ) ),
.truenetthee-package-single-main .wp-block-post-content.is-layout-constrained > :where( :not( .alignleft ):not( .alignright ):not( .alignfull ) ) {
	max-width: 1440px;
}

/* theme.json's useRootPaddingAwareAlignments assumes every .alignfull block sits
   directly under the real 120px root padding, so it cancels alignfull with a
   fixed `margin: -120px` instead of the normal viewport-relative escape. Page
   content is actually wrapped in a *second*, 1200px-capped constrained layout
   (main > post-content), so that fixed -120px only pulls alignfull sections
   (e.g. the home page CTA banner) in from the 1200px column, not the real
   viewport edge, leaving a big unwanted gutter. Restore the normal full-bleed
   escape for any alignfull block inside page/post content. */
.wp-block-post-content.is-layout-constrained > .alignfull {
	margin-left: calc( 50% - 50vw ) !important;
	margin-right: calc( 50% - 50vw ) !important;
}

/* Home page: every top-level section already carries its own explicit
   padding for spacing (hero, highlights, each promo section, CTA banner,
   gallery, testimonials...). WP's default block-gap margin-top on each
   of post-content's direct children (used nowhere else on this page on
   purpose) only adds an extra, unwanted gap on top of that — and since
   margin exposes the page's white background rather than a section's own
   fill, it shows up as a white seam at every section boundary (e.g.
   between the hero carousel and the "highlights" section right after
   it). Scoped to the home page specifically via truenetthee-home-main. */
.truenetthee-home-main .wp-block-post-content.is-layout-constrained > * {
	margin-block-start: 0 !important;
}

/* Home page promo-carousel sections (Figma node 168:5402: "popular-packages",
   "My Plan", "Mass SME", "แพ็กเกจอื่นๆ จาก true-Partner") — reuse the real
   .truenetthee-package-card markup via truenetthee/product-grid's new
   "carousel" layout, just with a section-specific header image/banner. */
.truenetthee-promo-section {
	/* Each section manages its own breathing room via padding instead,
	   so colored backgrounds butt directly against their neighbors —
	   an exposed margin here showed up as a white seam between the
	   colored sections (body background behind the gap). */
	margin-top: 0 !important;
	padding-top: 64px;
}

.truenetthee-cta-banner {
	margin-top: 0 !important;
}

.truenetthee-promo-section__banner {
	width: 100%;
	border-radius: 24px;
	display: block;
	margin-bottom: 32px;
}

.truenetthee-promo-section__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}

.truenetthee-promo-section__header h2 {
	font-size: 28px;
	font-weight: 800;
	margin: 0 0 4px;
}

.truenetthee-promo-section__header p {
	color: #6b7280;
	margin: 0;
}

.truenetthee-promo-section__header a {
	color: var( --wp--preset--color--primary-red );
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.truenetthee-promo-section--split {
	display: flex;
	gap: 24px;
	align-items: stretch;
	/* Figma's card carousel bleeds flush to the true right edge of the
	   viewport (no gutter), and the left inset for these specific
	   sections is 240px, not the page's usual 120px (confirmed directly
	   from the design dump: "pl-[240px]" / instance x=240 on both the
	   My Plan and Mass SME containers). Overrides the block's own
	   inline padding. */
	padding-left: 240px !important;
	padding-right: 0 !important;
}

/* WP's default block-gap still adds a margin-top to the second flex
   child here (the carousel), same root cause as the other block-gap
   fixes in this file — it pushed the card carousel 24px lower than the
   side panel, throwing off their bottom alignment even once heights
   matched. */
.truenetthee-promo-section--split > * {
	margin-block-start: 0 !important;
}

.truenetthee-promo-section__panel {
	width: 490px;
	flex-shrink: 0;
	border-radius: 16px;
	display: block;
	object-fit: cover;
	height: auto;
}

.truenetthee-promo-section--split .truenetthee-promo-carousel {
	flex: 1;
	min-width: 0;
}

/* Section background treatments, missed on the first pass — each of these
   3 sections sits on a full-bleed colored backdrop in Figma, not plain
   white. Padding stays the same; only the fill behind it changes. */
.truenetthee-promo-section--myplan {
	background: linear-gradient( 180deg, #fde6e7, #f3e7f1 );
	padding-top: 80px;
	padding-bottom: 80px;
}

.truenetthee-promo-section--sme {
	background: #e6f6fc;
	padding-top: 80px;
	padding-bottom: 80px;
}

.truenetthee-promo-section--other-promos {
	background: var( --wp--preset--gradient--truenet-brand-gradient );
	padding-top: 80px;
	padding-bottom: 80px;
	/* Same 240px-left / flush-right convention as the My Plan/Mass SME
	   sections right above it (confirmed: "pl-[240px]" in the dump,
	   no right padding at all). */
	padding-left: 240px !important;
	padding-right: 0 !important;
}

.truenetthee-image-carousel__dots {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-top: 24px;
}

.truenetthee-image-carousel__dots button {
	appearance: none;
	border: none;
	padding: 0;
	cursor: pointer;
	width: 6px;
	height: 6px;
	border-radius: 50px;
	background: #f9f9fc;
}

.truenetthee-image-carousel__dots button.is-active {
	width: 50px;
	height: 8px;
	background: linear-gradient( 90deg, #098ef6, #01c6ff );
}

.truenetthee-promo-section--other-promos h2 {
	color: #fff;
	font-size: 32px;
	margin: 0 0 32px;
}

/* Carousel: a scroll-snap row of fixed-width cards + round nav arrows. */
.truenetthee-promo-carousel {
	position: relative;
}

.truenetthee-promo-carousel__track {
	display: flex;
	gap: 26px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding-bottom: 4px;
	cursor: grab;
	/* Figma shows a clean carousel with no visible scrollbar chrome —
	   only the round nav arrows — so hide the native scrollbar while
	   keeping the track scrollable (via drag or the arrow buttons). */
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.truenetthee-promo-carousel__track::-webkit-scrollbar {
	display: none;
}

.truenetthee-promo-carousel__track.is-dragging,
.truenetthee-image-carousel__track.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
	/* scroll-behavior:smooth (set unconditionally on the track so the
	   nav-arrow clicks/dot clicks animate) makes a direct scrollLeft
	   assignment during drag animate asynchronously instead of jumping
	   immediately — so the drag lagged a frame behind the cursor and in
	   practice looked like it did nothing. Force instant jumps while
	   actively dragging. */
	scroll-behavior: auto !important;
}

.truenetthee-promo-carousel__track .truenetthee-package-card {
	flex: 0 0 340px;
	width: 340px;
	/* The base .truenetthee-package-card rule sets height:100% for the
	   4-column CSS grid layout, where the grid row's height is explicit.
	   In this flex track the row height is intrinsic (auto), so a
	   percentage height on the child is indeterminate and collapses to
	   content size instead — defeating the flex default (stretch) that
	   would otherwise equalize every card to the row's tallest card,
	   leaving shorter cards startlingly shorter than cards with more
	   perks. Reset to auto so stretch can do its job. */
	height: auto;
	scroll-snap-align: start;
}

.truenetthee-promo-carousel__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 60px;
	height: 60px;
	border: none;
	background: #fff;
	box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.1);
	cursor: pointer;
	z-index: 2;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Re-checked directly against Figma's rendered pixels (not just the
   metadata): the prev arrow's x position is IDENTICAL to card 0's x
   position (both at local x=516 in the frame) - meaning it sits FLUSH
   with the card row's left edge and overlaps 60px INTO card 0, not
   centered on the boundary with half hanging out into the gutter as
   this used to say and implement. There's no room to float it in the
   gutter anyway: the gap to the side panel is only 24px, far short of
   the button's own 60px width. Each button is also a half-pill, not a
   full circle: the side facing outward is square, the side overlapping
   the card is rounded — confirmed from the rendered Figma screenshots
   of each button, which are mirror images of each other. */
.truenetthee-promo-carousel__nav.is-prev {
	left: 0;
	border-radius: 0 30px 30px 0;
}

.truenetthee-promo-carousel__nav.is-next {
	right: -30px;
	border-radius: 30px 0 0 30px;
}

/* The split sections (My Plan/Mass SME) have no right-side gutter for
   this button to sit in (the carousel bleeds flush to the viewport
   edge), so anchor it just inside the edge instead of overflowing past
   it and widening the page. */
.truenetthee-promo-section--split .truenetthee-promo-carousel__nav.is-next {
	right: 20px;
}

/* Unlike My Plan/Mass SME/other-promos (flush right), the popular-
   packages section keeps a symmetric gutter on both sides in Figma —
   just a wider one (~235px) than the page's usual 120px, not the
   120px we had. */
.truenetthee-promo-section--allinone {
	padding-left: 240px !important;
	padding-right: 240px !important;
	padding-bottom: 64px;
}

/* Only the card carousel itself bleeds to the true right edge — the
   banner image and heading above it stay centered with the section's
   normal symmetric 240px gutter. Pull just the carousel out past the
   section's own right padding. */
.truenetthee-promo-section--allinone .truenetthee-promo-carousel {
	margin-right: -240px;
}

.truenetthee-promo-section--allinone .truenetthee-promo-carousel__nav {
	display: none !important;
}

/* Per-section card header image (shared across every card in that section). */
.truenetthee-promo-section--allinone .truenetthee-package-card__header {
	background-image: url( '../images/home/popular-packages-card-header.png' );
}

/* This section's single price (just "ค่าบริการปกติ", no TrueMove/switch tiers)
   still uses the blue gradient treatment in Figma, not the plain-gray default. */
.truenetthee-promo-section--allinone .truenetthee-package-card__price-tier .amount {
	background: linear-gradient( 270deg, #01c6ff, #098ef6 );
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.truenetthee-promo-section--myplan .truenetthee-package-card__header {
	background-image: url( '../images/home/myplan-card-header.png' );
}

.truenetthee-promo-section--sme .truenetthee-package-card__header {
	background-image: url( '../images/home/masssme-card-header.png' );
}

/* Section 4: plain image carousel (no pricing cards), scroll-snap row. */
.truenetthee-image-carousel__track {
	display: flex;
	gap: 26px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	cursor: grab;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.truenetthee-image-carousel__track::-webkit-scrollbar {
	display: none;
}

.truenetthee-image-carousel__track img {
	flex: 0 0 460px;
	width: 460px;
	height: 258px;
	object-fit: cover;
	border-radius: 20px;
	scroll-snap-align: start;
	display: block;
}

@media ( max-width: 960px ) {
	.truenetthee-promo-section--split {
		flex-direction: column;
	}

	.truenetthee-promo-section__panel {
		width: 100%;
		height: auto;
	}

	/* These sections' 240px side padding (and, for popular-packages, the
	   carousel's extra -240px right-bleed margin) is a desktop-only
	   convention (matching Figma's "pl-[240px]" carousel bleed) - at
	   narrower widths there's no room for it, so it was pushing the
	   carousel's own fixed-width cards straight off the right edge of
	   the viewport regardless of how narrow the cards themselves got. */
	.truenetthee-promo-section--split,
	.truenetthee-promo-section--other-promos,
	.truenetthee-promo-section--allinone {
		padding-left: 20px !important;
		padding-right: 20px !important;
	}

	.truenetthee-promo-section--allinone .truenetthee-promo-carousel {
		margin-right: 0;
	}

	/* Same "no gutter to bleed into" fix as the split sections above,
	   generalized: the product-grid block's own carousel (used directly
	   on package pages, with none of the home page's section modifier
	   classes) hits the identical overflow from the base rule's
	   right:-30px. */
	.truenetthee-promo-carousel__nav.is-next {
		right: 20px;
	}
}

@media ( max-width: 600px ) {
	.truenetthee-promo-carousel__track .truenetthee-package-card,
	.truenetthee-image-carousel__track img {
		flex-basis: 260px;
		width: 260px;
	}

	.truenetthee-promo-carousel__nav {
		display: none;
	}
}
