/* Yleinen tyyli */
body {
  background-color: #fdfdfd;
  font-family: 'Inter', sans-serif;
  color: #2c3e50;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* Yhteinen kontti-asetus – käytetään sisällössä ja yläosissa */
.ksk_container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Logon ja yläosan kontti (logo-alue) */
.ksk_top_wrapper .ksk_container_wrapper {
  max-width: 1140px;
  margin-left: 50%;
  transform: translateX(-50%);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ksk_top_wrapper {
  	margin-top: 25px;
  padding-top: 0px;
  background-image: url(/files/hsasennus.fi.kotisivukone.com/kuvat/logo.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: auto;
  background-color: #ffffff;
}

/* Navigointipalkin kontti */
.ksk_menu_wrapper .ksk_container_wrapper_menu {
  max-width: 1140px;
  margin-left: 50%;
  transform: translateX(-50%);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* Sticky navigaatiopalkki */
.ksk_menu_wrapper {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: #224477; /* Tarvittaessa taustaväri */
}

#menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}
#menu ul li {
  margin: 0;
}
#menu ul li a.ksk_main_menu {
  display: block;
  padding: 16px 12px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease-in-out;
}
#menu ul li a.ksk_main_menu:hover,
#menu ul li.active_link a.ksk_main_menu {
  border-bottom: 2px solid #f4c542;
  color: #f4c542;
}

/* Pääkuva (etusivulla) */
body.frontpage .ksk_main_image_wrapper {
  background: linear-gradient(to right, #3e70a3, #1f3e66);
  padding: 60px 0;
  color: white;
  text-align: center;
  font-size: 32px;
  font-weight: 600;
}

/* Sisältöalue */
#content {
  margin-top: 25px;
  font-size: 16px;
  line-height: 22px;
  font-family: PT Sans;
  text-align: left;
  border-top-color: transparent;
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-right-color: transparent;
  margin-bottom: 25px;
  padding-top: 0px;
  background-image: none;
  background-color: #ffffff;
  border-top-left-radius: 15px;
  -moz-border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  -moz-border-top-right-radius: 15px;
  border-bottom-left-radius: 15px;
  -moz-border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  -moz-border-bottom-right-radius: 15px;
  color: #2c3e50;
}
#content h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 36px;
  font-weight: 600;
  color: #224477;
  margin-bottom: 20px;
  line-height: 1.2;
}
#content h2 {
  font-size: 24px;
  margin-top: 30px;
  font-family: 'Poppins', sans-serif;
  color: #2c3e50;
  line-height: 1;
}
#content h3 {
  font-family: 'Poppins', sans-serif;
  color: #2c3e50;
  font-size: 10px;
}
#content a {
  text-decoration: underline;
  font-weight: normal;
  color: #366ba1;
}
#content a:hover {
  color: #30659b;
  font-weight: normal;
  font-style: normal;
  text-transform: none;
  text-decoration: none;
}

/* Painikkeet */
.primary_button {
  display: inline-block;
  background-color: #f4c542;
  color: #000;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s;
}
.primary_button:hover {
  background-color: #e0b933;
}
.secondary_button {
  background-color: #ccc;
  color: #333;
}

/* Alatunniste */
.ksk_footer_wrapper {
  background-color: #224477;
  color: #cfd7e6;
  padding: 40px 0;
  text-align: center;
  font-size: 14px;
  border-top-style: solid;
  border-top-color: #f8c218;
  border-top-left-radius: 0px;
  -moz-border-top-left-radius: 0px;
  border-top-right-radius: 0px;
  -moz-border-top-right-radius: 0px;
  border-bottom-left-radius: 0px;
  -moz-border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
  -moz-border-bottom-right-radius: 0px;
  border-top-width: 5px;
  padding-top: 20px;
}
.ksk_footer_wrapper a {
  color: #f4c542;
  text-decoration: underline;
}
.ksk_footer_wrapper a:hover {
  color: #fff;
}


.ksk_columns_wrapper {
  border-top-style: solid;
  border-bottom-style: solid;
  border-left-style: solid;
  border-right-style: solid;
  border-top-width: 0px;
  border-bottom-width: 0px;
  border-left-width: 0px;
  border-right-width: 0px;
  border-top-color: transparent;
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-right-color: transparent;
  background-image: none;
  background-color: #ffffff;
}
.ksk_menu_wrapper #menu ul li a.ksk_main_menu {
  margin-left: 0px;
  padding-left: 12px;
  font-weight: bold;
}
#ksk_page_wrapper {
  margin-top: 0px;
  margin-left: 0px;
}
.ksk_top_wrapper .ksk_container_wrapper {
  height: 100px;
  background-image: none;
  background-color: transparent;
  margin-left: 0px;
  padding-left: 0px;
  padding-right: 0px;
  margin-top: 15px;
  margin-bottom: 0px;
  margin-right: 0px;
  padding-top: 0px;
  padding-bottom: 0px;
}
#footer_content {
  font-family: PT Sans;
  font-size: 14px;
  font-weight: bold;
  line-height: 16px;
}
#footer_content h1 {
  font-family: PT Sans;
}
#footer_content h2 {
  font-family: PT Sans;
  font-size: 15px;
  font-weight: bold;
}
.responsive-map-wrapper {
  position: relative;
  padding-top: 56.25%; /* 16:9 kuvasuhde */
  width: 100%;
  height: 0;
  overflow: hidden;
}

.responsive-map-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.ksk_container {
  width: 1140px;
  max-width: 1140px;
}

.ksk_main_image_wrapper .ksk_container_wrapper {
  height: 100px;
}
.ksk_main_image_wrapper {
  display:none;
}


/* Responsiivisuus */
@media (max-width: 768px) {
  .ksk_container {
    padding: 0;
  }

  #menu {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  #menu ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }

  #menu ul li {
    width: 100%;
  }

  #menu ul li a.ksk_main_menu {
    display: block;
    width: 100%;
    padding: 12px 16px;
    box-sizing: border-box;
    text-align: left;
  }

  #left-bar,
  #right-bar {
    display: none;
  }

  #columns #content.ksk_middle_area {
    padding: 0;
  width: 909px;
}

  .nav, .nav ul {
    width: 100%;
    box-sizing: border-box;
  }

  .nav li {
    width: 100%;
    text-align: left;
  }

  .nav li a {
    display: block;
    padding: 12px 16px;
    width: 100%;
  }

  /* Navigaation kiinnitys yläreunaan */
  #menu {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    background-color: white;
    width: 100%;
    border-bottom: 1px solid #ccc;
  }
  .logo img{
  	max-width: 150px;
  	height: auto;
  }
  #logo_holder {
  	max-width: 100%;
  	height: auto;
  }
  .logo-and-text-div {
  	flex: 1;
  	max-width: 100%;
  }
}
@media (max-width: 768px) {
  .ksk_container {
    width: 100% ;
    max-width: 100% ;
    margin: 0 ;
    padding: 0 12px;
    box-sizing: border-box;
  }

  .ksk_menu_wrapper .ksk_container_wrapper_menu {
    width: 100% t;
    max-width: 100% ;
    margin: 0 ;
    transform: none ;
    padding: 0 12px;
  }
  .ksk_top_wrapper {
  	margin-top: 25px;
  padding-top: 0px;
  background-image: url(/files/hsasennus.fi.kotisivukone.com/kuvat/logo.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: auto;
  background-color: #ffffff;
}
}
.ksk_container {
  width: 1140px;
  max-width: 1140px;
}