* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none !important; 
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-module {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 300px; 
  margin: 20px 0;
  transition: box-shadow 0.3s, transform 0.3s;
  border-radius: 10px; 
  overflow: hidden;
}

.card-module::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  z-index: 0;
  transition: transform 1s ease; /* Lägg till transition för zoom-effekt */
}

/* Ta bort blureffekten */
.card-module:hover::after {
  transform: scale(1.1); /* Zooma in bilden */
}

.card-text-container {
  color: #f0f0f2; 
  text-align: center;
  padding: 20px;
  text-decoration: none;
  z-index: 1;
  position: relative;
  transition: transform 0.3s; /* Lägg till en transition på texten */
}

.card-text-container h2 {
  text-decoration: none; 
  margin-bottom: 10px;
}

.card-text-container h3 {
  font-size: 24px;
  margin-bottom: 10px;
  text-decoration: none; 
}

.card-text-container p {
  margin: 0;
}

.card-module:hover {
  box-shadow: 0 0 20px rgba(20, 0, 0, 0.50);
  transform: translateY(-5px);
}


.card-module: hover .card-text-container h2 {
  margin-bottom: 0.75rem;
	line-height: 1.4;
	-webkit-transition: all 0.2s;
	-moz-transition: all 0.2s;
	-o-transition: all 0.2s;
	transition: all 0.2s;
}
