/* EDU Programs – Νέα: κάρτες άρθρων ([edu_home_news]), σελίδα /nea/ + κατηγορίες (archive-news.php), σελίδα άρθρου (single-news.php). */

/* Οι σελίδες /nea/ και άρθρου δεν έχουν .edu-home: ίδια χρώματα με την αρχική. */
.edu-newsarc, .edu-article {
	--h-accent: color-mix(in srgb, var(--edu-navy) 30%, #2563eb);
	--h-ink: #0f1b3d;
	--h-muted: #5b6684;
	--h-line: #e6eaf3;
	--h-card-shadow: 0 1px 2px rgba(15, 27, 61, .04), 0 8px 24px rgba(15, 27, 61, .06);
	--h-card-shadow-hover: 0 2px 4px rgba(15, 27, 61, .05), 0 18px 40px rgba(15, 27, 61, .12);
}

/* Αρχική: 1 μεγάλο + 3 σε λίστα ([edu_home_news]) ---------------------------- */
.edu-news { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; }
.edu-news__list { display: flex; flex-direction: column; gap: 14px; }
.edu-news__list > .edu-news__card { flex: 1; }
.edu-root .edu-news__card {
	display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px; border-radius: 18px;
	background: #fff; border: 1px solid var(--h-line); color: var(--h-ink) !important; transition: transform .2s ease, box-shadow .2s ease;
}
.edu-root .edu-news__card:hover { transform: translateY(-2px); box-shadow: var(--h-card-shadow-hover); }
.edu-root .edu-news__card--big { grid-template-columns: 1fr; gap: 0; padding: 0; overflow: hidden; box-shadow: var(--h-card-shadow); }
.edu-news__photo { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #eef2fb; }
.edu-news__card--big .edu-news__photo { aspect-ratio: 16 / 9; border-radius: 0; }
.edu-root .edu-news__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.edu-news__card:hover .edu-news__photo img { transform: scale(1.03); }
.edu-news__photo.is-empty { color: var(--tone-ink); background: var(--tone); }
.edu-news__photo.is-empty .edu-i { width: 34px; height: 34px; opacity: .6; }
.edu-news__card--big .edu-news__photo.is-empty .edu-i, .edu-news__card--wide .edu-news__photo.is-empty .edu-i { width: 56px; height: 56px; }
.edu-news__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.edu-news__card--big .edu-news__body { padding: 22px 24px 24px; gap: 10px; }
.edu-news__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12.5px; color: var(--h-muted); font-weight: 600; }
.edu-news__cat, .edu-news__pin { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.edu-news__cat { background: var(--tone); color: var(--tone-ink); }
.edu-news__pin { background: var(--edu-yellow); color: #3a2a00; }
.edu-news__pin svg { width: 13px; height: 13px; }
.edu-news__cat--blue   { --tone: #dfe9ff; --tone-ink: #1d4ed8; }
.edu-news__cat--rose   { --tone: #fde4ea; --tone-ink: #be123c; }
.edu-news__cat--mint   { --tone: #dcf5e7; --tone-ink: #15803d; }
.edu-news__cat--peach  { --tone: #feebd6; --tone-ink: #c2410c; }
.edu-news__cat--violet { --tone: #f3eefe; --tone-ink: #7c3aed; }
.edu-news__cat--gray   { --tone: #eef1f6; --tone-ink: #475569; }
.edu-root .edu-news__title { margin: 0; color: var(--h-ink); font-size: 16px; font-weight: 800; line-height: 1.3; letter-spacing: -0.005em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.edu-home .edu-news__card--big .edu-news__title { font-size: clamp(20px, 2vw, 26px); line-height: 1.22; letter-spacing: -0.015em; }
.edu-news__excerpt { color: var(--h-muted); font-size: 15px; line-height: 1.55; }
.edu-news__more { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; color: var(--h-accent); font-weight: 700; font-size: 14.5px; }
.edu-news__more > span { display: inline-flex; transition: transform .18s ease; }
.edu-news__card:hover .edu-news__more > span { transform: translateX(3px); }
.edu-news__more small { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; color: var(--h-muted); font-size: 13px; font-weight: 600; }
.edu-news__more .edu-i { width: 16px; height: 16px; }
@media (max-width: 1024px) {
	.edu-news { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
	.edu-root .edu-news__card { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 10px; }
	.edu-root .edu-news__card--big { grid-template-columns: 1fr; padding: 0; }
	.edu-news__card--big .edu-news__body { padding: 18px; }
	.edu-news__photo { aspect-ratio: 1; }
	.edu-news__card--big .edu-news__photo { aspect-ratio: 16 / 9; }
	.edu-root .edu-news__title { font-size: 15px; }
}


/* Σελίδα /nea/ ------------------------------------------------------------ */
.edu-newsarc__cats { display: flex; gap: 8px; overflow-x: auto; padding: 26px 0 4px; margin-bottom: 22px; scrollbar-width: none; }
.edu-newsarc__cats::-webkit-scrollbar { display: none; }
.edu-root .edu-newsarc__cats a {
	flex: none; padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--h-line);
	color: var(--h-ink) !important; font-weight: 700; font-size: 14px; white-space: nowrap; transition: .15s ease;
}
.edu-root .edu-newsarc__cats a:hover { border-color: var(--edu-navy); }
.edu-root .edu-newsarc__cats a.is-active { background: var(--edu-navy); border-color: var(--edu-navy); color: #fff !important; }
.edu-newsarc .edu-results-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; }
.edu-newsarc .edu-results-bar .edu-reset { color: var(--h-accent) !important; }
.edu-newsarc__featured { margin-bottom: 28px; }
.edu-newsarc__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.edu-newsarc__end { height: 64px; }

/* Μεγάλη οριζόντια (πάνω) και κάρτες πλέγματος */
.edu-root .edu-news__card--wide { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; box-shadow: var(--h-card-shadow); }
.edu-news__card--wide .edu-news__photo { aspect-ratio: 16 / 10; border-radius: 0; height: 100%; }
.edu-news__card--wide .edu-news__body { padding: 32px 36px; gap: 12px; }
.edu-root .edu-news__card--wide .edu-news__title { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.18; letter-spacing: -0.02em; -webkit-line-clamp: 4; }
.edu-root .edu-news__card--tile { grid-template-columns: 1fr; align-content: start; gap: 0; padding: 0; overflow: hidden; box-shadow: var(--h-card-shadow); }
.edu-news__card--tile .edu-news__photo { aspect-ratio: 16 / 9; border-radius: 0; }
.edu-news__card--tile .edu-news__body { padding: 18px 20px 22px; }
.edu-root .edu-news__card--tile .edu-news__title { font-size: 17.5px; }
.edu-news__card--tile .edu-news__excerpt { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.edu-newsarc .edu-news__excerpt { margin: 0; }
@media (max-width: 1024px) {
	.edu-newsarc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.edu-root .edu-news__card--wide { grid-template-columns: 1fr; }
	.edu-news__card--wide .edu-news__photo { aspect-ratio: 16 / 9; }
}
@media (max-width: 760px) {
	.edu-newsarc__grid { grid-template-columns: 1fr; gap: 16px; }
	.edu-newsarc__cats { padding-top: 18px; margin-bottom: 16px; }
	.edu-root .edu-news__card--wide, .edu-root .edu-news__card--tile { grid-template-columns: 1fr; padding: 0; }
	.edu-news__card--wide .edu-news__body { padding: 20px; }
	.edu-news__card--tile .edu-news__photo { aspect-ratio: 16 / 9; }
	.edu-root .edu-news__card--wide .edu-news__title { font-size: 22px; }
}

/* Σελίδα άρθρου ----------------------------------------------------------- */
.edu-page--article .main-page-wrapper { background: #fff; }
.edu-root.edu-article { background: #fff; color: var(--h-ink); }
.edu-article .edu-wrap { max-width: 1120px; }
/* Header: σκούρο hero όπως στη /nea/, με τον τίτλο· η φωτογραφία (αν υπάρχει) πατάει πάνω στο κάτω μέρος του. */
.edu-article__head { padding: 44px 0 52px; margin-bottom: 44px; }
.edu-article__head.has-photo { padding-bottom: 150px; margin-bottom: 0; }
.edu-article__head .edu-wrap { max-width: 1120px; }
.edu-article__head .edu-wrap > * { max-width: 860px; }
.edu-root .edu-article__back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 22px; color: rgba(255,255,255,.72) !important; font-weight: 700; font-size: 14px; }
.edu-root .edu-article__back:hover { color: #fff !important; }
.edu-article__head .edu-news__meta { color: rgba(255,255,255,.72); }
.edu-root .edu-article__head h1 { margin: 14px 0 0; font-size: clamp(30px, 4.2vw, 48px); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; color: #fff; }
.edu-root .edu-article__lead { margin: 16px 0 0; font-size: 19px; line-height: 1.55; color: rgba(255,255,255,.8); }
.edu-root .edu-article__info { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 22px 0 0; font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.7); }
.edu-article__info span { display: inline-flex; align-items: center; gap: 6px; }
.edu-article__info .edu-i { color: var(--edu-yellow); }
.edu-article__photo { position: relative; z-index: 1; margin: -110px 0 44px; }
.edu-root .edu-article__photo img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: 22px; box-shadow: 0 24px 50px rgba(15, 27, 61, .18); }
.edu-article__photo figcaption { margin-top: 10px; font-size: 13px; color: var(--h-muted); text-align: center; }

.edu-article__layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; padding-bottom: 56px; }
.edu-article__body { max-width: 720px; font-size: 17.5px; line-height: 1.75; color: #24304f; }
.edu-root .edu-article__body > :first-child { margin-top: 0; }
.edu-root .edu-article__body p, .edu-root .edu-article__body ul, .edu-root .edu-article__body ol { margin: 0 0 1.3em; }
.edu-root .edu-article__body h2 { margin: 1.8em 0 .6em; font-size: 27px; font-weight: 800; line-height: 1.25; letter-spacing: -0.02em; color: var(--h-ink); }
.edu-root .edu-article__body h3 { margin: 1.6em 0 .5em; font-size: 21px; font-weight: 800; line-height: 1.3; color: var(--h-ink); }
.edu-root .edu-article__body h4 { margin: 1.4em 0 .4em; font-size: 18px; font-weight: 800; color: var(--h-ink); }
.edu-root .edu-article__body a { color: var(--h-accent); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.edu-root .edu-article__body a:hover { color: var(--edu-navy); }
.edu-root .edu-article__body ul, .edu-root .edu-article__body ol { padding-left: 1.4em; }
.edu-root .edu-article__body li { margin: 0 0 .45em; }
.edu-root .edu-article__body li::marker { color: var(--h-accent); font-weight: 700; }
.edu-root .edu-article__body strong { color: var(--h-ink); }
.edu-root .edu-article__body blockquote {
	margin: 1.6em 0; padding: 18px 22px; border: 0; border-left: 4px solid var(--edu-yellow); border-radius: 0 14px 14px 0;
	background: color-mix(in srgb, var(--edu-yellow) 10%, #fff); font-size: 17px; font-style: normal; color: var(--h-ink);
}
.edu-root .edu-article__body blockquote p:last-child { margin-bottom: 0; }
.edu-root .edu-article__body img { max-width: 100%; height: auto; border-radius: 14px; }
.edu-root .edu-article__body figure { margin: 1.8em 0; }
.edu-root .edu-article__body figcaption { margin-top: 8px; font-size: 13.5px; color: var(--h-muted); text-align: center; }
.edu-root .edu-article__body table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 15px; line-height: 1.45; }
.edu-root .edu-article__body th, .edu-root .edu-article__body td { padding: 10px 12px; border-bottom: 1px solid var(--h-line); text-align: left; vertical-align: top; }
.edu-root .edu-article__body th { background: #f6f8fc; font-weight: 800; color: var(--h-ink); }
.edu-root .edu-article__body .wp-block-table { overflow-x: auto; }
.edu-root .edu-article__body hr { border: 0; border-top: 1px solid var(--h-line); margin: 2.2em 0; }

.edu-article__side { position: sticky; top: calc(var(--edu-header-h, 84px) + 24px); display: flex; flex-direction: column; gap: 22px; }
.edu-article__cta {
	display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px; border-radius: 20px; color: #fff;
	background: radial-gradient(260px 160px at 100% 0%, color-mix(in srgb, var(--h-accent) 55%, transparent), transparent 70%), linear-gradient(135deg, var(--edu-navy-deep), var(--edu-navy));
}
.edu-article__cta-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.12); color: var(--edu-yellow); }
.edu-article__cta-icon .edu-i { width: 22px; height: 22px; }
.edu-article__cta strong { font-size: 19px; font-weight: 800; line-height: 1.25; }
.edu-root .edu-article__cta p { margin: 0; font-size: 14.5px; line-height: 1.5; color: rgba(255,255,255,.8); }
.edu-root .edu-article__cta-btn {
	display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 12px 18px; border-radius: 12px;
	background: var(--edu-yellow); color: var(--edu-navy) !important; font-weight: 800; font-size: 14.5px; transition: .15s ease;
}
.edu-root .edu-article__cta-btn:hover { background: var(--edu-yellow-2); transform: translateY(-1px); }
.edu-article__recent { padding: 4px 4px 0; }
.edu-root .edu-article__recent h2 { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--h-muted); }
.edu-article__recent ul { list-style: none; margin: 0; padding: 0; }
.edu-article__recent li { margin: 0; border-top: 1px solid var(--h-line); }
.edu-root .edu-article__recent a { display: block; padding: 12px 0; font-size: 14.5px; font-weight: 700; line-height: 1.4; color: var(--h-ink) !important; }
.edu-root .edu-article__recent a:hover { color: var(--h-accent) !important; }

/* Κάτω από το άρθρο: σχετικά προγράμματα, χορηγός, σχετικά άρθρα σε γκρι φόντο (όπως ο κατάλογος). */
.edu-article__after { background: #f3f4f8; padding-top: 48px; }
.edu-article__after .edu-root.edu-sp { background: transparent; }
.edu-article__more { padding-bottom: 44px; }
.edu-root .edu-article__more h2 { margin: 0 0 22px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; letter-spacing: -0.02em; color: var(--h-ink); }
.edu-article__more-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.edu-root .edu-article__all { display: inline-flex; align-items: center; gap: 6px; color: var(--h-accent) !important; font-weight: 700; font-size: 14.5px; }
.edu-article__more--posts { padding-bottom: 72px; }
.edu-article .edu-grid { gap: 24px; }

@media (max-width: 1024px) {
	.edu-article__layout { grid-template-columns: 1fr; gap: 36px; }
	.edu-article__body { max-width: none; }
	.edu-article__side { position: static; }
}
@media (max-width: 760px) {
	.edu-article__head { padding: 26px 0 32px; margin-bottom: 28px; }
	.edu-article__head.has-photo { padding-bottom: 90px; }
	.edu-article__photo { margin-top: -66px; }
	.edu-root .edu-article__lead { font-size: 17px; }
	.edu-article__photo { margin-bottom: 28px; }
	.edu-root .edu-article__photo img { border-radius: 14px; }
	.edu-article__body { font-size: 16.5px; line-height: 1.7; }
	.edu-root .edu-article__body h2 { font-size: 23px; }
	.edu-root .edu-article__body h3 { font-size: 19px; }
	.edu-article__after { padding-top: 32px; }
}
