/* Classic Joomla-like skin (jm-commune inspired) */
:root {
  --purple: #92278f;
  --purple-btn: #7e227b;
  --orange: #c93600; /* σκουρότερο για WCAG contrast σε ανοιχτό background */
  --blue: #0072bc;
  --green: #00aa00;
  --ink: #444;
  --line: #e2e2e2;
  --font: "Droid Sans", Arial, sans-serif;
  --display: Sniglet, "Comic Sans MS", cursive, sans-serif;
}

* { box-sizing: border-box; }
html { font-size: 16px; } /* Font +/- αλλάζει αυτό → όλο το site (rem) */
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  font-size: 1rem;
  line-height: 1.5;
}
body.contrast-night { background: #111; color: #eee; }
body.contrast-night #jm-top-bar,
body.contrast-night #jm-logo-nav,
body.contrast-night #jm-footer-mod { background: #1a1a1a; color: #eee; border-color: #333; }
a { color: #036085; text-decoration: none; }
a:hover { color: var(--purple); }
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
.container-fluid { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 15px; }
.pull-left { float: left; }
.pull-right { float: right; }
.clearfix::after, .row-fluid::after, #jm-logo-nav-in::after, #jm-top-bar-in::after {
  content: ""; display: table; clear: both;
}

/* Sticky header */
.sticky-bar #jm-allpage { padding-top: 178px; }
.sticky-bar #jm-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  background: #fff; border-bottom: 1px solid var(--line);
}

#jm-top-bar {
  background: #fff; color: #444; font-size: 0.875rem; line-height: 2.45;
  border-bottom: 1px solid var(--line);
}
.jm-top-contact .item { display: inline-block; margin-right: 18px; }
.jm-top-contact .jm-color { color: var(--purple); }
.jm-top-contact i { margin-right: 4px; }

.settings-bar { list-style: none; margin: 0; padding: 0; text-align: right; }
.settings-bar > li { display: inline-block; margin-left: 12px; }
.settings-bar .jm-separator {
  display: inline-block; margin-right: 6px; color: #555; font-size: 0.75rem;
}
.settings-bar button {
  border: 0; background: transparent; color: #666; cursor: pointer; padding: 0 4px;
}
.settings-bar button:hover { color: var(--purple); }

#jm-logo-nav { padding: 18px 0; background: #fff; }
#jm-logo img { height: 110px; width: auto; margin-top: -12px; }

.dj-megamenu {
  list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px;
}
.dj-megamenu a {
  display: block; padding: 10px 14px; color: #444; font-weight: 700; font-size: 1rem;
  text-transform: none; border-radius: 2px;
}
.dj-megamenu a:hover,
.dj-megamenu a.is-active { background: #f5eaf5; color: var(--purple); }
.nav-toggle {
  display: none; float: right; margin-top: 16px;
  border: 1px solid var(--line); background: #fff; padding: 8px 12px; cursor: pointer;
}

/* Header banner + slider */
#jm-header { background: #f7f7f7; border-bottom: 1px solid var(--line); }
.header-banner { text-align: center; padding: 22px 0 8px; }
.header-banner img { max-height: 60px; width: auto; }
.hero-slider {
  position: relative; overflow: hidden; background: #00a8ec;
  max-height: 400px;
}
.hero-slider img {
  width: 100%; height: 400px; object-fit: cover; object-position: center center;
  display: block; vertical-align: top;
}

/* Welcome */
#jm-top2 { padding: 36px 0 10px; }
.welcome-title {
  text-align: center; color: var(--purple);
  font-family: var(--display); font-size: 2.75rem; line-height: 1.1;
  font-weight: 400; margin: 0 0 12px;
}
.welcome-sub { text-align: center; font-size: 1.5rem; margin: 0 0 28px; color: #333; }

/* Service cards (4-up like DJ slider cards) */
.service-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 20px;
}
.service-card {
  position: relative; background: #fff; border: 1px solid #ececec;
  box-shadow: 0 2px 8px rgba(0,0,0,.06); overflow: hidden;
}
.service-card img {
  width: 100%; height: 320px; object-fit: cover; display: block;
}
.service-card .slide-desc {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(146, 39, 143, 0.88); color: #fff; padding: 14px 10px;
  text-align: center; min-height: 96px;
}
.service-card .slide-title { font-weight: 700; font-size: 0.9375rem; margin-bottom: 6px; }
.service-card .slide-text { font-size: 0.8125rem; margin: 0; opacity: .95; }
.service-card a { color: inherit; display: block; }

/* Flyer */
#jm-top3 { padding: 20px 0; }
.flyer-wrap { text-align: center; }
.flyer-wrap img { max-width: 720px; width: 100%; height: auto; }

/* CTA registrations */
#jm-bottom1 { padding: 28px 0; text-align: center; }
.cta-line {
  font-family: var(--display); color: var(--purple);
  font-size: 2rem; line-height: 1.25; margin: 0;
}
.cta-btn {
  display: inline-block; margin-left: 8px; vertical-align: middle;
  background: var(--purple-btn); color: #fff !important;
  border: 1px solid #000; border-radius: 4px;
  font-size: 1.125rem; line-height: 1.2; padding: 8px 28px;
  box-shadow: 0 4px 0 0 #7e227b, 0 5px 0 0 #000, 0 10px 0 0 rgba(0,0,0,.1);
  font-family: var(--font); font-weight: 700; text-align: center;
}
.cta-btn:hover { background: #6b1c68; color: #fff !important; }

/* Info boxes */
#jm-bottom2 { padding: 20px 0 40px; border-top: 1px solid var(--line); }
.info-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.info-box { text-align: center; padding: 10px; }
.info-box h4 { font-size: 1.25rem; line-height: 1.2; margin: 0 0 10px; font-weight: 700; }
.info-box p { font-size: 0.875rem; margin: 0; }
.info-box.hours h4 { color: var(--orange); }
.info-box.address h4 { color: var(--blue); }
.info-box.email h4 { color: var(--green); }
.info-box.phones h4 { color: var(--blue); }
.info-box a { color: inherit; text-decoration: none; }
.info-box a:hover { color: var(--purple); text-decoration: underline; }
.phone-lines a { display: inline-block; }
.phone-lines .fa {
  display: inline-block; width: 1.15em; margin-right: 6px;
  color: var(--blue); text-align: center;
}
.phone-lines .fa-mobile { font-size: 1.25em; vertical-align: -1px; }
.social-inline { display: flex; justify-content: center; gap: 14px; margin-top: 6px; }
.social-inline a {
  display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center;
  background: #f3e8f3; color: var(--purple) !important; border-radius: 50%;
  font-size: 1.125rem; text-decoration: none !important;
}
.social-inline a:hover { background: var(--purple); color: #fff !important; }

/* Inner pages */
.page-wrap { padding: 30px 0 50px; min-height: 40vh; }
.page-wrap h1 {
  font-family: var(--display); color: var(--purple);
  font-size: 2.25rem; font-weight: 400; margin: 0 0 16px; text-align: center;
}
.page-wrap .lead { text-align: center; font-size: 1.25rem; margin-bottom: 28px; }
.content-box {
  max-width: 820px; margin: 0 auto; background: #fafafa;
  border: 1px solid var(--line); padding: 24px; font-size: 1rem;
}
.page-body img { max-width: 100%; height: auto; }
.page-body p { margin: 0 0 12px; }
.page-body a.cta-btn {
  display: inline-block; margin-top: 8px;
}
.diploma-list { list-style: none; padding: 0; margin: 0; }
.diploma-list li { margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.diploma-list strong { display: block; color: var(--purple); margin-bottom: 6px; font-size: 1.125rem; }
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px;
}
.gallery-grid .gallery-item { display: block; cursor: zoom-in; }
.gallery-grid img { width: 100%; height: 200px; object-fit: cover; border: 1px solid var(--line); transition: opacity .2s; }
.gallery-grid .gallery-item:hover img { opacity: .88; }

.lightbox {
  position: fixed; inset: 0; z-index: 100000;
  background: rgba(0,0,0,.88);
  display: none; align-items: center; justify-content: center;
  padding: 24px; cursor: zoom-out;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(96vw, 1200px);
  max-height: 90vh;
  width: auto; height: auto;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
  cursor: default;
}
.lightbox-close {
  position: absolute; top: 12px; right: 16px;
  border: 0; background: transparent; color: #fff;
  font-size: 36px; line-height: 1; cursor: pointer; z-index: 2;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  border: 0; background: rgba(255,255,255,.15); color: #fff;
  width: 48px; height: 48px; border-radius: 50%;
  font-size: 28px; line-height: 1; cursor: pointer; z-index: 2;
}
.lightbox-nav:hover { background: rgba(255,255,255,.3); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.event-block { margin-bottom: 85px; }
.event-block h2 { color: var(--purple); font-family: var(--display); font-weight: 400; }

.form-card {
  max-width: 720px; margin: 0 auto; border: 1px solid var(--line);
  padding: 20px; background: #fff;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: grid; gap: 4px; font-weight: 700; font-size: 0.875rem; }
input, select, textarea {
  font: inherit; border: 1px solid #ccc; padding: 8px 10px; width: 100%;
}
.btn-primary {
  background: var(--purple-btn); color: #fff; border: 1px solid #000;
  padding: 10px 22px; font-weight: 700; cursor: pointer;
}
.alert { padding: 10px 12px; margin-bottom: 12px; border: 1px solid; }
.alert-ok { background: #e8f8e8; border-color: #9c9; color: #060; }
.alert-err { background: #fdeaea; border-color: #e99; color: #900; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.contact-details {
  text-align: center;
  font-size: 20px;
  line-height: 1.55;
  margin: 0 0 22px;
}
.contact-details p { margin: 0; }
.contact-details a { color: inherit; text-decoration: none; }
.contact-details a:hover { color: var(--purple); text-decoration: underline; }
.contact-details .phone-lines .fa,
.contact-details .fa-envelope {
  color: var(--blue); margin-right: 6px;
}
.contact-details .fa-mobile { font-size: 1.15em; vertical-align: -1px; }
.contact-details .phone-sep { color: #888; }
.contact-map {
  margin-top: 0;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #eee;
}
.contact-map iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

/* Footer */
#jm-footer-mod {
  background: #2b2b2b; color: #ddd; padding: 36px 0 24px; margin-top: 20px;
}
#jm-footer-mod a { color: #fff; }
#jm-footer-mod a:hover { color: #e6a8e4; }
.footer-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.jm-title {
  font-size: 1rem; text-transform: uppercase; letter-spacing: .04em;
  border-bottom: 1px solid #555; padding-bottom: 8px; margin: 0 0 14px; color: #fff;
}
.jm-title span { color: #deb5dd; }
.mod-list, .jmm-list { list-style: none; margin: 0; padding: 0; }
.mod-list li { margin: 0 0 6px; }
.jmm-list li { display: inline-block; margin-right: 10px; }
.jmm-list a {
  display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center;
  background: #444; border-radius: 3px;
}
.footer-logo { border-radius: 50%; margin-bottom: 10px; background: #fff; }
.copy { color: #999; font-size: 0.8125rem; }
.muted-note { color: #aaa; font-size: 0.8125rem; }
.acymailing_introtext { margin: 0 0 8px; }

.blog-item {
  border: 1px solid var(--line); padding: 16px; margin-bottom: 14px; background: #fff;
}
.blog-item h2 { margin: 0 0 6px; font-size: 1.375rem; }
.blog-meta { color: #888; font-size: 0.8125rem; margin-bottom: 8px; }

@media (max-width: 980px) {
  .sticky-bar #jm-allpage { padding-top: 0; }
  .sticky-bar #jm-bar { position: relative; }
  .service-grid, .info-grid, .footer-row { grid-template-columns: 1fr 1fr; }
  .welcome-title { font-size: 2rem; }
  .welcome-sub { font-size: 1.125rem; }
  .nav-toggle { display: inline-block; }
  .dj-megamenu {
    display: none; float: none; clear: both; flex-direction: column;
    background: #fff; border: 1px solid var(--line); margin-top: 12px;
  }
  .dj-megamenu.is-open { display: flex; }
  #jm-top-bar2 { display: none; }
  .topbar2 #jm-top-bar1 { width: 100%; }
}
@media (max-width: 640px) {
  .service-grid, .info-grid, .footer-row, .gallery-grid, .form-grid { grid-template-columns: 1fr; }
  .cta-btn { display: block; margin: 12px auto 0; }
  .hero-slider { max-height: 220px; }
  .hero-slider img { height: 220px; }
}
