/* Homepage news cards, isolated from service and product cards. */
#blog {
  margin: 100px 0;
  padding: 0 20px;
}

#blog h2 {
  max-width: 1200px;
  margin: 0 auto 45px;
  color: #231F20;
  font-size: 70px;
  line-height: 1.3;
  text-transform: uppercase;
}

#blog .blog-wrapper {
  min-width: 0;
  padding: 20px 10px 60px;
}

#blog .swiper-wrapper {
  align-items: stretch;
}

#blog .card {
  display: flex;
  flex-direction: column;
  height: auto;
  min-width: 0;
  overflow: hidden;
  border: 2px solid #0B00CF;
  border-radius: 25px;
  background: white;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  transition: border-color 0.3s, box-shadow 0.3s;
}

#blog .card:hover {
  border-color: #EE3732;
  box-shadow: 0 0 30px #EE37323F;
}

#blog .card-image {
  position: relative;
}

#blog .card-image img {
  display: block;
  width: 100%;
  padding: 10px;
  border-radius: 30px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

#blog .card-tag {
  position: absolute;
  top: 25px;
  left: 25px;
  padding: 5px 15px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}

#blog .card-tag a,
#blog .card-title a {
  color: #0B00CF;
  text-decoration: none;
  transition: color 0.3s;
}

#blog .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 5px 25px 25px;
}

#blog .card-title {
  margin-bottom: 15px;
  font-size: 24px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

#blog .card-text {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.5;
}

#blog .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #0000001a;
}

#blog .card-blog-date {
  font-size: 14px;
}

#blog .card-button {
  padding: 10px 18px;
  border-radius: 30px;
  background: #0B00CF;
  color: white;
  text-decoration: none;
  transition: background-color 0.3s;
}

#blog .card-button .bi {
  font-size: 20px;
}

#blog .card:hover .card-title a,
#blog .card:hover .card-tag a {
  color: #EE3732;
}

#blog .card:hover .card-button {
  background: #EE3732;
}

@media (max-width: 1079px) {
  #blog { margin: 50px 0; }
  #blog h2 { font-size: 35px; }
}
