/*
Theme Name: DN88 Royal Blue Editorial
Description: WordPress edition for dn88vn.one based on Studio WP-F0AFA8158C9E and the authorized public layout.
Version: 1.0.0
Text Domain: dn88
Requires PHP: 8.1
License: GPL-2.0-or-later
*/
@font-face {
  font-family: DN88 Roboto;
  src: url("font/Roboto-latin-vi.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

body { font-family: DN88 Roboto, Arial, sans-serif; }
:root { --wp--preset--color--primary: #1e73be; }
#logo a, #logo img { display: block; }
#logo img { width: 180px; object-fit: contain; }
.header:not(.transparent) .header-bottom-nav.nav > li.current-menu-item > a {
  color: #eeee22;
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px #eeee22;
}
#footer img { height: auto; }
.dn88-footer-mark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  aspect-ratio: 2 / 1;
  container-type: inline-size;
}
#footer .dn88-footer-mark img { width: 88%; }
.dn88-footer-domain {
  color: #304ed2;
  font-size: 13cqi;
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1;
  text-transform: uppercase;
}
#main img { max-width: 100%; }
#main .post-item .image-cover img { object-fit: contain; }
.single-post .entry-content.single-page { padding-top: 0; }
body.home #main img[src*="uu-dai-thanh-vien"] { aspect-ratio: 3 / 1; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #1969c5; outline-offset: 3px; }
#main [id] { scroll-margin-top: 154px; }

.dn88-search-item { line-height: 1; }
.dn88-search { position: relative; }
.dn88-search summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #1969c5;
  cursor: pointer;
  list-style: none;
  font-size: 20px;
}
.dn88-search summary::-webkit-details-marker { display: none; }
.dn88-search form {
  position: absolute;
  z-index: 12;
  top: 100%;
  right: 0;
  display: flex;
  width: min(310px, calc(100vw - 32px));
  margin: 0;
  padding: 10px;
  gap: 8px;
  border: 1px solid #b5cde4;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 6px 18px #16396329;
}
.dn88-search input, .dn88-search button { margin: 0; }
.dn88-search input { flex: 1; min-width: 0; }
.dn88-search button { background: #1969c5; color: #fff; }
.dn88-archive-intro { margin-bottom: 1.4rem; }
.dn88-archive-intro h1 { margin-bottom: .35rem; }
.dn88-archive-pagination { margin: 1.6rem auto; padding: 0 15px; text-align: center; }
.dn88-archive-pagination .page-numbers { display: inline-block; margin: 4px; padding: 7px 10px; }
.dn88-archive-pagination [aria-current="page"] { color: #fff; background: #1969c5; border-radius: 4px; }
.dn88-responsible-gaming {
  padding: 12px 16px;
  color: #19314c;
  background: #e8f0f8;
  text-align: center;
}
.dn88-responsible-gaming p { margin: 0; }
.dn88-responsible-gaming a { color: #125496; text-decoration: underline; }

#main-menu.dn88-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10002;
  width: min(320px, calc(100vw - 38px));
  height: 100%;
  overflow: auto;
  padding: 48px 20px 21px;
  background: #fff;
}
body.admin-bar #main-menu.dn88-drawer {
  top: var(--wp-admin--admin-bar--height, 32px);
  height: calc(100% - var(--wp-admin--admin-bar--height, 32px));
}
.dn88-close-menu {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  margin: 0;
  border: 0;
  color: #1969c5;
  background: transparent;
  font-size: 27px;
}
.dn88-menu-shade { position: fixed; inset: 0; z-index: 10001; background: #18243599; }
body.dn88-menu-open { overflow: hidden; }

/* Suppress the inherited slider placeholder in the native home hero. */
body.home #main .slider-wrapper > .loading-spin { display: none; }

.dn88-carousel { position: relative; }
.dn88-carousel > div.img { margin: 0; }
.dn88-carousel .dn88-slide-control {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  border: 1px solid #fffa;
  border-radius: 50%;
  color: #fff;
  background: #173d6d70;
  font-size: 24px;
  line-height: 1;
  transform: translateY(-50%);
}
.dn88-slide-prev { left: 12px; }
.dn88-slide-next { right: 12px; }
.dn88-slide-dots {
  position: absolute;
  inset: auto 0 8px;
  z-index: 2;
  display: flex;
  width: max-content;
  gap: 9px;
  margin: auto;
}
.dn88-slide-dots button {
  width: 12px;
  height: 12px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 100%;
  background: #173d6d70;
}
.dn88-slide-dots button[aria-current="true"] { background: #fff; }
.dn88-author-carousel { position: relative; }
.dn88-author-carousel > .row-slider { scrollbar-width: none; scroll-snap-type: x mandatory; }
.dn88-author-carousel .post-item { scroll-snap-align: start; }
.dn88-author-carousel > button {
  position: absolute;
  top: 42%;
  width: 34px;
  min-height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #1969c5;
  background: #ffffffef;
  box-shadow: 0 1px 5px #18325133;
  font-size: 23px;
}
.dn88-author-prev { left: 0; }
.dn88-author-next { right: 0; }
.dn88-risk-outline { margin: 0 0 1.4rem; padding: .8rem 1.2rem; border: 1px solid #dce8f5; }
.dn88-risk-outline ol { margin-bottom: 0; }

@media (max-width: 849px) {
  #logo img { width: 140px; max-width: 100%; }
  #main [id] { scroll-margin-top: 106px; }
  .dn88-carousel .dn88-slide-control { width: 29px; height: 29px; font-size: 17px; }
}
