@charset 'UTF-8';
body {
  background-position: top left;
  background-repeat: repeat;
  background-size: auto;
  background-color: transparent;
}

.ksk_top_wrapper {
  padding-top: 19px;
  background-image: url(/files/pomarkunvpk.kotisivukone.com/6-pomarkku_ylapalkki2.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: transparent;
  display: none;
}

.ksk_top_wrapper .ksk_container_wrapper {
  height: 200px;
}

.ksk_top_wrapper .ksk_container_wrapper {
  height: 200px;
}

.ksk_main_image_wrapper {
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: transparent;
  border-top-style: solid;
  border-top-width: 1px;
  display: block;
  margin: 0;
  padding: 0;
  overflow: hidden; /* Estää kuvan valumisen ulos */
  
  /* Animaatio korjaukset */
  animation: gentleZoom 30s infinite alternate ease-in-out;
  transform-origin: center center;
  width: 100%;
  max-width: 100%;
  position: relative;
  
  /* Taustakuva - palautetaan alkuperäinen */
  border-top-color: rgba(255, 255, 255, 0.19);
  background-image: url(/files/pomarkunvpk.kotisivukone.com/6-pomarkku_ylapalkki2.jpg);
}

.ksk_main_image_wrapper .ksk_container_wrapper {
  background-image: none;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: transparent;
  height: 297px; /* Palautetaan alkuperäinen korkeus */
  margin-top: 0px;
  width: 100%;
}

/* Käytä kevyempää animaatiota */
@keyframes gentleZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.01); /* 1% suureneminen */
  }
}

/* Varmista, että koko sivu pysyy paikoillaan */
body {
  overflow-x: hidden;
  width: 100%;
}

.ksk_container {
  max-width: 1000px;
  width: 100%;
  overflow: hidden;
}


.ksk_menu_wrapper {
  padding-bottom:10px;
  padding-top:10px;
  border-top-color: transparent;
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-right-color: transparent;
  margin-left: 0px;
  background-image: none;
  background-color: #000000;
}

.ksk_menu_wrapper #menu ul li a.ksk_main_menu {
  margin-top: 0px;
  margin-right: 3px;
  margin-bottom: 0px;
  margin-left: 0;
  padding-top: 10px;
  padding-right: 8px;
  padding-bottom: 10px;
  padding-left: 8px;
  font-size: 16px;
  line-height: 16px;
  font-family: PT Sans Narrow;
  font-weight: normal;
  text-decoration: none;
  text-transform: uppercase;
  border-top-left-radius: 3px;
  -moz-border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  -moz-border-top-right-radius: 3px;
  border-bottom-left-radius: 3px;
  -moz-border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
  -moz-border-bottom-right-radius: 3px;
  background-image: none;
  background-color: transparent;
}

.ksk_menu_wrapper #menu ul li ul {
  background-image: none;
  border-top-style: none;
  border-bottom-style: none;
  border-left-style: none;
  border-right-style: none;
}

.ksk_menu_wrapper #menu ul li ul li a.ksk_sub_menu {
  background-image: none;
  background-color: transparent;
  margin-top: 0;
  margin-right: 0px;
  margin-bottom: 0px;
  margin-left: 0px;
  padding-top: 6px;
  padding-right: 10px;
  padding-bottom: 6px;
  padding-left: 10px;
  font-size: 14px;
  line-height: 14px;
  font-family: Arial;
  font-weight: normal;
  text-decoration: none;
  text-transform: none;
  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;
}

.ksk_menu_wrapper #menu ul li ul li.mli:hover a.ksk_sub_menu {
  font-weight: normal;
  text-decoration: none;
}

.ksk_menu_wrapper #menu ul li ul li.active_link a.ksk_sub_menu {
  font-weight: normal;
  text-decoration: none;
}

.ksk_columns_wrapper .ksk-menu, .ksk_columns_wrapper #left-bar .ksk-menu, .ksk_columns_wrapper #right-bar .ksk-menu {
  margin-bottom: 30px;
}

.ksk_columns_wrapper .ksk-menu #menu ul li a.ksk_main_menu, .ksk_columns_wrapper #left-bar .ksk-menu #menu ul li a.ksk_main_menu, .ksk_columns_wrapper #right-bar .ksk-menu #menu ul li a.ksk_main_menu {
  margin-top: 0px;
  margin-right: 3px;
  margin-bottom: 0px;
  margin-left: 0;
  padding-top: 10px;
  padding-right: 8px;
  padding-bottom: 10px;
  padding-left: 8px;
  font-size: 16px;
  line-height: 16px;
  font-family: PT Sans Narrow;
  font-weight: normal;
  text-decoration: none;
  text-transform: uppercase;
  border-top-left-radius: 3px;
  -moz-border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  -moz-border-top-right-radius: 3px;
  border-bottom-left-radius: 3px;
  -moz-border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
  -moz-border-bottom-right-radius: 3px;
  background-image: none;
  background-color: transparent;
}

.ksk_columns_wrapper .ksk-menu #menu ul li ul, .ksk_columns_wrapper #left-bar .ksk-menu #menu ul li ul, .ksk_columns_wrapper #right-bar .ksk-menu #menu ul li ul {
  background-image: none;
  border-top-style: none;
  border-bottom-style: none;
  border-left-style: none;
  border-right-style: none;
}

.ksk_columns_wrapper .ksk-menu #menu ul li ul li a.ksk_sub_menu, .ksk_columns_wrapper #left-bar .ksk-menu #menu ul li ul li a.ksk_sub_menu, .ksk_columns_wrapper #right-bar .ksk-menu #menu ul li ul li a.ksk_sub_menu {
  background-color: transparent;
  background-image: none;
  border-top-style: none;
  border-bottom-style: none;
  border-left-style: none;
  border-right-style: none;
  margin-top: 0;
  margin-right: 0px;
  margin-bottom: 0px;
  margin-left: 0px;
  padding-top: 6px;
  padding-right: 10px;
  padding-bottom: 6px;
  padding-left: 10px;
  font-size: 14px;
  line-height: 14px;
  font-family: Arial;
  font-weight: normal;
  text-decoration: none;
  text-transform: none;
  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;
}
.ksk_columns_wrapper .ksk-menu #menu ul li ul li.mli:hover a.ksk_sub_menu, .ksk_columns_wrapper #left-bar .ksk-menu #menu ul li ul li.mli:hover a.ksk_sub_menu, .ksk_columns_wrapper #right-bar .ksk-menu #menu ul li ul li.mli:hover a.ksk_sub_menu {
  text-decoration: none;
}

.ksk_columns_wrapper .ksk-menu #menu ul li ul li.active_link a.ksk_sub_menu, .ksk_columns_wrapper #left-bar .ksk-menu #menu ul li ul li.active_link a.ksk_sub_menu, .ksk_columns_wrapper #right-bar .ksk-menu #menu ul li ul li.active_link a.ksk_sub_menu {
  text-decoration: none;
}

.ksk_columns_wrapper {
  padding-top: 0px;
  padding-bottom: 20px;
  background-image: none;
  background-color: #fff;
  padding-left: 0px;
}

.ksk_sidebars, #left-bar, #right-bar {
  width: 200px;
  margin-top: 0px;
  margin-bottom: 0px;
  margin-left: 0px;
  padding-top: 0px;
  margin-right: 0px;
}

#left-bar {
  margin-left: 0px;
  margin-right: 0px;
  width: 200px;
  margin-top: 0px;
  margin-bottom: 0px;
  background-image: none;
  background-color: transparent;
  padding-top: 0px;
}

#right-bar {
  margin-right: 0px;
  margin-left: 0px;
  width: 200px;
  margin-top: 0px;
  margin-bottom: 0px;
  padding-top: 0px;
  background-image: none;
  background-color: #3b3b3b;
  padding-left: 0px;
  padding-right: 0px;
}

.box, #left-bar .box, #right-bar .box {
  margin-top: 0px;
  margin-right: 0;
  margin-bottom: 25px;
  margin-left: 0px;
  border-top-style: none;
  border-bottom-style: none;
  border-left-style: none;
  border-right-style: none;
}

.box .header, #left-bar .box .header, #right-bar .box .header {
  background-image: none;
  padding-top: 0;
  padding-bottom: 0;
  border-top-left-radius: 3px;
  -moz-border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  -moz-border-top-right-radius: 3px;
  border-bottom-left-radius: 3px;
  -moz-border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
  -moz-border-bottom-right-radius: 3px;
  padding-left: 10px;
  padding-right: 10px;
}

.box .header h2, #left-bar .box .header h2, #right-bar .box .header h2 {
  font-family: Trebuchet MS;
  font-size: 17px;
  line-height: 21px;
  font-weight: normal;
  text-decoration: none;
  overflow:hidden;
}

.box .content, #left-bar .box .content, #right-bar .box .content {
  font-family: Trebuchet MS;
  font-size: 15px;
  line-height: 20px;
  font-weight: normal;
  padding-top: 10px;
  padding-bottom: 14px;
  padding-right: 5px;
  margin-top: 0px;
  background-color: transparent;
  text-align: left;
}

.box .content a, #left-bar .box .content a, #right-bar .box .content a {
  text-decoration: none;
}

.box .content a:hover, #left-bar .box .content a:hover, #right-bar .box .content a:hover {
  text-decoration: none;
}

#content {
  background-color: transparent;
  background-image: none;
  font-family: Trebuchet MS;
  font-size: 16px;
  line-height: 23px;
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 20px;
  width: 509px;
  text-align: left;
}

#content a {
  font-weight: normal;
  text-decoration: none;
}

#content a:hover {
  font-weight: normal;
  font-style: normal;
  text-decoration: none;
  text-transform: none;
}

#content h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 22px;
  line-height: 22px;
  font-weight: normal;
  font-style: normal;
  text-decoration: none;
  text-transform: none;
}

#content h2 a {
  font-weight: normal;
  font-style: normal;
  text-decoration: none;
  text-transform: none;
}

#content h2 a:hover {
  font-weight: normal;
  font-style: normal;
  text-decoration: none;
  text-transform: none;
}

#content h1 {
  font-family: 'PT Sans Narrow',Arial,sans-serif;
  font-size: 35px;
  line-height: 24px;
  font-weight: normal;
  font-style: normal;
  text-decoration: none;
  text-transform: none;
}

.ksk_footer_wrapper {
  padding-top:15px;
  padding-bottom:20px;
}
#footer_content {
  font-family: Trebuchet MS;
  font-size: 15px;
  line-height: 20px;
  text-align: center;
}
.ksk_footer_wrapper .ksk_container_wrapper {
}

.ksk_footer_wrapper .ksk_container a {
  text-decoration: none;
}

#columns #content.ksk_middle_area {
  width: 999px;
}
#content h1 {
  font-family: Ubuntu;
  line-height: 39px;
  text-align: left;
}
#content h2 {
  font-family: Ubuntu;
  font-size: 22px;
  line-height: 25px;
  text-align: left;
}

.primary_button {
  color: #ffffff;
  font-family: Arial;
  font-size: 15px;
  background-image: none;
  border-top-style: none;
  border-bottom-style: none;
  border-left-style: none;
  border-right-style: none;
  border-top-width: 0px;
  border-bottom-width: 0px;
  border-left-width: 0px;
  border-right-width: 0px;
  padding-top: 6px;
  padding-bottom: 6px;
  padding-left: 30px;
  padding-right: 30px;
  border-top-left-radius: 2px;
  -moz-border-top-left-radius: 2px;
  border-top-right-radius: 2px;
  -moz-border-top-right-radius: 2px;
  border-bottom-left-radius: 2px;
  -moz-border-bottom-left-radius: 2px;
  border-bottom-right-radius: 2px;
  -moz-border-bottom-right-radius: 2px;
}
.primary_button:hover {
  background-image: none;
  color: #ffffff;
  border-top-left-radius: 2px;
  -moz-border-top-left-radius: 2px;
  border-top-right-radius: 2px;
  -moz-border-top-right-radius: 2px;
  border-bottom-left-radius: 2px;
  -moz-border-bottom-left-radius: 2px;
  border-bottom-right-radius: 2px;
  -moz-border-bottom-right-radius: 2px;
  padding-bottom: 6px;
  padding-top: 6px;
  padding-right: 30px;
  padding-left: 30px;
}
.secondary_button {
  font-size: 15px;
  color: #ffffff;
  background-image: none;
  padding-top: 6px;
  padding-left: 20px;
  padding-bottom: 6px;
  padding-right: 20px;
  border-top-style: none;
  border-bottom-style: none;
  border-left-style: none;
  border-right-style: none;
  border-top-width: 0px;
  border-bottom-width: 0px;
  border-left-width: 0px;
  border-right-width: 0px;
  border-top-left-radius: 2px;
  -moz-border-top-left-radius: 2px;
  border-top-right-radius: 2px;
  -moz-border-top-right-radius: 2px;
  border-bottom-left-radius: 2px;
  -moz-border-bottom-left-radius: 2px;
  border-bottom-right-radius: 2px;
  -moz-border-bottom-right-radius: 2px;
}
.secondary_button:hover {
  background-image: none;
  font-size: 15px;
  color: #ffffff;
  border-top-left-radius: 2px;
  -moz-border-top-left-radius: 2px;
  border-top-right-radius: 2px;
  -moz-border-top-right-radius: 2px;
  border-bottom-left-radius: 2px;
  -moz-border-bottom-left-radius: 2px;
  border-bottom-right-radius: 2px;
  -moz-border-bottom-right-radius: 2px;
  padding-top: 6px;
  padding-bottom: 6px;
  padding-right: 20px;
  padding-left: 20px;
}
#left-bar .box .header {
  padding-left: 10px;
  padding-right: 10px;
}
#right-bar .box .header {
  padding-left: 10px;
  padding-right: 10px;
}

body {
    background-image: url(/Kotisivukone/clients/topbarsr/Toistuvat_tekstuurit__Peittavat/black-Linen.png);
}

.ksk_main_image_wrapper {
    border-top-color: rgba(255, 255, 255, 0.19);
  background-image: url(/files/pomarkunvpk.kotisivukone.com/6-pomarkku_ylapalkki2.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover%;
  background-color: transparent;
  display:block;
}


.ksk_menu_wrapper #menu ul li a.ksk_main_menu {
    color: #fffcfc;
  font-size: 17px;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 8px;
  padding-right: 8px;
  margin-top: 0px;
  margin-right: 3px;
  margin-bottom: 0px;
  margin-left: 0px;
}

.ksk_menu_wrapper #menu ul li.active_link a.ksk_main_menu {
  background-color: #ad0000;
  background-image: -moz-linear-gradient(top,  #ad0000 0%, #8e0000 100%);
  background-image: -webkit-gradient(linear, center top, center bottom, color-stop(0%,#ad0000), color-stop(100%,#8e0000));
  background-image: -webkit-linear-gradient(top,  #ad0000 0%,#8e0000 100%);
  background-image: -o-linear-gradient(top,  #ad0000 0%,#8e0000 100%);
  background-image: -ms-linear-gradient(top,  #ad0000 0%,#8e0000 100%);
  background-image: linear-gradient(to bottom,  #ad0000 0%,#8e0000 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ad0000', endColorstr='#8e0000',GradientType=0 );
}

.ksk_menu_wrapper #menu ul li.mli:hover a.ksk_main_menu {
  background-color: #fc0000;
  background-image: -moz-linear-gradient(top,  #fc0000 0%, #b30000 100%);
  background-image: -webkit-gradient(linear, center top, center bottom, color-stop(0%,#fc0000), color-stop(100%,#b30000));
  background-image: -webkit-linear-gradient(top,  #fc0000 0%,#b30000 100%);
  background-image: -o-linear-gradient(top,  #fc0000 0%,#b30000 100%);
  background-image: -ms-linear-gradient(top,  #fc0000 0%,#b30000 100%);
  background-image: linear-gradient(to bottom,  #fc0000 0%,#b30000 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fc0000', endColorstr='#b30000',GradientType=0 );
}

.ksk_menu_wrapper #menu ul li ul {
    background-color: #2a2a2a;
}

.ksk_menu_wrapper #menu ul li ul li a.ksk_sub_menu {
     color: #fffcfc;
}

.ksk_menu_wrapper #menu ul li ul li.mli:hover a.ksk_sub_menu {
  background: #fc0000;
  background-image: -moz-linear-gradient(top,  #fc0000 0%, #b30000 100%);
  background-image: -webkit-gradient(linear, center top, center bottom, color-stop(0%,#fc0000), color-stop(100%,#b30000));
  background-image: -webkit-linear-gradient(top,  #fc0000 0%,#b30000 100%);
  background-image: -o-linear-gradient(top,  #fc0000 0%,#b30000 100%);
  background-image: -ms-linear-gradient(top,  #fc0000 0%,#b30000 100%);
  background-image: linear-gradient(to bottom,  #fc0000 0%,#b30000 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fc0000', endColorstr='#b30000',GradientType=0 );
}

.ksk_menu_wrapper #menu ul li ul li.active_link a.ksk_sub_menu {
    background: #b30000;
  background-image: -moz-linear-gradient(top,  #b30000 0%, #fc0000 100%);
  background-image: -webkit-gradient(linear, center top, center bottom, color-stop(0%,#b30000), color-stop(100%,#fc0000));
  background-image: -webkit-linear-gradient(top,  #b30000 0%,#fc0000 100%);
  background-image: -o-linear-gradient(top,  #b30000 0%,#fc0000 100%);
  background-image: -ms-linear-gradient(top,  #b30000 0%,#fc0000 100%);
  background-image: linear-gradient(to bottom,  #b30000 0%,#fc0000 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b30000', endColorstr='#fc0000',GradientType=0 );
}

.ksk_columns_wrapper .ksk-menu #menu ul li a.ksk_main_menu, .ksk_columns_wrapper #left-bar .ksk-menu #menu ul li a.ksk_main_menu, .ksk_columns_wrapper #right-bar .ksk-menu #menu ul li a.ksk_main_menu {
    color: #000000;
}

.ksk_columns_wrapper .ksk-menu #menu ul li.active_link a.ksk_main_menu, .ksk_columns_wrapper #left-bar .ksk-menu #menu ul li.active_link a.ksk_main_menu, .ksk_columns_wrapper #right-bar .ksk-menu #menu ul li.active_link a.ksk_main_menu {
  color: #fffcfc;
  background-color: #ad0000;
  background-image: -moz-linear-gradient(top,  #ad0000 0%, #8e0000 100%);
  background-image: -webkit-gradient(linear, center top, center bottom, color-stop(0%,#ad0000), color-stop(100%,#8e0000));
  background-image: -webkit-linear-gradient(top,  #ad0000 0%,#8e0000 100%);
  background-image: -o-linear-gradient(top,  #ad0000 0%,#8e0000 100%);
  background-image: -ms-linear-gradient(top,  #ad0000 0%,#8e0000 100%);
  background-image: linear-gradient(to bottom,  #ad0000 0%,#8e0000 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ad0000', endColorstr='#8e0000',GradientType=0 );
}

.ksk_columns_wrapper .ksk-menu #menu ul li.mli:hover a.ksk_main_menu, .ksk_columns_wrapper #left-bar .ksk-menu #menu ul li.mli:hover a.ksk_main_menu, .ksk_columns_wrapper #right-bar .ksk-menu #menu ul li.mli:hover a.ksk_main_menu {
  color: #fffcfc;
  background-color: #fc0000;
  background-image: -moz-linear-gradient(top,  #fc0000 0%, #b30000 100%);
  background-image: -webkit-gradient(linear, center top, center bottom, color-stop(0%,#fc0000), color-stop(100%,#b30000));
  background-image: -webkit-linear-gradient(top,  #fc0000 0%,#b30000 100%);
  background-image: -o-linear-gradient(top,  #fc0000 0%,#b30000 100%);
  background-image: -ms-linear-gradient(top,  #fc0000 0%,#b30000 100%);
  background-image: linear-gradient(to bottom,  #fc0000 0%,#b30000 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fc0000', endColorstr='#b30000',GradientType=0 );
}

.ksk_columns_wrapper .ksk-menu #menu ul li ul, .ksk_columns_wrapper #left-bar .ksk-menu #menu ul li ul, .ksk_columns_wrapper #right-bar .ksk-menu #menu ul li ul {
    background-color: #2a2a2a;
}

.ksk_columns_wrapper .ksk-menu #menu ul li ul li a.ksk_sub_menu, .ksk_columns_wrapper #left-bar .ksk-menu #menu ul li ul li a.ksk_sub_menu, .ksk_columns_wrapper #right-bar .ksk-menu #menu ul li ul li a.ksk_sub_menu {
     color: #fffcfc;
}

.ksk_columns_wrapper .ksk-menu #menu ul li ul li.mli:hover a.ksk_sub_menu, .ksk_columns_wrapper #left-bar .ksk-menu #menu ul li ul li.mli:hover a.ksk_sub_menu, .ksk_columns_wrapper #right-bar .ksk-menu #menu ul li ul li.mli:hover a.ksk_sub_menu {
  background: #fc0000;
  background-image: -moz-linear-gradient(top,  #fc0000 0%, #b30000 100%);
  background-image: -webkit-gradient(linear, center top, center bottom, color-stop(0%,#fc0000), color-stop(100%,#b30000));
  background-image: -webkit-linear-gradient(top,  #fc0000 0%,#b30000 100%);
  background-image: -o-linear-gradient(top,  #fc0000 0%,#b30000 100%);
  background-image: -ms-linear-gradient(top,  #fc0000 0%,#b30000 100%);
  background-image: linear-gradient(to bottom,  #fc0000 0%,#b30000 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fc0000', endColorstr='#b30000',GradientType=0 );
}

.ksk_columns_wrapper .ksk-menu #menu ul li ul li.active_link a.ksk_sub_menu, .ksk_columns_wrapper #left-bar .ksk-menu #menu ul li ul li.active_link a.ksk_sub_menu, .ksk_columns_wrapper #right-bar .ksk-menu #menu ul li ul li.active_link a.ksk_sub_menu {
  background: #b30000;
  background-image: -moz-linear-gradient(top,  #b30000 0%, #fc0000 100%);
  background-image: -webkit-gradient(linear, center top, center bottom, color-stop(0%,#b30000), color-stop(100%,#fc0000));
  background-image: -webkit-linear-gradient(top,  #b30000 0%,#fc0000 100%);
  background-image: -o-linear-gradient(top,  #b30000 0%,#fc0000 100%);
  background-image: -ms-linear-gradient(top,  #b30000 0%,#fc0000 100%);
  background-image: linear-gradient(to bottom,  #b30000 0%,#fc0000 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b30000', endColorstr='#fc0000',GradientType=0 );
}

.box .header, #left-bar .box .header, #right-bar .box .header {
    background-color: #2a2a2a;
}

.box .header h2, #left-bar .box .header h2, #right-bar .box .header h2 {
    color: #fffcfc;
}

.box .content, #left-bar .box .content, #right-bar .box .content {
    color: #3b3b3b;
}

.box .content a, #left-bar .box .content a, #right-bar .box .content a {
  color: #fc0000;
}

.box .content a:hover, #left-bar .box .content a:hover, #right-bar .box .content a:hover {
  color: #8e0000;
}

#content {
    color: #3b3b3b;
  margin-left: 0px;
  padding-top: 0px;
  padding-left: 0px;
  font-size: 17px;
  border-top-style: solid;
  border-bottom-style: solid;
  border-left-style: solid;
  border-right-style: solid;
  border-top-color: transparent;
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-right-color: transparent;
  border-top-width: 0px;
  border-bottom-width: 0px;
  line-height: 20px;
  text-align: left;
  border-right-width: 0px;
  border-left-width: 0px;
}

#content a {
  color: #fc0000;
}

#content a:hover {
  color: #8e0000;
}

#content h2 {
  color: #5A5A5A;
}

#content h2 a {
  color: #fc0000;
}

#content h2 a:hover {
  color: #8e0000;
}

#content h1 {
  color: #4b4b4b;
}

#footer_content {
  color: #b8b8b8;
}

.ksk_footer_wrapper .ksk_container a {
  color: #ececec;
}

.ksk_footer_wrapper .ksk_container a:hover {
  color: #cacaca;
}

#content h2 {
    color: #4b4b4b;
}

.box a, #left-bar .box a, #right-bar .box a {
  color: #fc0000;
}
.box a:hover, #left-bar .box a:hover, #right-bar .box a:hover {
  color: #8e0000;
}

.primary_button {
  padding-left: 7px;
  padding-right: 7px;
  background-image: none;
  background-color: #b30000;
  color: #fffcfc;
  border-top-style: solid;
  border-bottom-style: solid;
  border-left-style: solid;
  border-right-style: solid;
  border-top-color: #000000;
  border-bottom-color: #000000;
  border-left-color: #000000;
  border-right-color: #000000;
  border-top-left-radius: 7px;
  -moz-border-top-left-radius: 7px;
  border-top-right-radius: 7px;
  -moz-border-top-right-radius: 7px;
  border-bottom-left-radius: 7px;
  -moz-border-bottom-left-radius: 7px;
  border-bottom-right-radius: 7px;
  -moz-border-bottom-right-radius: 7px;
  padding-bottom: 7px;
  padding-top: 7px;
  border-top-width: 2px;
  border-bottom-width: 2px;
  border-left-width: 2px;
  border-right-width: 2px;
}

.primary_button:hover {
  border-top-style: solid;
  border-bottom-style: solid;
  border-left-style: solid;
  border-right-style: solid;
  border-top-color: #000000;
  border-bottom-color: #000000;
  border-left-color: #000000;
  border-right-color: #000000;
  padding-left: 7px;
  padding-right: 7px;
  background-image: none;
  background-color: #fc0000;
  border-top-width: 2px;
  border-bottom-width: 2px;
  border-left-width: 2px;
  border-right-width: 2px;
  border-top-left-radius: 7px;
  -moz-border-top-left-radius: 7px;
  border-top-right-radius: 7px;
  -moz-border-top-right-radius: 7px;
  border-bottom-left-radius: 7px;
  -moz-border-bottom-left-radius: 7px;
  border-bottom-right-radius: 7px;
  -moz-border-bottom-right-radius: 7px;
  padding-top: 7px;
  padding-bottom: 7px;
}

.secondary_button {
    background-color: #404040;
  font-size: 17px;
  border-top-left-radius: 10px;
  -moz-border-top-left-radius: 10px;
  padding-top: 4px;
  padding-left: 0px;
  padding-right: 0px;
  padding-bottom: 4px;
  font-family: Montserrat;
}

.secondary_button:hover {
    background-color: #5f5f5f;
  padding-left: 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-left-radius: 8px;
  -moz-border-top-left-radius: 8px;
  padding-right: 0px;
}
.ksk_container {
  margin-right: auto;
  margin-left: auto;
  width: 1000px;
  max-width: 1000px;
}
#ksk_page_wrapper {
  margin-top: 0px;
}
#left-bar .box .content {
  font-size: 20px;
  line-height: 25px;
}
#left-bar .box .content a {
  color: #fc0000;
}
.ksk_menu_wrapper .ksk_container_wrapper_menu {
  margin-top: 0px;
  margin-bottom: 0px;
  margin-left: 0px;
  margin-right: 0px;
}

/* Lisätty tästä eteenpäin 27.1.2025 - Lisää animaatio pääotsikkoon */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Painikkeet korkeammalla tasolla */
.primary_button, .secondary_button {
  position: relative; /* Aseta painikkeet relativeksi, jotta z-index toimii */
  z-index: 2; /* Painikkeet korkeammalla tasolla kuin taustakuva */
}

#content h1 {
  animation: fadeIn 2s ease-in-out; /* Otsikon näkyviin tuloaika sekunteina */
}

/* Lisää animaatio painikkeisiin */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05); /* pienennetty 1.1 --&gt; 1.05 12.1.2026 */
  }
  100% {
    transform: scale(1);
  }
}

.primary_button, .secondary_button {
  animation: pulse 4s infinite; /* lisätty aikaa 2s --&gt; 4s 12.1.2026 */
}

/* Lisää animaatio valikkoon */
@keyframes slideIn {
  from {
    transform: translateX(+40%);
  }
  to {
    transform: translateX(0);
  }
}

.ksk_menu_wrapper #menu ul li {
  animation: slideIn 0.7s ease-out;
}

/* Lisää animaatio taustakuvaan */
@keyframes zoomIn {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.01); /* korjattu 1.05 --&gt; 1.01 12.1.2026 */
  }
}

.ksk_main_image_wrapper {
  animation: zoomIn 25s infinite alternate;
}

/* Lisää animaatio footerin linkkeihin */
@keyframes colorChange {
  0% {
    color: #ececec;
  }
  50% {
    color: #fc0000;
  }
  100% {
    color: #ececec;
  }
}

.ksk_footer_wrapper .ksk_container a {
  animation: colorChange 3s infinite;
}

.ksk_main_image_wrapper {
  animation: zoomIn 30s infinite alternate;
  transform-origin: left center; /* Varmistaa, että vasen reuna pysyy paikoillaan */
  overflow: hidden; /* Estää kuvan valumisen ulos */
  position: relative; /* Aseta wrapperin positio suhteelliseksi */
  width: 100%; /* Varmistaa, että wrapper täyttää koko leveys */
  height: 100%; /* Varmistaa, että wrapper täyttää koko korkeus */
}

.ksk_main_image_wrapper img {
  position: absolute; /* Aseta kuvan positio absoluuttiseksi */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Varmistaa, että kuva skaalautuu oikein */
  clip-path: inset(0 0 0 0); /* Rajaa kuvan näkyvä alue */
}

.counter-container {
  text-align: center;
  margin-top: 50px;
}

.visitor-counter {
  font-size: 2em;
  font-weight: bold;
}

/*Lisätty 28.2.2025 */
/* Uudet tyylit */
body {
    font-family: Arial, sans-serif;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    justify-content: center;
}
.gallery img {
    width: 100%;
    height: auto;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s;
}
.gallery img:hover {
    transform: scale(1.1);
}
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
}
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 4; /* Ensures the close button is on top */
}
.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.3s;
    user-select: none;
    background-color: rgba(0,0,0,0);
    border: none;
}
.prev {
    left: 0;
}
.next {
    right: 0;
}
.circle-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: black;
    cursor: pointer;
    z-index: 3; /* Ensures the circle buttons are on top */
    transition: background-color 0.3s, transform 0.3s;
}
.circle-button:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-50%) scale(1.1);
}
.circle-button.prev {
    left: 10px;
}
.circle-button.next {
    right: 10px;
}
@media screen and (max-width: 600px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
}
@media screen and (max-width: 400px) {
    .gallery {
        grid-template-columns: repeat(1, 1fr);
        gap: 5px;
    }
}
/*Lisätty 3.3.2025*/
body {
    font-family: Arial, sans-serif;
}
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}
tr:hover {
    background-color: #f5f5f5;
}
@media screen and (max-width: 600px) {
    table {
        border: 0;
    }
    table thead {
        display: none;
    }
    table tr {
        margin-bottom: 10px;
        display: block;
        border-bottom: 2px solid #ddd;
    }
    table td {
        display: block;
        text-align: right;
        font-size: 13px;
        border-bottom: 1px dotted #ccc;
    }
    table td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
    }
}
/*Lisätty 28.08.2025----------------------------------------------------*/
:root {
    --primary: #d32f2f;
    --primary-dark: #b71c1c;
    --secondary: #455a64;
    --light: #f5f5f5;
    --dark: #212121;
    --gray: #757575;
    --light-gray: #e0e0e0;
    --success: #388e3c;
    --warning: #f57c00;
    --past: #ffebee;
    --group1: #e3f2fd;
    --group2: #e8f5e9;
    --group3: #fff3e0;
    --group4: #fbe9e7;
    --group5: #f3e5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #f9f9f9;
    padding: 0;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-label {
    font-weight: 600;
    color: var(--secondary);
}

select, button {
    padding: 0.5rem 1rem;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    background-color: white;
    font-size: 1rem;
}

button {
    background-color: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

button:hover {
    background-color: var(--primary-dark);
}

.calendar-info {
    background-color: #e8f5e9;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--success);
}

/* SARAKKEIDEN VÄLIEN RAJAUKSET - LISÄTTY */
table {
    width: 100%;
    border-collapse: separate; /* Muutettu: collapse -&gt; separate */
    border-spacing: 0;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0; /* Lisätty ulkoreuna */
}

thead {
    background-color: var(--secondary);
    color: white;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
    border-right: 1px solid #e0e0e0; /* Lisätty sarakerajat */
    position: relative;
}

/* Poista viiva viimeisestä sarakkeesta */
th:last-child,
td:last-child {
    border-right: none;
}

/* Korjaa ensimmäisen sarakkeen vasen reuna */
th:first-child,
td:first-child {
    border-left: 1px solid #e0e0e0;
}

th {
    font-weight: 600;
    position: sticky;
    top: 0;
}

tr:last-child td {
    border-bottom: none;
}

tr.group-1 { background-color: var(--group1); }
tr.group-2 { background-color: var(--group2); }
tr.group-3 { background-color: var(--group3); }
tr.group-4 { background-color: var(--group4); }
tr.group-5 { background-color: var(--group5); }

.past {
    background-color: var(--past) !important;
    position: relative;
}

.past::after {
    content: 'Menneet';
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary);
    color: white;
    font-size: 0.9rem;
    padding: 0.2rem 0.5rem;
    border-bottom-left-radius: 8px;
    z-index: 1;
}

.today {
    background-color: #c8e6c9 !important;
    position: relative;
}

.today::after {
    content: '\0054\00e4\006e\00e4\00e4\006e';
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--warning);
    color: white;
    font-size: 0.9rem;
    padding: 0.2rem 0.5rem;
    border-bottom-left-radius: 8px;
    z-index: 1;
}

.session-topic {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.session-details {
    font-size: 0.9rem;
    color: var(--gray);
}

.calendar-button {            
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background-color: #bebebe;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.calendar-button:hover {
    background-color: #1565c0;
}

.organizer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.organizer-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    background-color: var(--secondary);
    color: white;
}


/* MOBIILIKORJAUS - KORVAA KOKO NYKYINEN @MEDIA-LOHKO TÄLLÄ: */
@media screen and (max-width: 768px) {

  /* Piilotetaan otsikkorivi mobiilissa */
  thead { display: none; }

  /* Muutetaan taulukon rakenteet blokkimaisiksi */
  table, tbody, tr, td {
    display: block;
    width: 100%;
  }

  /* Korttimainen rivi */
  tr {
    margin-bottom: 1rem;
    padding: 0.75rem 0.75rem 0.25rem;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,.06);
    background: #fff;
    position: relative;
  }

  /* Yksittäinen solu kahdella 'sarakkeella': etiketti + arvo */
  td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    padding: .5rem 0 !important;
    border: none !important;
    text-align: left !important;
    word-break: break-word;
  }

  /* Etiketti (vasen puoli) – ensisijaisesti data-label:ista */
  td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--secondary);
    flex: 0 0 auto;        /* etiketti ei veny yli */
    margin-right: .5rem;
    white-space: nowrap;   /* pysyy nätisti */
  }

  /* --- Fallback: jos data-label puuttuu, annetaan nimet sarakkeille --- */
  td:nth-child(1)::before { content: attr(data-label, 'Nro'); }
  td:nth-child(2)::before { content: attr(data-label, 'Päivä'); }
  td:nth-child(3)::before { content: attr(data-label, 'Harjoitusaihe'); }
  td:nth-child(4)::before { content: attr(data-label, 'Järjestäjä'); }

  /* 'Tänään'/'Menneet' -merkintöjen kompaktimpi esitys */
  .today::after,
  .past::after {
    font-size: 0.7rem !important;
    padding: 0.15rem 0.4rem !important;
    top: 0.5rem;
    right: 0.5rem;
  }

  /* Järjestäjä-solun erikoiskäsittely: keskitys ja etiketti pois */
  tr &gt; td:nth-child(4) {
    justify-content: center;
    font-weight: 600;
  }
  tr &gt; td:nth-child(4)::before {
    content: none; /* ei tarvita etikettiä Järjestäjä-soluun mobiilissa */
  }

  /* Poistetaan desktop-reunat mobiilissa */
  th, td {
    border-right: none !important;
    border-left:  none !important;
  }
  table {
    border: none !important;
    box-shadow: none !important;
  }

  /* Suodattimien pinottu asettelu */
  .controls {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .filter-group {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }
  button, select {
    width: 100%;
  }
}


footer {
    text-align: center;
    margin-top: 3rem;
    padding: 1.5rem;
    color: var(--gray);
    font-size: 0.9rem;
    border-top: 1px solid var(--light-gray);
}

/* Lisätty 09.01.2026 Tästä loppuun */


/* --- Skouppaus: kaikki tämän ilmoituksen tyylit alkavat .huomio-scope --- */
.huomio-scope {
  /* halutessasi voit antaa marginaalin tälle wrapperille */
}

/* Kortti */
.huomio-scope .ilmoitus {
  background: linear-gradient(135deg, #f00a0a, #feca57);
  color: #fff;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  max-width: 90%;
  margin: 20px auto;

  /* Layout ja keskitys */
  display: flex;
  flex-direction: column;   /* otsikko ja teksti allekkain */
  /* justify-content: center;   &lt;-- jos et halua pystykeskitystä, poista tämä */
  align-items: center;      /* vaakasuuntainen keskitys */
}

/* Responsiivisuus */
@media (min-width: 768px) {
  .huomio-scope .ilmoitus {
    max-width: 400px;
  }
}

/* Otsikko: zoom-in + varma keskitys */
.huomio-scope .huomio-otsikko {
  display: block;           /* varmistetaan, että vie rivin leveydeltä */
  width: 100%;
  margin: 0 0 12px 0;
  text-align: center;       /* tekstin keskitys rivillä */
  font-size: 1.5rem;
  line-height: 1.2;

  /* animaatio */
  opacity: 0;
  transform: scale(0.9);
  animation: huomioZoomIn 1.2s ease-out forwards;
}

/* Teksti: badge + slide/fade viiveellä */
.huomio-scope .huomio-teksti {
  display: inline-block;
  margin: 0;
  padding: 10px 14px;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(135deg, #f00a0a, #feca57);
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.18);

  /* animaatio */
  opacity: 0;
  transform: translateY(12px);
  animation: huomioSlideUpFade 900ms ease-out forwards;
  animation-delay: 500ms;
}

/* Uniikit keyframes */
@keyframes huomioZoomIn {
  0%   { opacity: 0; transform: scale(0.9); }
  60%  { opacity: 1; transform: scale(1.02); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes huomioSlideUpFade {
  0%   { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}
.huomio-scope .huomio-otsikko { text-align: center !important; }


/* MOBILE LIGHT PATCH – 09.01.2026
   Tavoite: vaalentaa sivua mobiilissa ilman, että desktop-tyyli muuttuu. */

@media (max-width: 768px) {
  /* Poista tumma tekstuuritausta mobiilissa */
  body {
    background-image: none !important;
    background-color: #ffffff !important;
    color: #222222; /* hieman tummempi teksti hyvään kontrastiin */
  }

  /* Pääkuvan animaatio pois (jotta näkymä rauhoittuu ja ei tummu) */
  .ksk_main_image_wrapper {
    animation: none !important;
    transform: none !important;
  }

  /* Sisältöalue levenee -&gt; valkea tausta peittää reunoja */
  #content {
    width: auto !important;
    margin: 0 !important;
    padding: 0 12px !important;
    background-color: #ffffff !important;
    text-align: left; /* oletus säilyy */
  }

  /* Kortit valkoisella taustalla */
  .box .content, #left-bar .box .content, #right-bar .box .content {
    background-color: #ffffff !important;
  }

  /* Footer vaaleammaksi */
  footer, #footer_content {
    background-color: #ffffff !important;
    color: #666666 !important;
  }
}

/* ======================================================================
   POMARKUN VPK HARJOITUSRYHMÄT 2026 - TYYLIT (LISÄTTY 2026)
   ====================================================================== */

/* Harjoitusryhmien omat CSS-muuttujat */
:root {
  --pomarkun-primary: #b30000; /* Pomarkun VPK punainen */
  --pomarkun-primary-light: #e60000;
  --pomarkun-border: #d1d5db;
  --pomarkun-bg-head: #f8f8f8;
  --pomarkun-row-alt: #fafafa;
  --pomarkun-text: #111827;
  --pomarkun-muted: #4b5563;
  --pomarkun-radius: 12px;
}

/* Harjoitusryhmien container - ei mene päällekkäin olemassa olevien kanssa */
.harjoitusryhmat-2026-wrapper {
  font-family: Arial, sans-serif;
  color: var(--pomarkun-text);
  margin: 0;
  line-height: 1.45;
  background-color: #fff;
}

.harjoitusryhmat-2026-wrapper h1 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--pomarkun-primary);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 0 20px;
}

.harjoitusryhmat-2026-wrapper .table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 2px solid var(--pomarkun-primary);
  border-radius: var(--pomarkun-radius);
  background: white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.harjoitusryhmat-2026-wrapper table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.harjoitusryhmat-2026-wrapper thead th {
  background: var(--pomarkun-primary);
  color: #fff;
  text-align: left;
  padding: 12px 14px;
  font-weight: 700;
}

.harjoitusryhmat-2026-wrapper tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--pomarkun-border);
  vertical-align: top;
}

.harjoitusryhmat-2026-wrapper tbody tr:nth-child(even) {
  background: var(--pomarkun-row-alt);
}

.harjoitusryhmat-2026-wrapper tbody tr:hover {
  background-color: #ffe5e5;
  transition: background 0.3s ease;
}

/* Ryhmän numero punaisella */
.harjoitusryhmat-2026-wrapper td.group {
  font-weight: 700;
  color: var(--pomarkun-primary);
}

/* Kenttärakenne väliotsikoille mobiilia varten */
.harjoitusryhmat-2026-wrapper .field {
  display: block;
}

.harjoitusryhmat-2026-wrapper .field .label {
  display: none;
  font-weight: 700;
  color: var(--pomarkun-muted);
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.harjoitusryhmat-2026-wrapper .field .value {
  display: block;
}

/* Jäsenet listana */
.harjoitusryhmat-2026-wrapper .members {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Leveillä näytöillä: näytä yhdellä rivillä pilkuilla eroteltuna */
.harjoitusryhmat-2026-wrapper .members li {
  display: inline;
  white-space: nowrap;
}

.harjoitusryhmat-2026-wrapper .members li::after {
  content: ', ';
}

.harjoitusryhmat-2026-wrapper .members li:last-child::after {
  content: '';
}

/* Responsiivisuus (korttinäkymä) - MUUTETTU 640px -&gt; 768px yhdenmukaisuuden vuoksi */
@media (max-width: 768px) {
  .harjoitusryhmat-2026-wrapper {
    font-size: 1.05rem;
  }
  
  .harjoitusryhmat-2026-wrapper h1 {
    font-size: 1.9rem;
    margin-bottom: 24px;
    padding: 0 15px;
  }
  
  /* Piilotetaan koko table-wrap mobiilissa ja näytetään kortit suoraan */
  .harjoitusryhmat-2026-wrapper .table-wrap {
    display: none; /* Piilotetaan koko taulukkokontti mobiilissa */
  }
  
  /* Mobiilikortit - luodaan uusi rakenteen tilalle */
  .harjoitusryhmat-2026-wrapper .mobile-cards {
    display: block;
    width: 100%;
    padding: 0;
  }
  
  .harjoitusryhmat-2026-wrapper .card {
    background: white;
    border: 2px solid var(--pomarkun-primary);
    border-radius: var(--pomarkun-radius);
    padding: 16px 18px;
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }
  
  .harjoitusryhmat-2026-wrapper .card-group {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--pomarkun-primary);
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .harjoitusryhmat-2026-wrapper .card-content {
    font-size: 1.05rem;
  }
  
  .harjoitusryhmat-2026-wrapper .card-item {
    margin-bottom: 10px;
  }
  
  .harjoitusryhmat-2026-wrapper .card-label {
    font-weight: 700;
    color: var(--pomarkun-muted);
    margin-bottom: 4px;
    font-size: 1rem;
  }
  
  .harjoitusryhmat-2026-wrapper .card-value {
    display: block;
  }
  
  .harjoitusryhmat-2026-wrapper .members li {
    display: block;
    white-space: nowrap;
    font-size: 1.05rem;
    padding: 2px 0;
  }
  
  .harjoitusryhmat-2026-wrapper .members li::after {
    content: '';
  }
  
  /* Varmistetaan että kortit eivät mene bodyn reunojen yli */
  .harjoitusryhmat-2026-wrapper {
    padding: 0;
  }
}

/* Desktop-näkymän JavaScript-lisäykset */
.harjoitusryhmat-2026-wrapper .mobile-cards {
  display: none; /* Oletuksena piilotettu desktopissa */
}

/* Mobiilissa näytetään kortit ja piilotetaan taulukko */
@media (max-width: 768px) {
  .harjoitusryhmat-2026-wrapper .table-wrap {
    display: none;
  }
  
  .harjoitusryhmat-2026-wrapper .mobile-cards {
    display: block;
  }
}

/* Desktopissa näytetään taulukko ja piilotetaan kortit */
@media (min-width: 769px) {
  .harjoitusryhmat-2026-wrapper .table-wrap {
    display: block;
  }
  
  .harjoitusryhmat-2026-wrapper .mobile-cards {
    display: none;
  }
}


/* Yhtenäiset korttikoot ja fontit mobiilissa */
@media (max-width: 768px) {
  .four-page-wrapper .card {
    width: 100%;
    padding: 0px; /* 16px -&gt; 0px */
    margin-bottom: 16px;
    font-size: 1.05rem; /* hieman isompi fontti */
    line-height: 1.4;
    box-sizing: border-box;
  }

  .four-page-wrapper .card h2 {
    font-size: 1.25rem;
    margin-bottom: 8px;
  }

  .four-page-wrapper .card p {
    font-size: 1rem;
  }
}