.tao-cbg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tao-cbg-item {
  background: #fff;
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.tao-cbg-readmore{
  padding-top:30px;
}

.tao-cbg-thumb img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.tao-cbg-content {
  padding: 20px;
}

.tao-cbg-meta {
  color: #777;
  font-size: 14px;
  margin-bottom: 5px;
}

.tao-cbg-title {
  font-size: 20px;
  margin: 0 0 10px;
  line-height: 1.3;
}

.tao-cbg-title a {
  text-decoration: none;
  color: #222;
}

.tao-cbg-title a:hover {
  color: #0078ff;
}

.tao-cbg-excerpt {
  font-size: 15px;
  color: #444;
}

/* ✅ Slightly larger 1st and 4th posts */

.tao-cbg-item:nth-child(2) .tao-cbg-thumb img {
  height: 216px;
  width: 360px;
}

/* 🌟 Staggered layout: move the 5th post upward to start ahead of 2nd row */
.tao-cbg-item:nth-child(5) {
  margin-top: -290px; /* adjust offset for more or less stagger */
}
    
.tao-cbg-item:nth-child(2),
.tao-cbg-item:nth-child(5)
{
  margin-left: 8px;
}

.tao-cbg-item:nth-child(2),
.tao-cbg-item:nth-child(3),
.tao-cbg-item:nth-child(5),
.tao-cbg-item:nth-child(6)
{
  width: 360px;
}


.tao-cbg-item:nth-child(1),
.tao-cbg-item:nth-child(4) {
  width: 551px;
}

.tao-cbg-item:nth-child(5) .tao-cbg-thumb img {
  height: 360px;
  width: 360px;
}

.tao-cbg-item:nth-child(1) .tao-cbg-thumb img,
.tao-cbg-item:nth-child(4) .tao-cbg-thumb img {
  height: 662px;
  width: 551px;
}

/* Optional: make the larger ones a little bolder visually */
.tao-cbg-item:nth-child(1) .tao-cbg-title,
.tao-cbg-item:nth-child(4) .tao-cbg-title {
  font-size: 22px;
}


/* Responsive */
@media (max-width: 1024px) {
  .tao-cbg-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tao-cbg-item:nth-child(1),
  .tao-cbg-item:nth-child(4) {
    grid-row: auto;
    width: 100%;
  }

  .tao-cbg-item:nth-child(1) .tao-cbg-thumb img,
  .tao-cbg-item:nth-child(4) .tao-cbg-thumb img {
    height: 320px;
    width: 100%;
  }

  /* Disable stagger on smaller screens */
  .tao-cbg-item:nth-child(5) {
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .tao-cbg-grid {
    grid-template-columns: 1fr;
  }

  .tao-cbg-thumb img {
    height: 220px !important;
  }

  .tao-cbg-item:nth-child(5) {
    margin-top: 0;
  }
}