:root {
  --a5-green: #5b7f24;
  --a5-green-dark: #3e5a14;
  --a5-text: #1f1f1f;
  --a5-grey: #8a8a8a;
  --a5-line: #cfcfcf;
  --a5-tab: #d6d6d6;
  --a5-active: #c4c4c4;
}
html, body { margin: 0; background: #fff; }
body {
  color: var(--a5-text);
  font-family: "Open Sans", "Segoe UI", Calibri, Arial, sans-serif;
  font-size: 15px; line-height: 1.5;
}
a { color: var(--a5-green); }
a:hover { color: var(--a5-green-dark); }
img { max-width: 100%; height: auto; }

/* ---------- two-column layout ---------- */
.a5-page {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  max-width: 1200px; margin: 0 auto; min-height: 100vh;
}
.a5-col { border-left: 1px solid var(--a5-line); padding: 14px 0 40px 10px; min-width: 0; }

/* ---------- NTUA header ---------- */
.a5-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.a5-ntua { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--a5-grey); font-size: 12px; }
.a5-ntua strong { color: #6d6d6d; }
.a5-login a { color: #000; font-size: 12px; text-decoration: none; }
.a5-login a:hover { text-decoration: underline; }

/* ---------- site title ---------- */
.a5-title { margin: 34px 0 22px; }
.a5-title h1 { margin: 0; font-size: 21px; line-height: 1.25; font-weight: 700; letter-spacing: .2px; }
.a5-title h1 a { color: var(--a5-text); text-decoration: none; }
.a5-title p { margin: 0; color: var(--a5-grey); font-size: 15.5px; line-height: 1.3; }

/* ---------- left menu ---------- */
.a5-side { padding-top: 168px; }
.a5-side h2 { position: absolute; clip: rect(0 0 0 0); width: 1px; height: 1px; overflow: hidden; }
.a5-side ul { list-style: none; margin: 0; padding: 0; }
.a5-side li { margin: 0 0 18px; }
.a5-side li ul { display: none; }
.a5-side a {
  display: block; text-align: right; text-decoration: none;
  padding: 8px 18px 8px 10px;
  font-weight: 700; font-size: 16px; line-height: 1.3;
  color: var(--a5-green);
  border-right: 6px solid var(--a5-tab);
}
.a5-side a:hover { border-right-color: var(--a5-green); }
.a5-side a.is-active,
.a5-side .menu-item--active-trail > a {
  background: var(--a5-active); color: #fff; border-right-color: var(--a5-active);
}

/* ---------- content ---------- */
.a5-main { min-width: 0; }
.a5-main h1, .a5-main h2 { font-weight: 700; }
.a5-main table { border-collapse: collapse; width: 100%; font-size: 14px; }
.a5-main th { text-align: left; color: var(--a5-grey); font-weight: 400; border-bottom: 1px solid var(--a5-line); padding: 6px 8px; }
.a5-main td { vertical-align: top; padding: 8px; }
.a5-highlighted { margin-bottom: 14px; }
.a5-footer { margin-top: 40px; padding-top: 12px; border-top: 1px solid var(--a5-line); color: var(--a5-grey); font-size: 13px; }

/* ---------- homepage image grid ---------- */
.a5-home { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.a5-home img { display: block; width: 100%; height: 100%; object-fit: cover; background: #ececec; }
.a5-home .a5-wide { grid-column: 1 / -1; height: auto; }

/* ---------- phones / narrow screens ---------- */
@media (max-width: 800px) {
  .a5-page { grid-template-columns: 1fr; }
  .a5-col { border-left: 0; padding: 12px 16px 32px; order: -1; }
  .a5-side { padding: 0 16px 24px; }
  .a5-side li { margin-bottom: 6px; }
  .a5-title h1 { font-size: 18px; }
  .a5-home { grid-template-columns: 1fr; }
}

/* homepage: single composite image */
.a5-home-single img { display: block; width: 100%; height: auto; }

/* ===== a5-info-section: nested left menu (Πληροφορίες) ===== */
.a5-side li ul { display: none; }
.a5-side .menu-item--active-trail ul { display: block; margin: 12px 0 0; }
/* only the current page is highlighted, not its parents */
.a5-side .menu-item--active-trail > a { background: none; color: var(--a5-green); border-right-color: var(--a5-tab); }
.a5-side .menu--level-2 > li { margin: 0 0 14px; }
.a5-side .menu--level-2 > li > a {
  font-size: 14.5px; padding: 6px 18px 6px 10px;
  border-bottom: 1px dotted var(--a5-line);
}
.a5-side .menu--level-3 { margin: 6px 0 0 !important; }
.a5-side .menu--level-3 > li { margin: 0; }
.a5-side .menu--level-3 > li > a {
  font-weight: 400; font-style: italic; font-size: 13px;
  padding: 3px 18px 3px 10px; border-right-color: transparent;
}
.a5-side a.is-active { background: var(--a5-active) !important; color: #fff !important; border-right-color: var(--a5-active) !important; }

/* ===== text pages ===== */
.a5-main p { text-align: justify; }
.a5-main h3 { color: var(--a5-grey); font-size: 17px; margin: 20px 0 6px; }
.a5-main h3:first-child { margin-top: 0; }
.a5-main hr { border: 0; border-top: 1px solid var(--a5-line); margin: 18px 0; }
.a5-main .a5-credits p { text-align: left; margin: 0 0 2px; }
.a5-main .a5-address { text-align: left; }
.a5-button {
  display: inline-block; padding: 8px 18px; border-radius: 18px;
  background: #9b9b9b; color: #fff !important; text-decoration: none; font-weight: 700;
}
.a5-button:hover { background: var(--a5-green); }

/* ===== a5-second-menu: three columns in sections with sub-pages ===== */
/* main menu: the section you are in is grey, like the current page */
.a5-side .menu-item--active-trail > a {
  background: var(--a5-active) !important; color: #fff !important; border-right-color: var(--a5-active) !important;
}
.a5-body--sub { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: start; }
.a5-sub h2 { position: absolute; clip: rect(0 0 0 0); width: 1px; height: 1px; overflow: hidden; }
.a5-sub ul { list-style: none; margin: 0; padding: 0; }
/* section headings: Το Μάθημα, Το Πρόγραμμα Ψηφιοποίησης, Επικοινωνία */
.a5-sub .menu--level-1 > li { margin: 0 0 22px; border-right: 6px solid var(--a5-tab); }
.a5-sub .menu--level-1 > li > a {
  display: block; text-align: right; text-decoration: none;
  padding: 6px 10px; font-weight: 700; font-size: 14.5px; line-height: 1.25;
  color: var(--a5-green); border-bottom: 1px dotted var(--a5-line);
}
/* sub-pages: Αντικείμενο, Στόχοι, Μεθοδολογία, Συντελεστές */
.a5-sub .menu--level-2 { padding: 6px 0 2px; }
.a5-sub .menu--level-2 a {
  display: block; text-align: right; text-decoration: none;
  padding: 3px 10px; font-style: italic; font-size: 13px; color: var(--a5-green);
}
.a5-sub a:hover { color: var(--a5-green-dark); }
.a5-sub a.is-active { background: var(--a5-active); color: #fff !important; }

@media (max-width: 800px) {
  .a5-body--sub { grid-template-columns: 1fr; }
  .a5-sub .menu--level-1 > li { margin-bottom: 10px; }
}

.a5-ntua img { height: 58px !important; width: auto !important; max-width: none; }

/* ===== a5-under-construction overlay (front page, anonymous only) ===== */
.a5-uc {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(3px) grayscale(.4); backdrop-filter: blur(3px) grayscale(.4);
}
.a5-uc__card {
  max-width: 560px; width: 100%; text-align: center; background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .18); overflow: hidden;
}
.a5-uc__tape {
  height: 16px;
  background: repeating-linear-gradient(-45deg, #f2c200 0 16px, #1f1f1f 16px 32px);
}
.a5-uc__kicker { margin: 22px 0 4px; color: var(--a5-grey); font-size: 13px; letter-spacing: 1px; }
.a5-uc__title { margin: 0 0 12px; font-size: 34px; letter-spacing: 3px; color: var(--a5-text); }
.a5-uc__text { margin: 0 24px 10px; color: #444; line-height: 1.55; text-align: center !important; }
.a5-uc__en { margin: 0 24px 22px; color: var(--a5-grey); font-size: 13px; font-style: italic; text-align: center !important; }
@media (max-width: 600px) { .a5-uc__title { font-size: 26px; } }

.a5-preview .a5-uc { display: none; }

/* ===== a5-region-search: hierarchical area selector ===== */
.a5-regsel { margin: 0 0 24px; }
.a5-regsel__label { margin: 0 0 6px; color: var(--a5-grey); font-size: 16px; }
.a5-regsel__cols { display: flex; flex-wrap: wrap; gap: 4px; }
.a5-regsel__list {
  min-width: 70px; max-width: 220px; height: 160px; padding: 2px;
  border: 1px solid #555; background: #fff; font: inherit; font-size: 13.5px;
}
.a5-regsel__list option { padding: 2px 6px; }
.a5-regsel__list option:checked { background: var(--a5-active) linear-gradient(var(--a5-active), var(--a5-active)); color: #000; }
.a5-regsel__bar { display: flex; justify-content: flex-end; border-bottom: 1px solid var(--a5-line); padding: 12px 0; margin-bottom: 14px; }
.a5-regsel__apply { border: 0; cursor: pointer; font: inherit; }
.a5-regsel__help { color: #333; font-size: 13.5px; }
@media (max-width: 800px) { .a5-regsel__list { max-width: none; flex: 1 1 140px; } }

/* ===== a5-views-common: filters above tables, pager, buttons ===== */
.a5-main .views-exposed-form { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: flex-end; margin: 0 0 18px; padding: 0 0 14px; border-bottom: 1px solid var(--a5-line); }
.a5-main .views-exposed-form .form-item { margin: 0; }
.a5-main .views-exposed-form label { display: block; font-size: 13px; color: var(--a5-grey); margin-bottom: 3px; }
.a5-main .views-exposed-form input[type=text], .a5-main .views-exposed-form select { font: inherit; font-size: 14px; padding: 4px 6px; border: 1px solid #999; max-width: 320px; }
.a5-main .views-exposed-form .form-actions { margin: 0; }
.a5-main input[type=submit], .a5-main .button { font: inherit; font-size: 14px; padding: 5px 14px; border: 0; background: var(--a5-green); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
.a5-main input[type=submit]:hover, .a5-main .button:hover { background: var(--a5-green-dark); color: #fff; }
.a5-main .pager__items { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 0; margin: 18px 0; justify-content: center; }
.a5-main .pager__item.is-active a { font-weight: 700; color: var(--a5-text); }
.a5-main table tbody tr:nth-child(even) { background: #f6f6f6; }
.a5-main .views-table caption, .a5-main .a5-view-note { color: var(--a5-grey); font-size: 13px; }
.a5-main .feed-icons, .a5-main .csv-feed { margin: 12px 0; }


/* ===== a5-csv-button: the CSV link under a table (keeps the current filters) ===== */
.a5-main .views-data-export-feed, .a5-main a.csv-feed, .a5-main .feed-icon {
  display: inline-block; padding: 6px 14px; background: var(--a5-green); color: #fff !important;
  font-size: 14px; text-decoration: none; margin: 14px 0;
}
.a5-main .views-data-export-feed:hover, .a5-main a.csv-feed:hover, .a5-main .feed-icon:hover { background: var(--a5-green-dark); }
.a5-main .views-data-export-feed img, .a5-main .feed-icon img { display: none; }
.a5-main .views-data-export-feed, .a5-main .feed-icon { font-size: 0; }
.a5-main .views-data-export-feed::before, .a5-main .feed-icon::before { content: "⬇ Λήψη CSV (Excel)"; font-size: 14px; }


/* ===== a5-tabs: Προβολή / Επεξεργασία / … as buttons ===== */
.a5-ptitle__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.a5-tabs ul, .a5-highlighted ul:has(> .a5-tab) { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.a5-highlighted ul:has(> .a5-tab) { justify-content: flex-end; margin: 0 0 10px; }
li.a5-tab { margin: 0; }
li.a5-tab > a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; font-size: 15px; font-weight: 700; line-height: 1.2; text-decoration: none;
  background: #c8c8c8; color: #333; border: 0;
}
li.a5-tab > a:hover { background: #b5b5b5; color: #111; }
li.a5-tab--view > a, li.a5-tab--edit > a { background: var(--a5-green); color: #fff; }
li.a5-tab--view > a:hover, li.a5-tab--edit > a:hover { background: var(--a5-green-dark); color: #fff; }
li.a5-tab--delete > a { background: #9b2c2c; color: #fff; }
li.a5-tab--delete > a:hover { background: #7a1f1f; color: #fff; }
li.a5-tab.is-active > a { box-shadow: inset 0 -3px 0 rgba(0,0,0,.35); }
li.a5-tab > a::before { content: ""; width: 17px; height: 17px; flex: none; background: no-repeat center / contain; }
li.a5-tab--other > a::before { display: none; }
li.a5-tab--view > a::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.8' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='6.5'/%3E%3Cpath d='M15 15l6 6'/%3E%3C/svg%3E"); }
li.a5-tab--edit > a::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M3 21l1.2-5.2L15.6 4.4a1.5 1.5 0 0 1 2.1 0l1.9 1.9a1.5 1.5 0 0 1 0 2.1L8.2 19.8z'/%3E%3C/svg%3E"); }
li.a5-tab--delete > a::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13M10 11v6M14 11v6'/%3E%3C/svg%3E"); }
li.a5-tab--revisions > a::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
@media (max-width: 800px) { li.a5-tab > a { font-size: 13.5px; padding: 6px 10px; } }
/* ===== /a5-tabs ===== */

/* ===== a5-staff: title bar + «Διαχείριση» menu ===== */
.a5-banner {
  margin: 0 0 20px; padding: 10px 16px;
  background: #2f4a10; color: #ffd400 !important;
  font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: .2px;
}
/* the menu sits under the main menu, same look */
.a5-side .a5-staffmenu { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--a5-line); }
.a5-side .a5-staffmenu ul { display: block !important; }
.a5-side .a5-staffmenu li { margin: 0 0 12px; }
.a5-side .a5-staffmenu a { font-size: 14.5px; }
.a5-side .a5-staffmenu a.is-active { background: var(--a5-active); color: #fff; border-right-color: var(--a5-active); }
.a5-side--project .a5-staffmenu { margin-top: 10px; padding-top: 8px; }
.a5-side--project .a5-staffmenu li { margin: 0; }
.a5-side--project .a5-staffmenu a { font-size: 12px; }
/* ===== /a5-staff ===== */
