#card-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
}

.card {
  max-width: 500px;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 25px;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s, border 0.3s;
  border: 2px solid #0B00CF;
}

.card:hover {
  box-shadow: 0 0 30px #EE37323F;
  border: 2px solid #EE3732;
}

.card-image {
  position: relative;
}

.card-image img {
  width: 100%;
  padding: 10px;
  border-radius: 30px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.card-tag {
  position: absolute;
  left: 25px;
  top: 25px;
  color: #0B00CF;
  border-radius: 30px;
  font-weight: bold;
  font-size: 0.80rem;
  padding: 5px 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.9);
  transition: color 0.3s;
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 5px 25px 25px;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  min-height: calc(1.2em * 2);
  color: #0B00CF;
  transition: color 0.3s;
}

#blog-list .card:hover .card-tag,
#blog-list .card:hover .card-title {
  color: #EE3732;
}

.card-text {
  line-height: 1.5;
  margin-bottom: 20px !important;
  min-height: calc(2em * 3);
}

.card-footer {
  display: flex;
  align-items: center;
  padding-top: 15px;
  margin-top: auto;
  justify-content: space-between;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.card-button {
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: bold;
  text-decoration: none;
  background-color: #0B00CF;
  transition: background-color 0.3s;
}

#blog-list .card:hover .card-button {
  background-color: #EE3732;
}

.card-button:hover {
  background-color: #EE3732;
}

#pager {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 100px;
}

#pager button{
  background: white;
  border: 1px solid #ddd;
  border-radius: 25px;
  padding: 6px 12px;
  font-weight: bold;
}

#pager button.active,
#pager button:hover {
  background: blue;
  color: white;
  border-color: blue;
}

@media (max-width: 1079px) {
  #card-wrapper {
    margin: 0 20px;
  }

  #pager {
    margin-top: 50px;
  }
}