/* CSEiRO Hero v1.0: opt-in Gutenberg patterns; does not affect existing sections. */
.csehero-v1{--plum:#650140;--honey:#c59142;--ink:#503f4a;position:relative;isolation:isolate;overflow:hidden;max-width:none!important;margin:0!important;padding:clamp(36px,5vw,82px) max(24px,calc((100vw - 1320px)/2))!important;background:linear-gradient(115deg,#fffaf6 0%,#fbf4ef 100%);color:var(--ink)}
.csehero-v1.is-coaching{background:radial-gradient(circle at 84% 14%,#985778 0%,#69223f 42%,#401628 100%);color:#fff5ed}
.csehero-v1 .csehero-v1__columns{max-width:1320px!important;margin:0 auto!important;display:grid!important;grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr);gap:clamp(24px,4.4vw,74px);align-items:center}
.csehero-v1 .csehero-v1__copy{min-width:0}.csehero-v1 .csehero-v1__label{font:700 13px/1.5 Manrope,Arial,sans-serif!important;letter-spacing:.17em;color:#aa7433!important;margin:0 0 28px!important}
.csehero-v1 h1{font-family:Arsenal,Georgia,serif!important;font-size:clamp(42px,4.6vw,75px)!important;line-height:1.06!important;font-weight:400!important;color:var(--plum)!important;letter-spacing:-.025em;margin:0 0 26px!important;overflow-wrap:normal}
.csehero-v1 h1 em{font-weight:400;color:#87516b}.csehero-v1.is-coaching h1{color:#fff8f0!important}.csehero-v1.is-coaching h1 em{color:#f0c89b}
.csehero-v1 .csehero-v1__lead{font:400 clamp(16px,1.2vw,19px)/1.7 Manrope,Arial,sans-serif!important;color:var(--ink)!important;max-width:60ch;margin:0 0 28px!important}
.csehero-v1.is-coaching .csehero-v1__lead{color:#ffebe0!important}
.csehero-v1 .csehero-v1__buttons{display:flex;gap:12px;flex-wrap:wrap;margin:0!important}.csehero-v1 .wp-block-button{margin:0!important}
.csehero-v1 .wp-block-button__link{box-sizing:border-box!important;min-height:52px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;padding:12px 22px!important;margin:0!important;font:700 15px/1.35 Manrope,Arial,sans-serif!important;border-radius:11px!important;text-decoration:none!important;transform:translateY(0)!important;transition:transform .22s ease,background-color .22s ease,color .22s ease,box-shadow .22s ease!important}
.csehero-v1 .csehero-v1__buttons .wp-block-button:first-child .wp-block-button__link{background:#650140!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:1px solid #650140!important}
.csehero-v1 .csehero-v1__buttons .wp-block-button:nth-child(2) .wp-block-button__link{background:transparent!important;color:#650140!important;-webkit-text-fill-color:#650140!important;border:1px solid #c59142!important}
.csehero-v1.is-coaching .csehero-v1__buttons .wp-block-button:first-child .wp-block-button__link{background:#fffaf6!important;border-color:#fffaf6!important;color:#650140!important;-webkit-text-fill-color:#650140!important}
.csehero-v1.is-coaching .csehero-v1__buttons .wp-block-button:nth-child(2) .wp-block-button__link{color:#fffaf6!important;-webkit-text-fill-color:#fffaf6!important;border-color:#f0c89b!important}
@media (hover:hover) and (pointer:fine){
  .csehero-v1 .csehero-v1__buttons .wp-block-button__link:hover{transform:translateY(-3px)!important;box-shadow:0 9px 23px rgba(62,18,41,.20)!important}
}
.csehero-v1 .csehero-v1__buttons .wp-block-button__link:active{transform:translateY(0)!important;box-shadow:0 3px 10px rgba(62,18,41,.12)!important}
.csehero-v1 .wp-block-button__link:hover{box-shadow:0 6px 18px rgba(62,18,41,.14)!important}.csehero-v1 .wp-block-button__link:focus-visible{outline:3px solid #c59142;outline-offset:3px}
.csehero-v1 .csehero-v1__visual{position:relative;min-width:0;padding:0 42px 24px 0}
.csehero-v1 .csehero-v1__image{margin:0!important;aspect-ratio:4/5;width:100%;border-radius:34px!important;overflow:hidden;box-shadow:0 20px 45px rgba(65,30,48,.12);transition:box-shadow .35s ease}
.csehero-v1 .csehero-v1__image img{display:block!important;width:100%!important;height:100%!important;aspect-ratio:4/5;object-fit:cover;object-position:center;border-radius:34px!important;transform:scale(1);transform-origin:center center;transition:transform .55s cubic-bezier(.2,.65,.3,1)!important;will-change:transform}
.csehero-v1 .csehero-v1__visual:hover .csehero-v1__image{box-shadow:0 25px 52px rgba(65,30,48,.17)}
@media(hover:hover) and (pointer:fine){.csehero-v1 .csehero-v1__visual:hover .csehero-v1__image img{transform:scale(1.045)!important}}
.csehero-v1 .csehero-v1__motto{position:absolute;right:0;bottom:0;z-index:2;max-width:min(64%,310px);background:#fffaf6!important;border:1px solid #ead8c2;border-left:4px solid #c59142;border-radius:22px;padding:20px 22px!important;box-shadow:0 10px 30px rgba(65,30,48,.12)}
/* Explicit longhand typography avoids theme/editor font shorthand conflicts. */
body main .wp-block-group.csehero-v1 .wp-block-group.csehero-v1__motto p.csehero-v1__motto-text,
body .wp-site-blocks .wp-block-group.csehero-v1 .wp-block-group.csehero-v1__motto p.csehero-v1__motto-text{
font-family:Arsenal,Georgia,serif!important;font-style:italic!important;font-weight:400!important;font-size:clamp(24px,2.3vw,37px)!important;line-height:1.12!important;letter-spacing:0!important;color:#650140!important;margin:0 0 12px!important;padding:0!important;
}
.csehero-v1 .csehero-v1__motto-name{font:700 11px/1.5 Manrope,Arial,sans-serif!important;letter-spacing:.13em;color:#aa7433!important;margin:0!important}
@media(max-width:850px){.csehero-v1{padding:32px 22px 46px!important}.csehero-v1 .csehero-v1__columns{display:flex!important;flex-direction:column;gap:35px!important}.csehero-v1 .csehero-v1__copy,.csehero-v1 .csehero-v1__visual{width:100%}.csehero-v1 h1{font-size:clamp(39px,7vw,58px)!important}.csehero-v1 .csehero-v1__visual{padding-right:22px}.csehero-v1 .csehero-v1__motto{padding:15px!important;max-width:62%}body main .csehero-v1 .csehero-v1__motto p.csehero-v1__motto-text,body .wp-site-blocks .csehero-v1 .csehero-v1__motto p.csehero-v1__motto-text{font-size:clamp(21px,5vw,30px)!important}.csehero-v1 .csehero-v1__buttons{gap:10px}}
@media(max-width:420px){.csehero-v1{padding-left:18px!important;padding-right:18px!important}.csehero-v1 .csehero-v1__buttons{display:flex;flex-direction:column;align-items:stretch}.csehero-v1 .wp-block-button,.csehero-v1 .wp-block-button__link{width:100%}.csehero-v1 .csehero-v1__motto{max-width:65%}.csehero-v1 .csehero-v1__label{letter-spacing:.12em}}
@media(prefers-reduced-motion:reduce){.csehero-v1 .csehero-v1__image,.csehero-v1 .csehero-v1__image img,.csehero-v1 .wp-block-button__link{transition:none!important;transform:none!important;will-change:auto!important}}

/* v1.2: Strong, site-wide and editor-independent motto typography. Avoid path-dependent body main selectors. */
html body .csehero-v1 .csehero-v1__visual .csehero-v1__motto p.csehero-v1__motto-text,
html body .csehero-v1 .csehero-v1__visual .csehero-v1__motto .wp-block-paragraph.csehero-v1__motto-text{
  font-family:Arsenal,Georgia,serif!important;
  font-size:var(--cse-motto-desktop,32px)!important;
  font-weight:400!important;
  font-style:italic!important;
  line-height:1.16!important;
  color:#650140!important;
  -webkit-text-fill-color:#650140!important;
  letter-spacing:0!important;
  margin:0 0 10px!important;
  padding:0!important;
  text-decoration:none!important;
}
html body .csehero-v1 .csehero-v1__visual .csehero-v1__motto p.csehero-v1__motto-name{
  font-family:Manrope,Arial,sans-serif!important;
  font-size:12px!important;
  line-height:1.5!important;
  font-weight:700!important;
  letter-spacing:.12em!important;
  color:#aa7433!important;
  -webkit-text-fill-color:#aa7433!important;
  margin:0!important;
}
/* The card grows with its text: do not reduce font to squeeze it. */
.csehero-v1 .csehero-v1__motto{max-width:min(74%,350px);min-width:min(245px,66%)}
@media(max-width:850px){
 html body .csehero-v1 .csehero-v1__visual .csehero-v1__motto p.csehero-v1__motto-text,
 html body .csehero-v1 .csehero-v1__visual .csehero-v1__motto .wp-block-paragraph.csehero-v1__motto-text{
   font-size:var(--cse-motto-mobile,24px)!important;
 }
}
@media(max-width:420px){.csehero-v1 .csehero-v1__motto{min-width:0;max-width:78%;padding:14px 16px!important}}

/* v1.4 — only the second section of the Education page: gentle separation from the hero.
   Existing three cards, content, CTA and subsequent sections retain their own styles. */
body.page-education-v33 .cse-edu .cse-edu__formats,
body.page-education-v33 section.cse-edu__formats {
  background-color:#F3ECE7!important;
  background-image:none!important;
}
/* The original vertical rhythm remains unchanged: no added spacer or border. */

/* v1.6 — training page variant. Existing copy and CTA kept verbatim. */
.csehero-v1.is-training{background:linear-gradient(115deg,#fffaf6 0%,#f6f0eb 100%)}
.csehero-v1.is-training .csehero-v1__motto{max-width:min(82%,400px);min-width:min(280px,70%)}
@media(max-width:420px){.csehero-v1.is-training .csehero-v1__motto{max-width:86%;min-width:0}}


/* v1.7 — Szkolenia i warsztaty: stronger visual separation for section 2
   (“Dwie formy rozwoju / jedna praktyczna idea”).
   The section gets a dark plum backdrop; cards remain bright for readability. */
body.page-trainings .cse-train__route,
body.page-trainings section.cse-train__route{
  background:
    radial-gradient(circle at 86% 18%, rgba(152,87,120,.42) 0%, rgba(152,87,120,0) 30%),
    linear-gradient(125deg, #3a1729 0%, #5c2140 48%, #7a3d5b 100%) !important;
  border-top:1px solid rgba(255,245,237,.06);
  border-bottom:1px solid rgba(255,245,237,.08);
}
body.page-trainings .cse-train__routehead,
body.page-trainings .cse-train__route .cse-train__routehead{
  color:#e7be84 !important;
}
body.page-trainings .cse-train__route-grid{
  gap:22px;
}
body.page-trainings .cse-train__route-link{
  background:rgba(255,250,246,.97) !important;
  border:1px solid rgba(255,239,231,.20) !important;
  box-shadow:0 16px 34px rgba(18,5,13,.16) !important;
}
body.page-trainings .cse-train__route-link--web{
  background:rgba(248,241,231,.98) !important;
  border-color:rgba(245,231,207,.28) !important;
}
body.page-trainings .cse-train__route-link:hover{
  border-color:#d9b0c5 !important;
  box-shadow:0 22px 42px rgba(12,4,10,.22) !important;
}
body.page-trainings .cse-train__route-link:after{
  opacity:.92;
}
body.page-trainings .cse-train__route-link h2{color:#650140 !important;}
body.page-trainings .cse-train__route-link p{color:#62515c !important;}
body.page-trainings .cse-train__route-arrow{color:#650140 !important;}
@media(max-width:760px){
  body.page-trainings .cse-train__route{
    padding-top:38px;
    padding-bottom:72px;
  }
  body.page-trainings .cse-train__route-grid{
    gap:14px;
  }
}
