/* paidikoi.uoa.gr — consent banner, third-party placeholders, legal links, legal pages, accessibility panel (project-defaults 20). */

/* ── Consent banner (bottom-left) ───────────────────────────── */
#paidikoi-consent {
  position: fixed; left: 16px; bottom: 16px; z-index: 100001; max-width: 420px; width: calc(100% - 32px);
  background: #fff; color: #222; border-radius: 15px; padding: 18px 20px; box-shadow: 0 8px 30px rgba(0,0,0,.25);
  font-family: Comfortaa, Roboto, sans-serif; font-size: 14px; line-height: 1.5; border-top: 5px solid #C61FA1;
}
#paidikoi-consent h2 { font-size: 17px; margin: 0 0 8px; color: #563CAB; font-family: Comfortaa, Roboto, sans-serif; }
#paidikoi-consent p { margin: 0 0 12px; }
#paidikoi-consent a { color: #0a5e8c; text-decoration: underline; }
.paidikoi-consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.paidikoi-consent-settings { margin: 0 0 12px; padding: 10px 12px; background: #f6f6f6; border-radius: 8px; }
.paidikoi-consent-settings label { display: block; margin: 0 0 6px; }
.paidikoi-consent-settings input { margin-right: 6px; width: 18px; height: 18px; vertical-align: -3px; }
/* «Αποδοχή» and «Απόρριψη» equally visible (ΑΠΔΠΧ) */
.paidikoi-btn {
  font: inherit; font-weight: 700; min-height: 44px; padding: 10px 16px; border-radius: 8px; cursor: pointer;
  background: #563CAB; color: #fff; border: 2px solid #563CAB;
}
.paidikoi-btn:hover, .paidikoi-btn:focus-visible { background: #483290; border-color: #483290; }
.paidikoi-btn-link { background: #fff; color: #563CAB; }
.paidikoi-btn-link:hover, .paidikoi-btn-link:focus-visible { background: #f1eefb; color: #563CAB; }
#paidikoi-consent :focus-visible, .paidikoi-gate :focus-visible { outline: 3px solid #0a5e8c; outline-offset: 2px; }

/* ── Third-party content before consent ─────────────────────── */
iframe[data-paidikoi-src] { display: none !important; }
.paidikoi-gate {
  border: 2px dashed #6EC1E4; border-radius: 12px; background: #f2fbff; padding: 20px; margin: 10px 0; text-align: center;
  font-family: Comfortaa, Roboto, sans-serif; font-size: 14px; color: #333; line-height: 1.5;
}
.paidikoi-gate p { margin: 0 0 10px; }
.paidikoi-gate a { color: #0a5e8c; text-decoration: underline; }

/* ── Footer: «Που θα μας βρείτε» sized to its content + «Νομικά & Χρήσιμα» card below (same card styles) ── */
.elementor-41 .elementor-element.elementor-element-2458503.elementor-column { flex-direction: column; }
.elementor-41 .elementor-element.elementor-element-2458503 > .elementor-widget-wrap { flex-grow: 0; }
.paidikoi-legal-card .elementor-nav-menu { list-style: none; margin: 0; padding: 0; }
.paidikoi-legal-card .elementor-nav-menu--main .elementor-item { display: inline-block; }

/* ── Legal pages ────────────────────────────────────────────── */
.paidikoi-legal-page { max-width: 900px; margin: 0 auto; padding: 30px 20px 60px; font-family: Comfortaa, Roboto, sans-serif; line-height: 1.7; color: #222; }
.paidikoi-legal-page h1 { color: #C61FA1; font-size: 32px; }
.paidikoi-legal-page h2 { font-size: 20px; margin-top: 28px; color: #483290; }
.paidikoi-legal-page a { color: #483290; text-decoration: underline; text-underline-offset: 3px; }
.paidikoi-legal-page a:hover, .paidikoi-legal-page a:focus-visible { color: #C61FA1; }
.paidikoi-legal-page table { border-collapse: collapse; width: 100%; margin: 10px 0; }
.paidikoi-legal-page th, .paidikoi-legal-page td { border: 1px solid #ddd; padding: 8px; text-align: left; vertical-align: top; }
.paidikoi-legal-page .meta { color: #555; font-size: 13px; }
.paidikoi-draft {
  background: #fff4cc; border: 2px solid #e0a800; border-radius: 10px; padding: 12px 16px; margin: 0 0 20px; font-weight: 700;
}
.paidikoi-todo { background: #fff4cc; outline: 1px dashed #e0a800; padding: 0 3px; }

/* ── Accessibility panel (floating mid-right) ───────────────── */
#a11y-toggle {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; padding: 0; border: 0;
  background: #563CAB; color: #fff; cursor: pointer; border-radius: 10px 0 0 10px; z-index: 100002;
  display: flex; align-items: center; justify-content: center; box-shadow: -2px 2px 8px rgba(0,0,0,.25);
}
#a11y-toggle:hover, #a11y-toggle:focus-visible { background: #483290; outline: 3px solid #0a5e8c; outline-offset: 2px; }
#a11y-panel {
  position: fixed; right: 0; top: 0; height: 100vh; width: 360px; max-width: 100vw; background: #fff; color: #111; z-index: 100003;
  overflow-y: auto; box-shadow: -4px 0 16px rgba(0,0,0,.2); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 14px;
}
#a11y-panel[hidden] { display: none; }
#a11y-panel header { position: sticky; top: 0; background: #fff; padding: 16px 20px; border-bottom: 1px solid #e5e5e5; display: flex; align-items: center; gap: 8px; }
#a11y-panel header h2 { margin: 0; flex: 1; font-size: 17px; color: #111; }
#a11y-panel header button { background: transparent; border: 1px solid #999; border-radius: 4px; padding: 6px 10px; font-size: 13px; cursor: pointer; min-height: 32px; }
#a11y-panel #a11y-close { font-size: 22px; line-height: 1; padding: 0 10px; }
#a11y-panel section { padding: 12px 20px; border-bottom: 1px solid #f0f0f0; }
#a11y-panel section h3 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #555; }
#a11y-panel .a11y-statement { padding: 12px 20px 24px; margin: 0; }
#a11y-panel .a11y-statement a { color: #0a5e8c; text-decoration: underline; }
#a11y-panel :focus-visible { outline: 3px solid #0a5e8c; outline-offset: 2px; }
.a11y-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; gap: 8px; }
.a11y-label { flex: 1; font-size: 13px; }
.a11y-tgl { position: relative; width: 40px; height: 24px; padding: 0; border: 0; background: #999; border-radius: 12px; cursor: pointer; }
.a11y-tgl.on { background: #C61FA1; }
.a11y-knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: left .2s; }
.a11y-tgl.on .a11y-knob { left: 19px; }
.a11y-seg { display: flex; }
.a11y-seg button { border: 1px solid #999; background: #fff; padding: 4px 10px; font-size: 13px; cursor: pointer; min-width: 34px; min-height: 30px; }
.a11y-seg button:not(:last-child) { border-right: 0; }
.a11y-seg button:first-child { border-radius: 4px 0 0 4px; }
.a11y-seg button:last-child { border-radius: 0 4px 4px 0; }
.a11y-seg button.on { background: #563CAB; color: #fff; border-color: #563CAB; }

html.a11y-font-large body { zoom: 1.1; }
html.a11y-font-xlarge body { zoom: 1.25; }
html.a11y-letter-wide * { letter-spacing: .05em !important; }
html.a11y-letter-wider * { letter-spacing: .10em !important; }
html.a11y-line-wide * { line-height: 1.7 !important; }
html.a11y-line-wider * { line-height: 2.0 !important; }
html.a11y-word-spacing * { word-spacing: .16em !important; }
html.a11y-bold-all * { font-weight: 600 !important; }
html.a11y-dyslexia-font * { font-family: "OpenDyslexic", "Atkinson Hyperlegible", "Comic Sans MS", Verdana, sans-serif !important; }
html.a11y-contrast { filter: contrast(1.4); }
html.a11y-grayscale { filter: grayscale(1); }
html.a11y-invert { filter: invert(1) hue-rotate(180deg); }
html.a11y-invert img, html.a11y-invert video { filter: invert(1) hue-rotate(180deg); }
html.a11y-cb-protanopia { filter: url('#a11y-cb-protanopia'); }
html.a11y-cb-deuteranopia { filter: url('#a11y-cb-deuteranopia'); }
html.a11y-cb-tritanopia { filter: url('#a11y-cb-tritanopia'); }
html.a11y-underline-links a { text-decoration: underline !important; }
html.a11y-highlight-links a { outline: 2px solid #C61FA1 !important; outline-offset: 2px; background: rgba(198,31,161,.08) !important; }
html.a11y-highlight-headings :is(h1,h2,h3,h4,h5,h6) { outline: 2px dashed #C61FA1 !important; outline-offset: 4px; }
html.a11y-big-cursor, html.a11y-big-cursor * {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><path d='M4 4 L4 32 L12 24 L18 36 L22 34 L16 22 L28 22 Z' fill='%23FF00AD' stroke='%23000' stroke-width='1.5'/></svg>") 4 4, auto !important;
}
html.a11y-big-targets :is(a,button,input,select,textarea) { min-height: 44px !important; min-width: 44px !important; }
html.a11y-visible-focus :focus, html.a11y-visible-focus :focus-visible { outline: 3px solid #0a5e8c !important; outline-offset: 2px !important; box-shadow: 0 0 0 6px rgba(10,94,140,.3) !important; }
html.a11y-reduce-motion *, html.a11y-reduce-motion *::before, html.a11y-reduce-motion *::after {
  animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important;
}
html.a11y-pause-animations *, html.a11y-pause-animations *::before, html.a11y-pause-animations *::after { animation-play-state: paused !important; }
html.a11y-hide-images img, html.a11y-hide-images video, html.a11y-hide-images [style*="background-image"] { visibility: hidden !important; }
#a11y-reading-guide { position: fixed; left: 0; right: 0; height: 2px; background: #C61FA1; box-shadow: 0 0 8px rgba(198,31,161,.6); pointer-events: none; z-index: 100000; top: 50%; }
#a11y-reading-mask {
  position: fixed; inset: 0; pointer-events: none; z-index: 100000; --ay: 50%;
  background: linear-gradient(to bottom, rgba(0,0,0,.75) 0, rgba(0,0,0,.75) calc(var(--ay) - 60px), transparent calc(var(--ay) - 30px),
    transparent calc(var(--ay) + 30px), rgba(0,0,0,.75) calc(var(--ay) + 60px), rgba(0,0,0,.75) 100%);
}
html.a11y-tts-active * { cursor: help; }
@media (max-width: 767px) {
  #paidikoi-consent { left: 8px; bottom: 8px; width: calc(100% - 16px); max-height: 80vh; overflow-y: auto; }
  #a11y-toggle { width: 44px; height: 44px; }
}
/* no empty 16:9 box while the embed waits for consent */
.wp-block-embed__wrapper:has(iframe[data-paidikoi-src])::before { display: none !important; padding-top: 0 !important; }
.wp-has-aspect-ratio .wp-block-embed__wrapper:has(iframe[data-paidikoi-src]) { position: static; }

/* ── paidikoi: e-mail cards in place of the contact forms (SV 9/11/2026: contact by email only) ── */
.paidikoi-mailcard { border: 2px solid #e4def5; border-radius: 12px; padding: 22px 20px 18px; text-align: center; background: #fff;
  font-family: Comfortaa, Roboto, sans-serif; color: #483290; }
.paidikoi-mailcard p { margin: 0 0 12px; }
.paidikoi-mailcard-lead { font-size: 16px; }
.paidikoi-mailcard-addr { font-size: 22px; font-weight: 700; word-break: break-all; }
.paidikoi-mailcard-addr a { color: #483290; text-decoration: underline; text-underline-offset: 4px; }
.paidikoi-mailcard-btn { display: inline-block; background: #563CAB; color: #fff !important; border-radius: 3px; padding: 10px 28px;
  text-transform: uppercase; letter-spacing: .04em; font-size: 15px; text-decoration: none; }
.paidikoi-mailcard-btn:hover, .paidikoi-mailcard-btn:focus-visible { background: #483290; }
.paidikoi-mailcard-tel { font-size: 14px; color: #5b4c8f; margin-bottom: 0 !important; }
.paidikoi-mailcard :focus-visible { outline: 3px solid #0a5e8c; outline-offset: 2px; }

/* ── paidikoi: footer bottom (ΕΑΔΠΠΑ logo, legal links, credits) — first version, to be reviewed with SV ── */
.paidikoi-footer { text-align: center; font-family: Comfortaa, Roboto, sans-serif; color: #fff; }
.paidikoi-footer-logo { display: inline-block; background: #fff; border-radius: 12px; padding: 8px 14px; margin: 0 0 14px; line-height: 0; }
.paidikoi-footer-logo img { width: 225px; height: auto; }
.paidikoi-legal ul { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.paidikoi-legal a, .paidikoi-credits a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.paidikoi-legal a:hover, .paidikoi-credits a:hover { color: #ffe27a; }
.paidikoi-credits { margin: 0; font-size: 13px; line-height: 1.7; }
.paidikoi-footer :focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ── paidikoi: coloured main menu, as the original Funcare/JetMenu design (theme colours, rounded tiles that lift on
   hover; the current page stays lifted). Dark text where white would fail WCAG contrast (4.5:1). ── */
@media (min-width: 1025px) {
  .jet-mega-menu--layout-horizontal .jet-mega-menu-list { align-items: flex-start; }
  .jet-mega-menu--layout-horizontal .jet-mega-menu-item--top-level > .jet-mega-menu-item__inner {
    --pk-bg: #0e9aff; --pk-fg: #1f1447; --jmm-dropdown-toggle-color: var(--pk-fg); --jmm-dropdown-hover-toggle-color: var(--pk-fg); --jmm-dropdown-active-toggle-color: var(--pk-fg);
    background: var(--pk-bg) !important; border-radius: 0 0 12px 12px; margin: 0 4px; padding: 0;
    transition: transform .2s ease, box-shadow .2s ease;
  }
  .jet-mega-menu--layout-horizontal .jet-mega-menu-item--top-level > .jet-mega-menu-item__inner > .jet-mega-menu-item__link {
    padding: 10px 14px 12px; }
  .jet-mega-menu--layout-horizontal .jet-mega-menu-item--top-level > .jet-mega-menu-item__inner .jet-mega-menu-item__label,
  .jet-mega-menu--layout-horizontal .jet-mega-menu-item--top-level > .jet-mega-menu-item__inner .jet-mega-menu-item__dropdown { color: var(--pk-fg) !important; }
  .jet-mega-menu--layout-horizontal .jet-mega-menu-item--top-level:nth-child(7n+1) > .jet-mega-menu-item__inner { --pk-bg: #0e9aff; }
  .jet-mega-menu--layout-horizontal .jet-mega-menu-item--top-level:nth-child(7n+2) > .jet-mega-menu-item__inner { --pk-bg: #03cb8f; }
  .jet-mega-menu--layout-horizontal .jet-mega-menu-item--top-level:nth-child(7n+3) > .jet-mega-menu-item__inner { --pk-bg: #9cc624; }
  .jet-mega-menu--layout-horizontal .jet-mega-menu-item--top-level:nth-child(7n+4) > .jet-mega-menu-item__inner { --pk-bg: #ffa012; }
  .jet-mega-menu--layout-horizontal .jet-mega-menu-item--top-level:nth-child(7n+5) > .jet-mega-menu-item__inner { --pk-bg: #ff7223; }
  .jet-mega-menu--layout-horizontal .jet-mega-menu-item--top-level:nth-child(7n+6) > .jet-mega-menu-item__inner { --pk-bg: #fe4848; }
  .jet-mega-menu--layout-horizontal .jet-mega-menu-item--top-level:nth-child(7n+7) > .jet-mega-menu-item__inner { --pk-bg: #c61fa1; --pk-fg: #fff; }
  .jet-mega-menu--layout-horizontal .jet-mega-menu-item--top-level:hover > .jet-mega-menu-item__inner,
  .jet-mega-menu--layout-horizontal .jet-mega-menu-item--top-level:focus-within > .jet-mega-menu-item__inner,
  .jet-mega-menu--layout-horizontal .jet-mega-menu-item--top-level.jet-mega-current-menu-item > .jet-mega-menu-item__inner {
    transform: translateY(6px); box-shadow: 4px 10px 8px 0 rgba(0,0,0,.18); }
  .jet-mega-menu--layout-horizontal .jet-mega-menu-item__link:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
}
@media (min-width: 1025px) and (prefers-reduced-motion: reduce) {
  .jet-mega-menu--layout-horizontal .jet-mega-menu-item--top-level > .jet-mega-menu-item__inner { transition: none; }
}

/* ── paidikoi: «Αποστολή email» inside the blue «Email» box of /preschool-a/ and /preschool-b/ (SV 9/11/2026) ── */
.paidikoi-boxmail { color: #fff !important; text-decoration: underline; text-underline-offset: 4px; }
.paidikoi-boxbtn-wrap { margin: 14px 0 0 !important; }
.paidikoi-boxbtn { display: inline-block; background: #fff; color: #483290 !important; border-radius: 12px; padding: 10px 22px;
  font-family: Comfortaa, Roboto, sans-serif; font-size: 15px; font-weight: 700; line-height: 1.4; text-decoration: none;
  box-shadow: 4px 10px 4px 0 rgba(50,61,91,.1); transition: background .2s, color .2s; }
.paidikoi-boxbtn:hover, .paidikoi-boxbtn:focus-visible { background: #483290; color: #fff !important; }
.paidikoi-boxmail:focus-visible, .paidikoi-boxbtn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ── paidikoi: static OpenStreetMap maps (no third-party requests) — same box as the old Google map (515px / 350px mobile) ── */
.paidikoi-map-link { display: block; line-height: 0; border-radius: 4px; overflow: hidden; }
.paidikoi-map-link img { display: block; width: 100%; height: 515px; object-fit: cover; object-position: center; }
.paidikoi-map-link:focus-visible { outline: 3px solid #0a5e8c; outline-offset: 2px; }
.paidikoi-map-credit { margin: 6px 0 0; font-size: 12px; text-align: right; color: #5b4c8f; font-family: Comfortaa, Roboto, sans-serif; }
.paidikoi-map-credit a { color: #483290; text-decoration: underline; }
@media (max-width: 767px) { .paidikoi-map-link img { height: 350px; } }

/* ── paidikoi: dates readable everywhere (SV 9/11/2026: «βάλε ένα μοβάκι») — was #D8D8D8 on #F2F2F2 (1.3:1) ── */
.jet-posts .post-meta, .jet-posts .post-meta a, .jet-posts .post-meta time, .jet-posts .post__date-link,
.jet-carousel .post-meta, .jet-carousel .post-meta a, .jet-carousel .post-meta time,
.entry-meta, .entry-meta a, .entry-meta time, .posted-on time,
.elementor-post__meta-data, .elementor-post__meta-data .elementor-post-date { color: #483290 !important; font-weight: 600; }
.jet-posts .post-meta a:hover, .entry-meta a:hover { color: #C61FA1 !important; }
/* same for the rest of the listing meta, sidebar lists (months, categories), «Older/Newer Posts», breadcrumbs (were #A1A2A4 / #D8D8D8) */
.entry-meta span, .entry-meta .author, .widget_archive a, .widget_categories a, .widget_recent_entries a,
.posts-navigation .nav-links a, .breadcrumbs_item_link, .breadcrumbs_item_sep { color: #483290 !important; }
.widget_archive a:hover, .widget_categories a:hover, .widget_recent_entries a:hover, .posts-navigation .nav-links a:hover,
.breadcrumbs_item_link:hover { color: #C61FA1 !important; }

/* ── accessibility panel header: the theme paints every <button> text white → «Επαναφορά» and × were invisible (SV 10/11/2026).
   Same colour as the panel title. ── */
#a11y-panel header button, #a11y-panel header #a11y-close { color: #111 !important; background: #fff !important; border: 1px solid #999 !important; font-family: inherit; }
#a11y-panel header button { text-transform: none !important; letter-spacing: normal !important; font-size: 13px !important; line-height: 1.2; padding: 6px 10px !important; }
#a11y-panel header #a11y-close { font-weight: 700; font-size: 20px !important; padding: 0 10px !important; }
#a11y-panel header button:hover, #a11y-panel header button:focus-visible { color: #fff !important; background: #563CAB !important; border-color: #563CAB !important; }

/* ── home page: the three animated boxes are links as a whole (SV 10/11/2026); the empty back button was removed ── */
.jet-animated-box { position: relative; }
.paidikoi-box-link { position: absolute; inset: 0; z-index: 5; border-radius: inherit; }
.paidikoi-box-link:focus-visible { outline: 4px solid #483290; outline-offset: 4px; }
/* third box (Νηπιαγωγείο): its front face was opaque magenta and hid the child picture of the box until the flip */
.elementor-element-9932b7c .jet-animated-box__front { background-color: transparent !important; }
/* mobile: each box its own picture (Elementor gave all three the pyramid) */
@media (max-width: 767px) {
  .elementor-element-d56cae7 > .elementor-widget-container { background-image: url("/wp-content/uploads/2019/12/Group-178.png") !important; }
  .elementor-element-9932b7c > .elementor-widget-container { background-image: url("/wp-content/uploads/2019/12/Group-169-1.png") !important; background-size: 56px auto !important; }
}

/* ── post pages on mobile: the main column had padding 0 left / 20px right, so the text touched the left edge (SV 13/11/2026) ── */
@media (max-width: 767px) {
  body.single-post .elementor-element-be6a69c > .elementor-element-populated { padding-left: 18px !important; }
}
