.toc-container {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
  overflow: hidden;
}

.toc-header {
  padding: 14px 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #eef2f7;
}

.toc-body {
  display: none;
  padding: 15px 20px;
}

#tocList {
  margin: 0;
  padding-left: 18px;
}

#tocList li {
  margin: 6px 0;
}

#tocList li.sub {
  margin-left: 15px;
  font-size: 0.95em;
  opacity: 0.85;
}

#tocList a {
  text-decoration: none;
  color: #1d4ed8;
}

#tocList a:hover,
#tocList a.active {
  text-decoration: underline;
}

.toc-arrow {
  transition: transform 0.3s ease;
}

.toc-container.open .toc-arrow {
  transform: rotate(180deg);
}

.key-takeaways-box {
    background: #f5f7f4;
    border-left: 5px solid #4CAF50;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
}

.key-takeaways-box h4 {
    margin-top: 0;
    font-weight: 600;
}

.key-takeaways-box ul {
    margin: 10px 0 0 20px;
}


.category-card {
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #dbeafe;
    overflow: hidden;
}

.category-header {
    padding: 14px 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #eef2ff;
}

.category-body {
    padding: 10px 0;
    display: block;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 18px;
    text-decoration: none;
    color: #1f2933;
    transition: background 0.2s ease;
}

.category-item:hover {
    background: #e5edff;
}

.category-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-count {
    color: #6b7280;
    font-size: 14px;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.category-card.closed .toggle-icon {
    transform: rotate(180deg);
}


.recent-post-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
}

.recent-title {
    font-weight: 600;
    margin-bottom: 12px;
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recent-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: #111827;
    align-items: center;
    transition: all 0.2s ease;
    padding: 6px;
    border-radius: 8px;
}

.recent-item:hover {
    background: #eef2ff;
}

.recent-post-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
}

.recent-item {
  display: flex;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 14px;
}

.recent-thumb img {
  width: 70px;
  height: 55px;
  object-fit: cover;
  border-radius: 6px;
}

.recent-content {
  font-size: 14px;
  color: #111827;
}


.blog-detail-content {
  font-size: 17px;
  line-height: 1.8;
  color: #1f2937;
}

.blog-detail-content h2 {
  margin-top: 40px;
  font-weight: 700;
}

.blog-detail-content h3 {
  margin-top: 28px;
  font-weight: 600;
}

.blog-detail-content p {
  margin-bottom: 16px;
}
