/* Εργαστήριο Πληροφορικής, Τμήμα Μεσογειακών Σπουδών */

:root {
  --navy: #00184a;
  --ink: #141a2b;
  --ink-2: #4d5569;
  --line: #dde1e8;
  --line-2: #b9c0cc;
  --paper: #ffffff;
  --paper-2: #f3f5f8;
  --sky: #edf3fb;
  --accent: #0a4f99;
  --accent-deep: #083d78;
  --accent-2: #1e7bd6;
  --accent-soft: #e4ecf7;
  --cyan: #7cc7ef;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1140px;
  --gutter: 1.25rem;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20,26,43,.05), 0 14px 34px -20px rgba(20,26,43,.3);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}
h2 { font-size: 1.85rem; font-weight: 800; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: .6rem; }

p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl { margin: 0; }

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: .5rem .75rem;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 100; }

.more { font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }
.intro { font-size: 1.15rem; color: var(--ink-2); }

/* Κεφαλίδα */

.uni-bar { background: var(--navy); }
.uni-bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: .85rem 0 .75rem;
}
.uni-logo { display: inline-block; }
.uni-logo img { width: 240px; height: auto; filter: brightness(0) invert(1); }
.lang { margin: 0; font-size: .9rem; }
.lang a { color: rgba(255,255,255,.7); text-decoration: none; margin-left: .9rem; }
.lang a[aria-current="true"] { color: #fff; font-weight: 600; }
.lang a:hover { text-decoration: underline; }

.site-head {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.site-head.scrolled { box-shadow: 0 8px 24px -18px rgba(20,26,43,.35); }
.site-head-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 4.5rem; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: .75rem;
  text-decoration: none; color: var(--ink);
  font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em;
  padding: .45rem 0;
}
.brand-mark { width: 2.7rem; height: auto; flex: none; }
.site-nav { display: flex; gap: 1.4rem; }
.site-nav a {
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .98rem;
  padding: .35rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); border-color: var(--accent); }
.nav-toggle {
  display: none; font: inherit; font-weight: 500;
  background: none; border: 1px solid var(--line-2); border-radius: 6px;
  padding: .4rem .8rem; color: var(--ink); cursor: pointer;
}


/* Hero (αρχική) */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 78% 45%, rgba(255,255,255,.95), rgba(255,255,255,0) 60%),
    linear-gradient(180deg, #f7f9fd, var(--sky));
  padding: 3.5rem 0 6rem;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  column-gap: 4rem; align-items: center;
}
.hero-dept { font-size: .95rem; color: var(--ink-2); margin-bottom: 1.75rem; }
.hero h1 { margin: 0 0 1.25rem; }
.hero h1 .kind {
  display: block; font-weight: 500; font-size: 1.35rem; line-height: 1.2;
  color: var(--ink-2); margin-bottom: .25rem; letter-spacing: 0;
}
.hero h1 .name {
  display: block; font-weight: 800; color: var(--accent);
  font-size: clamp(2.75rem, 5.4vw, 4.5rem); line-height: 1.02;
  letter-spacing: -0.025em; text-wrap: balance;
}
.lead {
  font-size: 1.2rem; line-height: 1.55; color: var(--ink-2);
  max-width: 32em; margin-bottom: 1.75rem;
}
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin: 0; }
.btn {
  display: inline-block; padding: .8rem 1.25rem; border-radius: 8px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 600; border: 1px solid var(--accent); white-space: nowrap;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-quiet { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-quiet:hover { background: var(--paper-2); border-color: var(--ink-2); }

.hero-logo { position: relative; display: flex; justify-content: center; }
.hero-logo img {
  position: relative; width: min(100%, 25rem); height: auto;
  filter: drop-shadow(0 18px 28px rgba(10,79,153,.18));
}
.hero-wave {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: 100%; height: 3.5rem; display: block;
}

/* Λωρίδα στοιχείων */

.facts-band { background: var(--accent); color: #fff; }
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem 2.5rem;
  padding: 1.5rem 0 1.6rem;
}
.facts div { min-width: 0; }
.facts dt { font-size: .8rem; color: rgba(255,255,255,.7); margin-bottom: .1rem; }
.facts dd { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; line-height: 1.35; }

/* Ενότητες αρχικής */

.section { padding: 4.5rem 0; }
.band { background: var(--paper-2); }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem;
  margin-bottom: 2.25rem;
}
.section-head h2 { margin-bottom: 0; }
.section-head p { margin: .5rem 0 0; color: var(--ink-2); max-width: 60ch; }
.section-head .more { flex: none; padding-bottom: .2rem; }


.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3.5rem; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, max-content)); gap: 1.5rem 2.5rem; justify-content: start; margin: 1.75rem 0; }
.stats li { border-left: 3px solid var(--accent-2); padding-left: .9rem; }
.stats b { display: block; font-family: var(--font-head); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--accent); margin-bottom: .3rem; }
.stats span { font-size: .9rem; color: var(--ink-2); }
.photo-card { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.photo-card figcaption, .gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.5rem 1rem .8rem; color: #fff; font-size: .85rem;
  background: linear-gradient(transparent, rgba(10,20,40,.7));
}

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.news-card, .edu-card, .post, .person {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
}
.news-card { overflow: hidden; display: flex; flex-direction: column; }
.news-date {
  display: flex; align-items: baseline; gap: .5rem;
  padding: 1rem 1.4rem; background: var(--sky); border-bottom: 1px solid var(--line);
}
.news-date b { font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; line-height: 1; color: var(--accent); }
.news-date span { font-size: .9rem; color: var(--ink-2); font-weight: 500; }
.news-body { padding: 1.25rem 1.4rem 1.4rem; }
.news-body h3 { font-size: 1.1rem; line-height: 1.35; margin-bottom: .5rem; }
.news-body h3 a, .post h2 a { color: var(--ink); text-decoration: none; }
.news-body h3 a:hover, .post h2 a:hover { color: var(--accent); }
.news-body p { color: var(--ink-2); font-size: .95rem; margin: 0; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.panel { background: var(--sky); border-radius: var(--radius); padding: 2rem 2rem 1.5rem; }
.panel p { color: var(--ink-2); }
.panel.small { padding: 1.5rem 1.6rem 1rem; }
.panel.small h3::before { display: none; }

.index { margin: 0 0 1.25rem; border-bottom: 1px solid var(--line); }
.index li { border-top: 1px solid var(--line); padding: .5rem 0; break-inside: avoid; }
.index.cols-2 { column-count: 2; column-gap: 2.5rem; }
.panel .index { border-color: rgba(10,79,153,.18); }
.panel .index li { border-color: rgba(10,79,153,.18); }

.marks li { position: relative; padding-left: 1.25rem; margin-bottom: .5rem; }
.marks li::before {
  content: ""; position: absolute; left: 0; top: .7em;
  width: .45rem; height: .45rem; background: var(--accent-2);
}
.marks.cols { column-count: 2; column-gap: 2.5rem; margin-bottom: 1.5rem; }
.marks.cols li { break-inside: avoid; }

/* Φωτογραφική ζώνη με την αποστολή */

.quote-band { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.quote-band > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%;
  opacity: .28; filter: grayscale(.4);
}
.quote-band-inner { position: relative; padding: 4.5rem 0; }
.quote-band blockquote { margin: 0; max-width: 40em; }
.quote-band p {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  line-height: 1.35; letter-spacing: -0.01em; margin-bottom: 1rem;
}
.quote-band cite { font-style: normal; font-size: .95rem; color: rgba(255,255,255,.75); }

/* Προσωπικό */

.person { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.25rem; }
.person .name, .mini-person .name { font-weight: 600; margin: 0; line-height: 1.3; }
.person .role, .mini-person .role { color: var(--ink-2); font-size: .9rem; margin: .15rem 0 0; line-height: 1.4; }
.photo-ph {
  width: 3.25rem; height: 3.25rem; flex: none; border-radius: 6px;
  border: 1px dashed var(--line-2); background: var(--paper-2);
  display: grid; place-items: center; color: var(--ink-2); font-size: .68rem;
}
.photo-ph::before { content: "φωτο"; }
.photo-ph.big { width: 5.5rem; height: 5.5rem; font-size: .8rem; }
.person.director {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center;
  padding: 1.5rem 1.75rem; margin-bottom: 1.5rem; border-left: 5px solid var(--accent);
}
.person.director .name { font-family: var(--font-head); font-size: 1.35rem; font-weight: 800; margin-top: .35rem; }
.person.director .role { font-size: .95rem; }
.chip {
  display: inline-block; background: var(--accent); color: #fff;
  font-size: .78rem; font-weight: 600; padding: .15rem .6rem; border-radius: 999px;
}
.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.people-grid.two { grid-template-columns: 1fr 1fr; }
.mini-person { display: flex; gap: .85rem; align-items: center; margin-bottom: .75rem; }
.note { color: var(--ink-2); font-size: .95rem; border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1.5rem; }

/* Επικοινωνία */

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3.5rem; align-items: start; }
.contact-list dt { font-size: .82rem; color: var(--ink-2); margin-top: 1rem; }
.contact-list dt:first-child { margin-top: 0; }
.contact-list dd { margin: .1rem 0 0; }
.map-wrap {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background: var(--sky); box-shadow: var(--shadow);
}
.map-wrap.tall { aspect-ratio: 16 / 8; margin-bottom: 2.5rem; }
.map-wrap::before {
  content: "Χάρτης, Δημοκρατίας 1, Ρόδος"; position: absolute; inset: 0;
  display: grid; place-items: center; color: var(--ink-2); font-family: var(--font-head);
}
.map { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.todo {
  display: inline-block; border: 1px dashed var(--line-2); border-radius: 6px;
  padding: .3rem .7rem; color: var(--ink-2); font-size: .92rem;
  background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(20,26,43,.035) 8px 9px);
}

/* Εσωτερικές σελίδες */

.page-head {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #f7f9fd, var(--sky));
  border-bottom: 1px solid var(--line);
}
.page-head-inner { position: relative; padding: 2.75rem 0 2.5rem; }
.crumbs { font-size: .9rem; color: var(--ink-2); margin-bottom: .9rem; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-hidden] { margin: 0 .5rem; }
.page-head h1 { font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: .75rem; }
.page-head .lead { margin-bottom: 0; max-width: 40em; }

.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 3.5rem; padding: 3rem 0 5rem; align-items: start; }
.page-main > h2 { margin-top: 2.5rem; }
.page-main > h2:first-child { margin-top: 0; }
.page-main .duo { margin-top: .5rem; }
.prose { max-width: 66ch; }

.quote {
  position: relative; background: var(--sky); border-radius: var(--radius);
  padding: 1.75rem 2rem 1.4rem 4.25rem; margin-bottom: 1.75rem;
  font-size: 1.1rem; line-height: 1.6;
}
.quote::before {
  content: "“"; position: absolute; left: 1.3rem; top: .4rem;
  font-family: Georgia, serif; font-size: 4.5rem; line-height: 1; color: var(--accent-2);
}
.quote p { margin-bottom: .5rem; }
.quote cite { font-style: normal; font-size: .85rem; color: var(--ink-2); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.gallery figure { margin: 0; position: relative; border-radius: 8px; overflow: hidden; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.gallery .large { grid-column: span 2; grid-row: span 2; }
.gallery .large img { height: 100%; aspect-ratio: auto; object-position: 50% 30%; }

.timeline { position: relative; padding-left: 2.25rem; margin-bottom: 1rem; }
.timeline::before { content: ""; position: absolute; left: .5rem; top: .6rem; bottom: .6rem; width: 2px; background: var(--line-2); }
.timeline li { position: relative; padding-bottom: 1.75rem; }
.timeline li::before {
  content: ""; position: absolute; left: calc(1px - 2.25rem); top: .25rem;
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: #fff; border: 3px solid var(--accent-2);
}
.timeline .when {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .85rem;
  color: var(--accent-deep); background: var(--accent-soft); padding: .15rem .65rem; border-radius: 999px;
  margin-bottom: .5rem;
}
.timeline .title { font-weight: 600; margin: 0 0 .25rem; line-height: 1.4; }
.timeline .meta { color: var(--ink-2); font-size: .95rem; margin: 0; }

.edu-card { overflow: hidden; }
.edu-head {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem 1.4rem; background: var(--accent); color: #fff;
}
.edu-head h3 { margin: 0; font-size: 1.1rem; }
.count { background: rgba(255,255,255,.18); padding: .15rem .65rem; border-radius: 999px; font-size: .82rem; white-space: nowrap; }
.edu-card ul { padding: .5rem 1.4rem .9rem; }
.edu-card li { padding: .5rem 0; border-top: 1px solid var(--line); font-size: .98rem; }
.edu-card li:first-child { border-top: 0; }
.practice {
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
  margin-top: 1.5rem; padding: 1.6rem 2rem; background: var(--sky); border-radius: var(--radius);
  border-left: 5px solid var(--accent);
}
.practice p { margin: 0; color: var(--ink-2); }

.posts { display: grid; gap: 1.25rem; }
.post { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; padding: 1.5rem 1.75rem; align-items: start; }
.post .news-date {
  flex-direction: column; align-items: center; gap: .1rem; padding: .75rem .9rem;
  border: 0; border-radius: 8px; min-width: 5rem; text-align: center;
}
.post .news-date b { font-size: 2.2rem; }
.post h2 { font-size: 1.35rem; margin-bottom: .5rem; }
.post h2::before { display: none; }
.post p { color: var(--ink-2); margin-bottom: .5rem; }

.sidebar .widget {
  background: var(--paper-2); border-radius: var(--radius); padding: 1.3rem 1.4rem 1.1rem; margin-bottom: 1.25rem;
}
.widget h3 { font-size: 1rem; margin-bottom: .7rem; }
.widget p { font-size: .95rem; margin-bottom: .6rem; }
.widget-news li { padding: .6rem 0; border-top: 1px solid var(--line); }
.widget-news li:first-child { border-top: 0; padding-top: 0; }
.widget-news time { display: block; font-size: .8rem; color: var(--ink-2); }
.widget-news a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; line-height: 1.4; }
.widget-news a:hover { color: var(--accent); }

/* Υποσέλιδο */

.site-foot { position: relative; background: var(--navy); color: #fff; overflow: hidden; margin-top: 0; }
.foot-mark { position: absolute; right: -4rem; bottom: -3rem; width: 26rem; opacity: .07; pointer-events: none; }
.foot-inner {
  position: relative;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; padding: 3.5rem 0 2.5rem;
}
.foot-logo { display: inline-block; margin-bottom: 1.25rem; }
.foot-logo img { width: 260px; filter: brightness(0) invert(1); }
.site-foot p { color: rgba(255,255,255,.75); margin: 0; font-size: .95rem; }
.site-foot h3 { font-size: 1rem; margin-bottom: .8rem; }
.site-foot li { margin-bottom: .4rem; }
.site-foot a { color: rgba(255,255,255,.82); }
.site-foot a:hover { color: #fff; }
.foot-legal { position: relative; border-top: 1px solid rgba(255,255,255,.18); padding: 1rem 0 1.25rem; font-size: .875rem; }

/* Κινητά */

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; row-gap: 2rem; }
  .hero-logo { order: -1; }
  .hero-logo img { width: min(60%, 15rem); }
  .facts { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .news-grid { grid-template-columns: 1fr; }
  .duo { grid-template-columns: 1fr; }
  .people-grid, .people-grid.two { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .page-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .large { grid-row: auto; }
  .gallery .large img { aspect-ratio: 16 / 9; height: auto; }
  .foot-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 760px) {
  .uni-logo img { width: 200px; }
  .nav-toggle { display: inline-block; flex: none; }
  .brand { flex: 1 1 0; min-width: 0; font-size: 1.05rem; line-height: 1.25; }
  .brand-mark { width: 2.3rem; }
  .site-head-inner { min-height: 3.75rem; gap: 1rem; padding: .4rem 0; }
  .site-nav { display: none; flex-direction: column; gap: 0; width: 100%; padding-bottom: .75rem; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .6rem 0; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { border-color: var(--line); color: var(--accent); }
  .hero { padding: 2.5rem 0 4.5rem; }
  .hero-wave { height: 2rem; }
  .section { padding: 3.25rem 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .person.director { grid-template-columns: auto 1fr; }
  .person.director .btn { grid-column: 2; justify-self: start; }
  .people-grid, .people-grid.two { grid-template-columns: 1fr; }
  .marks.cols { column-count: 1; }
  .index.cols-2 { column-count: 1; }
  .quote-band-inner { padding: 3rem 0; }
  .practice { grid-template-columns: 1fr; }
  .post { grid-template-columns: 1fr; }
  .post .news-date { flex-direction: row; justify-content: center; gap: .5rem; }
  .map-wrap.tall { aspect-ratio: 4 / 3; }
}

@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; gap: 1rem; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .large { grid-column: auto; }
  .stats { grid-template-columns: 1fr; }
}
