/* ΟΔΙΚΗ ΑΣΦΑΛΕΙΑ ΠΑΜΘ — κοινό στυλ */
:root {
  --green: #6dbb45;
  --green-dark: #4f9a2c;
  --blue: #3f8fcd;
  --blue-dark: #2a6fa8;
  --red: #c8202f;
  --red-dark: #9e1622;
  --navy: #1f3550;
  --ink: #1d2733;
  --muted: #5b6673;
  --bg: #ffffff;
  --soft: #f3f6f9;
  --line: #e2e8ee;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: "Commissioner", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

/* ---------- Header ---------- */
.site-header { width: 100%; background: #fff; }
.site-header a { display: block; width: 50%; margin: 0 auto; }
.site-header img { width: 100%; height: auto; }
@media (max-width: 768px) {
  .site-header a { width: 100%; }   /* στα κινητά το λογότυπο πιάνει όλο το πλάτος */
}

/* ---------- Menu ---------- */
.site-nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.site-nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0 16px;
  max-width: 1200px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.site-nav a {
  display: block;
  padding: 15px 22px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .02em;
  border-bottom: 4px solid transparent;
  transition: background .2s, border-color .2s;
}
.site-nav a:hover,
.site-nav a:focus-visible { background: rgba(255, 255, 255, .08); }
.site-nav a.active { border-bottom-color: var(--green); }
.site-nav a.nav-students:hover, .site-nav a.nav-students.active { border-bottom-color: var(--green); }
.site-nav a.nav-parents:hover,  .site-nav a.nav-parents.active  { border-bottom-color: var(--blue); }
.site-nav a.nav-teachers:hover, .site-nav a.nav-teachers.active { border-bottom-color: var(--red); }

/* ---------- Main ---------- */
main {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 16px 56px;
}

.intro { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.intro h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: .01em;
}
.intro p { margin: 0; color: var(--muted); font-size: 17px; }

/* ---------- Homepage sections ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 30px 28px 26px;
  border-radius: var(--radius);
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(20, 40, 60, .14);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card::after {               /* διακριτικός «δρόμος» στη γωνία */
  content: "";
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}
.card:hover,
.card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(20, 40, 60, .22);
}
.card--students { background: linear-gradient(150deg, var(--green), var(--green-dark)); }
.card--parents  { background: linear-gradient(150deg, var(--blue),  var(--blue-dark)); }
.card--teachers { background: linear-gradient(150deg, var(--red),   var(--red-dark)); }

.card-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}
.card-icon svg { width: 30px; height: 30px; }
.card-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  opacity: .85;
  margin-bottom: 6px;
}
.card h2 {
  margin: 0 0 auto;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 800;
}
.card h2 span { display: block; font-size: 15px; font-weight: 500; opacity: .9; margin-top: 6px; }
.card-cta {
  position: relative;
  z-index: 1;
  margin-top: 26px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  font-size: 15px;
}
.card--students .card-cta { color: var(--green-dark); }
.card--parents  .card-cta { color: var(--blue-dark); }
.card--teachers .card-cta { color: var(--red-dark); }

/* ---------- Subpages: embedded Google Form ---------- */
.page-title { text-align: center; margin: 0 auto 28px; max-width: 820px; }
.page-title h1 { margin: 0; font-size: clamp(22px, 3.4vw, 32px); color: var(--navy); font-weight: 800; }
.page-title .bar { width: 72px; height: 5px; border-radius: 3px; margin: 14px auto 0; background: var(--green); }
.page-title.parents .bar  { background: var(--blue); }
.page-title.teachers .bar { background: var(--red); }

.form-wrap {
  max-width: 820px;
  margin: 0 auto;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.form-wrap iframe {
  display: block;
  width: 100%;
  height: var(--form-height, 2200px);   /* ρυθμίζεται ανά σελίδα */
  border: 0;
}
.form-placeholder { padding: 60px 20px; text-align: center; color: var(--muted); }

/* ---------- Text pages (privacy) ---------- */
.text-page { max-width: 820px; margin: 0 auto; }
.text-page { font-size: 17px; }
.text-page h2 {
  margin: 36px 0 12px;
  font-size: 21px;
  color: var(--navy);
  padding-left: 14px;
  border-left: 5px solid var(--green);
}
.text-page h2:first-child { margin-top: 0; }
.text-page p { margin: 0 0 14px; }
.text-page ul { margin: 0 0 14px; padding-left: 22px; }
.text-page li { margin-bottom: 10px; }
.text-page li::marker { color: var(--green-dark); }
.text-page h3 { margin: 28px 0 12px; font-size: 18px; color: var(--navy); }
.text-page .note { font-size: 15px; color: var(--muted); }
.text-page code { font-size: 14px; background: var(--soft); padding: 2px 6px; border-radius: 4px; word-break: break-all; }

.table-scroll { overflow-x: auto; }
.cookie-table { width: 100%; border-collapse: collapse; font-size: 15px; margin-bottom: 14px; }
.cookie-table th, .cookie-table td { text-align: left; vertical-align: top; padding: 12px; border-bottom: 1px solid var(--line); }
.cookie-table th { background: var(--navy); color: #fff; font-weight: 600; }
.cookie-table th:first-child { border-top-left-radius: 8px; }
.cookie-table th:last-child { border-top-right-radius: 8px; }
.cookie-table tbody tr:nth-child(even) { background: var(--soft); }

.btn-reset {
  padding: 11px 20px;
  border-radius: 8px;
  border: 2px solid var(--navy);
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.btn-reset:hover { background: var(--navy); color: #fff; }

/* Στα κινητά ο πίνακας γίνεται κάρτες */
@media (max-width: 700px) {
  .cookie-table thead { display: none; }
  .cookie-table, .cookie-table tbody, .cookie-table tr, .cookie-table td { display: block; width: 100%; }
  .cookie-table tr { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 14px; overflow: hidden; }
  .cookie-table tbody tr:nth-child(even) { background: #fff; }
  .cookie-table td { padding: 10px 14px; }
  .cookie-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2px;
  }
  .cookie-table td:first-child { background: var(--soft); }
}

.text-page .back-home { margin-top: 36px; }
.text-page a { color: var(--blue-dark); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { width: 100%; margin-top: auto; line-height: 0; }
.site-footer img { width: 100%; height: auto; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  width: min(420px, calc(100% - 32px));
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  border-top: 5px solid var(--green);
  box-shadow: 0 14px 40px rgba(15, 30, 50, .28);
  padding: 20px 20px 18px;
  font-size: 14px;
  line-height: 1.5;
  display: none;
}
.cookie-banner.show { display: block; animation: slideUp .35s ease; }
.cookie-banner h3 { margin: 0 0 8px; font-size: 16px; color: var(--navy); }
.cookie-banner p { margin: 0 0 12px; }
.cookie-banner .cookie-link { color: var(--blue-dark); font-weight: 600; }
.cookie-actions { display: flex; gap: 10px; margin-top: 14px; }
.cookie-actions button {
  flex: 1;
  padding: 11px 12px;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  letter-spacing: .03em;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-accept { background: var(--green); color: #fff; }
.btn-accept:hover { background: var(--green-dark); }
.btn-decline { background: #fff; color: var(--ink); border-color: var(--line) !important; }
.btn-decline:hover { border-color: var(--muted) !important; }

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .card { min-height: 0; }
}
@media (max-width: 600px) {
  main { padding: 32px 16px 40px; }
  .site-nav ul { padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
  .site-nav a { padding: 12px 10px; text-align: center; font-size: 14px; }
  .form-wrap { border-radius: 0; margin: 0 -16px; border-left: 0; border-right: 0; }
  .form-wrap iframe { height: var(--form-height-mobile, 2800px); }
  .cookie-banner { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Οι άγκυρες να μην κρύβονται κάτω από το σταθερό μενού */
[id] { scroll-margin-top: 110px; }
