:root {
  --brand-orange: #ed6c00;
  --brand-orange-hover: #c05500;
  --link-hover-color: #505050;
  --brand-gray: #727171;
  --text-primary: #2c3e50;
  --text-secondary: #666666;
  --text-muted: #999999;
  --border-color: #e0e0e0;
  --bg-light: #f0f2f5;
  --radius-lg: 12px;
  --radius-md: 8px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --navbar-shadow: 0 2px 4px rgba(0,0,0,0.04);
  --transition-base: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    color: var(--text-primary);
    background-color: var(--bg-light);
}

.home-hero {
  background: linear-gradient(180deg, rgba(255,255,255,0.75) 0%, rgba(245,245,244,0) 100%);
  padding: 3.75rem 1rem;
  margin-bottom: 0.5rem;
  border-bottom: none;
  position: relative;
  overflow: hidden;
  box-shadow: none;
}

.home-hero h1 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 1rem;
}

.home-hero .lead {
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

.tool-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: var(--transition-base);
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.border-ccc { border-color: var(--border-color) !important; }

.article-list-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: #fff;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.article-item {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
    position: relative;
}

.article-item:last-child {
    border-bottom: none;
}

.article-item:hover {
    background-color: #fcfcfc;
}

.article-item-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.article-item-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.article-item-title a:hover {
    color: var(--brand-orange);
    text-decoration: none;
}

.article-item-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.pagination .page-item .page-link {
    color: var(--text-primary);
    border-color: #dee2e6;
    margin: 0 2px;
    border-radius: 4px;
}

.pagination .page-item.active .page-link {
    background-color: var(--brand-orange);
    border-color: var(--brand-orange);
    color: #fff;
}

.pagination .page-item .page-link:hover {
    color: var(--brand-orange);
    background-color: #fff;
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link:hover {
    color: #fff;
    background-color: var(--brand-orange);
    border-color: var(--brand-orange);
}

.article-meta {
  color: var(--brand-gray);
  font-size: 0.9rem;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 1rem 0;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.sidebar-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f0f0f0;
  position: relative;
  color: var(--text-primary);
}

.sidebar-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--brand-orange);
}

.page-nav-link {
  text-decoration: none;
  color: var(--text-primary);
  display: block;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  background-color: #f8f9fa;
}

.page-nav-link:hover {
  background-color: #fff;
  border-color: var(--brand-orange);
  color: var(--brand-orange);
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.tool-card.h-auto {
  height: auto !important;
}
