/* Artikel listing — referensi index (2).html (tanpa header/footer) */
.articles-page {
  --tk-bg: #0a0a0a;
  --tk-bg-elev: #141414;
  --tk-border: #2a2a2a;
  --tk-primary: #f97316;
  --tk-primary-dark: #c2570f;
  --tk-text: #f5f5f5;
  --tk-text-muted: #a1a1a1;
  --tk-text-dim: #737373;
  color: var(--tk-text);
}

.articles-page a {
  color: inherit;
  text-decoration: none;
}

.articles-page__hero {
  padding: 48px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--tk-border);
}

.articles-page__hero h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.25;
}

.articles-page__hero h1 span {
  color: var(--tk-primary);
}

.articles-page__hero p {
  color: var(--tk-text-muted);
  max-width: 560px;
  margin: 0 auto 24px;
  font-size: 16px;
}

.articles-page__search {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  background: var(--tk-bg-elev);
  border: 1px solid var(--tk-border);
  border-radius: 10px;
  overflow: hidden;
}

.articles-page__search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--tk-text);
  padding: 14px 18px;
  font-size: 14px;
  min-width: 0;
}

.articles-page__search input::placeholder {
  color: var(--tk-text-dim);
}

.articles-page__search button {
  background: var(--tk-primary);
  border: none;
  color: #0a0a0a;
  padding: 0 22px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  flex-shrink: 0;
}

.articles-page__search button:hover {
  background: var(--tk-primary-dark);
}

.articles-page__section {
  padding: 40px 0 50px;
}

.articles-page .section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 1rem;
}

.articles-page .section-head h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--tk-text);
}

.articles-page .section-head h2 .dot {
  color: var(--tk-primary);
}

.articles-page .see-all {
  font-size: 14px;
  color: var(--tk-primary);
  font-weight: 600;
  white-space: nowrap;
}

.articles-page .see-all:hover {
  opacity: 0.85;
}

.articles-page .categories {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-bottom: 30px;
  padding-bottom: 6px;
}

.articles-page .categories::-webkit-scrollbar {
  height: 4px;
}

.articles-page .categories::-webkit-scrollbar-thumb {
  background: var(--tk-border);
  border-radius: 4px;
}

.articles-page .cat-btn {
  flex-shrink: 0;
  padding: 9px 18px;
  border-radius: 24px;
  border: 1px solid var(--tk-border);
  background: var(--tk-bg-elev);
  color: var(--tk-text-muted);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
  display: inline-block;
}

.articles-page .cat-btn:hover {
  border-color: var(--tk-primary);
  color: var(--tk-text);
}

.articles-page .cat-btn.active {
  background: var(--tk-primary);
  border-color: var(--tk-primary);
  color: #0a0a0a;
}

.articles-page .featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  background: var(--tk-bg-elev);
  border: 1px solid var(--tk-border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 50px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s;
}

.articles-page .featured:hover {
  border-color: var(--tk-primary);
}

.articles-page .featured-img {
  height: 100%;
  min-height: 340px;
  background: linear-gradient(135deg, #2a1a0d, #1c1c1c);
  position: relative;
  overflow: hidden;
}

.articles-page .featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.articles-page .featured-content {
  padding: 36px 36px 36px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.articles-page .badge {
  display: inline-block;
  background: rgba(249, 115, 22, 0.15);
  color: var(--tk-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.articles-page .featured-content h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.3;
  color: var(--tk-text);
}

.articles-page .featured-content p {
  color: var(--tk-text-muted);
  font-size: 15px;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.articles-page .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--tk-text-dim);
}

.articles-page .articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.articles-page .article-card {
  background: var(--tk-bg-elev);
  border: 1px solid var(--tk-border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
  display: block;
  color: inherit;
  cursor: pointer;
}

.articles-page .article-card:hover {
  transform: translateY(-4px);
  border-color: var(--tk-primary);
}

.articles-page .card-img {
  height: 170px;
  background: linear-gradient(135deg, #241409, #171717);
  position: relative;
  overflow: hidden;
}

.articles-page .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.articles-page .card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(10, 10, 10, 0.75);
  color: var(--tk-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}

.articles-page .card-body {
  padding: 18px 20px 20px;
}

.articles-page .card-body h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
  color: var(--tk-text);
}

.articles-page .card-body p {
  font-size: 13.5px;
  color: var(--tk-text-muted);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.articles-page .card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--tk-text-dim);
  border-top: 1px solid var(--tk-border);
  padding-top: 14px;
}

.articles-page__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 0;
  color: var(--tk-text-muted);
}

.articles-page__pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.articles-page__page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--tk-border);
  background: var(--tk-bg-elev);
  color: var(--tk-text-muted);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}

.articles-page__page-btn:hover:not(.is-disabled):not(.is-active) {
  border-color: var(--tk-primary);
  color: var(--tk-text);
}

.articles-page__page-btn.is-active {
  background: var(--tk-primary);
  border-color: var(--tk-primary);
  color: #0a0a0a;
}

.articles-page__page-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* Archive kategori / tag */
.articles-page__archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.articles-page__archive-card {
  background: var(--tk-bg-elev);
  border: 1px solid var(--tk-border);
  border-radius: 14px;
  padding: 22px 20px;
  transition: transform 0.25s, border-color 0.25s;
  display: block;
}

.articles-page__archive-card:hover {
  transform: translateY(-4px);
  border-color: var(--tk-primary);
}

.articles-page__archive-card.is-sub {
  margin-left: 12px;
}

.articles-page__archive-card .badge {
  margin-bottom: 12px;
}

.articles-page__archive-count {
  font-size: 13px;
  color: var(--tk-text-dim);
  margin-top: 8px;
}

.articles-page__tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.articles-page__tag-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--tk-border);
  background: var(--tk-bg-elev);
  transition: all 0.2s;
  min-width: 120px;
}

.articles-page__tag-chip:hover {
  border-color: var(--tk-primary);
  transform: translateY(-2px);
}

.articles-page__tag-chip .badge {
  margin-bottom: 0;
}

.articles-page__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--tk-text-dim);
  margin-bottom: 20px;
}

.articles-page__breadcrumb a:hover {
  color: var(--tk-primary);
}

@media (max-width: 900px) {
  .articles-page .featured {
    grid-template-columns: 1fr;
  }

  .articles-page .featured-content {
    padding: 0 28px 28px;
  }

  .articles-page .articles-grid,
  .articles-page__archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .articles-page__hero h1 {
    font-size: 30px;
  }

  .articles-page .articles-grid,
  .articles-page__archive-grid {
    grid-template-columns: 1fr;
  }

  .articles-page .featured-content h3 {
    font-size: 22px;
  }
}
