@import url(common.css);
.archive-article {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

.category-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-bottom: 10px;
}



.category-btn {
    flex-shrink: 0;
    font-size: 14px;
    padding: 6px 12px;
    border: 2px solid #008080;
    border-radius: 9999px;
    background: #f0f8ff;
    color: #008080;
    text-decoration: none;
    transition: background 0.2s;
}

.category-btn:hover {
  background: #e0ffff;
}

.article-search {
  margin-bottom: 40px;
}

.article-search form {
  display: flex;
  gap: 10px;
}

.article-search input[type="search"] {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    outline: none;
}

.article-search button {
    padding: 10px 16px;
    background: #008080;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  border: 1px solid #ccc;
  border-radius: 16px;
  padding: 16px;
  background: white;
  position: relative;
}

.thumb-wrap {
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: #f9f9f9;
  border-radius: 12px;
  overflow: hidden;
}

.thumb-inner img,
.thumb-wrap img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
}

.label-now-hiring {
  position: absolute;
  top: 0px;
  right: 10%;
  background: rgb(255, 241, 0);
  color: #000;
  padding: 8px 4px;
  font-weight: bold;
  font-size: 14px;
  border-radius: 0 0px 10px 10px;
  z-index: 10;
}

.sub-title {
  font-size: 14px;
  color: #666;
  margin-bottom: 4px;
}

.article-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
}

.article-excerpt {
  font-size: 14px;
  color: #555;
}

.pagination-wrap {
  margin-top: 40px;
  text-align: center;
}

.pagination-wrap .page-numbers {
  display: inline-block;
  margin: 0 6px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #008080;
  text-decoration: none;
  border: 1px solid #008080;
  transition: all 0.2s;
}

.pagination-wrap .current {
  background: #008080;
  color: white;
  border-color: #008080;
}
.article-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}
.article-link:hover {
  opacity: 0.85;
}

@media (max-width: 1024px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
    .archive-article {
      padding: 6vw 4vw;
    }
  
    .category-filter {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-start;
      gap: 8px;
      margin-bottom: 24px;
    }
  
    .category-btn {
      font-size: 12px;
      padding: 5px 10px;
      border: 2px solid #008080;
      border-radius: 9999px;
      background: #f0f8ff;
      color: #008080;
      text-decoration: none;
      white-space: nowrap;
      flex: 0 0 auto;
    }
  
    .category-btn:hover {
      background: #e0ffff;
    }
  
    .article-search form {
      flex-direction: column;
      gap: 10px;
    }
  
    .article-search input[type="search"] {
      font-size: 14px;
      padding: 10px;
      border: 1px solid #ccc;
      border-radius: 4px;
      width: 100%;
    }
  
    .article-search button {
      font-size: 14px;
      padding: 10px;
      background: #008080;
      color: white;
      border: none;
      cursor: pointer;
      border-radius: 4px;
      width: 100px;
      text-align: center;
      margin: 0 auto;
    }
  
    .article-grid {
      grid-template-columns: 1fr;
      gap: 16px;
    }
  
    .thumb-wrap {
      height: 180px;
    }
  
    .thumb-wrap img {
      width: 100%;
      height: 180px;
      object-fit: cover;
    }
  
    .sub-title {
      font-size: 13px;
    }
  
    .article-title {
      font-size: 16px;
    }
  
    .article-excerpt {
      font-size: 13px;
    }
  
    .pagination-wrap .page-numbers {
      font-size: 14px;
      padding: 6px 10px;
    }
  
    .label-now-hiring {
      font-size: 12px;
      padding: 6px 4px;
    }
  }
  
