/* Navigation improvements */
.site-nav .trigger {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.site-nav .page-link {
  margin-left: 15px;
  white-space: nowrap;
}

/* Search Modal */
.search-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.search-modal-content {
  background-color: #fefefe;
  margin: 80px auto;
  padding: 30px;
  border: none;
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  max-height: 70vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.3s;
}

@keyframes slideDown {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.close-modal {
  color: #aaa;
  float: right;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  line-height: 20px;
  transition: color 0.2s;
}

.close-modal:hover,
.close-modal:focus {
  color: #000;
}

.search-modal-content h2 {
  margin-top: 0;
  color: #333;
  border-bottom: 2px solid #2a7ae2;
  padding-bottom: 10px;
}

/* Search Results */
#search-results {
  margin-top: 20px;
}

.search-result-item {
  padding: 20px;
  margin-bottom: 15px;
  border-left: 4px solid #2a7ae2;
  background: #f9f9f9;
  border-radius: 6px;
  transition: all 0.2s;
}

.search-result-item:hover {
  background: #f0f0f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-result-item h3 {
  margin: 0 0 10px 0;
  font-size: 20px;
}

.search-result-item h3 a {
  color: #2a7ae2;
  text-decoration: none;
}

.search-result-item h3 a:hover {
  text-decoration: underline;
}

.search-result-meta {
  color: #828282;
  font-size: 13px;
  margin-bottom: 10px;
  font-weight: 500;
}

.search-result-excerpt {
  color: #555;
  line-height: 1.6;
  font-size: 14px;
}

.search-result-highlight {
  background-color: #ffeb3b;
  font-weight: bold;
  padding: 2px 4px;
  border-radius: 3px;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.no-results p:first-child {
  font-size: 18px;
  margin-bottom: 10px;
}

/* Compact TOC khi có class hoặc front matter */===========================
.compact-toc h1:first-of-type,
article[data-toc-compact="true"] h1:first-of-type {===================== */
  font-size: 1.3rem;
  margin-bottom: 0.5rem;Mục lục - giảm size và compact hơn */
}.post-content h1:first-of-type + h2 {

.compact-toc h2,
article[data-toc-compact="true"] h2 {5rem;
  font-size: 1rem;
  margin-top: 0.75rem;
  margin-bottom: 0.4rem;
}/
2 + ul,
.compact-toc ul,ul {
article[data-toc-compact="true"] ul {em;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;argin-bottom: 0.5rem;
}

/* Responsive */*/
@media screen and (max-width: 800px) {post-content h2 + ul a,
  .site-nav .trigger {.post-content h2 + ul ul a {
    padding-top: 10px;
  }

  .search-container {
    display: block;
    width: 100%;.post-content h2 + ul a:hover,
    margin: 10px 0; ul a:hover {
  }
n: underline;
  #search-input {
    width: 100%;
    max-width: 100%;/* Giảm khoảng cách giữa items */
  }+ ul li,
 + ul ul li {
  #search-input:focus {5rem;
    width: 100%;adding-left: 0;
  }}

  .site-nav .page-link {ent nhẹ hơn */
    display: block;st-content h2 + ul ul {
    margin-left: 0;  margin-left: 1rem;
    padding: 8px 0;
  }

  .search-modal-content { */
    width: 95%;st-content > h1:first-child {
    margin: 20px auto;  font-size: 1.5rem;
    padding: 20px;
    max-height: 85vh;: 2px solid #e8e8e8;
  }em;
}
  border-color: #e8e8e8;
}

/* Compact cho các section headers trong mục lục */
.post-content ul > li > strong {
  font-size: 0.9rem;
  color: #333;
}

/* Mobile responsive */
@media screen and (max-width: 600px) {
  .post-content h1:first-of-type + h2 {
    font-size: 1.1rem;
  }
  
  .post-content h2 + ul,
  .post-content h2 + ul ul {
    font-size: 0.8rem;
  }
  
  .post-content h2 + ul ul {
    margin-left: 0.75rem;
  }
}

/* ========================================
   POST CONTENT IMPROVEMENTS
   ======================================== */

/* Giảm line-height cho post content để compact hơn */
.post-content {
  line-height: 1.6;
}

/* Code blocks trong mục lục */
.post-content h2 + ul code {
  font-size: 0.8rem;
  padding: 0.1rem 0.3rem;
  background-color: #f5f5f5;
  border-radius: 3px;
}

/* Responsive */
@media screen and (max-width: 800px) {
  .site-nav .trigger {
    padding-top: 10px;
  }

  .search-container {
    display: block;
    width: 100%;
    margin: 10px 0;
  }

  #search-input {
    width: 100%;
    max-width: 100%;
  }

  #search-input:focus {
    width: 100%;
  }

  .site-nav .page-link {
    display: block;
    margin-left: 0;
    padding: 8px 0;
  }

  .search-modal-content {
    width: 95%;
    margin: 20px auto;
    padding: 20px;
    max-height: 85vh;
  }
}
