/* Success Stories Grid
   Colours and proportions taken from the reference layout. */

.ssg-section {
	--ssg-bg:        #FAF6EF;
	--ssg-card:      #FFFFFF;
	--ssg-ink:       #12283C;
	--ssg-gold:      #9C7A2B;
	--ssg-gold-line: #C9A227;
	--ssg-text:      #6E757C;
	--ssg-border:    #E7E1D5;
	--ssg-panel-1:   #24435C;
	--ssg-panel-2:   #101F2E;
	--ssg-gap:       clamp(20px, 2.4vw, 36px);
	--ssg-pad-y:     0px;
	--ssg-serif:     "Fraunces", Georgia, "Times New Roman", serif;
	--ssg-sans:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

	background: var(--ssg-bg);
	padding: var(--ssg-pad-y) 20px;
	box-sizing: border-box;
}

.ssg-section *,
.ssg-section *::before,
.ssg-section *::after { box-sizing: border-box; }

.ssg-inner {
	max-width: 1240px;
	margin: 0 auto;
}

/* ---------- Filter pills ---------- */

.ssg-section .ssg-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 0 0 clamp(26px, 3vw, 40px);
	padding: 0;
}

.ssg-section .ssg-filters .ssg-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto !important;
	min-width: 0 !important;
	min-height: 0 !important;
	height: auto !important;
	margin: 0 !important;
	padding: 13px 26px !important;
	border: 1px solid var(--ssg-border) !important;
	border-radius: 999px !important;
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	font-family: var(--ssg-sans);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
	color: var(--ssg-ink) !important;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.ssg-section .ssg-filters .ssg-pill::before,
.ssg-section .ssg-filters .ssg-pill::after { content: none !important; }

.ssg-section .ssg-filters .ssg-pill:hover {
	border-color: #D5CCB8 !important;
}

.ssg-section .ssg-filters .ssg-pill.is-active {
	border-color: var(--ssg-gold-line) !important;
	color: var(--ssg-gold) !important;
	background: transparent !important;
}

.ssg-section .ssg-filters .ssg-pill:focus-visible {
	outline: 2px solid var(--ssg-gold-line);
	outline-offset: 3px;
}

/* ---------- Grid ---------- */

.ssg-section .ssg-grid {
	display: grid;
	grid-template-columns: repeat(var(--ssg-columns, 3), minmax(0, 1fr));
	gap: var(--ssg-gap);
	align-items: start;
}

/* ---------- Card ---------- */

.ssg-section .ssg-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 14px;
	background: var(--ssg-card);
	box-shadow: 0 14px 30px -20px rgba(16, 31, 46, .28),
	            0 1px 3px rgba(16, 31, 46, .04);
	text-decoration: none;
	color: inherit;
	transition: transform .25s ease, box-shadow .25s ease;
}

.ssg-section .ssg-card--link:hover {
	transform: translateY(-3px);
	box-shadow: 0 22px 40px -22px rgba(16, 31, 46, .38),
	            0 1px 3px rgba(16, 31, 46, .05);
}

.ssg-section .ssg-card.is-hidden { display: none; }

/* Navy image panel */

.ssg-section .ssg-media {
	position: relative;
	aspect-ratio: 16 / 10;
	width: 100%;
	overflow: hidden;
	background: linear-gradient(150deg, var(--ssg-panel-1) 0%, var(--ssg-panel-2) 100%);
}

.ssg-section .ssg-media .ssg-thumb,
.ssg-section .ssg-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	margin: 0;
	border-radius: 0;
}

/* Body */

.ssg-section .ssg-body {
	padding: clamp(22px, 2.2vw, 30px) clamp(22px, 2.2vw, 32px) clamp(26px, 2.6vw, 34px);
	text-align: left;
}

.ssg-section .ssg-eyebrow {
	display: block;
	margin: 0 0 14px;
	font-family: var(--ssg-sans);
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .085em;
	text-transform: uppercase;
	color: var(--ssg-gold);
}

.ssg-section .ssg-title {
	margin: 0 0 16px;
	padding: 0;
	font-family: var(--ssg-serif);
	font-weight: 700;
	font-size: clamp(1.15rem, 1.5vw, 1.4rem);
	line-height: 1.32;
	letter-spacing: -.005em;
	color: var(--ssg-ink);
	text-transform: none;
	font-optical-sizing: auto;
	font-variation-settings: "opsz" 28, "SOFT" 0, "WONK" 0;
}

.ssg-section .ssg-summary {
	margin: 0;
	padding: 0;
	font-family: var(--ssg-sans);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.62;
	color: var(--ssg-text);
}

/* ---------- Empty state ---------- */

.ssg-section .ssg-empty {
	margin: 40px 0 0;
	font-family: var(--ssg-sans);
	font-size: 16px;
	color: var(--ssg-text);
	text-align: center;
}

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

@media (max-width: 1024px) {
	.ssg-section .ssg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.ssg-section .ssg-grid { grid-template-columns: minmax(0, 1fr); }

	.ssg-section .ssg-filters {
		gap: 10px;
	}

	.ssg-section .ssg-filters .ssg-pill {
		padding: 11px 20px !important;
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ssg-section .ssg-card { transition: none; }
	.ssg-section .ssg-card--link:hover { transform: none; }
}
