/* ===================== CATEGORY PAGE ===================== */

/* Category hero */
.cat-hero {
  position: relative;
  padding: 56px 32px 0;
  overflow: hidden;
}

.cat-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cat-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.8) 100%);
  z-index: 1;
}

.cat-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding-bottom: 32px;
}

.cat-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 14px;
}

.cat-hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 42px;
  color: white;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.cat-hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 24px;
}

/* Category stats */
.cat-stats {
  display: flex;
  gap: 28px;
  margin-bottom: 28px;
}

.cat-stat { text-align: center; }

.cat-stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: white;
}

.cat-stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Subtopic tabs */
.subtopic-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.subtopic-strip::-webkit-scrollbar { display: none; }

.subtopic-tab {
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.08);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.subtopic-tab:hover { background: rgba(255,255,255,0.14); color: white; }
.subtopic-tab.active { background: white; color: var(--ink); font-weight: 700; }

/* Page layout (2-column) */
.page-layout {
  max-width: 1200px;
  margin: 32px auto 0;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
  align-items: start;
}

.main-col { min-width: 0; }

/* Filter bar */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.filter-count { font-size: 13px; color: var(--gray); }

.filter-sort {
  display: flex;
  gap: 6px;
  background: var(--light);
  border-radius: 10px;
  padding: 4px;
}

.filter-sort-btn {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  background: none;
  font-family: 'DM Sans', sans-serif;
}

.filter-sort-btn.active { background: white; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,0.08); }

.filter-view-btns {
  display: flex;
  gap: 4px;
}

.filter-view-btn {
  width: 32px; height: 32px;
  border-radius: 7px;
  background: var(--light);
  display: flex; align-items: center;
  justify-content: center; cursor: pointer;
  border: none;
  transition: background 0.15s;
}

.filter-view-btn.active { background: var(--cat1-light); color: var(--cat1); }

/* Featured article */
.featured-article {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 20px rgba(49,46,129,0.08);
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 32px;
}

.featured-article:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(49,46,129,0.14);
}

.featured-thumb {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-emoji { font-size: 96px; opacity: 0.2; user-select: none; }

.featured-badge-pin {
  position: absolute; top: 16px; left: 16px;
  background: var(--amber, #F59E0B); color: var(--ink);
  padding: 5px 12px; border-radius: 20px;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
}

.featured-body {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  flex: 1;
}

.featured-badge {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
}

.featured-title {
  font-family: 'Syne', 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.featured-excerpt {
  font-size: 14.5px;
  color: var(--gray);
  line-height: 1.65;
}

.featured-meta {
  font-size: 12px;
  color: var(--gray2, #9CA3AF);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.featured-read-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--indigo, #312E81); color: white;
  padding: 10px 20px; border-radius: 10px;
  font-size: 13px; font-weight: 700;
  transition: background 0.15s, gap 0.15s;
  margin-top: 4px; align-self: flex-start;
}
.featured-article:hover .featured-read-btn { gap: 10px; }

/* Trending list (sidebar) */
.trending-list { display: flex; flex-direction: column; }
.trending-item {
  display: flex; gap: 12px; padding: 11px 0;
  border-bottom: 1px solid var(--light, #F3F4F6);
  transition: opacity 0.15s; align-items: flex-start;
}
.trending-item:last-child { border-bottom: none; padding-bottom: 0; }
.trending-item:hover { opacity: 0.72; }
.trending-num {
  font-family: 'Syne', 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; font-size: 20px;
  color: var(--light, #F3F4F6);
  min-width: 28px; line-height: 1.2; flex-shrink: 0;
}
.trending-title {
  font-family: 'Syne', 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 13px;
  color: var(--ink, #111827); line-height: 1.35;
}
.trending-meta { font-size: 11px; color: var(--gray2, #9CA3AF); margin-top: 3px; }

/* Article grid (category page) */
.cat-article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

/* Article list view */
.article-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }

.list-card {
  background: white; border-radius: 14px;
  display: flex; gap: 0; overflow: hidden;
  cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 10px rgba(49,46,129,0.05);
}
.list-card:hover { transform: translateX(4px); box-shadow: 0 4px 20px rgba(49,46,129,0.1); }

.list-thumb {
  width: 160px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}

.list-thumb-emoji { font-size: 44px; opacity: 0.2; user-select: none; }

.list-accent { width: 4px; flex-shrink: 0; }

.list-body {
  padding: 16px 20px; flex: 1;
  display: flex; flex-direction: column;
  justify-content: center; gap: 6px;
}

.list-cat { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.list-title { font-family: 'Syne', 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 15px; color: var(--ink); line-height: 1.3; }
.list-excerpt { font-size: 12.5px; color: var(--gray); line-height: 1.55; }
.list-meta { font-size: 11px; color: var(--gray2, #9CA3AF); display: flex; gap: 10px; margin-top: 4px; }

.list-num {
  position: absolute; bottom: 8px; right: 10px;
  font-family: 'Syne', 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; font-size: 36px;
  color: rgba(255,255,255,0.18); line-height: 1;
}

/* Load more */
.load-more-wrap { display: flex; justify-content: center; margin-bottom: 48px; }
.load-more-btn {
  display: flex; align-items: center; gap: 10px;
  background: white; border: 2px solid var(--light, #F3F4F6);
  color: var(--ink); padding: 13px 32px;
  border-radius: 12px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all 0.15s;
  font-family: 'DM Sans', 'Plus Jakarta Sans', sans-serif;
}
.load-more-btn:hover { border-color: var(--indigo, #312E81); color: var(--indigo, #312E81); background: rgba(49,46,129,0.04); }

/* Other categories section */
.other-categories {
  max-width: 1200px;
  margin: 56px auto 0;
  padding: 0 32px;
}

.other-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.other-cat-card {
  border-radius: 16px;
  padding: 24px 20px;
  color: white;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.other-cat-card:hover { transform: translateY(-3px); }

.other-cat-emoji { font-size: 28px; margin-bottom: 4px; }

.other-cat-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
}

.other-cat-count {
  font-size: 11px;
  opacity: 0.6;
}

/* ===================== RESPONSIVE — Category ===================== */
@media (max-width: 960px) {
  .page-layout {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }

  .cat-hero { padding: 40px 16px 0; }
  .cat-hero-title { font-size: 32px; }
  .cat-article-grid { grid-template-columns: 1fr; }
  .other-cat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .cat-hero-title { font-size: 26px; }
  .cat-stats { gap: 20px; }
  .featured-article { grid-template-columns: 1fr; }
  .featured-thumb { min-height: 220px; }
  .other-cat-grid { grid-template-columns: 1fr 1fr; }
  .list-thumb { width: 100px; }
}
