/* Additions to the Elementor case and solution pages, sized like the Elementor sections around them
   (16% side padding above 1024px, 50px on tablets, 20px on phones):
   - .it-refs: the key references line under the Hyperion intro;
   - .pg-partners, .pg-more: the PortGuard case (the partners as text in the hero; who takes part,
     where it stands and the links, under the partners);
   - .pg-teaser: the PortGuard section on the Ports page;
   - .pg-related: the related project on the Port of Rotterdam case;
   - the DPP page's project buttons wrap onto a second line instead of squeezing;
   - .it-examples: the example cards on the Dataspaces and IoT product pages (links to the cases),
     with photos, or cut-out devices that stand free on white (contained, not cropped);
   - .it-device: a cut-out device photo on a light grey tile (the POCT case);
   - .it-square: a landscape image shown square, like the square photos in the Solutions and
     Products cards;
   - .it-onblue: a link in the white text on the blue gradient band;
   - .it-steps: a little space between the paragraphs of a text with several points. */

.it-refs { margin-top: 14px !important; }

.pg-partners { display: flex; flex-direction: column; gap: 4px; margin-top: 26px; }
.pg-partners p { margin: 0; font-family: "Alegreya Sans", sans-serif; font-size: 18px; line-height: 1.5; color: #003C7C; }
.pg-partners strong { margin-right: 8px; font-family: "Fredoka", sans-serif; font-size: 14px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: #46A06A; }
.pg-partners .pg-partners__demo { margin-top: 20px; }

.pg-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 44px; padding: 0 16% 5%; }
.pg-more h4 { margin: 0 0 8px; font-family: "Fredoka", sans-serif; font-size: 26px; font-weight: 500; line-height: 1.3; color: #044E9D; }
.pg-more p, .pg-more li { margin: 0; font-family: "Alegreya Sans", sans-serif; font-size: 18px; line-height: 1.55; color: #003C7C; }
.pg-more ul { margin: 0; padding-left: 20px; }
.pg-more a { color: #044E9D; text-decoration: underline; text-underline-offset: 3px; }

.pg-teaser { margin: 0 16% 5%; padding: 44px 52px 40px; border-radius: 28px; background: linear-gradient(135deg, rgba(140, 181, 111, .14), rgba(4, 78, 157, .08)); }
.pg-teaser > * { max-width: 920px; }
.pg-teaser__kicker { margin: 0 0 6px !important; font-family: "Fredoka", sans-serif !important; font-size: 15px !important; font-weight: 500; line-height: 1.3 !important; letter-spacing: .06em; text-transform: uppercase; color: #46A06A !important; }
.pg-teaser__title {
  width: fit-content; margin: 0 0 16px; font-family: "Fredoka", sans-serif; font-size: 40px; font-weight: 500; line-height: 54px;
  background: linear-gradient(90deg, #8CB56F 0%, #044E9D 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.pg-teaser p { margin: 0 0 14px; font-family: "Alegreya Sans", sans-serif; font-size: 22px; line-height: 37px; color: #003C7C; }
.pg-teaser .pg-teaser__links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin: 24px 0 0; }
.pg-btn {
  display: inline-block; padding: 10px 25px; border: 1px solid #0A5898; border-radius: 30px; background: transparent;
  font-family: "Fredoka", sans-serif; font-size: 20px; font-weight: 500; line-height: 1.1; color: #0A5898 !important; text-decoration: none !important; transition: background-color .2s, color .2s;
}
.pg-btn:hover, .pg-btn:focus-visible { background: #0A5898; color: #fff !important; }
.pg-link { font-family: "Fredoka", sans-serif; font-size: 18px; font-weight: 500; color: #0A5898 !important; text-decoration: underline; text-underline-offset: 3px; }

.pg-related { margin: 0 16% 5%; }
.pg-related a { display: grid; gap: 4px; padding: 26px 32px; border-radius: 22px; background: #F1F1F1; text-decoration: none !important; transition: background-color .2s; }
.pg-related a:hover, .pg-related a:focus-visible { background: #E9EEF4; }
.pg-related__label { font-family: "Fredoka", sans-serif; font-size: 14px; font-weight: 500; line-height: 1.3; letter-spacing: .06em; text-transform: uppercase; color: #46A06A; }
.pg-related__title { font-family: "Fredoka", sans-serif; font-size: 24px; font-weight: 500; line-height: 1.3; color: #044E9D; }
.pg-related__title::after { content: " \2192"; }
.pg-related__text { font-family: "Alegreya Sans", sans-serif; font-size: 18px; line-height: 1.5; color: #003C7C; }

.elementor .elementor-element.elementor-element-610aaff7 { --flex-wrap: wrap; flex-wrap: wrap; }
.elementor-element-610aaff7 .elementor-button { white-space: nowrap; }

.it-examples { margin: 0 16% 5%; }
.it-examples__kicker { margin: 0 0 6px !important; font-family: "Fredoka", sans-serif; font-size: 15px; font-weight: 500; line-height: 1.3; letter-spacing: .06em; text-transform: uppercase; color: #46A06A; }
.it-examples__title {
  width: fit-content; margin: 0 0 26px; font-family: "Fredoka", sans-serif; font-size: 40px; font-weight: 500 !important; line-height: 54px;
  background: linear-gradient(90deg, #8CB56F 0%, #044E9D 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.it-examples__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.it-examples__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.it-examples__card {
  display: flex; flex-direction: column; gap: 6px; padding: 28px 30px 26px; border-radius: 22px; background: #F1F1F1;
  text-decoration: none !important; transition: background-color .2s;
}
.it-examples__card:hover, .it-examples__card:focus-visible { background: #E9EEF4; }
.it-examples__label { font-family: "Fredoka", sans-serif; font-size: 14px; font-weight: 500; line-height: 1.3; letter-spacing: .06em; text-transform: uppercase; color: #46A06A; }
.it-examples__name { font-family: "Fredoka", sans-serif; font-size: 26px; font-weight: 500; line-height: 1.3; color: #044E9D; }
.it-examples__text { flex: 1; font-family: "Alegreya Sans", sans-serif; font-size: 18px; line-height: 1.55; color: #003C7C; }
.it-examples__more { margin-top: 10px; font-family: "Fredoka", sans-serif; font-size: 17px; font-weight: 500; color: #0A5898; }
.it-examples__more::after { content: " \2192"; }
.it-examples__media { display: grid; gap: 8px; height: 260px; margin-bottom: 14px; }
.it-examples__media img { display: block; width: 100%; height: 100%; min-height: 0; border-radius: 12px; }
.it-examples__media--photos { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.it-examples__media--photos img { object-fit: cover; }
.it-examples__media--photos img:first-child { grid-row: span 2; }
.it-examples__media--devices { grid-template-columns: 1fr 1fr; }
.it-examples__media--devices img { box-sizing: border-box; padding: 18px; object-fit: contain; background: #fff; }

img.it-device { display: block; box-sizing: border-box; width: 100%; height: auto; aspect-ratio: 4 / 3; padding: 8%; object-fit: contain; background: #F1F1F1; }

img.it-square { aspect-ratio: 1; object-fit: cover; }

.elementor-widget-text-editor.it-steps p + p { margin-top: 14px; }

a.it-onblue { color: #fff !important; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1024px) {
  .pg-more { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 0 50px 50px; }
  .pg-teaser { margin: 0 50px 50px; padding: 36px 36px 32px; }
  .pg-teaser__title { font-size: 32px; line-height: 42px; }
  .pg-teaser p { font-size: 20px; line-height: 32px; }
  .pg-related { margin: 0 50px 50px; }
  .it-examples { margin: 0 50px 50px; }
  .it-examples__title { font-size: 32px; line-height: 42px; }
  .it-examples__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 767px) {
  .pg-partners p { font-size: 17px; }
  .pg-more { padding: 0 20px 40px; }
  .pg-more h4 { font-size: 22px; }
  .pg-teaser { margin: 0 20px 40px; padding: 26px 22px 24px; border-radius: 20px; }
  .pg-related { margin: 0 20px 40px; }
  .pg-related a { padding: 20px 22px; }
  .pg-related__title { font-size: 20px; }
  .it-examples { margin: 0 20px 40px; }
  .it-examples__card { padding: 20px 22px; }
  .it-examples__name { font-size: 22px; }
  .it-examples__text { font-size: 17px; }
  .it-examples__media { height: 220px; }
  .it-examples__media--devices img { padding: 12px; }
}
