:root {
  --color-white:      #ffffff;
  --color-black:      #000;
  --color-red:        rgb(216, 69, 39);
  --color-red-dark:   rgb(190, 52, 24);
  --color-light-gray: rgb(245, 245, 245);
  --color-yellow:     rgb(235, 255, 76);
  --color-soft-pink:  rgb(246, 198, 198);
  --col-wrap-padding: 75px;
}

body {
  color: var(--color-black);
  font-family: 'Darker Grotesque', sans-serif;
  font-size: 32px;
  font-weight: 500;
  margin: 0;
  padding: 0;
}

.wrap {
  margin: 0 auto;
  max-width: 1800px;
  position: relative;
}

h1 {
  color: var(--color-black);
  font-family: 'the-seasons', serif;
  font-size: 5rem;
  font-weight: 700;
}

h2 {
  color: var(--color-black);
  font-family: 'the-seasons', serif;
  font-size: 5rem;
  font-weight: 700;
  line-height: 0.9;
  margin-bottom: 60px;
}

h3 {
  color: var(--color-black);
  font-size: 3rem;
  font-weight: 700;
  line-height: 0.9;
  margin-bottom: 60px;
}

p {
  line-height: 1.2;
}

a {
  color: var(--color-black);
  font-size: 32px !important;
  font-weight: 500 !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a.star {
  background-image: url(inc/johtoryhma-images/01_Johtoryhma_tahti.svg);
  background-position: left center;
  background-repeat: no-repeat;
  background-size: 75px;
  display: inline-block;
  font-family: 'the-seasons', serif;
  font-size: 2rem !important;
  padding: 20px 0 20px 100px;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

a.star:hover {
  color: #000;
  text-decoration: none;
}

strong {
  font-weight: 600;
}

p.site-title {
  margin: 0;
  padding: 0;
}

p.site-title a {
  background: url(inc/johtoryhma-images/Johtoryhma_logo.svg) center left no-repeat;
  background-size: contain;
  box-sizing: border-box;
  display: block;
  height: 90px;
  left: 100px;
  overflow: hidden;
  position: absolute;
  text-indent: 100%;
  transition-duration: 0s;
  top: 100px;
  white-space: nowrap;
  width: 250px;
  z-index: 2;
}

.col-wrap {
  padding: 175px 0;
}

.col-1 {
  display: block;
  width: 100%;
}

section.hero {
  height: 90vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

section.hero::before {
  background-color: rgba(0, 0, 0, 0.3);
  content: "";
  display: block;
  height: 100%;        
  left: 0;
  position: absolute;              
  top: 0;
  width: 100%;
  z-index: 2;
}

section.hero img {
  display: block;
  height: 100%;
  left: 0;
  object-fit: cover;
  object-position: center center;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1;
}

section.hero .wrap {
  align-items: center;
  display: flex;
  height: 100%;
  padding: 200px 190px 50px 190px;
  position: relative;
  z-index: 2;
}

section.hero h1 {
  color: var(--color-white);
  margin-bottom: 30px;
  max-width: 800px;
}

section.hero p {
  color: var(--color-white);
  margin-bottom: 50px;
  max-width: 500px;
}

section.hero a {
  color: var(--color-white);
}

section.hero a:hover {
  color: var(--color-white);
}

section.tapahtumat-kaikki {
  position: relative;
  z-index: 2;
}

section.tapahtumat-kaikki .wrap {
  max-width: 1430px;
  position: relative;
}

section.tapahtumat-kaikki .wrap::before {
  background-image: url(inc/johtoryhma-images/01_Johtoryhma_nainen.png);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  display: block;
  height: 650px;        
  position: absolute;         
  right: 0;     
  top: -360px;
  width: 360px;
}

section.tapahtumat-kaikki.tapahtumia-1 .wrap::before {
  background-image: url(inc/johtoryhma-images/04_nainen_xl.png);
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: contain;
  bottom: 0;
  content: "";
  display: block;
  height: 701px;        
  position: absolute;         
  right: 0;     
  top: auto;
  width: 417px;
}

section.tapahtumat-kaikki .col-wrap {
  padding-top: 80px;
}

section.tapahtumat-kaikki h2 {
  margin-bottom: 80px;
}

section.tapahtumat-kaikki .tapahtumat {
  display: grid;
  gap: 50px;
  grid-template-columns: 1fr 1fr;
}

section.tapahtumat-kaikki .tapahtuma {
  min-height: 330px;
  position: relative;
}

section.tapahtumat-kaikki .tapahtuma.is-featured {
  grid-row: span 2;
  min-height: 710px;
}

section.tapahtumat-kaikki .tapahtuma-linkki {
  color: #fff;
  display: block;
  height: 100%;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

section.tapahtumat-kaikki .thumbnail {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
  z-index: 1;
}

section.tapahtumat-kaikki .thumbnail::after {
  background: rgba(0, 0, 0, 0.5);
  content: '';
  inset: 0;
  position: absolute;
  z-index: 2;
}

section.tapahtumat-kaikki .thumbnail img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
  width: 100%;
}

section.tapahtumat-kaikki .tapahtuma-linkki:hover .thumbnail img {
  transform: scale(1.04);
}

section.tapahtumat-kaikki .tapahtuma-sisalto {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-start;
  padding: 60px 50px;
  position: relative;
  text-align: center;
  z-index: 3;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

section.tapahtumat-kaikki .coming {
  font-family: 'the-seasons', serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 35px;
}

section.tapahtumat-kaikki .coming::before,
section.tapahtumat-kaikki .coming::after {
  background-image: url(inc/johtoryhma-images/01_Johtoryhma_tahti.svg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 30px;
  content: "";
  display: inline-block;
  height: 33px;        
  margin-right: 15px;
  transform: translateY(4px);
  width: 30px;
}

section.tapahtumat-kaikki .coming::after {
  margin-left: 15px;
  margin-right: 0;
}

section.tapahtumat-kaikki .date {
  font-size: 34px;
  font-weight: 700;
  margin: 0 0 10px;
}

section.tapahtumat-kaikki .is-featured .date {
  font-size: 40px;
  font-weight: 700;
  margin: 0 0 38px;
}

section.tapahtumat-kaikki h3 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 30px;
  max-width: 620px;
}

section.tapahtumat-kaikki h3 {
  color: var(--color-white);
  font-size: 30px;
  font-weight: 700;
  line-height: 0.9;
}

section.tapahtumat-kaikki .is-featured h3 {
  color: var(--color-white);
  font-size: 58px;
  font-weight: 700;
  line-height: 0.9;
}

section.tapahtumat-kaikki .btn {
  background-color: var(--color-red);
  border-radius: 0;
  color: #fff;
  display: inline-block;
  font-family: 'the-seasons', serif;
  font-size: 32px;
  line-height: 1;
  margin-top: auto;
  padding: 20px 30px;
}

section.tapahtumat-kaikki .btn:hover {
  background-color: var(--color-red-dark);
}

/* section.tapahtumat-kaikki .is-featured .btn {
  margin-top: 35px;
} */

section.tapahtumat-kaikki.tapahtumia-0 .tapahtumat,
section.tapahtumat-kaikki.tapahtumia-0 .ylateksti {
  position: relative;
  z-index: 2;
}

section.tapahtumat-kaikki .no-events {
  background: var(--color-soft-pink);
  box-sizing: border-box;
  padding: 80px;
  position: relative;
  z-index: 2;
}

section.tapahtumat-kaikki .no-events h3 {
  color: var(--color-black);
  font-size: 2rem;
  margin: 0 0 30px;
}

/* KAKSI PALSTAA */

section.kaksi-palstaa {
  background-color: var(--color-light-gray);
  background-position: left top 160px;
  background-repeat: no-repeat;
  background-size: 640px;
}

section.kaksi-palstaa .wrap {
  max-width: 1500px;
}

section.kaksi-palstaa .col-wrap {
  display: flex;
  justify-content: space-between;
}

section.kaksi-palstaa .col-wrap .col-2 {
  width: calc(50% - 25px);
}

section.kaksi-palstaa img.woman-wink {
  padding-top: 80px;
}

/* /KAKSI PALSTAA */

/* BLOGI */

section.blogit .wrap {
  max-width: 1430px;
}

section.blogit .col-wrap {
  display: flex;
  gap: 50px;
  padding: 100px 0;
}

section.blogit .col-2 {
  width: calc(50% - 25px);
}

section.blogit .blogit-kuva {
  position: relative;
}

section.blogit .blogit-kuva img {
  display: block;
  height: auto;
  position: relative;
  width: 100%;
  z-index: 1;
}

section.blogit h2 {
  margin: 0 0 50px 70px;
}

section.blogit .blogi-nosto {
  background-image: url(inc/johtoryhma-images/06_Johtoryhma_tahti_blogi.svg);
  background-position: left 7px;
  background-repeat: no-repeat;
  background-size: 47px;
  margin-bottom: 45px;
  padding-left: 70px;
}

section.blogit .blogi-nosto:last-child {
  margin-bottom: 0;
}

section.blogit .blogi-nosto h3 {
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  margin: 0 0 15px;
}

section.blogit .blogi-nosto h3 a {
  color: var(--color-black);
  font-size: inherit;
  font-weight: 700 !important;
  line-height: inherit;
  text-decoration: none;
}

section.blogit .blogi-nosto h3 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

section.blogit .blogi-nosto p {
  margin-bottom: 5px;
}

section.blogit .lue-lisaa {
  color: var(--color-black);
  font-size: 28px;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

section.blogit .lue-lisaa:hover {
  text-decoration: none;
}

/* /BLOGI */

/* LOMAKE */

section.lomake {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--color-black);
  position: relative;
  z-index: 1;
}

section.lomake .wrap {
  max-width: 1430px;
}

section.lomake .col-wrap {
  padding: 100px 0;
}

section.lomake .lomake-laatikko {
  background-color: var(--color-white);
  box-sizing: border-box;
  max-width: 690px;
  padding: 45px 50px;
}

section.lomake h2 {
  font-size: 3.6rem;
  margin: 0 0 20px;
}

section.lomake p a {
  font-weight: 700 !important;
}

section.lomake p a:hover {
  color: #000;
  text-decoration: none;
}

section.lomake strong {
  font-weight: 800;
}

/* ActiveCampaign */

section.lomake form[id^="_form_"] {
  margin: 25px 0 0 !important;
  max-width: 100% !important;
  padding: 0 !important;
  width: 100%;
}

section.lomake form._form * {
  box-sizing: border-box;
  font-family: inherit;
}

section.lomake ._form-content {
  width: 100%;
}

section.lomake ._form_element {
  margin: 0 !important;
}

section.lomake ._form-label,
section.lomake legend._form-label {
  color: var(--color-black);
  display: block;
  font-family: 'Darker Grotesque', sans-serif !important;
  font-size: 26px !important;
  font-weight: 500 !important;
  margin: 0 !important;
  padding: 0;
}

section.lomake label._form-label[for="g-recaptcha-response"] {
  display: none !important;
}

section.lomake ._form_element ._form-fieldset {
  margin-bottom: 20px !important;
}

section.lomake ._row span:not(.field-required), 
section.lomake ._row label {
  font-family: 'Darker Grotesque', sans-serif !important;
  font-size: 26px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  margin-bottom: 5px !important;
}

section.lomake .field-required {
  color: var(--color-black) !important;
  font-size: 18px !important;
  margin-left: 5px;
}

section.lomake .field-required {
  color: var(--color-black);
}

section.lomake ._field-wrapper input[type="text"],
section.lomake ._field-wrapper input[type="email"],
section.lomake ._field-wrapper input[type="tel"] {
  background: transparent;
  border: 0 !important;
  border-bottom: 1px solid var(--color-black) !important;
  border-radius: 0;
  color: var(--color-black);
  font-family: 'Darker Grotesque', sans-serif !important;
  font-size: 26px !important;
  font-weight: 500 !important;
  height: 32px !important;
  outline: 0;
  padding: 0 !important;
  width: 100%;
}

section.lomake ._field-wrapper input:focus {
  border-bottom-color: var(--color-black);
}

section.lomake ._form-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

section.lomake ._checkbox-radio {
  align-items: center;
  display: flex;
  gap: 8px;
  margin: 0;
}

section.lomake ._checkbox-radio input {
  appearance: none;
  border: 1px solid #999;
  border-radius: 0;
  height: 18px;
  margin: 0;
  position: relative;
  width: 18px;
}

section.lomake ._checkbox-radio input:checked::after {
  background-image: url(inc/johtoryhma-images/04_Johtoryhma_tahti_musta_lomake.svg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 14px;
  content: "";
  inset: 1px;
  position: absolute;
}

section.lomake ._checkbox-radio label {
  color: var(--color-black);
  font-size: 16px;
  line-height: 1.2;
}

section.lomake ._button-wrapper {
  margin-top: 25px;
}

._form_145 form._form_145._inline-form ._button-wrapper ._submit {
  background-color: var(--color-red) !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--color-white) !important;
  cursor: pointer !important;
  display: block !important;
  font-family: 'the-seasons', serif !important;
  font-size: 36px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  padding: 22px 30px !important;
  transition: background-color 0.2s ease !important;
  width: 100% !important;
}

._form_145 form._form_145._inline-form ._button-wrapper ._submit:hover {
  background-color: var(--color-red-dark) !important;
  background: var(--color-red-dark) !important;
}

section.lomake p:last-child {
  margin-bottom: 0 !important;
}

/* /LOMAKE */

/* HYÖDYLLISIÄ LINKKEJÄ */

section.hyodyllisia-linkkeja {
  background-color: var(--color-light-gray);
  position: relative;
  z-index: 2;
}

section.hyodyllisia-linkkeja::after {
  background-color: var(--color-yellow);
  bottom: 0;
  content: "";
  height: 65px;
  left: 0;
  position: absolute;
  width: 100%;
}

section.hyodyllisia-linkkeja .wrap {
  align-items: flex-start;
  display: flex;
  gap: 50px;
  max-width: 1430px;
  min-height: 760px;
  position: relative;
}

section.hyodyllisia-linkkeja .kuva {
  flex-shrink: 0;
  margin-top: -65px;
  position: relative;
  width: 48%;
  z-index: 2;
}

section.hyodyllisia-linkkeja .kuva img {
  display: block;
  height: auto;
  margin: 0 auto;
  max-width: 520px;
  width: 100%;
}

section.hyodyllisia-linkkeja .sisalto {
  box-sizing: border-box;
  padding: 100px 0;
  position: relative;
  width: 52%;
  z-index: 3;
}

section.hyodyllisia-linkkeja h2 {
  margin: 0 0 50px;
  max-width: 500px;
}

section.hyodyllisia-linkkeja p {
  margin: 0 0 12px;
}

section.hyodyllisia-linkkeja a {
  color: var(--color-black);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

section.hyodyllisia-linkkeja a:hover {
  text-decoration: none;
}

/* /HYÖDYLLISIÄ LINKKEJÄ */

/* FOOTER */

footer {
  background-color: var(--color-yellow);
  color: var(--color-black);
  overflow: hidden;
}

footer .wrap {
  max-width: 1600px;
}

footer .col-wrap {
  display: flex;
}

footer .col-2 {
  width: 50%;
}

footer .col-wrap:first-child {
  align-items: flex-start;
  padding: 0;
}

footer .col-wrap:first-child .col-2:last-child {
  display: flex;
  justify-content: flex-end;
}

footer .col-wrap:last-child {
  align-items: flex-end;
  padding: 0 0 70px;
}

footer .col-wrap:last-child .col-2:first-child {
  align-items: center;
  display: flex;
}

footer .col-wrap:last-child .col-2:first-child img {
  border-right: 2px solid var(--color-black);
  margin-right: 60px;
  padding-right: 60px;
  transform: translateY(2px);
  width: 250px;
}

footer p {
  font-size: 1.2rem;
  line-height: 1;
  margin-bottom: 0;
  white-space: nowrap;
}

footer a {
  font-size: inherit !important;
  text-decoration: none;
}

footer a:hover {
  color: #000;
  text-decoration: underline !important;
}

footer strong {
  display: inline-block;
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 4px;
}

footer .col-wrap:last-child .col-2:last-child {
  display: flex;
  justify-content: flex-end;
}

footer a {
  color: var(--color-black);
  font-size: 30px;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

footer a:hover {
  text-decoration: none;
}

body.single-tapahtumat footer {
  padding-top: 65px;
}

/* /FOOTER */

/* SINGLE TAPAHTUMASIVU */

body.single-tapahtumat section.kaksi-palstaa:first-child {
  background-color: var(--color-white);
}

body.single-tapahtumat section.kaksi-palstaa:first-child .wrap {
  max-width: 100%;
}

body.single-tapahtumat section.kaksi-palstaa:first-child .col-wrap {
  padding-bottom: 0;
  padding-top: 0;
}

body.single-tapahtumat section.kaksi-palstaa:first-child .col-2:first-child {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 175px;
  padding-top: 240px;
}

body.single-tapahtumat section.kaksi-palstaa:first-child .col-2:first-child div.col-2-content {
  max-width: 690px;
}

body.single-tapahtumat section.kaksi-palstaa:first-child .col-2:last-child img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  width: 100%;
}

body.single-tapahtumat section.kaksi-palstaa:nth-child(2) {
  background-color: var(--color-light-gray);
  background-position: right top 160px;
  background-repeat: no-repeat;
  background-size: 640px;
}

body.single-tapahtumat section.kaksi-palstaa:nth-child(2) .col-2:first-child {
  width: 60%;
}

body.single-tapahtumat section.kaksi-palstaa:nth-child(2) .col-2:last-child {
  padding-left: 50px;
  width: 40%;
}

body.single-tapahtumat section.yksi-palsta:nth-child(3) {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.single-tapahtumat section.yksi-palsta:nth-child(3) .wrap {
  max-width: 1425px;
}

body.single-tapahtumat section.yksi-palsta:nth-child(3) .col-wrap {
  padding: 100px 0;
}

body.single-tapahtumat section.yksi-palsta:nth-child(3) h2 {
  color: var(--color-white);
  font-size: 4rem;
}

body.single-tapahtumat section.tapahtumat-kaikki:nth-child(4) h2 {
  font-size: 4rem;
}

body.single-tapahtumat section.yksi-palsta:nth-child(3) h3,
body.single-tapahtumat section.yksi-palsta:nth-child(3) h4,
body.single-tapahtumat section.yksi-palsta:nth-child(3) a {
  color: var(--color-black);
}

body.single-tapahtumat section.yksi-palsta:nth-child(3) a:hover {
  color: #000;
  text-decoration: none;
}

body.single-tapahtumat section.yksi-palsta:nth-child(3) h3 {
  font-family: 'the-seasons', serif;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

body.single-tapahtumat section.yksi-palsta:nth-child(3) h4 {
  font-weight: 500;
}

body.single-tapahtumat div.speakers-wrap {
  display: grid;
  gap: 50px;
  grid-template-columns: repeat(2, 1fr);
  padding-top: 100px;
}

body.single-tapahtumat div.speaker-item {
  background-color: var(--color-soft-pink);
  color: var(--color-black);
  padding: 100px 50px 40px 50px;
  position: relative;
}

body.single-tapahtumat div.speaker-item > img:first-child {
  border-radius: 50%;
  display: block;
  height: 230px;
  margin-bottom: 20px;
  margin-top: -215px;
  object-fit: cover;
  object-position: center center;
  width: 230px;
}

body.single-tapahtumat h1 {
  font-size: 3.2rem;
  margin-bottom: 40px;
}

body.single-tapahtumat p.back {
  margin-bottom: 30px;
}

body.single-tapahtumat p.back a {
  font-size: 26px !important;
}

body.single-tapahtumat p.back a:hover {
  color: #000;
  text-decoration: none;
}

body.single-tapahtumat p.date {
  font-size: 42px;
  margin-bottom: 50px;
}

body.single-tapahtumat p.book { 
  margin-bottom: 50px;
}

body.single-tapahtumat p.share {
  margin-bottom: 0;
}

body.single-tapahtumat p.share a {
  align-items: center;
  display: flex;
  font-family: 'the-seasons', serif;
  font-size: 2rem !important;
  text-decoration: none;
}

body.single-tapahtumat p.share a:hover {
  color: #000;
}

body.single-tapahtumat p.share a span {
  display: inline-block;
  padding-right: 15px;
}

body.single-tapahtumat p.share a img {
  display: inline-block;
}

body.single-tapahtumat div.speaker-item div.speaker-some {
  position: absolute;
  right: 40px;
  top: 40px;
}

body.single-tapahtumat div.speaker-item div.speaker-some a.linkedin {
  background-image: url(inc/johtoryhma-images/LinkedIn_logo_black.svg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  display: inline-block;
  height: 30px;
  overflow: hidden;
  text-indent: -9999px;
  width: 31px;
}

body.single-tapahtumat section.tapahtumat-kaikki p.date {
  margin-bottom: 10px;
}

body.single-tapahtumat section.tapahtumat-kaikki .col-wrap {
  padding-bottom: 80px;
}

body.single-tapahtumat section.tapahtumat-kaikki .wrap::before {
  background-position: top center;
  height: 330px;
  right: 60px;
  top: -65px;
  width: 210px;
}

body.single-tapahtumat section.tapahtumat-kaikki.tapahtumia-1 .wrap::before {
  background-position: bottom center;
  bottom: 0;
  height: 430px;
  right: 60px;
  top: auto;
  width: 410px;
}

body.single-tapahtumat div.wp-block-group a {
  font-size: inherit !important;
}

body.single-tapahtumat a.oeb-text-btn {
  color: #000 !important;
  font-weight: 700 !important;
}

/* /SINGLE TAPAHTUMASIVU */

@media only screen and (max-width: 2000px) {
  .wrap {
    max-width: calc(100% - 200px);
  }

  section.hero .wrap {
    padding-left: 8%;
  }

  p.site-title a {
    left: 4%;
  }

  section.hero {
    height: 100vh;
  }
}

/* 2000 */

@media only screen and (max-width: 1800px) {
  footer .wrap {
    max-width: calc(100% - 200px);
  }
}

/* 1800 */

@media only screen and (max-width: 1700px) {
  section.kaksi-palstaa .wrap {
    max-width: calc(100% - 200px);
  }
}

/* 1700 */

@media only screen and (max-width: 1630px) {
  section.tapahtumat-kaikki .wrap,
  section.blogit .wrap,
  section.lomake .wrap,
  section.hyodyllisia-linkkeja .wrap {
    max-width: calc(100% - 200px);
  }

  body.single-tapahtumat section.yksi-palsta:nth-child(3) .wrap {
    max-width: calc(100% - 200px)
  } 
}

/* 1630 */

@media only screen and (max-width: 1550px) {
  section.hero .wrap {
    padding-left: 0;
  }

  p.site-title a {
    left: 0;
    top: 40px;
  }

  h1 {
    font-size: 4.6rem;
  }

  h2 {
    font-size: 4.6rem;
  }

  section.hero {
    height: auto;
    min-height: 100vh;
  }

  section.tapahtumat-kaikki .is-featured h3 {
    font-size: 50px;
  }

  .col-wrap {
    padding: 100px 0;
  }

  section.blogit .blogi-nosto h3 a {
    display: block;
    line-height: 1.1 !important;
  }

  section.kaksi-palstaa img.woman-wink {
    display: block;
    height: auto;
    max-width: 100%;
  }

  body.single-tapahtumat section.kaksi-palstaa:nth-child(2) {
    background-size: 30%;
  }

  body.single-tapahtumat section.kaksi-palstaa:first-child .col-2:first-child {
    padding-left: 100px;
  }

  section.tapahtumat-kaikki.tapahtumia-1 .wrap::before {
    height: 601px;        
    width: 417px;
  }
}

/* 1550 */

@media only screen and (max-width: 1450px) {
  body {
    font-size: 28px;
  }

  a {
    font-size: 28px !important;
  }

  section.tapahtumat-kaikki .is-featured h3 {
    font-size: 44px;
  }

  h1 {
    font-size: 4.2rem;
  }

  h2 {
    font-size: 4.2rem;
  }

  body.single-tapahtumat h1 {
    font-size: 2.8rem;
  }

  body.single-tapahtumat p.date {
    font-size: 1.6rem;
  }

  body.single-tapahtumat a.star {
    background-size: 50px;
    padding-left: 70px;
  }

  body.single-tapahtumat a.star,
  body.single-tapahtumat p.share a {
    font-size: 1.6rem !important;
  }

  body.single-tapahtumat section.yksi-palsta:nth-child(3) h2,
  body.single-tapahtumat section.tapahtumat-kaikki:nth-child(4) h2 {
    font-size: 3.6rem;
  }
}

/* 1450 */

/* @media only screen and (max-width: 1400px) {
  section.tapahtumat-kaikki.tapahtumia-1 .wrap::before {
    height: 801px;
    width: 417;
  }
} */

/* 1400 */

@media only screen and (max-width: 1050px) {
  .wrap,
  section.kaksi-palstaa .wrap,
  section.tapahtumat-kaikki .wrap,
  section.blogit .wrap,
  section.lomake .wrap,
  section.hyodyllisia-linkkeja .wrap,
  footer .wrap,
  body.single-tapahtumat section.yksi-palsta:nth-child(3) .wrap {
    max-width: calc(100% - 100px);
  }

  section.hero {
    min-height: 0;
  }

  section.tapahtumat-kaikki .wrap::before {
    background-position: right bottom;
    right: 0;
    width: 260px;
  }

  h2 {
    font-size: 3.2rem;
  }

  section.tapahtumat-kaikki .tapahtumat {
    gap: 20px;
  }

  section.tapahtumat-kaikki .tapahtuma-sisalto {
    padding: 40px 20px;
  }

  section.tapahtumat-kaikki .btn {
    font-size: 26px;
    padding: 10px 20px;
  }

  section.tapahtumat-kaikki .is-featured .date {
    font-size: 32px;
  }

  section.tapahtumat-kaikki .is-featured h3 {
    font-size: 36px;
  }

  section.tapahtumat-kaikki h3 {
    margin-bottom: 20px;
  }

  body {
    font-size: 24px;
  }

  a {
    font-size: 24px !important;
  }

  section.kaksi-palstaa {
    background-size: 40%;
  }

  footer .col-wrap:last-child {
    flex-direction: column;
  }

  footer .col-wrap:last-child .col-2 {
    width: 100%;
  }

  footer .col-wrap:last-child .col-2:last-child {
    padding-top: 50px;
  }
  
  body.single-tapahtumat section.kaksi-palstaa:first-child {
    position: relative;
    z-index: 1;
  }

  body.single-tapahtumat section.kaksi-palstaa:first-child .col-wrap {
    flex-direction: column;
  }

  body.single-tapahtumat section.kaksi-palstaa:first-child .col-wrap .col-2 {
    width: 100%;
  }

  body.single-tapahtumat section.kaksi-palstaa:first-child .col-2:first-child {
    order: 2;
    padding: 50px;
  }

  body.single-tapahtumat section.kaksi-palstaa:first-child .col-2:last-child {
    aspect-ratio: 16 / 9;
    order: 1;
  }

  body.single-tapahtumat section.kaksi-palstaa:first-child .col-2:first-child div.col-2-content {
    max-width: 100%;
  }

  body.single-tapahtumat section.kaksi-palstaa:first-child .wrap {
    max-width: 100%;
  }

  body.single-tapahtumat header {
    position: relative;
    z-index: 2;
  }

  body.single-tapahtumat section.tapahtumat-kaikki .wrap::before {
    right: 0;
  }

  body.single-tapahtumat section.yksi-palsta:nth-child(3) h2, 
  body.single-tapahtumat section.tapahtumat-kaikki:nth-child(4) h2 {
    font-size: 3rem;
  }

  section.tapahtumat-kaikki.tapahtumia-1 .wrap::before {
    background-position: right bottom;
    height: 701px;
    width: 317px;
  }
}

/* 1050 */

@media only screen and (max-width: 800px) {
  h1 {
    font-size: 3.8rem;
  }

  h2,
  section.lomake h2 {
    font-size: 2.6rem;
  }

  section.tapahtumat-kaikki .wrap::before {
    top: -440px;
    width: 160px;
  }

  section.tapahtumat-kaikki .coming {
    font-size: 1.6rem;
  }

  section.tapahtumat-kaikki .date {
    font-size: 26px;
  }

  section.blogit .col-wrap {
    gap: 20px;
  }

  section.blogit .blogi-nosto {
    background-size: 30px;
    padding-left: 40px;
  }

  section.blogit .col-2:first-child {
    width: calc(30% - 10px);
  }

  section.blogit .col-2:last-child {
    width: calc(70% - 10px);
  }

  section.blogit h2 {
    margin: 0 0 50px 40px;
  }

  section.hyodyllisia-linkkeja .wrap {
    gap: 20px;
    min-height: 0;
  }

  section.hyodyllisia-linkkeja .kuva {
    width: 30%;
  }

  section.hyodyllisia-linkkeja .sisalto {
    padding: 50px 0 100px 0;
    width: 70%;
  }

  footer .col-wrap:last-child .col-2:first-child img {
    margin-right: 20px;
    padding-right: 20px;
    width: 150px;
  }

  footer p {
    font-size: 1rem;
  }

  footer strong {
    font-size: 1.3rem;
  }

  body.single-tapahtumat div.speakers-wrap {
    grid-template-columns: 1fr;
  }

  body.single-tapahtumat section.yksi-palsta:nth-child(3) h2, 
  body.single-tapahtumat section.tapahtumat-kaikki:nth-child(4) h2 {
    font-size: 2.4rem;
  }

  body.single-tapahtumat section.yksi-palsta:nth-child(3) h3 {
    font-size: 1.8rem;
  }

  h4 {
    font-size: 1.2rem;
  }

  body.single-tapahtumat section.tapahtumat-kaikki .wrap::before {
    display: none;
  }

  body.single-tapahtumat p.date {
    font-size: 1.2rem;
  }

  section.tapahtumat-kaikki .tapahtuma {
    min-height: 0;
  }

  section.tapahtumat-kaikki.tapahtumia-1 .wrap::before {
    background-position: right bottom;
    height: 601px;
    width: 300px;
  }

  section.tapahtumat-kaikki .no-events {
    padding: 50px;
  }

  section.tapahtumat-kaikki .no-events h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
  }
}

/* 800 */

@media only screen and (max-width: 600px) {
  .wrap,
  section.kaksi-palstaa .wrap,
  section.tapahtumat-kaikki .wrap,
  section.blogit .wrap,
  section.lomake .wrap,
  section.hyodyllisia-linkkeja .wrap,
  footer .wrap,
  body.single-tapahtumat section.yksi-palsta:nth-child(3) .wrap {
    max-width: calc(100% - 40px);
  }

  header {
    position: relative;
    z-index: 2;
  }

  p.site-title a {
    background-position: top left;
    height: 80px;
    width: 50%;
  }

  body {
    font-size: 1rem;
  }

  a {
    font-size: 1rem !important;
  }

  section.hero .wrap {
    padding: 150px 0 40px 0;
    position: relative;
    z-index: 3;
  }

  section.hero h1 {
    max-width: 100%;
  }

  section.hero p {
    margin-bottom: 20px;
  }

  section.hero p:last-child {
    margin-bottom: 0;
  }

  section.hero {
    position: relative;
    z-index: 1;
  }

  /* section.hero::after {
    background-color: rgba(0, 0, 0, 0.3);
    content: "";
    display: block;
    height: 100%;        
    left: 0;
    position: absolute;              
    top: 0;
    width: 100%;
    z-index: 2;
  } */

  h1 {
    font-size: 2.2rem;
  }

  a.star {
    background-size: 20px;
    font-size: 1.2rem !important;
    padding: 10px 0 10px 30px;
    text-decoration-thickness: 1px;
  }

  section.tapahtumat-kaikki .col-wrap {
    padding-top: 40px;
  }

  .col-wrap,
  section.blogit .col-wrap,
  section.lomake .col-wrap {
    padding: 40px 0;
  }

  section.tapahtumat-kaikki .wrap::before,
  section.tapahtumat-kaikki.tapahtumia-1 .wrap::before {
    display: none;
  }

  section.tapahtumat-kaikki h2 {
    margin-bottom: 40px;
  }

  h2,
  section.lomake h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  section.tapahtumat-kaikki .tapahtumat {
    grid-template-columns: 1fr;
  }

  section.tapahtumat-kaikki .tapahtuma-sisalto {
    padding: 40px 10px;
  }

  section.tapahtumat-kaikki .is-featured .date,
  section.tapahtumat-kaikki .date {
    font-size: 1.2rem;
    margin-bottom: 20px;
  }

  section.tapahtumat-kaikki .is-featured h3,
  section.tapahtumat-kaikki h3 {
    font-size: 1.4rem;
    margin-bottom: 30px;
  }

  section.tapahtumat-kaikki .tapahtuma.is-featured,
  section.tapahtumat-kaikki .tapahtuma {
    min-height: 0;
  }

  section.tapahtumat-kaikki .btn {
    font-size: 1.2rem;
  }

  section.kaksi-palstaa {
    background-image: none !important;
  }

  section.kaksi-palstaa .col-wrap {
    flex-direction: column;
  }

  section.kaksi-palstaa .col-wrap .col-2 {
    width: 100%;
  }

  body.johtoryhma:not(.single-tapahtumat) section.kaksi-palstaa .col-2:last-child {
    order: 1;
  }

  body.johtoryhma:not(.single-tapahtumat) section.kaksi-palstaa .col-2:first-child {
    order: 2;
  }

  section.kaksi-palstaa p:last-child {
    margin-bottom: 0;
  }

  section.kaksi-palstaa img.woman-wink {
    padding-top: 40px;
  }

  section.blogit .col-wrap {
    flex-direction: column;
  }

  section.blogit .col-wrap .col-2 {
    width: 100%;
  }

  section.blogit .col-wrap .col-2:first-child {
    order: 2;
    padding-top: 20px;
  }

  section.blogit .col-wrap .col-2:first-child {
    order: 1;
  }

  section.blogit h2 {
    margin-bottom: 20px;
  }

  section.blogit .blogi-nosto h3 a {
    font-size: 1.2rem !important;
  }

  section.lomake .lomake-laatikko {
    padding: 40px 20px;
  }

  section.lomake ._form-label, 
  section.lomake legend._form-label,
  section.lomake ._row span:not(.field-required), 
  section.lomake ._row label {
    font-size: 1rem !important;
  }

  ._form_145 form._form_145._inline-form ._button-wrapper ._submit {
    font-size: 1.2rem !important;
  }

  section.hyodyllisia-linkkeja .kuva {
    display: none;
    margin-top: 40px;
  }

  section.hyodyllisia-linkkeja .sisalto {
    padding: 40px 0;
    width: 100%;
  }

  section.hyodyllisia-linkkeja h2 {
    margin-bottom: 20px;
  }

  section.hyodyllisia-linkkeja::after {
    display: none;
  }

  section.hyodyllisia-linkkeja p:last-child {
    margin-bottom: 0;
  }

  footer .col-wrap:first-child {
    padding-bottom: 20px;
    padding-top: 40px;
  }

  footer .col-wrap:first-child .col-2:first-child img {
    display: block;
    height: auto;
    width: 100%;
  }

  footer .col-wrap:first-child .col-2:last-child img {
    display: block;
    height: 50px;
    width: auto;
  }

  footer .col-wrap:last-child .col-2:first-child {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 20px;
  }

  footer .col-wrap:last-child .col-2:first-child img {
    border: none;
    margin-bottom: 20px;
    margin-right: 0;
    padding-right: 0;
  }

  footer p {
    font-size: 1rem;
    white-space: initial;
  }

  footer .col-wrap:last-child .col-2:last-child {
    justify-content: flex-start;
    padding-top: 20px;
  }

  footer span.address {
    display: block;
  }

  footer span.pipe {
    display: none;
  }

  body.single-tapahtumat section.kaksi-palstaa:first-child .col-2:last-child {
    aspect-ratio: 1/1;
  }

  body.single-tapahtumat section.kaksi-palstaa:first-child .col-2:first-child {
    padding: 40px 20px;
  }

  body.single-tapahtumat h1 {
    font-size: 1.6rem;
    margin-bottom: 20px;
  }

  body.single-tapahtumat p.back {
    margin-bottom: 20px;
  }

  body.single-tapahtumat p.back a {
    font-size: 1rem !important;
  }

  body.single-tapahtumat a.star {
    font-size: 1.2rem !important;
  }

  body.single-tapahtumat p.share a {
    font-size: 0.8rem !important;
  }

  body.single-tapahtumat p.share a span {
    padding-right: 5px;
  }

  body.single-tapahtumat p.share a img {
    height: 15px;
    width: auto;
  }

  body.single-tapahtumat a.star {
    background-size: 20px;
    padding-left: 30px;
  }

  body.single-tapahtumat p.date,
  body.single-tapahtumat p.book {
    margin-bottom: 20px;
  }

  body.single-tapahtumat section.kaksi-palstaa:nth-child(2) .col-2:first-child {
    width: 100%;
  }

  body.single-tapahtumat section.kaksi-palstaa:nth-child(2) .col-2:last-child {
    padding: 0;
    width: 100%;
  }

  body.single-tapahtumat section.yksi-palsta:nth-child(3) .col-wrap {
    padding: 40px 0;
  }

  body.single-tapahtumat div.speakers-wrap {
    padding-top: 50px;
  }

  body.single-tapahtumat section.yksi-palsta:nth-child(3) h2, 
  body.single-tapahtumat section.tapahtumat-kaikki:nth-child(4) h2 {
    font-size: 1.4rem;
  }

  body.single-tapahtumat div.speaker-item {
    padding: 50px 20px 20px 20px;
  }

  body.single-tapahtumat div.speaker-item > img:first-child {
    height: 100px;
    margin-top: -100px;
    width: 100px;
  }

  body.single-tapahtumat div.speaker-item div.speaker-some {
    right: 20px;
    top: 20px;
  }

  h4 {
    font-size: 1rem;
  }

  body.single-tapahtumat section.yksi-palsta:nth-child(3) h3 {
    font-size: 1.4rem;
  }

  body.single-tapahtumat footer {
    padding-top: 0;
  }

  body.single-tapahtumat section.tapahtumat-kaikki .col-wrap {
    padding-bottom: 40px;
  }

  body.single-tapahtumat section.kaksi-palstaa img.woman-wink {
    margin: 0 auto;
    max-width: 50%;
    padding-top: 20px;
  }

  section.hero::before {
    background-color: rgba(0, 0, 0, 0.6);
  }

  section.tapahtumat-kaikki .thumbnail::after {
    background: rgba(0, 0, 0, 0.6);
  }

  section.tapahtumat-kaikki .no-events {
    padding: 2ch;
  }

  section.tapahtumat-kaikki .no-events h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
  }

  section.tapahtumat-kaikki .no-events p:last-child {
    margin-bottom: 0;
  }
}

/* 600 */