.latest-wrapper {
  padding: 0;
}

.latest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1320px;
  margin: 0 auto;
}

.latest-card {
  background: #fff;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.latest-thumb-link {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.latest-thumb {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.latest-card:hover .latest-thumb {
  transform: scale(1.05);
}

.latest-meta {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.latest-badge {
  background: linear-gradient(135deg, #1976d2, #42a5f5);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 6px;
  margin-bottom: 15px;
  border-radius: 3px;
  display: inline-block;
  text-transform: uppercase;
  width: max-content;
  max-width: 100%;
  line-height: 1.2;
}

.latest-meta-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.latest-title {
  font-size: 14px;
  font-weight: 600;
  color: #121212;
  margin: 0;
  line-height: 1.3;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 66px;
}

.latest-button-wrapper {
  margin-top: auto;
  display: flex;
  justify-content: center;
  padding-top: 15px;
}

.latest-button {
  background-color: transparent;
  border: 1px solid #1976d2;
  color: #1976d2;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 30px;
  border-radius: 50px;
  transition: all 0.3s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.latest-button:hover {
  background-color: #1976d2;
  color: #fff;
}

.latest-hidden-later {
  display: none;
}

.latest-view-more-section {
  display: flex;
  padding: 24px 12px 0;
}

.latest-view-more {
  margin: 0 auto;
  padding: 11px 15px;
  cursor: pointer;
  line-height: 14px;
  font-size: 14px;
  font-weight: 400;
  text-align: center;
  border-radius: 50px;
  border: 1px solid #d0d0d0;
  background-color: #ffffff;
  color: #121212;
  width: 90%;
}

.latest-view-more:hover {
  background-color: #e7e7e7;
}

@media screen and (max-width: 992px) {
  .latest-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .latest-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    border-radius: 0;
    border-bottom: 1px solid #ddd;
    padding: 5px 10px;
  }

  .latest-card:first-child {
    border-top: 1px solid #ddd;
  }
  
  .latest-thumb-link {
    aspect-ratio: auto;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 5px;
  }

  .latest-thumb {
    width: 100%;
    height: 100%;
  }

  .latest-meta {
    padding: 0;
  }

  .latest-badge {
    margin-bottom: 6px;
  }
  
  .latest-meta-content {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .latest-title {
    -webkit-line-clamp: 2;
    max-height: 48px;
    flex-grow: 1;
  }

  .latest-button-wrapper {
    margin-top: 0;
    padding-top: 0;
    justify-content: flex-end;
  }

  .latest-button {
    display: inline-block;
  }
  
  .latest-view-more-section {
    padding: 24px 12px 24px;
    background-color: #ffffff;
  }
}

@media screen and (max-width: 768px) {
  .latest-badge {
    font-size: 10px;
    padding: 1px 6px;
  }
  
  .latest-button {
    font-size: 11px;
    font-weight: normal;
    padding: 3px 20px;
  }
}