/* OrbitReads global styles */
body { background: #f5fff8; }
.brand { color: #0b6b3a; font-weight: 600; }
.navbar-brand img { 
  filter: drop-shadow(0 1px 2px rgba(11, 107, 58, 0.1)); 
}
.article-card { border-left: 4px solid #0b6b3a; }
.badge-green { background-color: #0b6b3a; }
a { color: #0b6b3a; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Global advertising layout */
.site-shell {
  max-width: 1320px;
}

.site-content-column {
  min-width: 0;
}

.site-ad-rail {
  position: sticky;
  top: 88px;
}

.isok-ad {
  margin-bottom: 1rem;
}

.isok-ad__link {
  display: grid;
  gap: 0.45rem;
  min-height: 132px;
  padding: 1rem;
  color: #17202a;
  text-decoration: none;
  background: linear-gradient(135deg, #ffffff 0%, #eef7ff 52%, #fff7e6 100%);
  border: 1px solid rgba(23, 32, 42, 0.1);
  border-left: 4px solid #0b6b3a;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(23, 32, 42, 0.08);
}

.isok-ad__link:hover {
  color: #17202a;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(23, 32, 42, 0.12);
}

.isok-ad__eyebrow {
  color: #6f4e00;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.isok-ad__title {
  color: #102033;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.isok-ad__copy {
  color: #4d5b68;
  font-size: 0.9rem;
  line-height: 1.45;
}

.isok-ad__cta {
  justify-self: start;
  align-self: end;
  padding: 0.4rem 0.7rem;
  color: #ffffff;
  background: #0b6b3a;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
}

.isok-ad--leaderboard .isok-ad__link {
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 104px;
  padding: 1rem 1.25rem;
}

.isok-ad--leaderboard .isok-ad__eyebrow,
.isok-ad--leaderboard .isok-ad__title,
.isok-ad--leaderboard .isok-ad__copy {
  grid-column: 1;
}

.isok-ad--leaderboard .isok-ad__cta {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  white-space: nowrap;
}

.isok-ad--inline .isok-ad__link {
  min-height: 96px;
  background: linear-gradient(135deg, #ffffff 0%, #f4fbf7 46%, #eef7ff 100%);
}

.isok-ad--rail .isok-ad__link {
  min-height: 180px;
}

.isok-ad--compact .isok-ad__link,
.isok-ad.compact .isok-ad__link {
  min-height: 148px;
  background: linear-gradient(135deg, #ffffff 0%, #fff7e6 48%, #f5f8fb 100%);
}

.isok-ad--subdued .isok-ad__link,
.isok-ad.subdued .isok-ad__link,
.isok-ad--footer .isok-ad__link {
  min-height: 92px;
  background: #ffffff;
}

.isok-ad.article {
  margin: 2rem 0;
  text-indent: 0;
}

.isok-ad.article .isok-ad__link {
  min-height: 112px;
  background: linear-gradient(135deg, #ffffff 0%, #eef7ff 45%, #f7fff4 100%);
}

.isok-ad.article * {
  text-indent: 0;
}

.isok-ad.article-end {
  margin-top: 2.25rem;
  margin-bottom: 0;
}

/* Content body styles */
.content-body img { 
  max-width: 100%; 
  height: auto; 
  display: block;
  margin: 1rem auto;
}

/* Article content typography for Chinese reading */
.content-body {
  font-size: 16px;
  line-height: 1.8;
  color: #2c3e50;
}

.content-body p {
  text-indent: 2em; /* 中文段落首行缩进2个字符 */
  margin-bottom: 1.2em;
  text-align: justify; /* 两端对齐 */
  word-break: break-word;
  hyphens: auto;
}

.content-body h1,
.content-body h2,
.content-body h3,
.content-body h4,
.content-body h5,
.content-body h6 {
  text-indent: 0; /* 标题不缩进 */
  margin-top: 2em;
  margin-bottom: 1em;
  font-weight: 600;
  color: #0b6b3a;
}

.content-body h1 { font-size: 1.75em; }
.content-body h2 { font-size: 1.5em; }
.content-body h3 { font-size: 1.3em; }
.content-body h4 { font-size: 1.15em; }

.content-body ul,
.content-body ol {
  text-indent: 0; /* 列表不缩进 */
  margin: 1.2em 0;
  padding-left: 2em;
}

.content-body li {
  text-indent: 0;
  margin-bottom: 0.5em;
  line-height: 1.6;
}

.content-body blockquote {
  text-indent: 0; /* 引用不缩进 */
  border-left: 4px solid #0b6b3a;
  margin: 1.5em 0;
  padding: 1em 1.5em;
  background-color: #f8fffe;
  font-style: italic;
  position: relative;
}

/* Center images in different contexts - but exclude thumbnails and navigation */
.content-body p img,
.content-body div img,
.contain_detail_cnt img {
  display: block;
  margin: 2rem auto;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(11, 107, 58, 0.15);
  transition: all 0.3s ease;
  border: 1px solid rgba(11, 107, 58, 0.1);
}

.content-body p img:hover,
.content-body div img:hover,
.contain_detail_cnt img:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(11, 107, 58, 0.25);
}

/* Center images in article containers - exclude thumb and recommended images */
.article-detail img {
  display: block;
  margin: 2rem auto;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(11, 107, 58, 0.15);
  transition: all 0.3s ease;
  border: 1px solid rgba(11, 107, 58, 0.1);
}

.article-detail img:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(11, 107, 58, 0.25);
}

.content-body table { 
  width: 100%; 
  border-collapse: collapse;
  margin: 2rem 0;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(11, 107, 58, 0.1);
  border: 1px solid rgba(11, 107, 58, 0.1);
}

.content-body table th {
  background: linear-gradient(135deg, #0b6b3a, #0d7c42);
  color: white;
  padding: 1rem;
  font-weight: 600;
  text-align: left;
  border-bottom: none;
}

.content-body table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(11, 107, 58, 0.08);
  vertical-align: top;
}

.content-body table tr:nth-child(even) td {
  background: rgba(11, 107, 58, 0.02);
}

.content-body table tr:hover td {
  background: rgba(11, 107, 58, 0.05);
}

/* Code and pre styling */
.content-body pre,
.content-body code {
  font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
  border-radius: 8px;
}

.content-body pre {
  background: #f8f9fa;
  border: 1px solid rgba(11, 107, 58, 0.15);
  padding: 1.5rem;
  margin: 2rem 0;
  overflow-x: auto;
  box-shadow: 0 2px 8px rgba(11, 107, 58, 0.08);
  position: relative;
}

.content-body pre::before {
  content: "💻";
  position: absolute;
  top: 0.5rem;
  right: 0.8rem;
  opacity: 0.6;
}

.content-body code {
  background: rgba(11, 107, 58, 0.08);
  padding: 0.2rem 0.4rem;
  color: #0b6b3a;
  font-size: 0.9em;
  border: 1px solid rgba(11, 107, 58, 0.1);
}

.content-body pre code {
  background: transparent;
  padding: 0;
  border: none;
  color: inherit;
}

/* Strong and emphasis styling */
.content-body strong {
  font-weight: 700;
  color: #0b6b3a;
}

.content-body em {
  font-style: italic;
  color: #0d7c42;
}

/* Link styling within content */
.content-body a {
  color: #0b6b3a;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(11, 107, 58, 0.3);
  text-underline-offset: 2px;
  transition: all 0.3s ease;
}

.content-body a:hover {
  color: #0d7c42;
  text-decoration-color: #0d7c42;
  text-underline-offset: 4px;
}

/* Article detail layout */
.article-detail { 
  max-width: 820px; 
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(11, 107, 58, 0.08);
  padding: 2.5rem;
  border: 1px solid rgba(11, 107, 58, 0.1);
}

/* Article title styling */
.article-detail h1 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
  margin-bottom: 1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Article meta information */
.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(11, 107, 58, 0.1);
}

.article-date {
  color: #6c757d;
  font-size: 0.95rem;
  font-weight: 500;
}

.article-category {
  background: linear-gradient(135deg, #0b6b3a, #0d7c42);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(11, 107, 58, 0.2);
}

.article-category:hover {
  background: linear-gradient(135deg, #0d7c42, #0f8e4a);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(11, 107, 58, 0.3);
  color: white;
  text-decoration: none;
}

/* Breadcrumb styling */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 1.5rem;
  border-radius: 8px;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: #0b6b3a;
  font-weight: 600;
}

.breadcrumb-item a {
  color: #0b6b3a;
  font-weight: 500;
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: #0d7c42;
  text-decoration: underline;
}

/* Sidebar styles */
.sidebar-sticky { 
  position: sticky; 
  top: 90px; 
}

/* Recommended list styles */
.recommended-list .clamp-2 { 
  display: -webkit-box; 
  -webkit-line-clamp: 2; 
  -webkit-box-orient: vertical; 
  overflow: hidden; 
  line-clamp: 2; 
}

.recommended-list img { 
  object-fit: cover; 
}

.recommended-narrow { 
  width: 90%; 
  margin: 0 auto; 
}

/* Sidebar styling */
.sidebar-sticky {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(11, 107, 58, 0.1);
  border: 1px solid rgba(11, 107, 58, 0.08);
}

.sidebar-sticky h5 {
  color: #0b6b3a;
  font-weight: 600;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-sticky h5::before {
  content: "📖";
  font-size: 1.1em;
}

/* Recommended articles cards */
.list-group-item.recommended-item-compact {
  border: none;
  border-radius: 12px !important;
  margin-bottom: 0.75rem;
  padding: 1rem !important;
  background: #f8fffe;
  transition: all 0.3s ease;
  border-left: 3px solid transparent !important;
}

.list-group-item.recommended-item-compact:hover {
  background: white;
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(11, 107, 58, 0.12);
  border-left-color: #0b6b3a !important;
}

/* More recommended articles section */
#more-recommendations {
  margin-top: 4rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, #f8fffe 0%, #f0f9f5 100%);
  border-radius: 16px;
  border: 1px solid rgba(11, 107, 58, 0.1);
}

#more-recommendations h4 {
  color: #0b6b3a;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

#more-recommendations h4::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #0b6b3a, #0d7c42);
  border-radius: 2px;
}

#articles-container .card {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
  box-shadow: 0 2px 12px rgba(11, 107, 58, 0.08);
}

#articles-container .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(11, 107, 58, 0.15);
}

#articles-container .card-img-top {
  transition: transform 0.3s ease;
}

#articles-container .card:hover .card-img-top {
  transform: scale(1.02);
}

#articles-container .card-body {
  padding: 1.2rem;
}

#articles-container .card-title {
  color: #2c3e50;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.8rem;
}

#articles-container .card-text {
  color: #6c757d;
  font-size: 0.9rem;
}

/* Thumbnail styles */
.thumb-64 { 
  width: 64px; 
  height: 64px; 
}

.thumb-64 img { 
  object-fit: cover; 
}

/* Home page article images */
.article-images {
  min-height: 120px;
}

.single-image {
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  object-fit: cover;
  min-height: 180px;
}

.multi-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.multi-image-small {
  width: 100%;
  height: 58px;
  object-fit: cover;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  border-radius: 0.375rem;
}

.no-image-placeholder {
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  min-height: 180px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
}

/* Category tags */
.category-tags .badge {
  display: inline-block;
}

/* Typography helpers */
.tiny {
  font-size: 0.75rem;
}

/* Category tabs */
.category-tabs .nav-pills .nav-link {
  color: #6c757d;
  background-color: transparent;
  border: 1px solid #dee2e6;
  margin-right: 4px;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.category-tabs .nav-pills .nav-link:hover {
  color: #0b6b3a;
  background-color: #f8f9fa;
  border-color: #0b6b3a;
}

.category-tabs .nav-pills .nav-link.active {
  color: white;
  background-color: #0b6b3a;
  border-color: #0b6b3a;
}

.category-tabs .nav-pills .nav-item {
  margin-bottom: 8px;
}

/* Recommended articles fix for text overflow */
.min-width-0 {
  min-width: 0;
}

.recommended-title {
  max-width: 100%;
  display: block;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.recommended-item {
  min-height: auto;
  align-items: flex-start;
}

.recommended-item .flex-grow-1 {
  flex: 1;
  min-width: 0;
}

/* Responsive design */
@media (max-width: 991.98px) {
  .site-ad-rail {
    position: static;
    top: auto;
  }

  .isok-ad--leaderboard .isok-ad__link {
    grid-template-columns: 1fr;
  }

  .isok-ad--leaderboard .isok-ad__eyebrow,
  .isok-ad--leaderboard .isok-ad__title,
  .isok-ad--leaderboard .isok-ad__copy,
  .isok-ad--leaderboard .isok-ad__cta {
    grid-column: 1;
    grid-row: auto;
  }

  .isok-ad__link {
    min-height: 112px;
  }

  .sidebar-sticky { 
    position: static; 
    top: auto;
    margin-top: 2rem;
  }
  .article-detail { 
    max-width: 100%;
    padding: 1.5rem;
    margin: 0 1rem;
  }
  .recommended-narrow { 
    width: 100%; 
  }
  .single-image {
    min-height: 150px;
  }
  .multi-image {
    height: 100px;
  }
  .multi-image-small {
    height: 48px;
  }
  
  #more-recommendations {
    padding: 1.5rem;
    margin-top: 2rem;
  }
}

@media (max-width: 767.98px) {
  .isok-ad__link {
    padding: 0.9rem;
  }

  .isok-ad__title {
    font-size: 0.95rem;
  }

  .isok-ad__copy {
    font-size: 0.84rem;
  }

  .single-image {
    min-height: 120px;
  }
  .multi-image,
  .no-image-placeholder {
    height: 80px;
  }
  .multi-image-small {
    height: 38px;
  }
  
  .article-detail {
    padding: 1rem;
    border-radius: 8px;
  }
  
  .article-detail h1 {
    font-size: 1.8rem;
  }
  
  .content-body {
    font-size: 15px;
    line-height: 1.7;
  }
  
  .content-body p {
    text-indent: 1.5em; /* 移动端缩进稍小 */
  }
  
  .article-keywords {
    padding: 1.5rem;
  }
  
  .keywords-container {
    gap: 0.6rem;
  }
  
  .keyword-tag {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }
  
  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  
  .sidebar-sticky {
    padding: 1rem;
  }
}

/* Article Keywords Styles */
.article-keywords {
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, #f8fffe 0%, #f0f9f5 100%);
  border-radius: 16px;
  border: 1px solid rgba(11, 107, 58, 0.1);
  box-shadow: 0 2px 12px rgba(11, 107, 58, 0.05);
}

.keywords-title {
  color: #0b6b3a;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* User Experience Enhancements */

/* Loading animations */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #0b6b3a;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus,
a:focus {
  outline: 2px solid #0b6b3a;
  outline-offset: 2px;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #0b6b3a;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(11, 107, 58, 0.3);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #0d7c42;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(11, 107, 58, 0.4);
}

/* Enhanced error page styles */
.error-container {
  padding: 4rem 0;
  text-align: center;
}

.error-icon {
  margin-bottom: 2rem;
}

.error-container .display-4 {
  font-weight: 800;
  color: #343a40;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.search-section .card {
  background: linear-gradient(135deg, #f8fffe 0%, #ffffff 100%);
  border: 1px solid rgba(11, 107, 58, 0.1);
}

/* Enhanced form controls */
.form-control {
  border-radius: 8px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #0b6b3a;
  box-shadow: 0 0 0 0.2rem rgba(11, 107, 58, 0.25);
}

.btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-success {
  background: linear-gradient(135deg, #0b6b3a, #0d7c42);
  border: none;
  box-shadow: 0 2px 8px rgba(11, 107, 58, 0.2);
}

.btn-success:hover {
  background: linear-gradient(135deg, #0d7c42, #0f8e4a);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(11, 107, 58, 0.3);
}

.btn-outline-success {
  border-color: #0b6b3a;
  color: #0b6b3a;
}

.btn-outline-success:hover {
  background-color: #0b6b3a;
  border-color: #0b6b3a;
  transform: translateY(-1px);
}

/* Navigation enhancements */
.navbar {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95) !important;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(11, 107, 58, 0.1);
}

.navbar-brand:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

/* Card enhancements */
.card {
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.08);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Article card specific styling */
.article-card {
  border-left: 4px solid #0b6b3a;
  transition: all 0.3s ease;
}

.article-card:hover {
  border-left-width: 6px;
}

/* Pagination styling */
.pagination .page-link {
  color: #0b6b3a;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  margin: 0 2px;
  transition: all 0.2s ease;
}

.pagination .page-link:hover {
  background-color: #0b6b3a;
  border-color: #0b6b3a;
  color: white;
  transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
  background-color: #0b6b3a;
  border-color: #0b6b3a;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 16px;
  }
  
  .error-container {
    padding: 2rem 0;
  }
  
  .error-container .display-4 {
    font-size: 2.5rem;
  }
  
  .navbar-brand img {
    width: 28px;
    height: 28px;
  }
}

/* Print styles */
@media print {
  .navbar,
  .back-to-top,
  .sidebar-sticky,
  .breadcrumb,
  .article-vote-section {
    display: none !important;
  }
  
  .article-detail {
    box-shadow: none;
    border: none;
    padding: 0;
    max-width: 100%;
  }
  
  .content-body {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  .content-body p {
    text-indent: 1em;
  }
}

.keywords-title::before {
  content: "🏷️";
  font-size: 1.2em;
}

.keywords-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.keyword-tag {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #0b6b3a, #0d7c42);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(11, 107, 58, 0.2);
  position: relative;
  overflow: hidden;
}

.keyword-tag::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.keyword-tag:hover {
  background: linear-gradient(135deg, #0d7c42, #0f8e4a);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(11, 107, 58, 0.35);
  color: white;
  text-decoration: none;
}

.keyword-tag:hover::before {
  left: 100%;
}

.keyword-tag:active {
  transform: translateY(-1px) scale(1.01);
}

/* Mobile responsive for keywords */
@media (max-width: 767.98px) {
  .keywords-container {
    gap: 0.375rem;
  }
  
  .keyword-tag {
    font-size: 0.8125rem;
    padding: 0.2rem 0.625rem;
  }
}

/* Smaller refresh button - 50% smaller than btn-sm */
.btn-refresh-small {
  font-size: 0.65rem !important; /* 50% smaller than btn-sm */
  padding: 0.125rem 0.375rem !important; /* 50% smaller padding */
  line-height: 1.2 !important;
}

.btn-refresh-small i {
  font-size: 0.7rem !important;
}
