.word-break {
    word-break: break-all;
  }
  
  @media (max-width: 480px) {
    h1 {
      font-size: 25px;
    }
    h2 {
      font-size: 23px;
    }
    h3 {
      font-size: 22px;
    }
  }
  
  #loading-spinner {
    bottom: 0;
    display: none;
    height: 2em;
    left: 0;
    margin: auto;
    position: fixed;
    right: 0;
    top: 0;
    width: 2em;
    z-index: 999;
  }
  #loading-spinner:not(:required) {
    background-color: transparent;
    border: 0 none;
    color: transparent;
    font: 0px/0 a;
    text-shadow: none;
  }
  #loading-spinner:not(:required)::after {
    animation: 1500ms linear 0s normal none infinite running spinner;
    border-radius: 0.5em;
    box-shadow: 1.5em 0 0 0 rgba(22, 122, 198, 0.75),
      1.1em 1.1em 0 0 rgba(22, 122, 198, 0.75),
      0 1.5em 0 0 rgba(22, 122, 198, 0.75),
      -1.1em 1.1em 0 0 rgba(22, 122, 198, 0.75),
      -1.5em 0 0 0 rgba(22, 122, 198, 0.75),
      -1.1em -1.1em 0 0 rgba(22, 122, 198, 0.75),
      0 -1.5em 0 0 rgba(22, 122, 198, 0.75),
      1.1em -1.1em 0 0 rgba(22, 122, 198, 0.75);
    content: '';
    display: block;
    font-size: 10px;
    height: 1em;
    margin-top: -0.5em;
    width: 1em;
  }
  @keyframes spinner {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  @keyframes spinner {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  
  /* Toimiala-kuvien yhtenäinen koko */
  .toimiala-kuva-container {
      height: 250px;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
  }
  
  .toimiala-kuva {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
  }
  
/* Flexbox-grid laatikkorakenteille (toimialat, hyödyt jne.) */
.flex-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.flex-grid-item {
    padding: 0 15px 30px 15px;
    flex: 0 0 33.333%; /* 3 per rivi desktop */
    display: flex; /* Mahdollistaa tasakorkeudet */
}

/* Tablet: 2 per rivi */
@media (max-width: 991px) {
    .flex-grid-item {
        flex: 0 0 50%;
    }
}

/* Mobile: 1 per rivi */
@media (max-width: 767px) {
    .flex-grid-item {
        flex: 0 0 100%;
    }
}

/* Toimialakorttien klikattavuus */
.toimiala-card-link {
    text-decoration: none !important;
    color: inherit;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.toimiala-card-link:hover,
.toimiala-card-link:focus {
    text-decoration: none !important;
    color: inherit;
}

.toimiala-card {
    transition: box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.toimiala-card-link:hover .toimiala-card {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Korttin sisällön flex-asettelu: "Lue lisää" aina pohjalle */
.toimiala-card > * {
    flex-shrink: 0;
}

.toimiala-card > p {
    flex-grow: 1; /* Teksti kasvaa täyttämään tilan */
}

.toimiala-card-cta {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: center;
    flex-shrink: 0; /* Pysyy aina alhaalla */
}

.toimiala-card-link:hover .toimiala-card-cta .fa-arrow-right {
    transform: translateX(5px);
}

.toimiala-card-cta .fa-arrow-right {
    transition: transform 0.2s ease;
    font-size: 14px;
    display: inline-block;
}