/* Level Selector - Tiles with Sprites */

.cta_kafel {
  display: inline-block !important;
  position: relative !important;
  width: 100% !important;
  height: 325px !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
  overflow: hidden !important;
  background: url("/img/cta/poziomy_sprite.png") no-repeat 0 0 / 1070px 650px !important;
  border: none !important;
  flex: 1;
  min-width: 250px;
  max-width: 280px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 0 !important;
  line-height: 1 !important;
}

.cta_kafel:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 8px 20px rgba(0, 109, 103, 0.3) !important;
}

/* Matura - Szkoła ponadpodstawowa - 1st tile (0, 0) */
.cta_kafel_matura {
  background-position: 0 0 !important;
  background-image: url("/img/cta/poziomy_sprite.png") !important;
}

.cta_kafel_matura:hover {
  background-position: 0 -325px !important;
  background-image: url("/img/cta/poziomy_sprite.png") !important;
}

/* OSKT - Egzamin Ósmoklasisty - 3rd tile (534px, 0) */
.cta_kafel_oskt {
  background-position: -534px 0 !important;
  background-image: url("/img/cta/poziomy_sprite.png") !important;
}

.cta_kafel_oskt:hover {
  background-position: -534px -325px !important;
  background-image: url("/img/cta/poziomy_sprite.png") !important;
}

/* PSS - Szkoła Podstawowa / PEÓ - 4th tile (801px, 0) */
.cta_kafel_pss {
  background-position: -801px 0 !important;
  background-image: url("/img/cta/poziomy_sprite.png") !important;
}

.cta_kafel_pss:hover {
  background-position: -801px -325px !important;
  background-image: url("/img/cta/poziomy_sprite.png") !important;
}

/* Text inside button */
.cta_kafel_text {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 100% !important;
  color: #fff !important;
  font-weight: bold !important;
  font-size: 16px !important;
  text-align: center !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4) !important;
  background: rgba(0, 0, 0, 0) !important;
  padding: 20px !important;
  line-height: 1.3 !important;
  pointer-events: none !important;
}


/* Text inside button */
.cta_kafel span {
  display: block;
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  background: rgba(0, 109, 103, 0.7);
  padding: 10px;
  border-radius: 4px;
}

.cta_kafel:hover span {
  background: rgba(0, 109, 103, 0.9);
}
