/* ==========================================================================
   Thai Go "Bangkok, Made Effortless" — partners row + three reason cards
   ========================================================================== */

.tg-effortless {
	--tg-navy: #0a2a66;
	--tg-ink: #14213d;
	--tg-muted: #6b7689;
	width: 100%;
	box-sizing: border-box;
	padding: 72px 24px 90px;
	background: linear-gradient(180deg, #ffffff 0%, #d6e5ff 100%);
	font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.tg-effortless *,
.tg-effortless *::before,
.tg-effortless *::after { box-sizing: border-box; }

.tg-effortless__inner {
	max-width: 1080px;
	margin: 0 auto;
	text-align: center;
}

/* ---- Partners ---------------------------------------------------------- */
.tg-effortless__pill {
	display: inline-block;
	font-family: "Instrument Sans", sans-serif;
	font-size: 20px;
	font-weight: 600;
	color: #4d6aa6;
	background: #eef3fb;
	border-radius: 30px;
	padding: 7px 18px;
}
.tg-effortless__logos {
	/* Full viewport width, breaking out of the centred max-width container */
	width: 100vw;
	margin: 28px 0 84px calc(50% - 50vw);
	overflow: hidden;
}
.tg-effortless__logos .swiper-wrapper {
	align-items: center;
}
.tg-effortless__logo-slide {
	display: flex;
	align-items: center;
	justify-content: center;
}
.tg-effortless__logo {
	display: block;
	width: auto;
	max-width: 100%;
	height: 40px;
	object-fit: contain;
}

/* ---- Heading ----------------------------------------------------------- */
.tg-effortless .tg-effortless__title {
	color: var(--tg-navy);
	font-family: "Instrument Sans", sans-serif;
	font-size: 40px;
	font-weight: 600;
	letter-spacing: .5px;
	text-transform: uppercase;
	margin: 0 0 14px;
}
.tg-effortless__subtitle {
	color: #5d5d5d;
	font-family: "Instrument Sans", sans-serif;
	font-size: 24px;
	font-weight: 400;
	margin: 0 0 56px;
}

/* ---- Cards ------------------------------------------------------------- */
.tg-effortless__cards {
	margin-top: 60px;
}
/* The track holds the cards; it's the grid on desktop and the Swiper wrapper
   (flex) on tablet. */
.tg-effortless__track {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	align-items: end;
	text-align: left;
}
/* Dots only show in the tablet carousel */
.tg-effortless__dots { display: none; }

.tg-reason {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid #eef1f7;
	box-shadow: 0 12px 32px rgba(0, 42, 137, 0.08);
	border-radius: 28px;
	overflow: hidden;
	height: 650px;
}

.tg-reason__body {
	padding: 30px 26px 16px;
	text-align: center;
}
.tg-reason__icon {
	display: inline-grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 9px;
	background: #eef3fb;
	color: #1559d6;
	margin-bottom: 14px;
}
/* Image icon already includes its own rounded background */
.tg-reason__icon-img {
	display: block;
	width: 52px;
	height: 52px;
	margin: 0 auto 14px;
}
/* Inline SVG icon (centred via the body's text-align:center) */
.tg-reason__icon-svg {
	display: block;
	line-height: 0;
	margin-bottom: 14px;
}
.tg-effortless .tg-reason__title {
	color: #00143f;
	font-family: "Instrument Sans", sans-serif;
	font-size: 20px;
	font-weight: 500;
	margin: 0 0 8px;
}
.tg-effortless .tg-reason__desc {
	color: var(--tg-navy);
	font-family: "Instrument Sans", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.55;
	margin: 0;
}

.tg-reason__media {
	margin-top: auto;
	min-height: 180px;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	overflow: hidden;
}
.tg-reason__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center bottom;
}

/* Featured card: elevated + dark theme. Applied to any card that has a
   background image (set inline via --tg-reason-bg). */
.tg-reason--featured {
	background-image: var(--tg-reason-bg);
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
	/* No border at all (box-sizing is border-box, so the outer size is
	   unchanged): avoids both the white-outline AND the 1px un-washed strip
	   the ::before dark wash can't reach (it's clipped by overflow:hidden). */
	border: 0;
	box-shadow: 0 22px 48px rgba(6, 18, 44, 0.32);
}
/* Dark wash over the photo so the white text/icon stay legible */
.tg-reason--featured::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(180deg, rgba(6, 14, 28, .72) 0%, rgba(6, 14, 28, .25) 38%, rgba(6, 14, 28, .55) 100%);
}
.tg-reason--featured .tg-reason__body,
.tg-reason--featured .tg-reason__media {
	position: relative;
	z-index: 1;
}
.tg-effortless .tg-reason--featured .tg-reason__title { color: #fff; }
.tg-effortless .tg-reason--featured .tg-reason__desc { color: rgba(255, 255, 255, .82); }

/* ==========================================================================
   Responsive
   ========================================================================== */
/* Tablet: 2-up Swiper carousel (swiper classes added by JS; 768px = iPad
   portrait is treated as tablet). */
@media (min-width: 768px) and (max-width: 1024px) {
	.tg-effortless .tg-effortless__title { font-size: 38px; }
	/* Clip peeking slides at the section edge so they don't cause page scroll */
	.tg-effortless { overflow-x: clip; }
	.tg-effortless__cards,
	.tg-effortless__cards.swiper { overflow: visible; }
	.tg-effortless__track {
		display: flex;
		align-items: stretch;
		grid-template-columns: none;
		gap: 0;
	}
	.tg-reason {
		width: 100%;
		flex-shrink: 0;
		height: auto;
		min-height: 560px;
	}

	.tg-effortless__dots {
		position: static;
		display: flex;
		gap: 8px;
		justify-content: center;
		margin-top: 24px;
	}
	.tg-effortless__dots .swiper-pagination-bullet {
		width: 10px;
		height: 10px;
		margin: 0;
		border: none;
		border-radius: 50%;
		background: #cad7f7;
		opacity: 1;
		cursor: pointer;
		transition: background .2s ease;
	}
	.tg-effortless__dots .swiper-pagination-bullet-active {
		border-radius: 50%;
		background: #7d96e2;
	}
}

@media (max-width: 767px) {
	.tg-effortless { padding: 56px 16px 30px; overflow-x: clip; }
	/* keep full-bleed left offset; just change top/bottom and don't clip logos on swipe */
	.tg-effortless__logos {
		margin-top: 22px;
		margin-bottom: 56px;
		overflow: visible;
	}
	.tg-effortless__pill { font-size: 14px; }
	.tg-effortless .tg-effortless__title { font-size: 20px; padding: 0 20px; margin-bottom: 10px; }
	.tg-effortless__subtitle { font-size: 14px; margin-bottom: 36px; padding: 0 24px; }
	.tg-effortless .tg-reason__title { font-size: 20px; }
	.tg-effortless .tg-reason__desc { font-size: 16px; }

	.tg-effortless__cards { margin-top: 30px; }
	.tg-effortless__track {
		grid-template-columns: 1fr;
		gap: 20px;
		align-items: stretch;
	}
	.tg-reason { height: auto; min-height: 360px; }
	.tg-reason--companion { transform: none; min-height: 420px; }
}
