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

/* Category label bar — "Category: ??????? ??????" */
.cat-label-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0 12px;
  border-bottom: 2px solid var(--teal);
  margin-bottom: 16px;
}
.cat-label-tag {
  font-size: 14px;
  color: #555;
  font-family: sans-serif;
}
.cat-label-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--teal);
}

/* ===========================
   PAGE LAYOUT
=========================== */
.cat-page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: flex-start;
}
.cat-main { min-width: 0; }

/* ===========================
   ARTICLE CARDS — 2-col grid
=========================== */
.cat-articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cat-article-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  border: 1px solid #e8e8e8;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.cat-article-card:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,0.10);
}

/* Image */
.cat-article-img {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16/10;
  background: #eee;
}
.cat-article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.cat-article-card:hover .cat-article-img img {
  transform: scale(1.04);
}

/* Body */
.cat-article-body {
  padding: 12px 14px 16px;
}

/* Date/time meta */
.cat-article-meta {
  font-size: 12.5px;
  color: #999;
  font-family: sans-serif;
  margin-bottom: 7px;
}
.cat-article-meta i {
  margin-right: 4px;
  color: #bbb;
}

/* Title */
.cat-article-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: #111;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.cat-article-card:hover .cat-article-title {
  color: var(--teal);
}

/* Source + excerpt */
.cat-article-source {
  font-size: 13.5px;
  color: #555;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cat-source-badge {
  color: var(--teal);
  font-weight: 700;
  font-size: 13px;
}

/* ===========================
   RIGHT SIDEBAR
=========================== */
.cat-sidebar {
  position: sticky;
  top: 58px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Each sidebar section */
.cat-sb-section {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}
.cat-sb-section:last-of-type {
  margin-bottom: 0;
}

/* Section heading — teal bg, rounded top, orange left accent */
.cat-sb-heading {
  background: var(--teal);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 11px 16px;
  border-radius: 6px 6px 0 0;
  border-left: 5px solid var(--accent);
  letter-spacing: 0.3px;
}

/* Article list */
.cat-sb-list {
  padding: 4px 0;
}

.cat-sb-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 12px;
  border-bottom: 1px solid #f2f2f2;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s;
}
.cat-sb-item:last-child { border-bottom: none; }
.cat-sb-item:hover { background: #f7fdfd; }

.cat-sb-item img {
  width: 88px;
  height: 62px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
  display: block;
}
.cat-sb-item p {
  font-size: 13.5px;
  line-height: 1.55;
  color: #222;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.cat-sb-item:hover p { color: var(--teal); }

/* Ad block */
.cat-sb-ad {
  margin-top: 14px;
  text-align: center;
}
.cat-sb-ad-label {
  font-size: 10px;
  color: #aaa;
  font-family: sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.cat-sb-ad-box {
  width: 300px;
  height: 250px;
  max-width: 100%;
  background: #f0f0f0;
  border: 1px dashed #ccc;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 13px;
  font-family: sans-serif;
  text-align: center;
  line-height: 1.8;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .cat-page-layout { grid-template-columns: 1fr; }
  .cat-sidebar { position: static; }
}
@media (max-width: 600px) {
  .cat-articles-grid { grid-template-columns: 1fr; }
}
