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

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

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

.gym-ap-hero {
	position: relative;
	overflow: hidden;
	background: var(--gym-hero-background);
	color: var(--gym-surface);
}

.gym-ap-hero::after {
	content: "";
	position: absolute;
	right: -80px;
	top: -170px;
	width: 520px;
	height: 520px;
	border: 1px solid color-mix(in srgb, var(--gym-surface) 10%, transparent);
	border-radius: 50%;
	box-shadow: 0 0 0 90px color-mix(in srgb, var(--gym-surface) 2.5%, transparent), 0 0 0 180px color-mix(in srgb, var(--gym-surface) 1.8%, transparent);
}

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

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

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

.gym-ap-hero .gym-landing-title,
.gym-ap-cta h2 {
	color: var(--gym-surface);
}

.gym-ap-hero .gym-landing-title {
	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: color-mix(in srgb, var(--gym-surface) 82%, transparent);
	font-size: 19px;
	line-height: 1.6;
}

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

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

.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-deep);
	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;
	overflow-wrap: anywhere;
	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 color-mix(in srgb, var(--gym-surface) 12%, transparent);
	border-radius: 50%;
	pointer-events: none;
}

.gym-ap-topic:hover,
.gym-ap-topic:focus-visible {
	transform: translateY(-4px);
	box-shadow: 0 18px 42px color-mix(in srgb, var(--gym-deep) 13%, transparent);
}

.gym-ap-topic {
	isolation: isolate;
	background: var(--gym-hero-background);
	color: var(--gym-on-dark);
}

.gym-ap-topic__image {
	position: absolute;
	z-index: -2;
	inset: 0;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

.gym-ap-topic:has(.gym-ap-topic__image)::before {
	position: absolute;
	z-index: -1;
	inset: 0;
	background: color-mix(in srgb, var(--gym-deep) 82%, transparent);
	content: "";
}

.gym-ap-topic--wide:only-child {
	grid-column: 1 / -1;
}

.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: var(--gym-accent);
	font-size: 13px;
	font-weight: 900;
	letter-spacing: .12em;
}

.gym-ap-topic__count {
	padding: 6px 10px;
	border: 1px solid color-mix(in srgb, var(--gym-surface) 16%, transparent);
	border-radius: 999px;
	background: color-mix(in srgb, var(--gym-surface) 7%, transparent);
	color: color-mix(in srgb, var(--gym-surface) 76%, transparent);
	font-size: 11px;
	font-weight: 850;
}

.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 h3 {
	color: var(--gym-surface);
}

.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__link {
	color: var(--gym-surface);
}

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

.gym-ap-post-grid--compact .gym-card__media { aspect-ratio: 2 / 1; }

.gym-ap-feature-row {
	padding-block: 72px;
	background: var(--gym-surface);
}

.gym-ap-feature-row--tinted { background: var(--gym-bg); }

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

.gym-ap-row-link {
	display: inline-flex;
	align-items: center;
	min-block-size: 44px;
	font-weight: 800;
}

.gym-ap-cta {
	padding-block: 72px;
	background: var(--gym-bg);
}

.gym-ap-cta__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding: clamp(24px, 4vw, 54px);
	border-radius: 20px;
	background: var(--gym-hero-background);
	color: var(--gym-on-dark);
}

.gym-ap-cta h2 {
	margin: 0;
	font-size: clamp(28px, 3.8vw, 46px);
	line-height: 1.1;
}

.gym-ap-cta p { margin: 12px 0 0; }

.gym-ap-button,
.gym-ap-button:visited {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-block-size: 44px;
	padding: 10px 18px;
	border-radius: 10px;
	background: var(--gym-accent);
	color: var(--gym-deep);
	font-weight: 800;
}

.gym-ap-button:hover { background: var(--gym-bg); }
.gym-ap-button:focus-visible { outline-color: var(--gym-accent); }

@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: color-mix(in srgb, var(--gym-deep) 24%, transparent) 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: color-mix(in srgb, var(--gym-deep) 24%, transparent);
	}

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

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

	.gym-ap-post-grid .gym-card__meta span {
		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;
	}
}
