﻿a:visited {
  color: #007bff;
}

.kb-category-grid {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

  .kb-category-grid h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
  }

  .kb-category-grid .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .kb-category-grid .item {
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    padding: 1rem;
    border-radius: 0.75rem;
    background-color: #f9f7fe; /* light purple tone as soft background */
    color: inherit;
    transition: background-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 0 1px transparent;
  }

    .kb-category-grid .item:hover {
      background-color: #f0f2ff; /* lightened blue tone */
      box-shadow: 0 0 0 2px #565eed33; /* subtle theme-colored outline */
    }

  .kb-category-grid .icon {
    font-size: 1.8rem;
    margin-right: 1rem;
    background-color: #e1e3fd; /* soft purple to frame the blue icon */
    color: #565eed; /* your theme blue */
    border-radius: 0.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .kb-category-grid .content h3 {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #565eed; /* theme blue for titles */
    transition: color 0.2s ease;
  }

  .kb-category-grid .item:hover .content h3 {
    color: #3d45c1; /* slightly darker blue on hover */
  }

  .kb-category-grid .content p {
    margin: 0;
    font-size: 0.95rem;
    color: #444;
  }

.category-header, .article-header {
  margin-top: 40px;
}

.category-header h1, .article-header h1 {
  text-align: center;
}

.articles {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  font-family: 'Helvetica Neue', sans-serif;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.category-group {
  margin-bottom: 2rem;
}

.category-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #2c3e50;
  border-left: 4px solid #007bff;
  padding-left: 0.5rem;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.article-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1.2rem;
  background-color: #fff;
  transition: box-shadow 0.3s ease;
}


.article-title {
  font-size: 1.2rem;
  margin: 0 0 0.5rem 0;
  color: #333;
}

.article-summary {
  font-size: 1rem;
  margin: 0 0 0.8rem 0;
  color: #666;
}

.read-more {
  font-weight: bold;
  color: #007bff;
}

  .read-more:hover {
    text-decoration: underline;
  }

.article-card:hover {
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.article-body {
  margin-top: 50px;
}

.no-articles {
  background-color: lightblue;
  padding: 25px;
  border: 1px solid #DDD;
  border-radius: 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.kb-image:hover {
  cursor: pointer;
}

.no-articles i {
  margin-right: 10px;
}

.breadcrumb-content {
  font-family: 'Inter', 'Roboto', 'Segoe UI', sans-serif;
  font-size: 0.875rem; /* 14px */
  color: #6b7280; /* gray-500 */
}

@media (min-width: 600px) {
  .article-list {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 1.2rem;
  }

  .no-articles {
    width: 100%;
  }

  .article-card {
    flex: 0 1 calc(50% - 5rem); /* 2 per row, accounting for 1.2rem gap */
    max-width: calc(50% - 5rem);
  }
}

/* Responsive grid columns */
@media (min-width: 640px) {
  .kb-category-grid .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .kb-category-grid .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
