* {
  font-family: 'Inter', sans-serif;
}

.hero-carousel {
  height: 333px;
}

@media (max-width: 768px) {
  .hero-carousel {
    height: 267px;
  }
}

@media (max-width: 640px) {
  .hero-carousel {
    height: 200px;
  }
}

.archive-content {
  transition: all 0.3s ease-in-out;
}

.archive-content ul {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e0 #f7fafc;
}

.archive-content ul::-webkit-scrollbar {
  width: 6px;
}

.archive-content ul::-webkit-scrollbar-track {
  background: #f7fafc;
  border-radius: 3px;
}

.archive-content ul::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 3px;
}

.archive-content ul::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

.archive-icon {
  transition: transform 0.3s ease-in-out;
}

.article-content {
  color: #374151;
  line-height: 1.8;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 1em;
  color: #111827;
}

.article-content h1 {
  font-size: 2.25em;
}

.article-content h2 {
  font-size: 1.875em;
}

.article-content h3 {
  font-size: 1.5em;
}

.article-content p {
  margin-bottom: 1.5em;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5em;
  padding-left: 1.5em;
}

.article-content li {
  margin-bottom: 0.5em;
}

.article-content a {
  color: #2563eb;
  text-decoration: underline;
}

.article-content a:hover {
  color: #1d4ed8;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5em 0;
}

.article-content blockquote {
  border-left: 4px solid #e5e7eb;
  padding-left: 1.5em;
  margin: 1.5em 0;
  font-style: italic;
  color: #6b7280;
}

.article-content code {
  background-color: #f3f4f6;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.9em;
  color: #dc2626;
}

.article-content pre {
  background-color: #1f2937;
  color: #f9fafb;
  padding: 1.5em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5em 0;
}

.article-content pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}

.article-content th,
.article-content td {
  border: 1px solid #e5e7eb;
  padding: 0.75em;
  text-align: left;
}

.article-content th {
  background-color: #f9fafb;
  font-weight: 600;
}

#backToTopBtn {
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

#backToTopBtn:hover {
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  #backToTopBtn {
    bottom: 1rem;
    right: 1rem;
    padding: 0.75rem;
  }
  
  #backToTopBtn svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}