/**
 * Home page sections below the hero (front-page.html): the marquee
 * ticker and "What We Offer". Page-specific, unlike patterns.css.
 */

/*
 * Core's block-gap global styles give every non-first direct child of
 * an .is-layout-constrained container (here, <main>) a 24px top margin
 * — same root cause as the header/hero gap fixed in global.css, just
 * one level deeper. That opened a visible band of page background
 * above the marquee (breaking its flush "ticker bar" look against the
 * hero) and another below it, since the same rule also margins the
 * "What We Offer" section that follows. Zero both explicitly.
 */
.chennai-world-marquee {
	overflow: hidden;
	margin-top: 0;
	padding: 1rem 0;
	background-color: var(--wp--preset--color--background-secondary);
	border-block: 1px solid var(--wp--preset--color--surface);
}

.chennai-world-marquee + * {
	margin-top: 0;
}

.chennai-world-marquee-track {
	display: flex;
	width: max-content;
	animation: chennai-world-marquee-scroll 32s linear infinite;
}

/*
 * Font matched against the source design artifact (29a6c040-f719…):
 * the ticker text there renders in the display serif at weight 300,
 * ~22px, not the body sans this used before — and its color is
 * text-primary at 60% opacity, not the flat text-secondary token
 * (confirmed live: reference computed color was rgba(242,240,235,.6)
 * in dark mode, ~= this theme's text-primary #f2ede3 at 60%).
 * color-mix keeps it reactive to the light/dark toggle the same way
 * a plain token reference would.
 */
.chennai-world-marquee-group {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: 0.75rem;
	padding-right: 0.75rem;
	white-space: nowrap;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.375rem;
	font-weight: 300;
	color: color-mix(in srgb, var(--wp--preset--color--text-primary) 60%, transparent);
}

.chennai-world-marquee-dot {
	color: var(--wp--preset--color--accent-gold);
}

@keyframes chennai-world-marquee-scroll {

	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {

	.chennai-world-marquee-track {
		animation: none;
	}
}

.chennai-world-offer-header {
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--40);
	margin-bottom: var(--wp--preset--spacing--40);
}

.chennai-world-offer-header-right {
	max-width: 32ch;
}

.chennai-world-offer-header-link {
	display: inline-block;
	margin-top: 1rem;
	color: var(--wp--preset--color--accent-teal);
	font-size: var(--wp--preset--font-size--medium);
	text-decoration: none;
}

.chennai-world-offer-header-link:hover {
	text-decoration: underline;
}

.chennai-world-offer-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--wp--preset--spacing--30);
	margin-bottom: var(--wp--preset--spacing--30);
}

.chennai-world-offer-featured-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--wp--preset--spacing--30);
}

.chennai-world-offer-featured-panel {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1rem;
	padding: var(--wp--preset--spacing--40);
	border-radius: 1rem;
	background: var(--wp--preset--gradient--panel);
	color: #f2ede3;
}

.chennai-world-offer-featured-panel .chennai-world-eyebrow {
	color: var(--wp--preset--color--accent-gold);
}

.chennai-world-offer-featured-panel h3 {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 600;
	color: #f2ede3;
}

.chennai-world-offer-featured-panel p {
	margin: 0;
	color: rgba(242, 237, 227, 0.85);
}

.chennai-world-offer-image-panel {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 20rem;
	padding: var(--wp--preset--spacing--40);
	border-radius: 1.25rem;
	overflow: hidden;
	color: #f2ede3;
	text-decoration: none;
	background-size: cover;
	background-position: center;
	box-shadow: rgba(0, 0, 0, 0.35) 0 30px 80px 0;
}

.chennai-world-offer-image-panel::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(16, 18, 21, 0) 30%, rgba(16, 18, 21, 0.85) 100%);
}

.chennai-world-offer-image-panel > * {
	position: relative;
}

.chennai-world-offer-image-panel .chennai-world-eyebrow {
	color: var(--wp--preset--color--accent-gold);
}

.chennai-world-offer-image-panel h3 {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 600;
	color: #f2ede3;
}

@media (max-width: 900px) {

	.chennai-world-offer-header {
		flex-wrap: wrap;
	}

	.chennai-world-offer-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.chennai-world-offer-featured-row {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {

	.chennai-world-offer-grid {
		grid-template-columns: 1fr;
	}
}

.chennai-world-story-section {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--wp--preset--spacing--40);
	align-items: center;
}

.chennai-world-story-photo-wrap {
	position: relative;
}

.chennai-world-story-photo img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 1.25rem;
	box-shadow: rgba(0, 0, 0, 0.35) 0 30px 80px 0;
}

.chennai-world-story-caption {
	position: absolute;
	bottom: var(--wp--preset--spacing--20);
	left: var(--wp--preset--spacing--20);
	padding: 0.5rem 1rem;
	border-radius: 999px;
	background-color: rgba(16, 18, 21, 0.6);
	color: #f2ede3;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.chennai-world-story-content p {
	color: var(--wp--preset--color--text-secondary);
	font-size: var(--wp--preset--font-size--medium);
}

.chennai-world-story-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.chennai-world-story-badge {
	padding: 0.5rem 1rem;
	border: 1px solid var(--wp--preset--color--surface);
	border-radius: 999px;
	color: var(--wp--preset--color--text-secondary);
	font-size: var(--wp--preset--font-size--small);
}

@media (max-width: 900px) {

	.chennai-world-story-section {
		grid-template-columns: 1fr;
	}
}

#our-story,
#how-it-works {
	scroll-margin-top: 6rem;
}

.chennai-world-steps-rule {
	margin: var(--wp--preset--spacing--30) 0 var(--wp--preset--spacing--40);
	border: none;
	border-top: 1px solid var(--wp--preset--color--surface);
}

.chennai-world-steps-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--wp--preset--spacing--30);
}

@media (max-width: 700px) {

	.chennai-world-steps-grid {
		grid-template-columns: 1fr;
	}
}

.chennai-world-city-gallery {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-template-rows: repeat(2, 12rem);
	gap: var(--wp--preset--spacing--20);
}

.chennai-world-city-gallery-item {
	position: relative;
	display: flex;
	align-items: flex-end;
	border-radius: 1.25rem;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	text-decoration: none;
	box-shadow: rgba(0, 0, 0, 0.35) 0 30px 80px 0;
}

.chennai-world-city-gallery-item::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(16, 18, 21, 0) 50%, rgba(16, 18, 21, 0.8) 100%);
}

.chennai-world-city-gallery-item--hero {
	grid-column: 1 / 3;
	grid-row: 1 / 3;
}

.chennai-world-city-gallery-item:nth-child(2) {
	grid-column: 3;
	grid-row: 1;
}

.chennai-world-city-gallery-item:nth-child(3) {
	grid-column: 3;
	grid-row: 2;
}

.chennai-world-city-gallery-item:nth-child(4) {
	grid-column: 4;
	grid-row: 1 / 3;
}

.chennai-world-city-gallery-caption {
	position: relative;
	padding: var(--wp--preset--spacing--20);
	color: #f2ede3;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--medium);
}

.chennai-world-city-gallery-caption small {
	display: block;
	margin-top: 0.25rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	color: rgba(242, 237, 227, 0.75);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

@media (max-width: 700px) {

	.chennai-world-city-gallery {
		grid-template-columns: repeat(2, 1fr);
		grid-template-rows: repeat(3, 10rem);
	}

	.chennai-world-city-gallery-item--hero {
		grid-column: 1 / 3;
		grid-row: 1;
	}

	.chennai-world-city-gallery-item:nth-child(2) {
		grid-column: 1;
		grid-row: 2;
	}

	.chennai-world-city-gallery-item:nth-child(3) {
		grid-column: 2;
		grid-row: 2;
	}

	.chennai-world-city-gallery-item:nth-child(4) {
		grid-column: 1 / 3;
		grid-row: 3;
	}
}

.chennai-world-onair-section {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--wp--preset--spacing--40);
}

.chennai-world-onair-content p {
	color: var(--wp--preset--color--text-secondary);
}

.chennai-world-onair-links {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.chennai-world-onair-link {
	color: var(--wp--preset--color--accent-teal);
	font-size: var(--wp--preset--font-size--medium);
	text-decoration: none;
}

.chennai-world-onair-link:hover {
	text-decoration: underline;
}

.chennai-world-onair-link--disabled {
	color: var(--wp--preset--color--text-secondary);
	cursor: default;
}

.chennai-world-onair-episodes {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
}

.chennai-world-onair-episode {
	display: flex;
	gap: 1rem;
	padding-bottom: var(--wp--preset--spacing--30);
	border-bottom: 1px solid var(--wp--preset--color--surface);
}

.chennai-world-onair-episode:last-child {
	padding-bottom: 0;
	border-bottom: none;
}

.chennai-world-onair-episode-number {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.625rem;
	font-weight: 600;
	color: var(--wp--preset--color--accent-teal);
}

.chennai-world-onair-episode h3 {
	margin: 0 0 0.375rem;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.625rem;
	font-weight: 600;
	color: var(--wp--preset--color--text-primary);
}

.chennai-world-onair-episode p {
	margin: 0;
	color: var(--wp--preset--color--text-secondary);
	font-size: var(--wp--preset--font-size--small);
}

@media (max-width: 900px) {

	.chennai-world-onair-section {
		grid-template-columns: 1fr;
	}
}

/* This band's gradient is fixed dark in both site themes (per the
   design), so its text colors are hardcoded too rather than using
   the theme-dependent custom properties everything else uses. */
.chennai-world-cta-band {
	background: var(--wp--preset--gradient--panel);
	text-align: center;
}

.chennai-world-cta-band-eyebrow {
	justify-content: center;
	color: var(--wp--preset--color--accent-gold);
}

.chennai-world-cta-band-heading {
	margin: 0 auto 1rem;
	color: #f2ede3;
}

.chennai-world-cta-band-copy {
	max-width: 44ch;
	margin: 0 auto 2rem;
	color: rgba(242, 237, 227, 0.85);
}

.chennai-world-cta-band-buttons {
	justify-content: center;
	gap: 1rem;
}

.chennai-world-cta-band-buttons .chennai-world-cta-button--outline {
	color: #f2ede3;
	border-color: #f2ede3;
}
