/*
 * Places That Shape Us — listing (polaroid gallery) and storytelling single.
 * Figma: Global Learning Forum 2026 — places-that-shape-us (3817:10753).
 */

/* ---------- Listing: intro ---------- */

.hc-places-intro {
	padding: 64px 0 48px;
}

.hc-places-intro__title {
	margin: 0 0 20px;
	color: #01536c;
	font-size: 44px;
	font-weight: 700;
	line-height: 52px;
}

.hc-places-intro .hc-impact-divider {
	height: 2px;
	background: #e5e7eb;
	margin-bottom: 32px;
}

.hc-places-intro__note {
	background: #f9fafb;
	border-left: 4px solid #75c5cc;
	border-radius: 2px;
	padding: 28px 32px;
	color: #464646;
	font-size: 16px;
	line-height: 26px;
}

.hc-places-intro__note p {
	margin: 0 0 16px;
}

.hc-places-intro__note p:last-child {
	margin-bottom: 0;
}

/* ---------- Listing: gallery ---------- */

.hc-places-gallery {
	background: #f1f4f8;
	padding: 48px 0 80px;
}

.hc-places-tabs {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 40px;
}

.hc-places-tab {
	border: 1px solid #8e8e93;
	border-radius: 100px;
	background: transparent;
	padding: 8px 20px;
	color: #464646;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hc-places-tab:hover {
	border-color: #1a7b7a;
	color: #1a7b7a;
}

.hc-places-tab.is-active {
	background: #1a7b7a;
	border-color: #1a7b7a;
	color: #fff;
	font-weight: 700;
}

.hc-places-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px 48px;
}

.hc-places-empty {
	margin: 24px 0 0;
	color: #464646;
	font-size: 18px;
	text-align: center;
}

/* ---------- Polaroid card ---------- */

.hc-polaroid {
	display: flex;
	flex-direction: column;
	gap: 16px;
	background: #fff;
	padding: 18px 18px 28px;
	box-shadow: 0 8px 8px rgba(0, 0, 0, 0.1);
	text-decoration: none;
	transform: rotate(var(--tilt, 0deg));
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hc-polaroid:hover {
	transform: rotate(0deg) translateY(-6px) scale(1.02);
	box-shadow: 0 16px 28px rgba(0, 60, 55, 0.18);
	text-decoration: none;
}

.hc-polaroid__photo {
	display: block;
	aspect-ratio: 4 / 3;
	background-color: #dfe7ee;
	background-size: cover;
	background-position: center;
}

.hc-polaroid__meta {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.hc-polaroid__country {
	color: #555;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.hc-polaroid__title {
	color: #1a1a1a;
	font-family: 'Caveat Brush', cursive;
	font-size: 24px;
	line-height: 1.2;
}

.hc-polaroid__byline {
	color: #555;
	font-size: 13px;
	line-height: 1.3;
}

/* ---------- Single: hero ---------- */

.hc-story-hero {
	position: relative;
	min-height: 480px;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
}

.hc-story-hero--plain {
	min-height: 320px;
	background: #01536c;
}

.hc-story-hero__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
}

.hc-story-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(1, 33, 43, 0) 30%, rgba(1, 33, 43, 0.82) 100%);
}

.hc-story-hero__content {
	position: relative;
	padding-top: 64px;
	padding-bottom: 48px;
}

.hc-story-hero__country {
	display: inline-block;
	background: #75c5cc;
	border-radius: 100px;
	padding: 6px 18px;
	margin-bottom: 16px;
	color: #01536c;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.hc-story-hero__title {
	margin: 0 0 12px;
	max-width: 800px;
	color: #fff;
	font-size: 48px;
	font-weight: 700;
	line-height: 1.15;
}

.hc-story-hero__byline {
	margin: 0;
	color: rgba(255, 255, 255, 0.9);
	font-size: 18px;
	font-weight: 600;
}

/* ---------- Single: article ---------- */

.hc-story {
	padding: 56px 15px 24px;
}

.hc-story__body {
	max-width: 720px;
	margin: 0 auto;
}

.hc-story__body > p:first-child {
	color: #01536c;
	font-size: 21px;
	line-height: 34px;
}

.hc-story__body p {
	color: #231f20;
	font-size: 18px;
	line-height: 30px;
	margin-bottom: 24px;
}

.hc-story__body h2 {
	margin: 48px 0 20px;
	color: #01536c;
	font-size: 27px;
	font-weight: 700;
	line-height: 1.25;
}

.hc-story__body blockquote {
	margin: 36px 0;
	padding: 0 0 0 28px;
	border-left: 4px solid #75c5cc;
}

.hc-story__body blockquote p {
	margin: 0;
	color: #01536c;
	font-family: 'Caveat Brush', cursive;
	font-size: 30px;
	line-height: 1.35;
}

.hc-story__body img {
	max-width: 100%;
	height: auto;
	margin: 32px 0;
}

/* In-text links (project names etc.): same color as the copy, underlined. */
.hc-story__body a,
.hc-scrolly__card a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.hc-story__body a:hover,
.hc-scrolly__card a:hover {
	color: inherit;
	text-decoration: underline;
	opacity: 0.8;
}

.hc-story__footer {
	max-width: 720px;
	margin: 32px auto 56px;
}

.hc-story__footer .hc-btn-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 28px;
	border: 1.5px solid #73bfc7;
	border-radius: 50px;
	background: #fff;
	color: #464646;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.hc-story__footer .hc-btn-pill:hover {
	background: #01536c;
	border-color: #01536c;
	color: #fff;
}

/* ---------- Single: scrollytelling ---------- */

.hc-scrolly {
	position: relative;
	background: #01536c;
}

.hc-scrolly__step {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding: 12vh 0;
	overflow: hidden;
}

.hc-scrolly__step-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
}

/* Portrait photos in the hero: keep heads in frame. */
.hc-scrolly__step--hero .hc-scrolly__step-bg {
	background-position: center top;
}

@supports (background-attachment: fixed) {
	@media (min-width: 992px) and (hover: hover) {
		.hc-scrolly__step-bg {
			background-attachment: fixed;
		}
	}
}

.hc-scrolly__shade {
	position: absolute;
	inset: 0;
	background: rgba(1, 40, 52, 0.25);
}

.hc-scrolly__step .container-fluid {
	position: relative;
	z-index: 1;
}

.hc-scrolly__step--hero .container-fluid,
.hc-scrolly__step--left .container-fluid,
.hc-scrolly__step--right .container-fluid {
	display: flex;
}

.hc-scrolly__step--hero .container-fluid {
	justify-content: flex-end;
}

.hc-scrolly__step--left .container-fluid {
	justify-content: flex-start;
}

.hc-scrolly__step--right .container-fluid {
	justify-content: flex-end;
}

.hc-scrolly__card {
	background: #01536c;
	color: #fff;
	max-width: 500px;
	padding: 40px;
	border-radius: 4px;
	box-shadow: 0 20px 45px rgba(0, 20, 27, 0.45);
	opacity: 0;
	transform: translateY(36px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.hc-scrolly__step.is-visible .hc-scrolly__card {
	opacity: 1;
	transform: translateY(0);
}

.hc-scrolly__card--hero {
	background: rgba(1, 63, 82, 0.88);
	max-width: 640px;
	text-align: center;
}

.hc-scrolly__title {
	margin: 0 0 12px;
	color: #fff;
	font-size: 44px;
	font-weight: 700;
	line-height: 1.15;
}

.hc-scrolly__byline {
	margin: 0 0 24px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 18px;
	font-weight: 600;
}

.hc-scrolly__hint {
	display: block;
	color: #75c5cc;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.hc-scrolly__card h2 {
	margin: 0 0 18px;
	color: #75c5cc;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
}

.hc-scrolly__card p {
	margin: 0 0 16px;
	color: rgba(255, 255, 255, 0.94);
	font-size: 16px;
	line-height: 26px;
}

.hc-scrolly__card p:last-child {
	margin-bottom: 0;
}

.hc-scrolly__card blockquote {
	margin: 24px 0;
	padding: 0 0 0 20px;
	border-left: 3px solid #75c5cc;
}

.hc-scrolly__card blockquote p {
	color: #fff;
	font-family: 'Caveat Brush', cursive;
	font-size: 27px;
	line-height: 1.35;
}

.hc-story__footer--center {
	max-width: none;
	margin: 0;
	padding: 40px 15px;
	text-align: center;
	background: #01536c;
}

@media (max-width: 767.98px) {
	.hc-scrolly__step {
		padding: 8vh 0;
	}

	.hc-scrolly__card {
		max-width: none;
		padding: 24px;
	}

	.hc-scrolly__title {
		font-size: 30px;
	}
}

/* ---------- Single: more stories ---------- */

.hc-places-gallery--more {
	padding: 56px 0 72px;
}

.hc-places-more-title {
	margin: 0 0 32px;
	color: #01536c;
	font-size: 30px;
	font-weight: 700;
	text-align: center;
}

/* ---------- Responsive ---------- */

@media (max-width: 991.98px) {
	.hc-places-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 28px;
	}

	.hc-places-intro__title {
		font-size: 34px;
		line-height: 1.2;
	}

	.hc-story-hero__title {
		font-size: 34px;
	}

	.hc-story-hero {
		min-height: 380px;
	}
}

@media (max-width: 599.98px) {
	.hc-places-grid {
		grid-template-columns: 1fr;
	}

	.hc-places-intro {
		padding: 40px 0 32px;
	}

	.hc-places-intro__note {
		padding: 20px;
	}

	.hc-story-hero {
		min-height: 300px;
	}

	.hc-story-hero__title {
		font-size: 28px;
	}

	.hc-story__body p {
		font-size: 17px;
		line-height: 28px;
	}
}

/* ---------------------------------------------------------------------------
 * [hc_places_slider] — polaroid strip on Elementor pages (Our City. Our Say).
 * ------------------------------------------------------------------------ */

.hc-places-slider {
	position: relative;
	width: 100%;
}

.hc-places-slider__track {
	display: flex;
	gap: 32px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 24px 12px 36px; /* room for the tilt + hover shadow */
	scrollbar-width: none;
}

.hc-places-slider__track::-webkit-scrollbar {
	display: none;
}

.hc-places-slider__track .hc-polaroid {
	flex: 0 0 300px;
	scroll-snap-align: start;
}

.hc-places-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 48px;
	height: 48px;
	border: none;
	border-radius: 50%;
	background: #fff;
	color: #02536c;
	font-size: 20px;
	line-height: 1;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.hc-places-slider__arrow:hover {
	transform: translateY(-50%) scale(1.08);
}

.hc-places-slider__arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

.hc-places-slider__arrow--prev {
	left: -12px;
}

.hc-places-slider__arrow--next {
	right: -12px;
}

@media (max-width: 767.98px) {
	.hc-places-slider__track {
		gap: 20px;
		padding: 16px 8px 28px;
	}

	.hc-places-slider__track .hc-polaroid {
		flex-basis: 240px;
	}

	.hc-places-slider__arrow {
		width: 40px;
		height: 40px;
		font-size: 16px;
	}

	.hc-places-slider__arrow--prev {
		left: -4px;
	}

	.hc-places-slider__arrow--next {
		right: -4px;
	}
}
