/* ==========================================================
   Δράσεις & Προγράμματα
   ========================================================== */

.gym-ap-page {
	background: var(--gym-bg);
}

.gym-ap-page a,
.gym-ap-page a * {
	text-decoration: none !important;
}

.gym-ap-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(120deg, #17324d 0%, #255f86 100%);
	color: #fff;
}

.gym-ap-hero::after {
	content: "";
	position: absolute;
	right: -80px;
	top: -170px;
	width: 520px;
	height: 520px;
	border: 1px solid rgba(255,255,255,.10);
	border-radius: 50%;
	box-shadow: 0 0 0 90px rgba(255,255,255,.025), 0 0 0 180px rgba(255,255,255,.018);
}

.gym-ap-hero__inner {
	position: relative;
	z-index: 1;
	padding: 76px 0 82px;
}

.gym-ap-eyebrow {
	display: inline-block;
	margin-bottom: 14px;
	color: #f1c34f;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .13em;
	text-transform: uppercase;
}

.gym-ap-eyebrow--dark {
	color: var(--gym-accent);
}

.gym-ap-hero h1,
.gym-ap-cta h2 {
	color: #fff;
}

.gym-ap-hero h1 {
	max-width: 930px;
	margin: 0 0 16px;
	font-size: clamp(44px, 6vw, 72px);
	line-height: .98;
	letter-spacing: -.04em;
}

.gym-ap-hero p {
	max-width: 820px;
	margin: 0;
	color: rgba(255,255,255,.82);
	font-size: 19px;
	line-height: 1.6;
}

.gym-ap-section {
	padding: 76px 0;
}

.gym-ap-section--soft {
	background: #eef3f6;
}

.gym-ap-section__head {
	margin-bottom: 34px;
}

.gym-ap-section__head--split {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 42px;
}

.gym-ap-section__head h2,
.gym-ap-row-head h2 {
	margin: 0;
	color: var(--gym-navy);
	font-size: clamp(34px, 4vw, 50px);
	line-height: 1.05;
	letter-spacing: -.035em;
}

.gym-ap-section__head > p,
.gym-ap-section__head--split > p {
	max-width: 490px;
	margin: 0;
	color: var(--gym-muted);
	font-size: 16px;
	line-height: 1.65;
}

/* Topic/category cards */
.gym-ap-topic-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 18px;
}

.gym-ap-topic {
	position: relative;
	display: flex;
	min-height: 265px;
	flex-direction: column;
	grid-column: span 4;
	overflow: hidden;
	padding: 30px;
	border-radius: 18px;
	box-shadow: var(--gym-shadow-sm);
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.gym-ap-topic:nth-child(1),
.gym-ap-topic:nth-child(2) {
	grid-column: span 6;
}

.gym-ap-topic::after {
	content: "";
	position: absolute;
	right: -78px;
	top: -92px;
	width: 230px;
	height: 230px;
	border: 1px solid rgba(255,255,255,.12);
	border-radius: 50%;
	pointer-events: none;
}

.gym-ap-topic:hover,
.gym-ap-topic:focus-visible {
	transform: translateY(-4px);
	box-shadow: 0 18px 42px rgba(23, 50, 77, .13);
}

.gym-ap-topic--navy {
	background: #17324d;
	color: rgba(255,255,255,.78);
}

.gym-ap-topic--blue {
	background: #27658e;
	color: rgba(255,255,255,.80);
}

.gym-ap-topic--slate {
	background: #39566b;
	color: rgba(255,255,255,.80);
}

.gym-ap-topic--light {
	border: 1px solid var(--gym-border);
	background: #fff;
	color: var(--gym-muted);
}

.gym-ap-topic--gold {
	border: 1px solid #ead89e;
	background: #fffaf0;
	color: #6b6045;
}

.gym-ap-topic--light::after,
.gym-ap-topic--gold::after {
	border-color: rgba(23,50,77,.08);
}

.gym-ap-topic__topline {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 44px;
}

.gym-ap-topic__number {
	color: #f1c34f;
	font-size: 13px;
	font-weight: 900;
	letter-spacing: .12em;
}

.gym-ap-topic__count {
	padding: 6px 10px;
	border: 1px solid rgba(255,255,255,.16);
	border-radius: 999px;
	background: rgba(255,255,255,.07);
	color: rgba(255,255,255,.76);
	font-size: 11px;
	font-weight: 850;
}

.gym-ap-topic--light .gym-ap-topic__number,
.gym-ap-topic--gold .gym-ap-topic__number {
	color: var(--gym-blue);
}

.gym-ap-topic--light .gym-ap-topic__count,
.gym-ap-topic--gold .gym-ap-topic__count {
	border-color: rgba(23,50,77,.10);
	background: rgba(23,50,77,.04);
	color: var(--gym-muted);
}

.gym-ap-topic h3 {
	position: relative;
	z-index: 1;
	margin: 0 0 12px;
	font-size: clamp(24px, 2.3vw, 31px);
	line-height: 1.08;
	letter-spacing: -.03em;
}

.gym-ap-topic--navy h3,
.gym-ap-topic--blue h3,
.gym-ap-topic--slate h3 {
	color: #fff;
}

.gym-ap-topic--light h3,
.gym-ap-topic--gold h3 {
	color: var(--gym-navy);
}

.gym-ap-topic p {
	position: relative;
	z-index: 1;
	max-width: 600px;
	margin: 0;
	font-size: 15px;
	line-height: 1.58;
}

.gym-ap-topic__link {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 24px;
	color: inherit;
	font-size: 13px;
	font-weight: 900;
}

.gym-ap-topic--navy .gym-ap-topic__link,
.gym-ap-topic--blue .gym-ap-topic__link,
.gym-ap-topic--slate .gym-ap-topic__link {
	color: #fff;
}

.gym-ap-topic--light .gym-ap-topic__link,
.gym-ap-topic--gold .gym-ap-topic__link {
	color: var(--gym-blue);
}

/* Post cards */
.gym-ap-post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.gym-ap-post-card {
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--gym-border);
	border-radius: 16px;
	background: #fff;
	box-shadow: var(--gym-shadow-sm);
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.gym-ap-post-card:hover,
.gym-ap-post-card:focus-within {
	transform: translateY(-4px);
	border-color: rgba(39,101,142,.28);
	box-shadow: 0 16px 38px rgba(23,50,77,.11);
}

.gym-ap-post-card__linkwrap {
	display: flex;
	height: 100%;
	flex-direction: column;
	color: inherit !important;
}

.gym-ap-post-card__media {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #dde7ee;
}

.gym-ap-post-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 240ms ease;
}

.gym-ap-post-card:hover .gym-ap-post-card__image {
	transform: scale(1.025);
}

.gym-ap-post-card__placeholder {
	display: grid;
	height: 100%;
	place-items: center;
	background: linear-gradient(135deg, #e8eff4 0%, #dce7ee 100%);
	color: rgba(23,50,77,.18);
	font-size: 64px;
	font-weight: 900;
}

.gym-ap-post-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 24px;
}

.gym-ap-post-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 13px;
}

.gym-ap-post-card__category {
	display: inline-flex;
	max-width: 68%;
	padding: 5px 9px;
	border-radius: 999px;
	background: #eef4f8;
	color: var(--gym-blue);
	font-size: 10px;
	font-weight: 900;
	line-height: 1.2;
	letter-spacing: .03em;
}

.gym-ap-post-card time {
	flex: 0 0 auto;
	color: var(--gym-muted);
	font-size: 11px;
	font-weight: 800;
	white-space: nowrap;
}

.gym-ap-post-card h3 {
	margin: 0 0 12px;
	color: var(--gym-navy);
	font-size: 23px;
	line-height: 1.17;
	letter-spacing: -.025em;
}

.gym-ap-post-card p {
	margin: 0 0 20px;
	color: var(--gym-muted);
	font-size: 14px;
	line-height: 1.6;
}

.gym-ap-post-card__arrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 4px;
	color: var(--gym-blue);
	font-size: 13px;
	font-weight: 900;
}

.gym-ap-post-grid--compact {
	gap: 18px;
}

.gym-ap-post-card--compact .gym-ap-post-card__media {
	aspect-ratio: 16 / 9.5;
}

.gym-ap-post-card--compact .gym-ap-post-card__body {
	padding: 20px;
}

.gym-ap-post-card--compact h3 {
	font-size: 21px;
}

.gym-ap-post-card--compact .gym-ap-post-card__arrow {
	padding-top: 10px;
}

.gym-ap-empty {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 36px;
	border: 1px dashed #cbd8e2;
	border-radius: 16px;
	background: rgba(255,255,255,.55);
	text-align: center;
}

.gym-ap-empty strong {
	color: var(--gym-navy);
	font-size: 20px;
}

.gym-ap-empty span {
	color: var(--gym-muted);
}

/* Curated category rows */
.gym-ap-feature-row {
	padding: 68px 0;
	background: #fff;
}

.gym-ap-feature-row--tinted {
	background: #f7f9fb;
}

.gym-ap-row-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 32px;
	margin-bottom: 28px;
}

.gym-ap-row-head .gym-ap-eyebrow {
	margin-bottom: 8px;
}

.gym-ap-row-head h2 {
	font-size: clamp(30px, 3.3vw, 44px);
}

.gym-ap-row-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding-bottom: 4px;
	border-bottom: 1px solid rgba(39,101,142,.24) !important;
	color: var(--gym-blue) !important;
	font-size: 14px;
	font-weight: 900;
}

.gym-ap-row-link:hover,
.gym-ap-row-link:focus-visible {
	border-bottom-color: var(--gym-blue) !important;
}

/* Footer CTA */
.gym-ap-cta {
	padding: 74px 0 82px;
	background: var(--gym-bg);
}

.gym-ap-cta__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	padding: 42px 44px;
	border-radius: 18px;
	background: var(--gym-navy);
	box-shadow: var(--gym-shadow);
}

.gym-ap-cta__inner > div {
	max-width: 760px;
}

.gym-ap-cta h2 {
	margin: 0 0 10px;
	font-size: clamp(30px, 3vw, 42px);
	letter-spacing: -.03em;
}

.gym-ap-cta p {
	margin: 0;
	color: rgba(255,255,255,.72);
	font-size: 16px;
	line-height: 1.55;
}

.gym-ap-button,
.gym-ap-button:visited {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 12px;
	padding: 15px 20px;
	border-radius: 10px;
	background: var(--gym-accent);
	color: var(--gym-navy) !important;
	font-weight: 900;
}

.gym-ap-button:hover,
.gym-ap-button:focus-visible {
	color: var(--gym-navy) !important;
	filter: brightness(1.04);
}

@media (max-width: 1050px) {
	.gym-ap-topic:nth-child(n) {
		grid-column: span 6;
	}

	.gym-ap-topic:last-child:nth-child(odd) {
		grid-column: 4 / span 6;
	}
}

@media (max-width: 959px) {
	.gym-ap-section__head--split,
	.gym-ap-row-head,
	.gym-ap-cta__inner {
		align-items: flex-start;
		flex-direction: column;
	}

	.gym-ap-post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.gym-ap-row-link {
		align-self: flex-start;
	}
}

@media (max-width: 680px) {
	.gym-ap-hero__inner {
		padding: 56px 0 62px;
	}

	.gym-ap-section,
	.gym-ap-feature-row {
		padding: 56px 0;
	}

	.gym-ap-topic:nth-child(n),
	.gym-ap-topic:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	.gym-ap-topic {
		min-height: 0;
		padding: 25px;
	}

	.gym-ap-topic__topline {
		margin-bottom: 34px;
	}

	.gym-ap-post-grid {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: min(84vw, 330px);
		overflow-x: auto;
		overflow-y: hidden;
		padding-bottom: 12px;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: 0;
		overscroll-behavior-inline: contain;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
		scrollbar-color: rgba(23, 50, 77, .24) transparent;
	}

	.gym-ap-post-grid::-webkit-scrollbar {
		height: 5px;
	}

	.gym-ap-post-grid::-webkit-scrollbar-track {
		background: transparent;
	}

	.gym-ap-post-grid::-webkit-scrollbar-thumb {
		border-radius: 999px;
		background: rgba(23, 50, 77, .24);
	}

	.gym-ap-post-card {
		scroll-snap-align: start;
		scroll-snap-stop: always;
	}

	.gym-ap-post-card__meta {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}

	.gym-ap-post-card__category {
		max-width: 100%;
	}

	.gym-ap-cta {
		padding: 56px 0 64px;
	}

	.gym-ap-cta__inner {
		padding: 30px 24px;
	}

	.gym-ap-button {
		width: 100%;
		justify-content: space-between;
	}
}