/* Sisulehe põhimalli DG reeglid. Leht määrab sisu ja pildifookuse, DG visuaali. */

.uk-content-page {
  background-color: var(--uk-color-page-background);
  box-sizing: border-box;
  color: var(--uk-color-text);
  font-family: var(--uk-font-main);
}

body:has(.uk-content-page),
body:has(.uk-content-page) #main-container,
body:has(.uk-content-page) #main,
body:has(.uk-content-page) .ct-container-full,
body:has(.uk-content-page) .entry-content {
  background-color: var(--uk-color-page-background) !important;
}

.uk-content-page__intro,
.uk-content-page__section,
.uk-content-page__end {
  box-sizing: border-box;
  margin-inline: auto;
  max-width: var(--uk-container-wide-max);
  width: calc(100% - 80px);
}

.uk-content-page__intro {
  padding-block: 19.2px 0;
}

.uk-content-page__section {
  padding-block: 0;
}

.uk-content-page__intro + .uk-content-page__section,
.uk-content-page__section + .uk-content-page__section {
  margin-top: var(--uk-content-page-section-margin) !important;
}

.uk-content-page__section--light {
  background: var(--uk-color-page-background);
}

.uk-content-page__section .gspb_text,
.uk-content-page__section > p {
  font-family: var(--uk-font-main) !important;
  font-size: var(--uk-content-page-text-size-desktop);
  line-height: 1.6;
}

.uk-content-page__section h2 {
  color: var(--uk-color-primary);
  font-family: var(--uk-font-heading) !important;
  font-size: var(--uk-content-page-heading-size-desktop) !important;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 var(--uk-space-5);
}

/* Hero */

/* Media values come from the current block, not a page-ID lookup table. */

.uk-content-page__hero--desktop[data-uk-hero-source],
.uk-content-page__hero-media[data-uk-hero-source] {
  background-image: var(--uk-hero-image) !important;
  background-position: var(--uk-hero-position) !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

@media (max-width: 767px) {
  .uk-content-page__hero--desktop[data-uk-hero-source],
  .uk-content-page__hero-media[data-uk-hero-source] {
    background-position: var(--uk-hero-position-mobile) !important;
  }
}

.uk-content-page__hero--desktop,
.uk-content-page__hero-media {
  border-radius: var(--uk-content-page-hero-radius) !important;
  box-sizing: border-box;
  overflow: hidden;
  padding: var(--uk-content-page-hero-padding) !important;
}

.uk-content-page__hero--desktop {
  height: var(--uk-content-page-hero-height-desktop) !important;
  min-height: var(--uk-content-page-hero-height-desktop) !important;
  position: relative;
}

.uk-content-page__hero--desktop::before {
  background: rgb(var(--uk-content-page-hero-overlay-color) / var(--uk-content-page-hero-overlay-opacity));
  border-radius: inherit;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.uk-content-page__hero--desktop > * {
  position: relative;
  z-index: 1;
}

.uk-content-page__hero--desktop h1 {
  color: var(--uk-color-white);
  font-family: var(--uk-font-heading) !important;
  font-size: var(--uk-content-page-hero-title-size-desktop) !important;
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 var(--uk-content-page-hero-heading-gap-desktop) !important;
  top: var(--uk-content-page-hero-heading-shift-desktop);
}

.uk-content-page__hero--desktop .uk-content-page__hero-text {
  color: var(--uk-color-white) !important;
  font-family: var(--uk-font-main) !important;
  font-size: var(--uk-content-page-text-size-desktop);
  font-weight: 700 !important;
  line-height: 1.6;
  max-width: var(--uk-content-page-hero-text-max-width) !important;
  width: 100%;
}

.uk-content-page__hero-media {
  height: var(--uk-content-page-hero-height-mobile) !important;
  min-height: var(--uk-content-page-hero-height-mobile) !important;
}

.uk-content-page__hero-media h1 {
  color: var(--uk-color-white);
  font-family: var(--uk-font-heading) !important;
  font-size: var(--uk-content-page-hero-title-size-mobile) !important;
  font-weight: 800;
  line-height: 1.05;
  margin: 0 !important;
}

.uk-content-page__hero-description {
  display: grid !important;
  gap: var(--uk-content-page-media-gap) !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: var(--uk-content-page-section-margin) !important;
}

.uk-content-page__hero--mobile .uk-content-page__hero-text {
  font-family: var(--uk-font-main) !important;
  font-size: var(--uk-content-page-text-size-mobile);
  font-weight: 400 !important;
  line-height: 1.6;
}

/* Kaheveerulised sisusektsioonid */

.uk-content-page__section--media {
  display: grid !important;
  gap: var(--uk-content-page-media-gap) !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.uk-content-page__section--media > .gspb_container:has(> .uk-content-page__media-image) {
  align-self: stretch;
  min-height: var(--uk-content-page-media-height-desktop);
  position: relative;
}

.uk-content-page__section--media > .gspb_container:has(> .uk-content-page__media-image--tall) {
  min-height: var(--uk-content-page-media-height-tall-desktop);
}

.uk-content-page__section--media > .gspb_container > .uk-content-page__media-image {
  inset: 0;
  min-height: 0;
  position: absolute;
}

.uk-content-page__media-image {
  border-radius: var(--uk-content-page-media-radius) !important;
  height: 100% !important;
  min-height: var(--uk-content-page-media-height-desktop);
  overflow: hidden;
  width: 100% !important;
}

.uk-content-page__media-image--tall {
  min-height: var(--uk-content-page-media-height-tall-desktop);
}

.uk-content-page__media-image img {
  border-radius: inherit !important;
  display: block;
  height: 100% !important;
  object-fit: cover !important;
  width: 100% !important;
}

/* Tekstilaadsed CTA-lingid */

.uk-content-page__cta-link {
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
}

.uk-content-page__cta-link .gspb-buttonbox,
.gspb-buttonbox.uk-content-page__cta-link {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--uk-color-action) !important;
  display: inline-flex !important;
  justify-content: flex-start !important;
  max-width: 100%;
  padding: 0 !important;
  text-align: left !important;
  width: auto !important;
}

.uk-content-page__cta-link .gspb-buttonbox-textwrap,
.uk-content-page__cta-link .gspb-buttonbox-text,
.uk-content-page__cta-link .gspb-buttonbox-title {
  text-align: left !important;
}

.uk-content-page__end {
  padding-bottom: var(--uk-content-page-stack-padding);
}

@media (max-width: 767px) {
  .uk-content-page__intro,
  .uk-content-page__section,
  .uk-content-page__end {
    width: calc(100% - 32px);
  }
  .uk-content-page__intro {
    padding-top: var(--uk-content-page-section-margin);
  }
  .uk-content-page .uk-content-page__hero--mobile {
    margin-top: var(--uk-content-page-hero-offset-mobile) !important;
  }
  .uk-content-page__section .gspb_text,
  .uk-content-page__section > p {
    font-size: var(--uk-content-page-text-size-mobile);
  }
  .uk-content-page__section h2 {
    font-size: var(--uk-content-page-heading-size-mobile) !important;
  }
  .uk-content-page__hero-description,
  .uk-content-page__section--media {
    grid-template-columns: minmax(0, 1fr);
  }
  .uk-content-page__section--media > .gspb_container:has(> .uk-content-page__media-image),
  .uk-content-page__section--media > .gspb_container:has(> .uk-content-page__media-image--tall) {
    min-height: var(--uk-content-page-media-height-mobile);
  }
  .uk-content-page__media-image,
  .uk-content-page__media-image--tall {
    height: var(--uk-content-page-media-height-mobile) !important;
    min-height: var(--uk-content-page-media-height-mobile);
  }
}

/* Hero struktuur tuleb DG-st ka siis, kui GreenShift lehepõhist CSS-i ei genereeri. */

.uk-content-page__hero--desktop,
.uk-content-page__hero-media {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
}

.uk-content-page__hero--mobile .uk-content-page__hero-text strong {
  font-weight: inherit !important;
}

/* Töötajate profiilileht: portreeformaadis foto, kontaktid ja Design Kiti tüpograafia. */

.uk-staff-profile .uk-content-page__hero--desktop {
  aspect-ratio: 1 / 1;
  background-color: var(--uk-color-page-background);
  background-repeat: no-repeat !important;
  background-size: contain !important;
  height: auto !important;
  margin-inline: auto;
  max-width: min(100%, 640px);
  min-height: 0 !important;
  width: 100%;
}

.uk-staff-profile .uk-content-page__hero--mobile .uk-content-page__hero-media {
  aspect-ratio: 1 / 1;
  background-color: var(--uk-color-page-background);
  background-repeat: no-repeat !important;
  background-size: contain !important;
  height: auto !important;
  min-height: 0 !important;
}

.uk-staff-profile .uk-content-page__section a {
  color: var(--uk-color-action) !important;
  text-decoration: none !important;
}

.uk-staff-profile .uk-content-page__section a:hover,
.uk-staff-profile .uk-content-page__section a:focus-visible {
  text-decoration: underline !important;
}

.uk-staff-profile .uk-content-page__hero-text {
  display: none !important;
}

.uk-staff-profile__contact {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .uk-staff-profile {
    column-gap: var(--uk-content-page-section-margin);
    display: grid;
    margin-inline: auto;
    max-width: var(--uk-container-wide-max);
    width: calc(100% - 80px);
  }
  .uk-staff-profile > .uk-content-page__hero--desktop,
  .uk-staff-profile > .uk-staff-profile__contact {
    margin: 0;
    max-width: none;
    width: 100%;
  }
  .uk-staff-profile > .uk-content-page__hero--desktop {
    justify-self: start;
  }
  .uk-staff-profile > .uk-content-page__section:not(.uk-staff-profile__contact),
  .uk-staff-profile > .uk-trust-contact {
    grid-column: 1 / -1;
  }
}

/* Profiilifoto joondub sisuala vasaku servaga ega kasuta tumendavat hero-overlayerit. */

.uk-staff-profile .uk-content-page__hero--desktop::before,
.uk-staff-profile .uk-content-page__hero-media::before {
  background: transparent !important;
  content: none !important;
  opacity: 0 !important;
}

@media (min-width: 768px) {
  .uk-staff-profile > .uk-content-page__hero--desktop {
    margin-inline: 0 !important;
  }
}

/* Töötajaprofiilide ühtne Airi Nurga päisemudel. */

.uk-staff-profile .uk-staff-profile__contact h1 {
  color: var(--uk-color-primary);
  font-family: var(--uk-font-heading) !important;
  font-size: var(--uk-content-page-hero-title-size-desktop) !important;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 var(--uk-space-3);
}

@media (min-width: 768px) {
  .uk-staff-profile {
    align-items: stretch;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .uk-staff-profile > .uk-content-page__hero--desktop {
    aspect-ratio: auto;
    background-size: cover !important;
    height: 350px !important;
    margin-left: 40px !important;
    max-width: none;
    width: calc(100% - 40px) !important;
  }
  .uk-staff-profile > .uk-staff-profile__contact {
    align-self: stretch;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-right: 40px !important;
    padding: var(--uk-space-5);
    width: calc(100% - 40px) !important;
  }
}

@media (max-width: 767px) {
  .uk-staff-profile .uk-staff-profile__contact h1 {
    font-size: var(--uk-content-page-hero-title-size-mobile) !important;
  }
}

.page-id-880 .uk-content-page__hero--desktop,
.page-id-880 .uk-content-page__hero-media {
  background-image: url("https://ujumekoos.ee/wp-content/uploads/2026/02/DSC_3463-scaled.jpg") !important;
}

.page-id-883 .uk-content-page__hero--desktop,
.page-id-883 .uk-content-page__hero-media {
  background-image: url("https://ujumekoos.ee/wp-content/uploads/2026/02/DSC_3866-scaled.jpg") !important;
}

.page-id-886 .uk-content-page__hero--desktop,
.page-id-886 .uk-content-page__hero-media {
  background-image: url("https://ujumekoos.ee/wp-content/uploads/2026/02/DSC_0726-scaled.jpg") !important;
}

.page-id-8702 .uk-content-page__hero--desktop,
.page-id-8702 .uk-content-page__hero-media {
  background-image: url("https://ujumekoos.ee/wp-content/uploads/2025/11/DSC_7831.jpg") !important;
}
