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

:root {
	--gym-navy: #17324d;
	--gym-blue: #27658e;
	--gym-accent: #d6a32d;
	--gym-text: #22313f;
	--gym-muted: #536674;
	--gym-focus: #27658e;
	--gym-bg: #f6f8fa;
	--gym-surface: #ffffff;
	--gym-border: #e3e8ec;
	--gym-container: 1320px;
	--gym-radius-sm: 8px;
	--gym-radius: 14px;
	--gym-shadow-sm: 0 8px 24px rgba(23, 50, 77, 0.08);
	--gym-shadow: 0 18px 48px rgba(23, 50, 77, 0.12);
	--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-navy);
}

a {
	text-underline-offset: 0.15em;
}

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-inline: 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-home {
	background: var(--gym-surface);
	overflow: hidden;
}

.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-blue);
	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-blue);
	font-weight: 750;
	text-decoration: none;
}

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

/* Hero */
.gym-hero {
	position: relative;
	isolation: isolate;
	background:
		radial-gradient(circle at 88% 18%, rgba(214, 163, 45, 0.22), transparent 22rem),
		linear-gradient(128deg, #102b43 0%, var(--gym-navy) 56%, #214d70 100%);
	color: #fff;
}

.gym-hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	right: -120px;
	bottom: -170px;
	width: 420px;
	height: 420px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 50%;
	box-shadow: 0 0 0 56px rgba(255, 255, 255, 0.025), 0 0 0 112px rgba(255, 255, 255, 0.018);
}

.gym-hero__inner {
	min-height: 390px;
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
	align-items: center;
	gap: clamp(40px, 7vw, 96px);
	padding-block: 70px;
}

.gym-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 18px;
	color: #f1d98e;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.gym-hero__eyebrow::before {
	content: "";
	width: 28px;
	height: 2px;
	background: var(--gym-accent);
}

.gym-hero h1 {
	max-width: 760px;
	margin: 0;
	color: #fff;
	font-size: clamp(42px, 6vw, 70px);
	line-height: 0.98;
	letter-spacing: -0.05em;
}

.gym-hero__lead {
	max-width: 690px;
	margin: 24px 0 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: clamp(18px, 2vw, 21px);
	line-height: 1.6;
}

.gym-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 30px;
}

.gym-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 10px 20px;
	border: 1px solid transparent;
	border-radius: 9px;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
	transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.gym-btn:hover {
	transform: translateY(-1px);
}

.gym-btn--primary {
	background: var(--gym-accent);
	color: #172838;
}

.gym-btn--primary:hover {
	background: #e4b743;
	color: #172838;
}

.gym-btn--ghost {
	border-color: rgba(255, 255, 255, 0.3);
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
}

.gym-btn--ghost:hover {
	border-color: rgba(255, 255, 255, 0.55);
	background: rgba(255, 255, 255, 0.11);
	color: #fff;
}

.gym-hero__card {
	padding: 28px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.08);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.14);
	
}

.gym-hero__card-label {
	display: block;
	color: #f0f4f8;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.gym-hero__card strong {
	display: block;
	margin-top: 4px;
	color: #fff;
	font-size: 31px;
	line-height: 1.15;
}

.gym-hero__card hr {
	margin: 22px 0;
	border: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.gym-hero__card p {
	margin: 0;
	color: rgba(255, 255, 255, 0.78);
	line-height: 1.65;
}

/* Quick links */
.gym-quick-links {
	position: relative;
	z-index: 3;
	margin-top: -34px;
}

.gym-quick-links__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.gym-quick-link {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 96px;
	padding: 20px 22px;
	border: 1px solid var(--gym-border);
	border-radius: var(--gym-radius);
	background: var(--gym-surface);
	box-shadow: var(--gym-shadow-sm);
	color: var(--gym-navy);
	font-size: 16px;
	font-weight: 800;
	text-decoration: none;
	transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.gym-quick-link:hover {
	transform: translateY(-3px);
	border-color: rgba(39, 101, 142, 0.38);
	box-shadow: var(--gym-shadow);
	color: var(--gym-blue);
}

.gym-quick-link__icon {
	display: grid;
	place-items: center;
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	border-radius: 11px;
	background: #eef4f8;
	color: var(--gym-blue);
	font-size: 18px;
	font-weight: 900;
}

.gym-quick-link__arrow {
	color: #93a3af;
	font-size: 20px;
}

/* 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 rgba(23, 50, 77, 0.06);
	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, #e7eef3, #d7e4ed);
}

.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-navy);
	text-decoration: none;
}

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

.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-blue);
	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 #ecdca9;
	border-left: 5px solid var(--gym-accent);
	border-radius: var(--gym-radius);
	background: #fffaf0;
}

.gym-featured-notice__badge {
	padding: 7px 10px;
	border-radius: 999px;
	background: #f3e2ad;
	color: #624a08;
	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-navy);
	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-navy);
	color: #fff;
	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, rgba(23, 50, 77, 0.06), rgba(39, 101, 142, 0.14)),
		#e8eff4;
}

.gym-about__visual::before {
	content: "";
	position: absolute;
	right: 30px;
	bottom: -35px;
	color: rgba(23, 50, 77, 0.11);
	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: #fff;
	box-shadow: var(--gym-shadow-sm);
	color: var(--gym-navy);
	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-blue);
	font-weight: 850;
	text-decoration: none;
}

@media (max-width: 959px) {
	.gym-hero__inner {
		grid-template-columns: 1fr;
		min-height: 0;
		gap: 36px;
		padding-block: 60px 82px;
	}

	.gym-hero__card {
		max-width: 480px;
	}

	.gym-quick-links__grid,
	.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-hero h1 {
		font-size: clamp(32px, 8vw, 50px);
	}

	.gym-hero__inner {
		padding-block: 50px 74px;
	}

	.gym-quick-links {
		margin-top: -26px;
	}

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

	.gym-quick-link {
		min-height: 82px;
	}

	.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;
	}
}

/* School homepage and common archive cards. */
.gym-hero,
.gym-utility-bar,
.gym-footer {
	--gym-focus: #f5d57a;
}

.gym-hero {
	overflow: hidden;
}

.gym-hero__inner--simple {
	grid-template-columns: minmax(0, 1fr);
}

.gym-hero h1 {
	line-height: 1.07;
	overflow-wrap: anywhere;
	text-wrap: balance;
}

.gym-hero__lead {
	white-space: pre-line;
}

.gym-hero__actions:empty {
	display: none;
}

.gym-hero__photo {
	overflow: hidden;
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: 18px;
}

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

.gym-hero__card strong + p {
	margin-top: .75rem;
}

.gym-quick-links__grid {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gym-quick-links__grid > li {
	display: flex;
	min-width: 0;
}

.gym-quick-links__grid li > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	width: 100%;
	min-height: 4.125rem;
	padding: .9rem 1rem;
	border: 1px solid var(--gym-border);
	border-radius: var(--gym-radius);
	box-shadow: var(--gym-shadow-sm);
	background: #fff;
	color: var(--gym-navy);
	font-weight: 750;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.gym-quick-links__grid li > a::after {
	content: '→' / '';
	flex: 0 0 auto;
	color: var(--gym-blue);
}

.gym-quick-links__grid li > a:hover,
.gym-quick-links__grid .current-menu-item > a {
	border-color: var(--gym-blue);
	text-decoration: underline;
}

.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 {
	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-navy);
	text-decoration: underline;
	text-decoration-color: #7d97ac;
}

.gym-card__title a:hover {
	color: var(--gym-blue);
	text-decoration-color: currentColor;
}

.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: #fff;
	font-size: clamp(2rem, 5vw, 4rem);
	line-height: 1.12;
}

.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-blue);
	text-decoration: underline;
}

.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-navy);
	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: 640px) {
	.gym-container { width: min(calc(100% - 2rem), var(--gym-container)); }
	.gym-card-grid { grid-template-columns: minmax(0, 1fr); }
	.gym-hero__inner { gap: 1.5rem; }
	.gym-hero__photo { max-width: 26rem; }
	.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-navy);
}
