/* Shared article list + detail styles (Material Kit aligned) */

/* ---- Layout helpers ---- */
.article-sidebar-sticky {
  position: sticky;
  top: 100px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.article-meta .badge {
  margin-right: 0.35rem;
  margin-bottom: 0.25rem;
}

.article-meta-date {
  color: #6c757d;
  font-size: 0.875rem;
  white-space: nowrap;
}

.article-toc a {
  color: #344767;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.article-toc a:hover {
  color: #4caf50;
  padding-left: 4px;
}

.article-toc li {
  margin-bottom: 0.5rem;
}

.article-toc li:last-child {
  margin-bottom: 0;
}

/* ---- List page ---- */
.article-list .list-group-item {
  border: 0;
  border-radius: 0.5rem !important;
  margin-bottom: 0.75rem;
  padding: 1.1rem 1.25rem;
  border-left: 3px solid transparent;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.article-list .list-group-item:hover {
  border-left-color: #4caf50;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.12);
  transform: translateY(-1px);
  background: #fff;
  z-index: 1;
}

.article-list-item-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.article-list-item-header h2 {
  margin-bottom: 0;
  color: #344767;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
}

.article-list .list-group-item:hover .article-list-item-header h2 {
  color: #2e7d32;
}

.article-list-item-date {
  color: #8392ab;
  font-size: 0.8rem;
  white-space: nowrap;
  padding-top: 0.15rem;
}

.article-list-item-summary {
  margin-bottom: 0.55rem;
  color: #67748e;
  font-size: 0.875rem;
  line-height: 1.6;
}

.article-list-item-tags .badge {
  font-weight: 500;
  margin-right: 0.35rem;
  margin-bottom: 0.2rem;
}

.article-list-more {
  text-align: center;
  margin-top: 1.5rem;
  padding: 1rem 0 0.25rem;
  color: #8392ab;
}

/* ---- Article body ---- */
.article-content {
  line-height: 1.8;
  font-size: 16px;
  color: #344767;
}

.article-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.article-content p {
  margin-bottom: 1rem;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content .table-responsive {
  margin: 1.5rem 0;
}

.article-content table {
  margin: 1.5rem 0;
}

.article-content .table-responsive table {
  margin: 0;
}

.article-content blockquote {
  border-left: 4px solid #2196f3;
  margin: 1.5rem 0;
  color: #6c757d;
  background-color: #f8f9fa;
  padding: 1rem 1rem 1rem 1.15rem;
  border-radius: 0 0.5rem 0.5rem 0;
}

/* Core takeaway — success/info instead of purple gradient */
.highlight-box {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(33, 150, 243, 0.08) 100%);
  color: #344767;
  padding: 1.25rem 1.5rem;
  border-radius: 0.75rem;
  margin: 1.5rem 0;
  border-left: 4px solid #4caf50;
}

.highlight-box h5 {
  color: #2e7d32;
}

.highlight-box .material-icons {
  color: #4caf50;
}

.service-card {
  background: #f8f9fa;
  border-radius: 0.75rem;
  padding: 1.35rem 1.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid #2196f3;
}

.service-card h5 {
  color: #344767;
}

@media (max-width: 767.98px) {
  .article-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-list-item-header {
    flex-direction: column;
  }

  .article-sidebar-sticky {
    position: static;
  }
}
