/* =========================================================
   JTS BLOG (Cleaned + Deduped)
   Safe: does not touch header/menu CSS
   ========================================================= */

/* Container */
.jts-blog-container{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero */
.jts-blog-hero{
  padding: 48px 0 26px;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.jts-blog-title{
  font-size: 40px;
  line-height: 1.1;
  margin: 0 0 8px;
  font-weight: 800;
}

.jts-blog-subtitle{
  margin: 0 0 18px;
  color: rgba(0,0,0,.70);
  font-size: 16px;
  line-height: 1.5;
}

/* Optional: if your hero content is wrapped in .hero-content on blog only */
.jts-blog-hero .hero-content{
  padding: 40px 20px 32px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* Search */
.jts-blog-search{
  display:flex;
  gap:10px;
  align-items:center;
  max-width: 520px;
}

.jts-blog-search input{
  flex:1;
  height: 44px;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 12px;
  padding: 0 14px;
  outline: none;
}

.jts-blog-search button{
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* List + Grid */
.jts-blog-list{
  padding: 26px 0 56px;
}

.jts-blog-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Cards */
.jts-blog-card{
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  display:flex;
  flex-direction:column;
  min-height: 100%;
}

.jts-blog-card__media{
  display:block;
  aspect-ratio: 16/10;
  overflow:hidden;
  background: rgba(0,0,0,.03);
}

.jts-blog-card__media img{
  width:100%;
  height:100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.jts-blog-card:hover .jts-blog-card__media img{
  transform: scale(1.03);
}

.jts-blog-card__placeholder{
  width:100%;
  height:100%;
  background: linear-gradient(135deg, rgba(0,0,0,.04), rgba(0,0,0,.02));
}

.jts-blog-card__body{
  padding: 16px 16px 18px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}

/* Meta row */
.jts-blog-card__meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  font-size: 13px;
  color: rgba(0,0,0,.62);
}

/* Category chip */
.jts-chip{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(0,0,0,.05);
  text-decoration: none;
  color: inherit;
}

.jts-chip:hover{
  background: rgba(0,0,0,.08);
}

/* Title */
.jts-blog-card__title{
  margin:0;
  font-size: 17px;
  line-height: 1.25;
}

.jts-blog-card__title a{
  text-decoration:none;
  color: inherit;
}

/* Excerpt */
.jts-blog-card__excerpt{
  margin:0;
  color: rgba(0,0,0,.72);
  font-size: 14px;
  line-height: 1.5;
}

/* Clamp excerpt to 3 lines (optional) */
.jts-blog-card__excerpt{
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* CTA */
.jts-blog-card__cta{
  margin-top:auto;
}

.jts-blog-card__link{
  font-weight: 800;
  text-decoration: none;
}

/* Pagination */
.jts-blog-pagination{
  margin-top: 22px;
}

.jts-blog-pagination .page-numbers{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  margin: 0 6px 6px 0;
  text-decoration:none;
}

.jts-blog-pagination .page-numbers.current,
.jts-blog-pagination .current{
  font-weight: 800;
}

/* Responsive */
@media (max-width: 1024px){
  .jts-blog-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px){
  .jts-blog-grid{
    grid-template-columns: 1fr;
  }

  .jts-blog-title{
    font-size: 30px;
  }

  .jts-blog-search{
    flex-direction:column;
    align-items:stretch;
  }
}
