/* ==========================================================
   Σχεδιαστικό σύστημα του σχολείου
   ========================================================== */

:root {
	--gym-container: 1320px;
	--gym-radius-sm: 8px;
	--gym-radius: 14px;
	--gym-shadow-sm: 0 8px 24px color-mix(in srgb, var(--gym-deep) 8%, transparent);
	--gym-shadow: 0 18px 48px color-mix(in srgb, var(--gym-deep) 12%, transparent);
	--gym-space-1: 0.5rem;
	--gym-space-2: 0.75rem;
	--gym-space-3: 1rem;
	--gym-space-4: 1.5rem;
	--gym-space-5: 2rem;
	--gym-space-6: 3rem;
	--gym-space-7: 4.5rem;
}

html {
	scroll-behavior: smooth;
}

body {
	color: var(--gym-text);
	background: var(--gym-bg);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--gym-primary);
}

a {
	color: var(--gym-primary);
}

/* WordPress block styles and OceanWP may decorate links separately. */
a:any-link {
	text-decoration-line: none !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid var(--gym-focus);
	outline-offset: 3px;
}

.gym-container {
	width: min(calc(100% - 32px), var(--gym-container));
	margin-inline: auto;
}

.gym-full-bleed {
	width: 100%;
}

/* The page shell is full-width only on the school's landing pages. */
.g3p-landing-page #main #content-wrap {
	max-width: none;
	width: 100%;
	padding: 0;
}

.g3p-landing-page article.page > .entry-content > :where(p, ul, ol, .wp-block-file, .wp-block-table, .wp-block-buttons, .wp-block-image) {
	width: min(calc(100% - 2rem), 48rem);
	margin-inline: auto;
}

.gym-section {
	padding-block: var(--gym-space-7);
}

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

.gym-section__head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 30px;
}

.gym-section__eyebrow {
	display: block;
	margin-bottom: 8px;
	color: var(--gym-primary);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.gym-section__title {
	margin: 0;
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1.08;
	letter-spacing: -0.035em;
}

.gym-section__intro {
	max-width: 680px;
	margin: 10px 0 0;
	color: var(--gym-muted);
	font-size: 17px;
	line-height: 1.65;
}

.gym-section__link {
	flex: 0 0 auto;
	color: var(--gym-primary);
	font-weight: 750;
	text-decoration: none;
}

.gym-section__link:hover {
	color: var(--gym-deep);
}

/* Native Gutenberg Query Loop styled as news cards.
   Add class "gym-news-query" to the Query Loop block. */
.gym-news-query .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gym-news-query .wp-block-post {
	display: flex;
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
	margin: 0;
	border: 1px solid var(--gym-border);
	border-radius: var(--gym-radius);
	background: var(--gym-surface);
	box-shadow: 0 8px 24px color-mix(in srgb, var(--gym-deep) 6%, transparent);
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.gym-news-query .wp-block-post:hover {
	transform: translateY(-4px);
	box-shadow: var(--gym-shadow);
}

.gym-news-query .wp-block-post-featured-image {
	margin: 0;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: linear-gradient(135deg, var(--gym-bg), var(--gym-border));
}

.gym-news-query .wp-block-post-featured-image a {
	display: block;
	height: 100%;
}

.gym-news-query .wp-block-post-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 320ms ease;
}

.gym-news-query .wp-block-post:hover .wp-block-post-featured-image img {
	transform: scale(1.025);
}

.gym-news-query .wp-block-post-title,
.gym-news-query .wp-block-post-date,
.gym-news-query .wp-block-post-excerpt,
.gym-news-query .wp-block-read-more {
	margin-left: 22px;
	margin-right: 22px;
}

.gym-news-query .wp-block-post-date {
	margin-top: 20px;
	margin-bottom: 9px;
	color: var(--gym-muted);
	font-size: 12px;
	font-weight: 700;
}

.gym-news-query .wp-block-post-title {
	margin-top: 0;
	margin-bottom: 0;
	font-size: 21px;
	line-height: 1.28;
	letter-spacing: -0.02em;
}

.gym-news-query .wp-block-post-title a {
	color: var(--gym-deep);
	text-decoration: none;
}

.gym-news-query .wp-block-post-title a:hover {
	color: var(--gym-primary);
}

.gym-news-query .wp-block-post-excerpt {
	margin-top: 12px;
	margin-bottom: 18px;
	color: var(--gym-muted);
	line-height: 1.6;
}

.gym-news-query .wp-block-post-excerpt__more-text {
	display: none;
}

.gym-news-query .wp-block-read-more {
	margin-top: auto;
	margin-bottom: 22px;
	color: var(--gym-primary);
	font-size: 13px;
	font-weight: 850;
	text-decoration: none;
}

/* Optional static priority notice */
.gym-featured-notice {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 24px;
	padding: 24px 26px;
	border: 1px solid var(--gym-border);
	border-left: 5px solid var(--gym-accent);
	border-radius: var(--gym-radius);
	background: var(--gym-bg);
}

.gym-featured-notice__badge {
	padding: 7px 10px;
	border-radius: 999px;
	background: var(--gym-accent);
	color: var(--gym-text);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.gym-featured-notice__content h2 {
	margin: 0;
	font-size: clamp(20px, 2.6vw, 28px);
	line-height: 1.2;
}

.gym-featured-notice__content h2 a {
	color: var(--gym-deep);
	text-decoration: none;
}

.gym-featured-notice__content p {
	margin: 8px 0 0;
	color: var(--gym-muted);
	line-height: 1.55;
}

.gym-featured-notice__arrow {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--gym-deep);
	color: var(--gym-surface);
	font-size: 22px;
	text-decoration: none;
}

/* About / identity */
.gym-about {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	align-items: center;
	gap: clamp(38px, 7vw, 88px);
}

.gym-about__visual {
	position: relative;
	min-height: 360px;
	overflow: hidden;
	border-radius: 18px;
	background:
		linear-gradient(145deg, color-mix(in srgb, var(--gym-deep) 6%, transparent), color-mix(in srgb, var(--gym-primary) 14%, transparent)),
		var(--gym-bg);
}

.gym-about__visual::before {
	content: "";
	position: absolute;
	right: 30px;
	bottom: -35px;
	color: color-mix(in srgb, var(--gym-deep) 11%, transparent);
	font-size: 180px;
	font-weight: 900;
	line-height: 1;
}

.gym-about__badge {
	position: absolute;
	left: 28px;
	top: 28px;
	max-width: 230px;
	padding: 18px 20px;
	border-radius: 12px;
	background: var(--gym-surface);
	box-shadow: var(--gym-shadow-sm);
	color: var(--gym-deep);
	font-weight: 800;
	line-height: 1.45;
}

.gym-about__content h2 {
	margin: 0;
	font-size: clamp(30px, 4vw, 46px);
	line-height: 1.08;
	letter-spacing: -0.04em;
}

.gym-about__content p {
	margin: 18px 0 0;
	color: var(--gym-muted);
	font-size: 17px;
	line-height: 1.75;
}

.gym-about__link {
	display: inline-flex;
	margin-top: 24px;
	color: var(--gym-primary);
	font-weight: 850;
	text-decoration: none;
}

@media (max-width: 959px) {

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

	.gym-about {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	:root {
		--gym-space-6: 2.25rem;
		--gym-space-7: 3.25rem;
	}

	.gym-container {
		width: min(calc(100% - 24px), var(--gym-container));
	}

	.gym-news-query .wp-block-post-template {
		grid-template-columns: 1fr;
	}

	.gym-section__head {
		align-items: start;
		flex-direction: column;
		margin-bottom: 24px;
	}

	.gym-featured-notice {
		grid-template-columns: 1fr auto;
		gap: 14px;
		padding: 20px;
	}

	.gym-featured-notice__badge {
		grid-column: 1 / -1;
		justify-self: start;
	}

	.gym-about__visual {
		min-height: 280px;
	}
}

/* Shared archive and homepage post cards. */
.gym-utility-bar,
.gym-footer {
	--gym-focus: var(--gym-accent);
}

.gym-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: start;
	gap: clamp(.875rem, 2vw, 1.375rem);
}

.gym-card {
	min-width: 0;
	margin: 0;
	border: 1px solid var(--gym-border);
	border-radius: var(--gym-radius);
	background: var(--gym-surface);
	overflow-wrap: anywhere;
}

.gym-card--text {
	align-self: start;
	border-top: 3px solid var(--gym-accent);
}

.gym-card__media {
	overflow: hidden;
	aspect-ratio: 16 / 9;
	border-radius: var(--gym-radius) var(--gym-radius) 0 0;
	background: var(--gym-bg);
}

.gym-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gym-card__body {
	padding: clamp(1rem, 2vw, 1.5rem);
}

.gym-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem .75rem;
	margin-bottom: .5rem;
	color: var(--gym-muted);
	font-size: .875rem;
}

.gym-card__title {
	margin: 0;
	font-size: clamp(1.125rem, 1.6vw, 1.375rem);
	line-height: 1.28;
}

.gym-card__title a {
	color: var(--gym-deep);
}

.gym-card__title a:hover {
	color: var(--gym-primary);
}

.gym-card__body p {
	margin: .65rem 0 0;
	color: var(--gym-muted);
	line-height: 1.55;
}

.gym-section__title,
.gym-landing-title {
	overflow-wrap: anywhere;
}

.gym-landing-title {
	margin: 0;
	color: var(--gym-surface);
	font-size: clamp(38px, 6vw, 72px);
	line-height: 1.02;
	letter-spacing: -.04em;
}

.gym-card-grid:has(.gym-card--editorial) {
	align-items: stretch;
	gap: 22px;
}

.gym-card--editorial {
	position: relative;
	display: flex;
	flex-direction: column;
	border-top: 1px solid var(--gym-border);
	box-shadow: var(--gym-shadow-sm);
	transition: transform 160ms ease, box-shadow 160ms ease;
}

.gym-card--editorial:hover {
	transform: translateY(-2px);
	box-shadow: var(--gym-shadow);
}

.gym-card--editorial:focus-within {
	outline: 3px solid var(--gym-focus);
	outline-offset: 3px;
}

.gym-card--editorial .gym-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: clamp(18px, 2vw, 28px);
}

.gym-card--editorial .gym-card__meta {
	gap: 4px 12px;
	margin-bottom: 10px;
	font-size: 13px;
	font-weight: 650;
}

.gym-card--editorial .gym-card__title {
	font-size: clamp(18px, 1.55vw, 23px);
}

.gym-card--editorial .gym-card__title a::after {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	content: "";
}

.gym-card--editorial .gym-card__body p {
	margin-block: 10px 0;
}

.gym-card__read {
	margin-top: auto;
	padding-top: 14px;
	color: var(--gym-primary);
	font-weight: 750;
}

.gym-school-links {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

.gym-school-links a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--gym-primary);
}

.gym-school-details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
	gap: .75rem;
	margin: 1rem 0;
}

.gym-school-details > div {
	padding: 1rem;
	border: 1px solid var(--gym-border);
	border-radius: var(--gym-radius);
	overflow-wrap: anywhere;
}

.gym-school-details dt {
	color: var(--gym-deep);
	font-weight: 750;
}

.gym-school-details dd { margin: .25rem 0 0; }

@media (max-width: 959px) {
	.gym-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
	.gym-container { width: min(calc(100% - 24px), var(--gym-container)); }
	.gym-card-grid { grid-template-columns: minmax(0, 1fr); }
	.gym-card__media { max-height: 12rem; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.gym-home *,
	.g3p-landing-page .entry-content *,
	.gym-content-template-wrap *,
	.gym-footer * {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}
}

.g3p-landing-page .gym-ap-topic-grid {
	margin-top: 1rem;
}

.g3p-landing-page .gym-ap-topic h4 {
	font-size: 1.1rem;
	color: var(--gym-deep);
}
