.latest-grid-section {
  padding: 40px 0;
  background: #fff;
  overflow-x: hidden;
  width: 100%;
}

.latest-grid-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
  overflow: hidden;
}

/* Title */
.latest-grid-title {
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  padding-bottom: 8px;
  margin-bottom: 25px;
  border-bottom: 3px solid #ccc;
  color: #000;
}

/* Grid - 3 columns on desktop */
.latest-grid-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Card */
.latest-grid-card {
  border: 1px solid #f0f0f0;
  background: #fff;
  transition: box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.latest-grid-card:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Thumbnail */
.latest-grid-thumb {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.latest-grid-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: all 0.3s ease;
  max-width: 100%;
}

.latest-grid-card:hover .latest-grid-thumb img {
  filter: brightness(80%);
}

/* Info */
.latest-grid-info {
  padding: 15px 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 8px;
  box-sizing: border-box;
}

/* Title */
.latest-grid-post-title {
  font-size: 15.5px;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.latest-grid-post-title a {
  color: #000;
  text-decoration: none;
}

.latest-grid-post-title a:hover {
  text-decoration: underline;
}

/* Meta Info */
.latest-grid-meta {
  font-size: 13px;
  color: #444;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
  flex-wrap: nowrap;
  min-height: 20px;
  width: 100%;
  box-sizing: border-box;
  justify-content: flex-start;
}

/* Dot */
.latest-dot {
  width: 17px;
  height: 17px;
  background: #000;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  transition: background 0.3s;
}

.latest-dot:hover {
  background: #000;
}

/* Category */
.latest-cat {
  font-weight: 700;
  color: #000;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.latest-cat:hover {
  text-decoration: underline;
}

/* Date */
.latest-date {
  color: #666;
  flex-shrink: 1; /* allow it to shrink slightly */
  white-space: normal; /* allow wrapping */
  overflow: visible;
  text-overflow: unset;
}

/* Author */
.latest-author {
  font-size: 13px;
  color: #555;
  line-height: 1.3;
  flex-shrink: 0;
  white-space: nowrap;
}

.latest-author a {
  color: #000;
  font-weight: 700;
  text-decoration: none;
}

.latest-author a:hover {
  text-decoration: underline;
}

/* Load More */
.load-more-wrap {
  text-align: center;
  margin-top: 30px;
  width: 100%;
}

.btn-load-more {
  background: #000;
  color: #fff;
  padding: 10px 25px;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-load-more:hover {
  background: rgba(0, 0, 0, 0.85);
}

/* Responsive - 2 columns on mobile (768px and below) */
@media (max-width: 768px) {
  .latest-grid-section {
    overflow-x: hidden;
  }

  .latest-grid-posts {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding-right: 10px;
  }

  .latest-grid-info {
    padding: 10px;
    min-height: unset;
  }

  .latest-grid-post-title {
    font-size: 14px;
  }

  .latest-grid-meta,
  .latest-author {
    font-size: 12.5px;
    flex-wrap: wrap; /* allow wrapping */
  }

  .latest-dot {
    width: 17px;
    height: 17px;
  }

  .latest-cat,
  .latest-date {
    font-size: 12.5px;
    white-space: normal; /* allow date wrapping */
  }

  .latest-grid-thumb img {
    height: 160px;
  }
}
