.custom-post-loop.layout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.custom-post-loop.layout-list .post-item {
  margin-bottom: 20px;
}
.post-item h3 {
  font-size: 20px;
}

@media (max-width: 600px) {
  .custom-post-loop.layout-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
  .custom-post-loop.layout-grid .post-item {
    padding: 10px 6px !important;
    border-radius: 10px !important;
  }
  .custom-post-loop.layout-grid .featured-image img {
    height: 140px !important;
    object-fit: cover;
    border-radius: 10px 10px 0 0 !important;
  }
  .custom-post-loop.layout-grid .post-item h3 {
    font-size: 1.1rem !important;
    margin: 0.5em 0 0.2em 0 !important;
  }
  .custom-post-loop.layout-grid .excerpt {
    font-size: 0.98rem !important;
    margin-bottom: 0.5em !important;
  }
  .custom-post-loop.layout-grid .learn-more-btn {
    font-size: 1rem !important;
    padding: 0.7em 0 !important;
  }
  .custom-testimonial-widget.layout-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .custom-testimonial-widget.layout-grid .testimonial-card {
    padding: 12px 6px !important;
    border-radius: 10px !important;
  }
  .custom-testimonial-widget.layout-grid .testimonial-video img,
  .custom-testimonial-widget.layout-grid .testimonial-video div {
    width: 100% !important;
    height: 140px !important;
    border-radius: 10px 10px 0 0 !important;
    object-fit: cover;
  }
  .custom-testimonial-widget.layout-grid .testimonial-name {
    font-size: 1.1rem !important;
  }
  .custom-testimonial-widget.layout-grid .testimonial-designation {
    font-size: 0.98rem !important;
  }
  .custom-testimonial-widget.layout-grid .testimonial-text {
    font-size: 0.98rem !important;
  }
}
