/* HelloDanang — compact Toplist contact box, teal + amber brand palette. */
.top_list_page .entry .hdn-contact-box {
  border: 1px solid #bceee8;
  border-left: 3px solid #02c9ba;
  border-radius: 9px;
  background: #f8fdfc;
  margin: 18px 0 24px;
  padding: 0;
  overflow: hidden;
  box-shadow: none;
  font-size: 14px;
  line-height: 1.65;
  color: #263d3b;
}
.top_list_page .entry .hdn-contact-box__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #087d76;
  padding: 10px 15px;
  background: #e9faf7;
  border-bottom: 1px solid #d2f0eb;
}
.top_list_page .entry .hdn-contact-box__title::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #faa719;
  flex: 0 0 7px;
}
.top_list_page .entry .hdn-contact-box__content { padding: 9px 15px 11px; }
.top_list_page .entry .hdn-contact-box ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.top_list_page .entry .hdn-contact-box li {
  position: relative;
  padding: 5px 0 5px 15px !important;
  margin: 0 !important;
  list-style: none !important;
  background: none !important;
  border: 0;
  border-bottom: 1px solid #e3f3f0;
  overflow-wrap: anywhere;
}
.top_list_page .entry .hdn-contact-box li:last-child { border-bottom: 0; }
.top_list_page .entry .hdn-contact-box li::before {
  content: '' !important;
  display: block !important;
  position: absolute;
  width: 5px;
  height: 5px;
  left: 1px;
  top: 14px;
  border: 0 !important;
  border-radius: 50%;
  background: #02c9ba !important;
  box-shadow: none !important;
  transform: none !important;
}
.top_list_page .entry .hdn-contact-box li::after { content: none !important; }
.top_list_page .entry .hdn-contact-box li strong,
.top_list_page .entry .hdn-contact-box li b { font-weight: 650; }
.top_list_page .entry .hdn-contact-box a {
  color: #087d76;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.top_list_page .entry .hdn-contact-box a:hover {
  color: #006d66;
  text-decoration: underline;
  text-decoration-color: #faa719;
  text-underline-offset: 3px;
}
@media (max-width: 767px) {
  .top_list_page .entry .hdn-contact-box { font-size: 13.5px; margin: 14px 0 20px; }
  .top_list_page .entry .hdn-contact-box__title { padding: 9px 12px; font-size: 14px; }
  .top_list_page .entry .hdn-contact-box__content { padding: 8px 12px 10px; }
}

/* Small H3 anchor, only added when that ranking has a contact box. */
.top_list_page .entry .hdn-contact-heading-row > .hdn-contact-jump {
  display: inline-flex !important;
  vertical-align: middle;
  align-items: center;
  gap: 5px;
  margin: 0 0 3px 10px;
  padding: 4px 9px;
  border: 1px solid #a6e9e2;
  border-radius: 6px;
  background: #eafbf8;
  color: #087d76 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: none;
  cursor: pointer;
}
.top_list_page .entry .hdn-contact-heading-row > .hdn-contact-jump:hover,
.top_list_page .entry .hdn-contact-heading-row > .hdn-contact-jump:focus-visible {
  background: #d8f7f1;
  border-color: #02c9ba;
  color: #046c65 !important;
  text-decoration: none !important;
}
.top_list_page .entry .hdn-contact-heading-row > .hdn-contact-jump:focus-visible { outline: 2px solid #faa719; outline-offset: 2px; }
.top_list_page .entry .hdn-contact-heading-row > .hdn-contact-jump__arrow { color: #db8905; font-size: 13px; }
.top_list_page .entry .hdn-contact-box { scroll-margin-top: 90px; }
.top_list_page .entry .hdn-contact-box:focus { outline: none; }
.top_list_page .entry .hdn-contact-box--highlight { animation: hdn-contact-flash 1.35s ease-out; }
@keyframes hdn-contact-flash {
  0%, 45% { border-color: #faa719; box-shadow: 0 0 0 3px rgba(250, 167, 25, .20); }
  100% { border-color: #bceee8; box-shadow: none; }
}
@media (max-width: 767px) {
  .top_list_page .entry .hdn-contact-heading-row > .hdn-contact-jump { margin-left: 7px; padding: 3px 8px; font-size: 11px !important; }
  .top_list_page .entry .hdn-contact-box { scroll-margin-top: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  .top_list_page .entry .hdn-contact-box--highlight { animation: none; border-color: #faa719; }
}

/* Semantic sibling layout: <div><h3>...</h3><a>Liên hệ</a></div>. */
.top_list_page .entry .hdn-contact-heading-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 10px;
  row-gap: 5px;
  margin: 0;
}
.top_list_page .entry .hdn-contact-heading-row > h3 {
  flex: 0 1 auto;
  margin-bottom: 0;
}
.top_list_page .entry .hdn-contact-heading-row > .hdn-contact-jump {
  margin-left: 0;
  flex: 0 0 auto;
}
@media (max-width: 767px) {
  .top_list_page .entry .hdn-contact-heading-row { column-gap: 7px; }
}

/* V2 fix: the original theme sets .content-detail-post h3 { width:100% }.
   Override this ONLY for the contact heading row so the button stays alongside H3. */
.top_list_page .entry.content-detail-post .hdn-contact-heading-row {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 0 10px;
  padding-top: 10px;
  border-top: 1px dashed #02c9ba;
  box-sizing: border-box;
}
.top_list_page .entry.content-detail-post .hdn-contact-heading-row > h3 {
  display: block;
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0;
  max-width: none;
  margin: 0 !important;
  padding: 0 !important;
  border-top: 0 !important;
  overflow-wrap: break-word;
}
.top_list_page .entry.content-detail-post .hdn-contact-heading-row > .hdn-contact-jump {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-self: center;
  margin: 0 !important;
  white-space: nowrap;
}
@media (max-width: 575px) {
  .top_list_page .entry.content-detail-post .hdn-contact-heading-row { gap: 6px; }
  .top_list_page .entry.content-detail-post .hdn-contact-heading-row > .hdn-contact-jump {
    padding: 3px 6px;
    font-size: 11px !important;
  }
}
