body.page-updateyourself > .header-container,
body.page-contact > .header-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: transparent;
}

body.page-updateyourself > .header-container,
body.page-updateyourself > header.header-container,
body.page-contact > .header-container,
body.page-contact > header.header-container {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

body.page-updateyourself > .header-container .header.margin-bottom,
body.page-updateyourself > header.header-container .header.margin-bottom {
  margin-bottom: 0;
}

body.page-updates > .header-container .header.margin-bottom,
body.page-updates > header.header-container .header.margin-bottom {
  margin-bottom: 0;
}

body.page-seminarupdate > .header-container .header.margin-bottom,
body.page-seminarupdate > header.header-container .header.margin-bottom {
  margin-bottom: 0;
}

body.page-schools > .header-container .header.margin-bottom,
body.page-schools > header.header-container .header.margin-bottom {
  margin-bottom: 0;
}

body.page-contact > .header-container .header.margin-bottom,
body.page-contact > header.header-container .header.margin-bottom {
  margin-bottom: 0;
}

body.page-home .page__main,
body.page-updateyourself .page__main,
body.page-updatepass .page__main,
body.page-updates .page__main,
body.page-seminarupdate .page__main,
body.page-schools .page__main,
body.page-contact .page__main,
body.page-weekends .page__main,
body.page-seminarslistupdates .page__main {
  position: relative;
}

body.page-home .nav-menu-item a,
body.page-updateyourself .nav-menu-item a,
body.page-updatepass .nav-menu-item a,
body.page-updates .nav-menu-item a,
body.page-seminarupdate .nav-menu-item a,
body.page-schools .nav-menu-item a,
body.page-contact .nav-menu-item a,
body.page-weekends .nav-menu-item a,
body.page-seminarslistupdates .nav-menu-item a {
  font-family: Geologica, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 22px;
}

body.page-updateyourself .nav-menu-item,
body.page-updateyourself .nav-menu-item a,
body.page-updateyourself .nav-button--desktop,
body.page-updateyourself .nav-button--drawer,
body.page-updatepass .nav-menu-item,
body.page-updatepass .nav-menu-item a,
body.page-updatepass .nav-button--desktop,
body.page-updatepass .nav-button--drawer {
  font-family: Geologica, sans-serif !important;
}

body.page-updates .nav-menu-item,
body.page-updates .nav-menu-item a,
body.page-updates .nav-button--desktop,
body.page-updates .nav-button--drawer {
  font-family: Geologica, sans-serif !important;
}

body.page-seminarupdate .nav-menu-item,
body.page-seminarupdate .nav-menu-item a,
body.page-seminarupdate .nav-button--desktop,
body.page-seminarupdate .nav-button--drawer {
  font-family: Geologica, sans-serif !important;
}

body.page-schools .nav-menu-item,
body.page-schools .nav-menu-item a,
body.page-schools .nav-button--desktop,
body.page-schools .nav-button--drawer {
  font-family: Geologica, sans-serif !important;
}

body.page-contact .nav-menu-item,
body.page-contact .nav-menu-item a,
body.page-contact .nav-button--desktop,
body.page-contact .nav-button--drawer {
  font-family: Geologica, sans-serif !important;
}

body.page-updateyourself .nav-menu-item a,
body.page-updatepass .nav-menu-item a {
  font-size: 16px !important;
  font-style: normal !important;
  font-weight: 500 !important;
  line-height: 22px !important;
}

body.page-updates .nav-menu-item a {
  font-size: 16px !important;
  font-style: normal !important;
  font-weight: 500 !important;
  line-height: 22px !important;
}

body.page-seminarupdate .nav-menu-item a {
  font-size: 16px !important;
  font-style: normal !important;
  font-weight: 500 !important;
  line-height: 22px !important;
}

body.page-schools .nav-menu-item a {
  font-size: 16px !important;
  font-style: normal !important;
  font-weight: 500 !important;
  line-height: 22px !important;
}

body.page-contact .nav-menu-item a {
  font-size: 16px !important;
  font-style: normal !important;
  font-weight: 500 !important;
  line-height: 22px !important;
}

.nav-menu-item--has-dropdown {
  position: relative;
}

.nav-submenu {
  position: absolute;
  top: calc(100% - 4px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  padding: 8px 0;
  margin: 0;
  list-style: none;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 14px 32px rgba(20, 17, 82, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 50;
}

.nav-menu-item--has-dropdown:hover .nav-submenu,
.nav-menu-item--has-dropdown:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-submenu-item {
  display: block;
}

.nav-submenu-item a {
  display: block;
  padding: 12px 18px;
  color: #141152 !important;
  font-family: Geologica, sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 20px !important;
  white-space: nowrap;
}

.nav-submenu-item a:hover,
.nav-submenu-item--active a {
  background: rgba(20, 17, 82, 0.08);
}

.school-info-section {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 64px 24px;
  background: #fff;
}

.school-info-grid {
  width: 100%;
  max-width: 1540px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.school-info-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 28px;
  border: 1px solid rgba(20, 17, 82, 0.1);
  border-radius: 8px;
  background: #fff;
}

.school-info-card-media {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  object-fit: contain;
}

.school-info-card-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.school-info-card-title {
  margin: 0;
}

.school-info-card-text {
  white-space: pre-line;
}

.class-description-text-list {
  max-width: 725px;
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 94px;
}

.numbered-list-richtext {
  width: 100%;
  color: var(--school-color, #293755);
}

.numbered-list-richtext ol {
  column-count: 3;
  column-gap: 48px;
  margin: 0;
  padding-left: 28px;
  list-style: decimal outside !important;
}

.numbered-list-richtext li {
  display: list-item;
  list-style: decimal outside !important;
  break-inside: avoid;
  margin-bottom: 8px;
  padding-left: 4px;
}

.numbered-list-richtext li::marker {
  color: var(--school-color, #293755);
}

.numbered-list-richtext p {
  margin: 0 0 12px;
}

@media (max-width: 1500px) {
  .nav-submenu {
    position: static;
    transform: none;
    min-width: 0;
    width: 100%;
    padding: 0 0 10px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: none;
  }

  .nav-menu-item--has-dropdown {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-menu-item--has-dropdown:hover .nav-submenu,
  .nav-menu-item--has-dropdown:focus-within .nav-submenu {
    transform: none;
  }

  .nav-submenu-item a {
    padding: 12px 44px;
    color: #fff !important;
    white-space: normal;
  }

  .nav-submenu-item a:hover,
  .nav-submenu-item--active a {
    background: rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 767px) {
  .school-info-section {
    padding: 40px 16px;
  }

  .school-info-card {
    padding: 22px;
  }

  .numbered-list-richtext ol {
    column-count: 1;
  }
}

body.page-contact .contact-static-hero {
  padding-top: 118px;
}

@media (max-width: 1024px) {
  body.page-contact .contact-static-hero {
    padding-top: 104px;
  }
}

/* Homepage hero (Update hero): allow the title to break onto multiple lines.
   Insert a newline inside the Umbraco "heroBannerTitle" field (e.g. "UPDATE 21\nΜαθήματα Ζωής")
   and `white-space: pre-line` will render it as a line break. */
body.page-home .event-slider-title h1 {
  white-space: pre-line;
}

/* Force Geologica across the Stefanos profile (image-title-text-section) and its descendants.
   Mirrors the font the static HTML expects (styles.css declares font-family: Geologica for
   .heading-h3 and .xl-body-light; this is a defensive override in case any inherited rule wins). */
.image-title-text-section,
.image-title-text-section *,
.image-title-text-section .image-title-text-title,
.image-title-text-section .image-title-text-copy,
.image-title-text-section .heading-h3,
.image-title-text-section .xl-body-light {
  font-family: "Geologica", "Geologica Alt", sans-serif !important;
}
