/**
 * Wayanad News Daily - Category & Archive Stylesheet
 * Clean, Responsive, High-End Malayalam News Archive
 */

/* Universal Font Application */
.wnd-cat-page-wrapper,
.wnd-cat-page-wrapper * {
  font-family: 'Noto Sans Malayalam', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  box-sizing: border-box;
}

.wnd-cat-page-wrapper {
  background: #f8fafc;
  padding: 24px 0 50px;
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */
.wnd-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 20px;
}

.wnd-breadcrumbs a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.wnd-breadcrumbs a:hover {
  color: #dc2626;
}

.wnd-breadcrumbs-sep {
  color: #cbd5e1;
  font-size: 11px;
}

.wnd-breadcrumbs-current {
  color: #0f172a;
  font-weight: 700;
}

/* ==========================================================================
   CATEGORY HERO / HEADER BANNER
   ========================================================================== */
.wnd-cat-hero {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 26px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.wnd-cat-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: #2563eb;
  border-radius: 4px 0 0 4px;
}

.wnd-cat-hero-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wnd-cat-badge-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 4px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.wnd-cat-main-title {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.35;
}

.wnd-cat-desc {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.wnd-cat-hero-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.wnd-cat-count-pill {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   LAYOUT GRID (CONTENT + STICKY SIDEBAR)
   ========================================================================== */
.wnd-cat-layout-grid {
  display: grid;
  grid-template-columns: 2.4fr 1fr;
  gap: 32px;
  align-items: start;
}

.wnd-cat-main-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ==========================================================================
   LEAD STORY CARD (FIRST POST IN CATEGORY)
   ========================================================================== */
.wnd-cat-lead-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wnd-cat-lead-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.wnd-lead-thumb-link {
  width: 100%;
  height: 100%;
  min-height: 250px;
  position: relative;
  overflow: hidden;
  display: block;
  background: #0f172a;
}

.wnd-lead-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.wnd-cat-lead-card:hover .wnd-lead-thumb {
  transform: scale(1.05);
}

.wnd-lead-content {
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.wnd-lead-tag-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.wnd-lead-badge {
  background: #dc2626;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.wnd-lead-title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
}

.wnd-lead-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.wnd-lead-title a:hover {
  color: #2563eb;
}

.wnd-lead-excerpt {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wnd-lead-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #94a3b8;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.wnd-read-more-link {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.wnd-read-more-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   FEED ARTICLES LIST (2-COLUMN CARDS OR RICH LIST)
   ========================================================================== */
.wnd-cat-feed-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.wnd-cat-post-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wnd-cat-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.wnd-card-thumb-wrap {
  width: 100%;
  height: 170px;
  overflow: hidden;
  position: relative;
  display: block;
  background: #0f172a;
}

.wnd-card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.wnd-cat-post-card:hover .wnd-card-thumb-img {
  transform: scale(1.06);
}

.wnd-card-body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.wnd-card-headline {
  margin: 0 0 10px;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.4;
}

.wnd-card-headline a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wnd-card-headline a:hover {
  color: #2563eb;
}

.wnd-card-snippet {
  font-size: 13px;
  color: #64748b;
  line-height: 1.55;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wnd-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: #94a3b8;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.wnd-cat-pagination {
  margin: 28px 0 10px;
  display: flex;
  justify-content: center;
}

.wnd-cat-pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.wnd-cat-pagination .page-numbers {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  min-width: 40px;
  text-align: center;
}

.wnd-cat-pagination .page-numbers:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
}

.wnd-cat-pagination .page-numbers.current {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.wnd-cat-pagination .page-numbers.dots {
  border: none;
  background: transparent;
  color: #94a3b8;
  padding: 8px 6px;
  min-width: auto;
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */
@media (max-width: 1024px) {
  .wnd-cat-layout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .wnd-cat-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 20px;
  }

  .wnd-cat-main-title {
    font-size: 22px;
  }

  .wnd-cat-lead-card {
    grid-template-columns: 1fr;
  }

  .wnd-lead-thumb-link {
    height: 200px;
    min-height: auto;
  }

  .wnd-cat-feed-grid {
    grid-template-columns: 1fr;
  }
}
