.column-wrap {
  width: 1300px;
  margin: 200px auto;
}

.page-title {
  font-size: 38px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 40px;
}

.subtitle {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-bottom: 40px;
}

.category {
  display: flex;
  justify-content: center;
  gap: 30px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
  margin-bottom: 40px;
  list-style: none;
  padding-left: 0;
}

.category li {
  cursor: pointer;
  font-size: 20px;
  color: #888;
  position: relative;
}

.category li.active {
  color: #000;
  font-weight: 500;
}

.category li.active::after {
  content: "";
  position: absolute;
  bottom: -11px;
  left: 50%;
  transform: translateX(-50%);
  width: 33px;
  height: 2px;
  background-color: #000;
}

.section-title {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 20px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.post-item {
  background: #fff;
  overflow: hidden;
}

.post-item img {
  height: 225px;
  width: 100%;
  display: block;
}

.post-text {
  padding: 15px 0;
}
.post-cat-green {
    color: #0d5a65;
}
.post-cat-blue {
  color: #0080ff;
}
.post-cat-gray {
    color: #e5e7eb;
}
.post-cat-blgr {
    color: #4d4d4d;
}
.post-cat-red {
    color: #FF635D;
}
.post-cat-purple {
    color: #D189E2;
}
.post-title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 8px;
  color: #222;
  display: -webkit-box;
  -webkit-line-clamp: 2;     
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-desc {
  font-size: 13px;
  color: #777;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;     
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 50px;
}

.pagination a {
  color: #999;
  text-decoration: none;
  font-size: 18px;
  padding: 5px 10px;
  border-radius: 3px;
}

.pagination a.active {
  color: #000;
  font-weight: bold;
}

.pagination a:hover {
  color: #000;
}
@media screen and (max-width: 1200px) {
  .column-wrap {
    width: 90%;
    margin: 150px auto;
  }

  .post-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .page-title {
    font-size: 32px;
  }

  .category {
    flex-wrap: wrap;
    gap: 20px;
    font-size: 18px;
  }

  .post-title {
    font-size: 14px;
  }

  .post-desc {
    font-size: 12px;
  }
}

@media screen and (max-width: 850px) {
  html {
    font-size: 3.611vw;
  }

  body {
    background-color: #f8f9fa;
  }

  .column-wrap {
    width: 92%;
    margin: 10rem auto;
  }

  .page-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
  }

   .category {
    display: flex;
    flex-wrap: nowrap;            
    justify-content: flex-start;  
    overflow-x: auto;         
    overflow-y: hidden;
    white-space: nowrap;      
    gap: 1rem;
    padding: 0.6rem 0.8rem;
    margin: 0 auto 2rem;
    border-bottom: 1px solid #ddd;
    scroll-behavior: smooth;     
  }

  .category::-webkit-scrollbar {
    height: 3px;                
  }

  .category::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
  }

  .category::-webkit-scrollbar-track {
    background: transparent;
  }

  .category li {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
  }

  .post-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .post-item img {
    height: 10rem;
    width: 100%;
  }

  .post-text {
    padding: 0.8rem 0.3rem;
  }

  .post-title {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .post-desc {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .pagination {
    gap: 0.4rem;
    margin-top: 2rem;
  }

  .pagination a {
    font-size: 0.95rem;
    padding: 0.3rem 0.5rem;
  }
}

/* =========================================
   📱 Super small screens (max 480px)
