/* =========================================
   MARKETING SITE SPECIFIC STYLES
   ========================================= */

/* Nollaa body-paddingit ui.css:stä markkinointisivua varten */
body.marketing-page {
  padding: 0;
  margin: 0;
  /* Voidaan halutessa poistaa yleinen taustakuva ui.css:stä markkinointisivulla
  background-image: none; 
  background-color: var(--bg-main); */
}

/* =========================================
   HERO-OSIO (Zero-gravity)
   ========================================= */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background-color: var(--bg-main);
  /* Voit lisätä tähän tumman tai tunnelmallisen taustakuvan halutessasi */
}

/* Fysiikkakerros on takana */
#physics-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#physics-container canvas {
  display: block;
}

/* Sisältökerros lasiefektillä on edessä */
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;

  /* Päästää klikkaukset läpi fysiikkakerrokseen, jotta elementtejä voi siirtää hiirellä taustalla */
  pointer-events: none;

  width: 90%;
  max-width: 1200px;
}

/* Split layout haku flexillä */
.hero-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* Tekstipuoli vasemmalla: ei taustaa/reunuksia pyynnön mukaan */
.hero-text-col {
  flex: 1;
  text-align: left;
}

/* Videopuoli oikealla: varjo, reunus ja animaatio */
.hero-video-col {
  flex: 1;
  pointer-events: auto;
  /* Videota pitää voida klikata */
  animation: slideInRight 1s ease-out forwards;
  opacity: 0;
  transform: translateX(50px);
}

.hero-hex-cluster {
  position: relative;
  width: min(100%, 620px);
  aspect-ratio: 1.14 / 1;
  margin-left: auto;
}

.hero-hex {
  position: absolute;
  margin: 0;
  width: 52%;
  aspect-ratio: 1.1547 / 1;
  overflow: hidden;
  /* Fallback shape */
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  -webkit-clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  /* Rounded hex corners */
  -webkit-mask-image: url("../img/hex-mask-rounded.svg");
  mask-image: url("../img/hex-mask-rounded.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  box-shadow: 0 20px 42px -18px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.22);
  background: #031a22;
  opacity: 0;
  transform: translate3d(var(--start-x, 0), var(--start-y, 22px), 0) scale(0.96);
  transition: transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1), opacity 700ms ease;
}

.hero-hex::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(4, 124, 153, 0.2);
  pointer-events: none;
}

.hero-hex-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-hex--human {
  left: 8%;
  top: 28%;
  --start-x: -42px;
  --start-y: 22px;
  transition-delay: 80ms;
}

.hero-hex--hanke {
  right: 0;
  top: 2%;
  --start-x: 42px;
  --start-y: -18px;
  transition-delay: 170ms;
}

.hero-hex--ge {
  right: 0;
  top: 54%;
  --start-x: 36px;
  --start-y: 34px;
  transition-delay: 260ms;
}

.hero-hex-cluster.is-settled .hero-hex {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-title {
  margin: 0 0 18px;
  line-height: 1;
  pointer-events: auto;
}

.hero-title-top {
  display: block;
  font-size: clamp(2rem, 4.2vw, 3.8rem);
  font-weight: 500;
  color: #111111;
  margin-bottom: 6px;
}

.hero-title-main {
  display: block;
  font-size: clamp(3.5rem, 7.2vw, 6.4rem);
  font-weight: 700;
  color: var(--text-secondary, #3a3a3a);
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 2.35rem;
  line-height: 1.2;
  color: #171717;
  max-width: 19ch;
  margin: 0 0 34px;
  pointer-events: auto;
}

.hero-btn {
  pointer-events: auto;
  text-decoration: none;
  font-size: clamp(2rem, 2.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1;
  padding: 20px 34px;
  border-radius: 18px;
  background: #047c99;
  color: #ffffff;
  border: 3px solid #d9d9dc;
  box-shadow: 0 10px 28px -16px rgba(4, 124, 153, 0.75);
}

.hero-btn:hover,
.hero-btn:focus-visible {
  background: #03627a;
  border-color: #03627a;
  color: #ffffff;
}

.hero-btn-icon {
  width: 1em;
  height: 1em;
  margin-left: 0.2em;
  filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(102%) contrast(102%);
}

/* =========================================
   DIGITAAKKA SECTION (Z-layout)
   ========================================= */
.section-digitaakka {
  background: #ececee;
  overflow: clip;
  align-items: stretch;
}

.digitaakka-inner {
  width: min(100%, 1240px);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 0 24px 14px;
}

.digitaakka-title {
  margin: 0 0 42px;
  text-align: center;
  font-size: clamp(2.8rem, 4.2vw, 5rem);
  line-height: 1.06;
  color: #1f1f22;
  font-weight: 300;
}

.digitaakka-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.bg-hex {
  position: absolute;
  width: clamp(72px, 8vw, 130px);
  opacity: 0.6;
}

.bg-hex--soft {
  opacity: 0.35;
}

.bg-hex--line {
  opacity: 0.9;
}

.bg-hex--a { left: -24px; top: 12%; }
.bg-hex--b { right: 2%; top: 30%; }
.bg-hex--c { right: 8%; bottom: 9%; }
.bg-hex--d { left: 9%; top: 48%; width: clamp(58px, 6vw, 96px); }
.bg-hex--e { right: 16%; bottom: 17%; width: clamp(58px, 6vw, 96px); }

.z-topic {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 136px minmax(0, 1fr);
  gap: 16px 24px;
  align-items: center;
  margin-bottom: 34px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 680ms ease, transform 680ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.z-topic.is-inview {
  opacity: 1;
  transform: translateY(0);
}

.z-topic[data-topic-index="2"] {
  margin-top: -6px;
}

.z-topic[data-topic-index="3"] {
  margin-top: -4px;
}

.z-topic--reverse .z-topic-media {
  grid-column: 1;
}

.z-topic--reverse .z-topic-hexlabel {
  grid-column: 2;
}

.z-topic--reverse .z-topic-text {
  grid-column: 3;
}

.z-topic-text h3 {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 2.4vw, 3.1rem);
  line-height: 1.12;
  font-family: "Segoe UI", "Segoe UI Semilight", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 300;
  color: #1c1c1f;
}

.z-topic-text p {
  margin: 0 0 12px;
  font-size: clamp(1.12rem, 1.25vw, 1.36rem);
  line-height: 1.44;
  color: #2c2c31;
  max-width: 58ch;
}

.z-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
  font-size: 1.08rem;
  white-space: nowrap;
  letter-spacing: 0.02em;
  color: #03627a;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
}

.z-link:hover,
.z-link:focus-visible {
  color: #047c99;
  text-decoration-color: currentColor;
}

.z-topic-media {
  margin: 0;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 34px -20px rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(4, 124, 153, 0.18);
}

.z-topic-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(4, 124, 153, 0.2);
  pointer-events: none;
}

.z-topic-video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-hex-video[src*="Hero-Ge-Web.mp4"] {
  object-position: center 28%;
}

.z-topic-video[src*="Hero-Ge-Web.mp4"] {
  object-position: center 23%;
}

.z-topic-hexlabel {
  width: 100%;
  max-width: 128px;
  aspect-ratio: 1.1547 / 1;
  justify-self: center;
  display: grid;
  place-items: center;
  position: relative;
}

.z-topic-hexlabel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../img/hex-outline-teal.svg') center / contain no-repeat;
}

.z-topic-hexlabel span {
  position: relative;
  z-index: 1;
  font-size: 1.04rem;
  font-weight: 500;
  color: #1f2024;
}

@media (max-width: 1024px) {
  .digitaakka-inner {
    width: min(100%, 960px);
  }

  .z-topic-text h3 {
    font-size: clamp(1.55rem, 2.1vw, 2.35rem);
  }

  .z-topic {
    grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr);
    gap: 14px 18px;
  }

  .z-topic-hexlabel {
    max-width: 108px;
  }
}

@media (max-width: 768px) {
  .digitaakka-inner {
    padding: 0 8px;
  }

  .digitaakka-title {
    margin-bottom: 28px;
  }

  .z-topic,
  .z-topic--reverse {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 28px;
  }

  .z-topic-media,
  .z-topic--reverse .z-topic-media {
    order: 1;
    width: 100%;
  }

  .z-topic-hexlabel,
  .z-topic--reverse .z-topic-hexlabel {
    order: 2;
    align-self: center;
    margin-top: 2px;
    max-width: 132px;
  }

  .z-topic-text,
  .z-topic--reverse .z-topic-text {
    order: 3;
    width: 100%;
  }

  .z-topic-text h3 {
    font-size: clamp(1.18rem, 5.2vw, 1.62rem);
  }

  .z-topic-text p {
    font-size: 1rem;
  }

  .bg-hex--a,
  .bg-hex--b,
  .bg-hex--c,
  .bg-hex--d,
  .bg-hex--e {
    opacity: 0.22;
  }
}

/* =========================================
   DIGITER SECTION
   ========================================= */
.section-digiter {
  background: #f1f1f3;
  align-items: stretch;
}

.digiter-inner {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 8px 20px 6px;
}

.digiter-title {
  margin: 0 0 26px;
  text-align: center;
  font-size: clamp(2.3rem, 3.6vw, 4.2rem);
  line-height: 1.08;
  color: #1e1f22;
  font-family: "Segoe UI", "Segoe UI Semilight", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 300;
}

.digiter-video-wrap {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(4, 124, 153, 0.22);
  box-shadow: 0 18px 36px -22px rgba(0, 0, 0, 0.45);
  background: #0e161c;
}

.digiter-video-wrap iframe,
.digiter-video-placeholder {
  width: 100%;
  display: block;
  border: 0;
  aspect-ratio: 16 / 9;
}

.digiter-video-placeholder {
  position: relative;
  padding: 0;
  background: #0e161c;
  cursor: pointer;
}

.digiter-video-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.digiter-video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(8, 18, 24, 0.12), rgba(8, 18, 24, 0.34));
}

.digiter-video-play {
  width: 94px;
  height: 94px;
  border-radius: 999px;
  background: rgba(4, 124, 153, 0.92);
  box-shadow: 0 18px 36px -20px rgba(0, 0, 0, 0.48);
  position: relative;
}

.digiter-video-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%);
  width: 0;
  height: 0;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 24px solid #ffffff;
}

.digiter-columns {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 34px;
}

.digiter-columns p {
  margin: 0;
  font-size: clamp(1.1rem, 1.28vw, 1.34rem);
  line-height: 1.52;
  color: #2d2e33;
  max-width: 60ch;
}

@media (max-width: 1024px) {
  .digiter-inner {
    width: min(100%, 980px);
  }

  .digiter-columns {
    gap: 20px 22px;
  }
}

@media (max-width: 768px) {
  .digiter-inner {
    padding: 0 8px;
  }

  .digiter-title {
    margin-bottom: 18px;
    font-size: clamp(1.82rem, 8vw, 2.45rem);
  }

  .digiter-video-wrap {
    border-radius: 14px;
  }

  .digiter-columns {
    margin-top: 18px;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .digiter-columns p {
    font-size: 1rem;
    line-height: 1.5;
  }
}

/* =========================================
   MUUT OSIOT (Palvelu, Järjestelmä jne.)
   ========================================= */
.marketing-section {
  padding: 100px 20px;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  /* Markkinointiosiot normaalin sivuvirran mukaan Hero-osion jälkeen */
}

/* Vuorottelevat taustavärit osioille */
.marketing-section:nth-child(odd) {
  background-color: var(--bg-card);
  /* Esim. valkoinen / 2a2a2a */
}

.marketing-section:nth-child(even) {
  background-color: var(--bg-main);
  /* Esim. f4f4f4 / 1e1e1e */
}

/* Keskitys ja maksimileveys osioiden sisällölle (käytetään ui.css .containeria fiksaamaan) */
.section-container {
  width: 100%;
  margin: 0 auto;
}

.marketing-section .section-title {
  font-size: 2.5rem;
  color: var(--text-main);
  text-transform: none;
  margin-bottom: 30px;
  font-weight: 700;
}

/* Fade-in animaatioita varten (ohjataan JS:llä) */
.marketing-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.marketing-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero-lead {
    font-size: 1.95rem;
    max-width: 21ch;
  }

  .hero-btn {
    font-size: clamp(1.7rem, 2.2vw, 2rem);
  }
}

/* Pienet responsiivisuudet */
@media (max-width: 768px) {
  .hero-section {
    height: auto;
    min-height: 0;
    padding: 104px 0 56px;
  }

  .hero-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: calc(100% - 32px);
    margin: 0 auto;
    padding: 0;
  }

  .hero-split {
    flex-direction: column;
    gap: 22px;
    align-items: center;
  }

  .hero-video-col {
    width: 100%;
    order: -1;
  }

  .hero-text-col {
    width: 100%;
    text-align: center;
    order: 1;
  }

  .hero-hex-cluster {
    width: min(100%, 430px);
    margin: 0 auto;
    aspect-ratio: 1.14 / 1;
    display: block;
  }

  .hero-hex {
    position: absolute;
    width: 52%;
    --start-x: 0;
    --start-y: 14px;
  }

  .hero-hex--human {
    left: 8%;
    top: 28%;
  }

  .hero-hex--hanke {
    right: 0;
    top: 2%;
  }

  .hero-hex--ge {
    right: 0;
    top: 54%;
  }

  .hero-title-top {
    font-size: 1.75rem;
  }

  .hero-title-main {
    font-size: clamp(3rem, 12vw, 4.2rem);
  }

  .hero-lead {
    font-size: 1.6rem;
    max-width: 23ch;
    margin: 0 auto 28px;
  }

  .hero-btn {
    font-size: 1.6rem;
    padding: 16px 26px;
  }

  .marketing-section {
    padding: 60px 20px;
  }

  .marketing-section .section-title {
    font-size: 2rem;
  }
}

/* =========================================
   OFFCANVAS NAVIGATION
   ========================================= */

/* Hamburger Button */
.nav-toggle-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: var(--primary);
  /* Sama taustaväri kuin valikossa (#03627a) */
  border: 1px solid var(--primary);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-float);
  transition: transform 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-toggle-btn:hover {
  transform: scale(1.05);
  background: var(--primary-hover);
}

/* Käännetään SVG valkoiseksi */
.nav-toggle-btn img {
  opacity: 1;
  filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(102%) contrast(102%);
}

/* Offcanvas Container */
.offcanvas-menu {
  position: fixed;
  top: 0;
  right: -100%;
  /* Piilotettu oletuksena */
  width: min(86vw, 360px);
  height: 100vh;
  background-color: var(--primary);
  /* #03627a */
  z-index: 1001;
  transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  padding: 80px 24px 28px;
}

.offcanvas-menu.is-open {
  right: 0;
}

/* Sulkemispainike sisällä */
.nav-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  opacity: 0.8;
  transition: opacity 0.2s, transform 0.2s;
}

.nav-close-btn:hover {
  opacity: 1;
  transform: rotate(90deg);
}

/* Koska tausta on primary (tumma), käännetään x-ikoni valkoiseksi filttereillä */
.nav-close-btn img {
  filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(102%) contrast(102%);
}

/* Navigaatiolinkit */
.offcanvas-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.offcanvas-links li {
  margin: 0;
}

.offcanvas-links a,
.offcanvas-links a:visited {
  color: #ffffff;
  text-decoration: none;
  font-size: clamp(1.02rem, 2.9vw, 1.28rem);
  font-weight: 500;
  line-height: 1.22;
  transition: color 0.2s, padding-left 0.2s;
  display: block;
}

.offcanvas-links a:hover,
.offcanvas-links a:focus-visible {
  color: #ffffff;
  padding-left: 7px;
}

/* Pieni himmennys (overlay) taustalle valikon ollessa auki */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

body.offcanvas-active::after {
  opacity: 1;
  pointer-events: auto;
}

body.offcanvas-active {
  overflow: hidden;
  /* Estä sivun rullaaminen kun valikko auki */
}

/* =========================================
   HEADER LOGO
   ========================================= */
.header-logo {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  display: block;
  transition: transform 0.2s ease;
}

.header-logo:hover {
  transform: scale(1.05);
}

.header-logo img {
  height: 40px;
  /* Sopiva koko yläpalkkiin */
  width: auto;
  display: block;
}

/* Mobiilissa hieman pienempi jos tarve */
@media (max-width: 768px) {
  .header-logo img {
    height: 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-hex {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* =========================================
   AJANKOHTAISTA SECTION (public opportunities)
   ========================================= */
.section-ajankohtaisuus {
  background: #f1f1f3;
  align-items: stretch;
}


.ajankohtaiset-intro {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 22px;
}

.ajankohtaiset-intro .section-title {
  text-align: center;
}

.ajankohtaiset-showcase {
  width: min(100%, 1240px);
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr) minmax(260px, 0.92fr);
  gap: 26px 34px;
  align-items: start;
}

.ajankohtaiset-panel {
  min-width: 0;
}

.ajankohtaiset-panel--brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ajankohtaiset-logo {
  width: min(100%, 320px);
  height: auto;
  display: block;
}

.ajankohtaiset-lead {
  margin: 0;
  font-size: clamp(1.1rem, 1.28vw, 1.34rem);
  line-height: 1.52;
  color: #2d2e33;
  max-width: 60ch;
}

.ajankohtaiset-panel--sources {
  display: grid;
  gap: 22px;
  padding-top: 12px;
}

.ajankohtaiset-source-block h3,
.ajankohtaiset-source-block h4 {
  margin: 0 0 6px;
  color: #121317;
}

.ajankohtaiset-source-block h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.7rem);
  line-height: 1.14;
}

.ajankohtaiset-source-block h4 {
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  font-weight: 800;
}

.ajankohtaiset-source-block p {
  margin: 0;
  font-size: clamp(1rem, 1.18vw, 1.2rem);
  line-height: 1.38;
  color: #22252a;
}

.ajankohtaiset-panel--cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  min-height: 100%;
  padding-top: 28px;
  color: #0a84a5;
  text-decoration: none;
}

.ajankohtaiset-cta-text {
  max-width: 12ch;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.03;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.ajankohtaiset-arrow {
  width: min(160px, 42vw);
  height: auto;
  margin-left: clamp(60px, 7vw, 140px);
  transition: transform 0.22s ease;
}

.ajankohtaiset-panel--cta:hover .ajankohtaiset-arrow,
.ajankohtaiset-panel--cta:focus-visible .ajankohtaiset-arrow {
  transform: translate(6px, -2px) rotate(1deg);
}

.ajankohtaiset-list {
  width: min(100%, 1240px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ajankohtaiset-item {
  border: 1px solid rgba(4, 124, 153, 0.2);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 12px 26px -22px rgba(0, 0, 0, 0.45);
}

.ajankohtaiset-item h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  line-height: 1.24;
  color: #1d1e22;
}

.ajankohtaiset-item p {
  margin: 0 0 10px;
  color: #36373c;
  font-size: 0.98rem;
  line-height: 1.42;
}

.ajankohtaiset-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 8px;
}

.ajankohtaiset-chip {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 8px;
  background: #e8f4f7;
  color: #1f5e6d;
  font-size: 0.78rem;
  font-weight: 600;
}

.ajankohtaiset-link {
  color: #0b5e73;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.ajankohtaiset-link:hover,
.ajankohtaiset-link:focus-visible {
  text-decoration: underline;
}

.ajankohtaiset-empty {
  margin: 0;
  color: #5a5c61;
}

@media (max-width: 1024px) {
  .ajankohtaiset-showcase {
    grid-template-columns: 1fr 1fr;
  }

  .ajankohtaiset-panel--cta {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
    padding-top: 0;
  }

  .ajankohtaiset-cta-text {
    max-width: none;
  }

  .ajankohtaiset-arrow {
    margin-left: 0;
  }

  .ajankohtaiset-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .ajankohtaiset-inner {
    padding: 0 8px;
  }

  .ajankohtaiset-showcase {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ajankohtaiset-panel--brand {
    align-items: flex-start;
  }

  .ajankohtaiset-logo {
    width: min(100%, 280px);
  }

  .ajankohtaiset-list {
    grid-template-columns: 1fr;
  }

  .ajankohtaiset-lead {
    font-size: 1rem;
    line-height: 1.5;
  }

  .ajankohtaiset-source-block p {
    font-size: 1rem;
    line-height: 1.45;
  }

  .ajankohtaiset-cta-text {
    font-size: clamp(1.7rem, 10vw, 2.5rem);
  }

  .ajankohtaiset-arrow {
    width: min(140px, 46vw);
  }
}
