/* ============================================
   CATEGORY PAGE - SIMPLE & PROFESSIONAL
   ============================================ */

.container {
  max-width: 100%;
  padding-left: clamp(24px, 4vw, 64px);
  padding-right: clamp(24px, 4vw, 64px);
}

/* Category Header */
.category-header {
    background: #f8f9fa;
    padding: 20px 0 20px;
    border-bottom: 1px solid #e5e7eb;
}

.category-header .breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: #6b7280;
}

.category-header .breadcrumb a {
    color: #4b5563;
    text-decoration: none;
}

.category-header .breadcrumb a:hover {
    color: #2563eb;
}

.category-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

.category-description {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
    max-width: 800px;
}

/* Category Section */
.category-section {
    padding: 20px 0;
    background: #ffffff;
}

.category-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
}

/* Sidebar */
.category-sidebar {
    position: relative;
}

.sidebar-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 24px;
}

.sidebar-box h3 {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}

.sidebar-box h4 {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.sidebar-box p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-decoration: none;
    color: #374151;
    font-size: 14px;
    transition: all 0.2s ease;
}

.category-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #111827;
}

.category-item.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    font-weight: 600;
}

.category-name {
    flex: 1;
}

.category-count {
    background: #e5e7eb;
    color: #6b7280;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.category-item.active .category-count {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.help-box {
    background: #eff6ff;
    border-color: #bfdbfe;
}

/* Main Content */
.category-main {
    min-height: 500px;
}

.results-header {
    margin-bottom: 30px;
}

.results-count {
    font-size: 15px;
    color: #6b7280;
    font-weight: 500;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
}

.no-results h3 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.no-results p {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 24px;
}

/* =========================================================
   Report Grid for all
   ========================================================= */

.reports-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 720px) {
  .reports-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .reports-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.featured-reports .card {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: var(--border-width) solid #dfe3ea;
  background: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-reports .card-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Meta (category + year) */
.featured-reports .card-meta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);

  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Accent dot */
.featured-reports .card-meta::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1f3a8a; /* calm primary */
}

/* Title */
.featured-reports .card-title {
  font-size: 1.125rem;
  line-height: 1.4;
  margin-bottom: var(--space-3);
  color: var(--color-text-primary);
}

/* Content */
.featured-reports .card-content p {
  font-size: 0.85rem;
  line-height: 1.25;
  color: var(--color-text-body);
  margin-bottom: 0;
}

/* Actions separator */
.featured-reports .card-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;

  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: var(--border-width) solid var(--color-border);
}

/* Softer secondary button inside cards */
.featured-reports .btn-secondary {
  background: var(--color-bg-soft);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #e5e7eb;
}

.pagination-btn {
    padding: 10px 18px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    text-decoration: none;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #111827;
}

.pagination-numbers {
    display: flex;
    gap: 6px;
}

.page-num {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    text-decoration: none;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.page-num:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #111827;
}

.page-num.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    font-weight: 600;
}

.page-dots {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 968px) {
    .category-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .category-sidebar {
        order: 2;
    }

    .category-main {
        order: 1;
    }

    .sidebar-box {
        padding: 20px;
    }
}

@media (max-width: 640px) {
    .category-header {
        padding: 30px 0 40px;
    }

    .category-header h1 {
        font-size: 26px;
    }

    .category-section {
        padding: 40px 0;
    }

    .reports-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .pagination-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .page-num {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}