.footer.footer--joensuu {
 background: #fff !important; 
}

.footer.footer--joensuu .social-links svg path {
  fill: #000;
}

.template-joensuu .button {
 background: #0026e1 !important;
  color: #fff !important;
 
}

.template-joensuu .button {
   display: inline-flex;
  flex-direction: row;
  grid-gap: 10px;
  gap: 10px;
  min-height: 55px;
  align-items: center;
  text-decoration: none !important;
    border-radius: 0 !important;
}

.template-joensuu a:not(.button) {
  color: #0026e1;
  text-decoration: none;

}

.template-joensuu a:not(.button):hover {
  color: #0026e1;
  text-decoration: underline;
}


.template-joensuu .button:hover,
.template-joensuu .button:focus-visible {
   background: #0026e1 !important;
  color: #fff !important;
  text-decoration: none !important;
}
.template-joensuu .button:hover::after,
.template-joensuu .button:focus-visible::after {
    right: -4px;
}

.template-joensuu .aa-icon-grid .text,
.template-joensuu .aa-icon-grid .text p,
.template-joensuu .aa-icon-grid .text a {
 font-size: 16px; 
  line-height: 1.4;
}

.template-joensuu .aa-icon-grid .button {
 background: transparent !important;
  color: #0026e1 !important;
  padding: 10px 0 !important;
  margin-top: 15px;
}

.template-joensuu .aa-icon-grid .button::after {
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='21' viewBox='0 0 20 21' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cmask style='mask-type:alpha' maskUnits='userSpaceOnUse' x='0' y='0' width='20' height='21'%3E%3Crect y='0.5' width='20' height='20' fill='%23D9D9D9'/%3E%3C/mask%3E%3Cg%3E%3Cpath d='M10.0119 14.8768L8.57253 13.461L10.5127 11.5208H1.59961V9.47909H10.5127L8.57253 7.53888L10.0119 6.12305L14.4004 10.4999L10.0119 14.8768Z' fill='%230026e1'/%3E%3C/g%3E%3C/svg%3E") !important;
}

.template-joensuu .button::after{ 
  content: "";
  width: 20px;
  height: 21px;
  transition: all 0.3s ease;
  position: relative;
  right: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='21' viewBox='0 0 20 21' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cmask style='mask-type:alpha' maskUnits='userSpaceOnUse' x='0' y='0' width='20' height='21'%3E%3Crect y='0.5' width='20' height='20' fill='%23D9D9D9'/%3E%3C/mask%3E%3Cg%3E%3Cpath d='M10.0119 14.8768L8.57253 13.461L10.5127 11.5208H1.59961V9.47909H10.5127L8.57253 7.53888L10.0119 6.12305L14.4004 10.4999L10.0119 14.8768Z' fill='%23ffffff'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 21px;
}

.template-joensuu .vertical-card__image {
 background: #fff; 
}

.template-joensuu img {
/*  border-radius: 16px; 
  overflow: hidden;
  */
}

.template-joensuu .module-contact-us-sidebar__inner {
  box-shadow: -3px 0px 29px rgba(0, 0, 0, 0.2);
}
}

.template-joensuu .aa-text-size--larger, .template-joensuu .aa-text-size--larger p {
    font-size: 1.22rem;
    line-height: 1.3em;
}

.template-joensuu h3, .template-joensuu .h3 {
 line-height: 1.2; 
}

.template-joensuu .row-fluid > .widget-span:not(.span12) .aa-module {
 padding-left: 0;
  padding-right: 0;
}

.template-joensuu .row-fluid > .widget-span:not(.span12) .aa-text-and-image-theme {
  border: 1px solid #88e9fc;
  
}

.template-joensuu .row-fluid > .widget-span:not(.span12) .aa-text-and-image-theme img {
 border-radius: 0; 
}

.template-joensuu .row-fluid > .widget-span:not(.span12) .aa-text-and-image-theme__text-column {
  padding: 30px 20px;
}

.footer.footer--joensuu .social-links {
 display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  grid-gap: 0.8rem 2rem;
  gap: 0.8rem 2rem;
}

.footer.footer--joensuu .logos {
   display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  grid-gap: 1.8rem 2rem;
  gap:1.8rem 2rem;
}

.footer.footer--joensuu .hs-menu-item a {
    font-size: 1rem;
    line-height: 1.3em;
    font-weight: 400;
    margin: 0;
    outline: none !important;
  position: relative;
      white-space: pre-wrap;
  min-height: 53px;
    border-bottom: 1px solid #D7D7D7;
    display: flex !important;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    padding-top: 10px;
    padding-bottom: 10px;
    position: relative;
    padding-right: 25px;
}

.footer.footer--joensuu .hs-menu-wrapper.hs-menu-flow-vertical.flyouts ul {
    max-width: 100%;
    width: 350px;
    margin-left: auto;
    display: flex;

}

.footer.footer--joensuu .hs-menu-item > a::after {
    content: "";
    width: 14px;
    height: 11px;
    position: absolute;
    top: calc(50% - 6px);
    right: 5px;
    background-image: url(https://26183644.fs1.hubspotusercontent-eu1.net/hubfs/26183644/raw_assets/public/business-joensuu-theme-2022/images/module-icons/arrow-gray.svg);
    background-size: contain;
    background-position: center;
    transition: all 0.5s ease;
}

.footer.footer--joensuu .social-links .social-links__link,
.footer.footer--joensuu .social-links .social-links__link * {
  margin: 0;
  padding: 0;

}

.footer.footer--joensuu .social-links .social-links__link {
 width: 30px;
  height: 30px;
}


.footer.footer--joensuu .social-links .social-links__link svg,
.footer.footer--joensuu .social-links .social-links__icon {
 width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (min-width: 992px) {
  .footer.footer--joensuu .social-links {
 display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  grid-gap: 0.8rem 2rem;
  gap: 0.8rem 2rem;
}
  
  .footer.footer--joensuu .logos {
   display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  grid-gap: 0.8rem 2rem;
  gap: 0.8rem 2rem;
}
  
}

@media (max-width: 768px) {
 .footer.footer--joensuu .dnd-section > .row-fluid {
   grid-gap: 2rem;
   gap: 2rem;
  }
  
  .footer.footer--joensuu .hs-menu-wrapper.hs-menu-flow-vertical.flyouts ul {
 margin-left: auto;
    margin-right: auto;
    display: flex;

}
}