
.tagarticles-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 25px;
}


.tagarticle-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.tagarticle-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.tagarticle-content {
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
}

.tagarticle-title {
  margin: 0 0 10px 0;
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.4;
}

.tagarticle-title a {
  color: #222;
  text-decoration: none;
}

.tagarticle-title a:hover {
  color: #006699;
}

.tagarticle-date {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 10px;
}

.tagarticle-snippet {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
  margin-bottom: 12px;
}

.tag-read-more {
  margin-top: auto;
  color: #006699;
  font-weight: 500;
  text-decoration: none;
}

.tag-read-more:hover {
  text-decoration: underline;
}

.tag-title {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
  font-size: 1.8rem;
  color: #000;
  text-align: center;
}


.tag-pagination {
  margin: 40px 0;
  text-align: center;
  padding-bottom: 20px;
}

.tag-pagination a,
.tag-pagination span {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 14px;
  border-radius: 6px;
  background: #f0f0f0;
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
}

.tag-pagination a:hover {
  background: #006699;
  color: #fff;
}

.tag-pagination .current {
  background: #006699;
  color: #fff;
  font-weight: bold;
}


@media (max-width: 600px) {
  .tagarticles-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tagarticle-thumb {
    aspect-ratio: 4/3;
  }
}
