/**
 * Homepage "Veel lugemist" — editorial cards (image top, white body below).
 * Scoped to .miu-home-blog2; index bundle overrides via body.page-index in accent.
 */

.miu-home-blog2 {
  width: 100%;
}

.miu-home-blog2__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.65rem 1rem;
  margin-bottom: 1.15rem;
  width: 100%;
}

.miu-home-blog2__head .miu-home-sec-title {
  margin: 0;
}

.miu-home-blog2__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.15rem;
  align-items: stretch;
  width: 100%;
}

.miu-home-blog2__item {
  min-width: 0;
  margin: 0;
  display: flex;
}

.miu-home-blog2__card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border: 1px solid #e8ecee;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #0b2b3b;
  background: #fff;
  box-shadow: none;
  transition: border-color 200ms ease;
}

.miu-home-blog2__card:hover {
  color: #0b2b3b;
  transform: none;
  box-shadow: none;
  border-color: #d6dde1;
}

.miu-home-blog2__media {
  position: relative;
  flex: 0 0 auto;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  background: #f3f7f8;
}

.miu-home-blog2__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transform: scale(1);
  transition: transform 220ms ease;
}

.miu-home-blog2__media-ph {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #f3f7f8, #e8ecee);
}

.miu-home-blog2__overlay {
  display: none !important;
}

.miu-home-blog2__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 172px;
  padding: 17px 19px 20px;
  gap: 0.45rem;
}

.miu-home-blog2__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #087780;
  line-height: 1.2;
}

.miu-home-blog2__title {
  margin: 0;
  font-size: clamp(1.05rem, 1.05vw, 1.1875rem);
  font-weight: 700;
  color: #0b2b3b;
  letter-spacing: -0.02em;
  line-height: 1.35;
  flex: 0 0 auto;
  min-height: calc(1.35em * 2);
  max-height: calc(1.35em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: normal;
  transition: color 180ms ease;
}

.miu-home-blog2__excerpt {
  margin: 0;
  color: #53616a;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.5;
  flex: 0 0 auto;
  min-height: calc(1.5em * 2);
  max-height: calc(1.5em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
}

.miu-home-blog2__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  flex: 0 0 auto;
  padding-top: 0.7rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #087780;
  line-height: 1.2;
}

.miu-home-blog2__cta::after {
  content: "";
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  background-color: #c99b2e;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E")
    center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E")
    center / contain no-repeat;
  transition: transform 220ms ease;
}

.miu-home-blog2__card:hover .miu-home-blog2__media img {
  transform: scale(1.02);
}

.miu-home-blog2__card:hover .miu-home-blog2__title {
  color: #087780;
}

.miu-home-blog2__card:hover .miu-home-blog2__cta::after {
  transform: translateX(3px);
}

.miu-home-blog2__card:focus-visible {
  outline: 2px solid #087780;
  outline-offset: 3px;
}

@media (max-width: 991.98px) {
  .miu-home-blog2__grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .miu-home-blog2__media {
    aspect-ratio: 4 / 3;
    min-height: 200px;
  }

  .miu-home-blog2__body {
    min-height: 168px;
    padding: 16px 17px 19px;
  }
}

@media (max-width: 575.98px) {
  .miu-home-blog2__body {
    min-height: 184px;
  }

  .miu-home-blog2__title {
    font-size: 1.05rem;
    min-height: calc(1.35em * 3);
    max-height: calc(1.35em * 3);
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .miu-home-blog2__excerpt {
    font-size: 0.8125rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .miu-home-blog2__media img,
  .miu-home-blog2__cta::after {
    transition: none !important;
  }

  .miu-home-blog2__card:hover .miu-home-blog2__media img,
  .miu-home-blog2__card:hover .miu-home-blog2__cta::after {
    transform: none;
  }
}