html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

@supports (overflow: clip) {

  html,
  body {
    overflow-x: clip;
  }
}

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-updateyourself .header-container-2 {
  padding-inline: 24px;
  padding-top: 82px;
}

.main-intro-icon-cards-container {
  flex-wrap: wrap;
  gap: clamp(20px, 2.5vw, 38px);
}

.main-intro-icon-cards-container>.icon-card {
  gap: clamp(18px, 2vw, 30px);
  flex: 1 1 clamp(280px, 30vw, 488px);
  padding: clamp(22px, 2.4vw, 30px) clamp(22px, 2.8vw, 35px);
}

@media (max-width: 1260px) {
  .main-intro-icon-cards-container {
    align-items: stretch;
    flex-direction: row;
  }
}

@media (max-width: 1100px) {
  .main-intro-icon-cards-container {
    flex-direction: column;
  }

  .main-intro-icon-cards-container>.icon-card {
    justify-content: flex-start;
    flex-basis: auto;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .main-intro-icon-cards-container>.icon-card {
    padding: clamp(20px, 4vw, 24px);
  }
}

@media (max-width: 480px) {
  .main-intro-icon-cards-container>.icon-card {
    gap: clamp(16px, 5vw, 20px);
    padding: clamp(20px, 5vw, 24px);
  }
}

@media (max-width: 1200px) {
  header.header-container:not(:has(.header-hero-logo)):has(.days-till-next-event-container) .event-details-content {
    height: auto;
  }

  header.header-container:not(:has(.header-hero-logo)):has(.days-till-next-event-container) .event-slider-content {
    height: auto;
  }

  header:has(.header-hero-logo) .event-details-content {
    height: auto;
  }

  header:has(.header-hero-logo) .event-details-content>.event-slider-content {
    height: auto;
    order: 2;
  }

  header .event-details-content:has(>.header-hero-logo)>.event-slider-content {
    max-width: 100%;
  }
}

@media (max-width: 844px) {
  header.header-container:has(.event-details) {
    background-image: var(--hero-background-image-mobile, var(--hero-background-image-desktop)) !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
  }

  header.header-container:has(.event-details):not(:has(.days-till-next-event-container)) {
    --hero-mobile-min-height: clamp(1140px, calc(1580px - 52vw), 1400px);
  }

  header.header-container:has(.event-details):not(:has(.days-till-next-event-container)) .event-details {
    min-height: var(--hero-mobile-min-height);
  }

  body.page-updatepass header.header-container:has(.event-details):not(:has(.days-till-next-event-container)) .event-details {
    min-height: min(970px, calc(100dvh - 82px));
  }

  .page-updatepass .event-details-content {
    justify-content: end;
  }

  .event-details-content {
    justify-content: start;
  }

}

@media (max-width: 530px) {
  body.page-updatepass header.header-container:has(.event-details):not(:has(.days-till-next-event-container)) .event-details {
    padding-top: 250px;
  }
}

@media (min-width: 845px) {
  header.header-container:has(.event-details):not(:has(.days-till-next-event-container)) {
    background-position: right center !important;
  }
}

@media (max-width: 480px) {
  header.header-container:has(.event-details):not(:has(.days-till-next-event-container)) .event-slider-content {
    gap: 16px;
  }

  header.header-container:has(.event-details):not(:has(.days-till-next-event-container)) .event-slider-title {
    gap: 10px;
  }
}

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;
  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: #5A6A86;
}

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

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

.numbered-list-richtext li::marker {
  color: currentColor;
}

@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;
    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: 36px;
}

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

/* 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;
}

/* When same-background content sections touch, keep one section rhythm instead of doubling vertical whitespace. */
:is(.event-description-section,
  .class-description,
  .header-title-text-section,
  .image-title-text-section,
  .numbered-list-section,
  .program-list-section,
  .school-info-section,
  .why-come-section)+:is(.event-description-section,
  .class-description,
  .header-title-text-section,
  .image-title-text-section,
  .numbered-list-section,
  .program-list-section,
  .school-info-section,
  .why-come-section) {
  padding-top: 20px;
}

:is(.quote-section,
  .ticket-section,
  .update-now:not(.gray))+:is(.quote-section,
  .ticket-section,
  .update-now:not(.gray)) {
  padding-top: 0;
}

:is(.update-now.gray,
  .why-come-section.gray)+:is(.update-now.gray,
  .why-come-section.gray) {
  padding-top: 0;
}

.updates-archive-content>*:first-child,
.updates-archive-content>p:has(> strong:only-child) {
  color: #000;
  font-size: 30px;
  font-weight: 500;
  line-height: 36px;
  letter-spacing: -0.9px;
}

.updates-archive-content p:last-child {
  margin-bottom: 0;
}

.updates-archive-content strong {
  font-weight: 600;
  color: #141152;
}

@media (max-width: 767px) {
  .updates-archive-content {
    padding: 24px 16px 32px;
  }

  .updates-archive-content>*:first-child,
  .updates-archive-content>p:has(> strong:only-child) {
    font-size: 20px;
    line-height: 28px;
  }
}

/* Light content header (e.g. legals): renders the full site nav inside .header-container.light.
   The regular header.cshtml ships a white "default" logo for dark heroes — swap to the dark
   "sticky" logo so it's visible on the white background, and match the sticky-state purple
   styling for the account button so it remains readable. */
.header-container.light .site-nav .nav-logo__image--default {
  opacity: 0;
}

.header-container.light .site-nav .nav-logo__image--sticky {
  opacity: 1;
}

.header-container.light .site-nav .white-button.nav-button--drawer {
  background: var(--primary-button, #a612ee);
  color: var(--white, #fff);
}

/* Hero info-row items can be long; wrap whole items instead of splitting values like "13:14". */
.event-info {
  flex-wrap: wrap;
}

.event-info-item .heading-h6 {
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: keep-all;
}

@media (max-width: 768px) {
  .podcast-player-float {
    max-width: calc(100vw - 32px);
    right: 16px;
  }

  .event-info,
  .event-info-item {
    max-width: 100%;
  }
}

@media (max-width: 1024px) {
  .event-info-item {
    min-width: 0;
  }

  .event-info-item .heading-h6 {
    overflow-wrap: break-word;
    white-space: normal;
    word-break: normal;
  }
}

.new-highschool .peekSwiper .swiper-pagination {
  flex-wrap: nowrap;
  justify-content: safe center;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.new-highschool .swiper-pagination-bullet.peek-swiper-pagination-button.xl-body-medium {
  flex: 0 0 auto;
  max-width: none;
  white-space: nowrap;
  text-wrap: nowrap;
}

.how-it-started .timelineCarousel .swiper-wrapper {
  gap: 0;
}

.how-it-started .timelineCarousel .swiper-slide {
  align-items: center;
}

.how-it-started .timeline-item {
  margin-inline: auto;
}

@media (max-width: 800px) {
  .new-highschool .peekSwiper .swiper-wrapper {
    align-items: stretch;
  }

  .new-highschool .peekSwiper .swiper-slide {
    display: flex;
    height: auto;
    padding: 24px 16px 80px;
  }

  .new-highschool .peekSwiper .swiper-slide>.new-highschool-slide {
    height: 100%;
    min-height: 560px;
  }

  .new-highschool .peekSwiper .new-highschool-slide-image-container {
    flex: 0 0 auto;
  }

  .new-highschool .peekSwiper .new-highschool-slide-image {
    align-items: center;
  }

  .new-highschool .peekSwiper .new-highschool-slide-image-inner {
    align-items: center;
    justify-content: center;
    margin-top: 0;
    max-height: 311.922px;
    max-width: 205.083px;
  }

  .new-highschool .peekSwiper .new-highschool-slide-image-inner>img:not(.new-highschool-slide-logo) {
    height: auto;
    max-height: 311.922px;
    max-width: 205.083px;
    object-fit: contain;
    width: auto;
  }

  .new-highschool .peekSwiper .new-highschool-slide-info {
    flex: 1 1 auto;
    min-height: 0;
  }

  .new-highschool .peekSwiper .new-highschool-slide-info-body-description {
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (max-width: 960px) {
  .new-highschool .peekSwiper .swiper-slide>.new-highschool-slide {
    --new-highschool-bg-image-padding-inline: clamp(24px, 10vw, 112px);
    isolation: isolate;
    min-height: 560px;
    overflow: hidden;
    position: relative;
  }

  .new-highschool .peekSwiper .swiper-slide>.new-highschool-slide::before {
    background: inherit;
    content: "";
    inset: 0;
    mask-image: linear-gradient(to top, #000 0%, transparent 33.333%);
    pointer-events: none;
    position: absolute;
    -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 33.333%);
    z-index: 1;
  }

  .new-highschool .peekSwiper .new-highschool-slide-image-container {
    height: 100%;
    inset: 0;
    max-width: none;
    position: absolute;
    width: 100%;
  }

  .new-highschool .peekSwiper .new-highschool-slide-image,
  .new-highschool .peekSwiper .new-highschool-slide-image-inner {
    height: 100%;
    max-height: none;
    max-width: none;
    width: 100%;
  }

  .new-highschool .peekSwiper .new-highschool-slide-image-inner {
    margin-top: 0;
    z-index: auto;
  }

  .new-highschool .peekSwiper .new-highschool-slide-image-inner>img:not(.new-highschool-slide-logo) {
    height: auto;
    left: 50%;
    max-height: 100%;
    max-width: calc(100% - (var(--new-highschool-bg-image-padding-inline) * 2));
    object-fit: contain;
    object-position: center center;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    width: auto;
  }

  .new-highschool .peekSwiper .new-highschool-slide-logo {
    bottom: 24px;
    height: auto;
    max-width: min(160px, 36vw);
    object-fit: contain;
    position: absolute;
    right: 24px;
    width: auto;
    z-index: 3;
  }
}

@media (max-width: 556px) {
  .new-highschool .peekSwiper .swiper-slide>.new-highschool-slide {
    min-height: 520px;
  }

  .new-highschool .peekSwiper .new-highschool-slide-info {
    padding: 30px 16px 20px;
  }
}

@media (max-width: 638px) {
  .new-highschool .peekSwiper .swiper-slide>.new-highschool-slide {
    --new-highschool-bg-image-padding-inline: 0px;
  }

  .new-highschool .peekSwiper .new-highschool-slide-image-inner>img:not(.new-highschool-slide-logo) {
    object-position: center bottom;
    top: auto;
    bottom: 0;
    transform: translateX(-50%);
  }
}


.updates-title .large-body-regular {
  max-width: 302px;
}