.keller-blog {
  width: 100%;
}

.keller-blog__inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 16px;
}

.keller-blog__featured {
  grid-column: span 3 / span 3;
  grid-row: span 6 / span 6;
  max-width: 712px;
}

.keller-blog__post--small {
  grid-column: span 2 / span 2;
  grid-row: span 3 / span 3;
  grid-column-start: 4;
  min-width: 0;
  display: flex;
}

.keller-blog__post {
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.keller-blog__post--featured {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.keller-blog__post--small {
  /*margin-bottom: 24px;*/
}

.keller-blog__post--small:last-child {
  margin-bottom: 0;
  grid-row-start: 4;
}

.keller-blog__post__image {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.keller-blog__post--featured .keller-blog__post__image {
  height: 400px;
}

.keller-blog__post--small .keller-blog__post__image {
  min-height: 260px;
  width: 184px;
  height: 100%;
}

.keller-blog__post__image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.keller-blog__post--small .keller-blog__post__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.keller-blog__post__content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.keller-blog__post--featured .keller-blog__post__content {
  padding: 12px 8px;
}

.keller-blog__post__date {
  font-size: 12px;
  color: #3F63BE;
  margin-bottom: 17px;
  font-weight: 400;
  line-height: 24px;
  position: relative;
  padding-left: 30px;
}

.keller-blog__post__date::before {
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='13.354' height='13.354' fill='%233F63BE'/%3E%3Crect x='0.838379' y='3.97852' width='11.678' height='8.52902' fill='white'/%3E%3C/svg%3E%0A");
  background-size: contain;
  background-repeat: no-repeat;
  height: 24px;
  width: 24px;
  display: inline-block;
  position: absolute;
  left: 0;
}

.keller-blog__post__title {
  font-size: 16px;
  color: #28529f;
}

.keller-blog__post--featured .keller-blog__post__title {
  font-size: 24px;
  line-height: 32px;
  margin-bottom: 5px;
  color: #28529f;
}

.keller-blog__post__title a {
  color: #28529f !important;
}

.keller-blog__post--featured .keller-blog__post__content-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 15px;
}

.keller-blog__post--small .keller-blog__post__content-bottom {
  display: flex;
  flex-direction: column;
}

.keller-blog__post--small .keller-blog__post__title {
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.keller-blog__post__title {
  font-weight: 600;
  margin: 0;
}

.keller-blog__post__title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.keller-blog__post__title a:hover {
  color: #98B81F;
}

.keller-blog__post__excerpt {
  font-size: 16px;
  color: #646464;
  /*margin-bottom: 24px;*/
}

.keller-blog__post--small .keller-blog__post__excerpt {
  display: none;
}

.keller-blog__post__content-bottom-left {
  flex: 1;
}

.keller-blog__post__button {
  display: inline-block;
  background-color: #fff;
  color: #28529F;
  padding: 13px 24px;
  text-decoration: none !important;;
  border-radius: 3px;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.2s ease;
  align-self: flex-start;
  line-height: 20px;
  border: 2px solid #28529F;
  font-family: Roboto, sans-serif;
}

.keller-blog__post__button:hover {
  background-color: #28529F;
  color: white;
}

/* Mobile responsive */
@media (max-width: 1024px) {
  .keller-blog__featured {
    flex: 0 0 600px;
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .keller-blog__inner {
    flex-direction: column;
    gap: 24px;
    display: flex;
  }

  .keller-blog__featured {
    flex: 1;
    max-width: 100%;
  }

  .keller-blog__post--featured .keller-blog__post__image,
  .keller-blog__post--small .keller-blog__post__image {
    height: 192px;
    min-height: 192px;
    width: 100%;
  }

  .keller-blog__post--small {
    margin-bottom: 20px;
  }

  .keller-blog__post__date {
    font-size: 10px;
    line-height: 12px;
    padding-left: 14px;
    margin-bottom: 10px;
  }

  .keller-blog__post__date::before {
    width: 10px;
    height: 10px;
  }

  .keller-blog__post--featured .keller-blog__post__content,
  .keller-blog__post--small .keller-blog__post__content {
    padding: 8px 6px;
  }

  .keller-blog__post--featured .keller-blog__post__content-bottom,
  .keller-blog__post--small .keller-blog__post__content-bottom {
    flex-direction: column;
    padding: 0 9px;
  }

  .keller-blog__post--featured .keller-blog__post__content-bottom-left {
    margin-bottom: 20px;
  }

  .keller-blog__post--featured .keller-blog__post__content-bottom-right {
    width: 100%;
  }

  .keller-blog__post--featured .keller-blog__post__content-bottom-right a {
    width: 100%;
    display: block;
    text-align: center;
  }

  .keller-blog__post--small {
    flex-direction: column;
  }

  .keller-blog__post--small .keller-blog__post__excerpt {
    display: block;
    margin-bottom: 20px;
  }

  .keller-blog__post--featured .keller-blog__post__title,
  .keller-blog__post--small .keller-blog__post__title {
    font-size: 24px;
    line-height: 24px;
    font-weight: 500;
  }

  .keller-blog__post--small .keller-blog__post__button {
    display: block;
    width: 100%;
    text-align: center;
  }
}
