/* ==========================================================================
   V9BET THEME CUSTOM STYLES
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
#header {
  position: relative;
  z-index: 100;
  width: 100%;
}

.header-wrapper {
  position: relative;
  background-color: rgba(9, 0, 68, 0.95);
  width: 100%;
}

/* ==========================================================================
   DESKTOP HEADER (Screens >= 1025px)
   ========================================================================== */
@media (min-width: 1025px) {
  .show-for-medium,
  #wide-nav.header-bottom {
    display: none !important;
  }

  .hide-for-medium {
    display: flex !important;
  }

  .header-main {
    min-height: 80px;
    height: auto;
    padding: 8px 0;
    display: flex;
    align-items: center;
  }

  .header-inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
  }

  #logo {
    flex: 0 0 auto !important;
    max-width: 180px !important;
    display: flex !important;
    align-items: center !important;
    margin-right: 15px !important;
  }

  #logo a,
  #logo .custom-logo-link {
    display: flex;
    align-items: center;
    line-height: 1;
  }

  #logo img,
  #logo .custom-logo,
  .header_logo {
    max-height: 48px !important;
    max-width: 180px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    transition: all 0.3s ease;
  }

  .header-inner > .flex-col.flex-grow {
    flex: 1 1 auto !important;
    display: flex !important;
    justify-content: center !important;
    min-width: 0 !important;
    margin: 0 10px !important;
  }

  .header-nav-main {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 8px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .header-nav-main > li {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

  .header-nav-main > li > a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    color: #f9e024 !important;
    font-family: "Roboto Slab", sans-serif !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    padding: 6px 8px !important;
    line-height: 16px !important;
    white-space: nowrap !important;
    transition: color 0.3s ease;
  }

  .header-nav-main > li > a:hover,
  .header-nav-main > li.active > a,
  .header-nav-main > li.current-menu-item > a {
    color: #ffffff !important;
  }

  .ux-menu-icon {
    width: 18px !important;
    height: 18px !important;
    object-fit: contain !important;
    vertical-align: middle !important;
  }

  /* Header Right Elements */
  .header-inner > .flex-col.flex-right {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
  }

  .header-nav-right {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    list-style: none !important;
    gap: 8px !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .header-nav-right > li {
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

  .header-nav-right .button {
    padding: 6px 15px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
    border-radius: 20px !important;
    letter-spacing: 0.3px !important;
  }

  .header-search {
    position: relative;
  }

  .header-search > a {
    color: #ffffff;
    font-size: 18px;
    padding: 6px;
    display: inline-block;
  }

  .header-search-dropdown {
    position: relative;
  }

  .nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    border-radius: 6px;
    min-width: 260px;
    z-index: 1000;
  }

  .header-search-dropdown:hover .nav-dropdown,
  .header-search-dropdown.active .nav-dropdown {
    display: block;
  }

  .searchform-wrapper .searchform {
    display: flex;
    align-items: center;
    position: relative;
    background: #f1f1f1;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #ccc;
  }

  .searchform-wrapper input[type="search"] {
    border: none;
    background: transparent;
    padding: 8px 15px;
    font-size: 13px;
    width: 100%;
    outline: none;
  }

  .searchform-wrapper button[type="submit"] {
    border: none;
    background: #0050b3;
    color: #fff;
    padding: 8px 14px;
    cursor: pointer;
  }
}

/* ==========================================================================
   MOBILE HEADER (Screens <= 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  /* Ẩn hoàn toàn tất cả thành phần desktop */
  .hide-for-medium,
  .header-inner > .hide-for-medium,
  .header-inner > .flex-col.hide-for-medium {
    display: none !important;
  }

  .show-for-medium {
    display: flex !important;
  }

  .header-main {
    min-height: 60px !important;
    height: 60px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  .header-inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 12px !important;
    position: relative !important;
  }

  /* 1. Nút Hamburger Toggle bên trái */
  .header-inner > .show-for-medium.flex-left {
    display: flex !important;
    align-items: center !important;
    z-index: 10 !important;
    flex: 0 0 40px !important;
    width: 40px !important;
  }

  .mobile-nav {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .mobile-nav-toggle {
    color: #fff !important;
    font-size: 24px !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 6px !important;
    display: flex !important;
    align-items: center !important;
    line-height: 1 !important;
  }

  /* 2. Logo căn giữa trên Mobile */
  #logo {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    max-width: 160px !important;
    z-index: 5 !important;
  }

  #logo a,
  #logo .custom-logo-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #logo img,
  #logo .custom-logo,
  .header_logo {
    max-height: 38px !important;
    max-width: 140px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
  }

  /* 3. Khoảng trống cân bằng bên phải */
  .header-inner > .show-for-medium.flex-right {
    display: flex !important;
    flex: 0 0 40px !important;
    width: 40px !important;
    height: 20px !important;
  }

  /* 4. Thanh nút Đăng Nhập / Đăng Ký trên Mobile (Wide Nav) */
  #wide-nav.header-bottom {
    background-color: #0c1b3a !important;
    padding: 8px 12px !important;
    display: block !important;
    width: 100% !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  #wide-nav .flex-row {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  .header-bottom-nav {
    display: flex !important;
    flex-direction: row !important;
    list-style: none !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 420px !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .header-bottom-nav li {
    flex: 1 1 50% !important;
    max-width: 180px !important;
    display: flex !important;
    justify-content: center !important;
  }

  .header-bottom-nav .button {
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: 20px !important;
    white-space: nowrap !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
  }
}

/* Mobile Drawer */
#main-menu {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100%;
  background: #090044;
  z-index: 9999;
  transition: left 0.3s ease;
  overflow-y: auto;
  box-shadow: 2px 0 15px rgba(0,0,0,0.5);
  padding: 20px 15px;
}

#main-menu.active {
  left: 0;
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
}

.mobile-menu-overlay.active {
  display: block;
}

.nav-sidebar {
  list-style: none;
  margin: 15px 0 0 0;
  padding: 0;
}

.nav-sidebar li {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-sidebar li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  color: #f9e024;
  font-weight: 700;
  font-size: 14px;
}

.nav-sidebar li a:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.05);
}

.mobile-close-btn {
  color: #fff;
  font-size: 24px;
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   2. BREADCRUMBS
   -------------------------------------------------------------------------- */
.breadcrumb-container {
  max-width: 1200px;
  margin: 10px auto;
  padding: 10px 15px;
  font-size: 14px;
  color: #666;
}

.breadcrumb-container a {
  color: #0050b3;
}

.breadcrumb-container a:hover {
  color: #b30909;
}

@media (max-width: 1024px) {
  .breadcrumb-container {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   3. 4 GAME CATEGORIES (TOP HOMEPAGE)
   -------------------------------------------------------------------------- */
.hero-game-categories {
  padding: 25px 0;
}

.game-cat-col {
  padding: 10px;
}

.game-cat-card {
  text-align: center;
  border-radius: 44px;
  border: 3px solid rgb(232, 43, 43);
  padding: 8px;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
}

.game-cat-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 25px rgba(232, 43, 43, 0.3);
}

.game-cat-card img {
  border-radius: 36px;
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.game-cat-title {
  margin-top: 10px;
  margin-bottom: 5px;
}

/* --------------------------------------------------------------------------
   4. SWIPER BRAND SLIDER
   -------------------------------------------------------------------------- */
.gwd-banner {
  padding: 20px 0;
  position: relative;
}

.gwd-slider-container {
  position: relative;
  overflow: hidden;
  padding: 0 40px;
}

.gwd-slider-brand-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  border: 1px solid #eaeaea;
  height: 70px;
  transition: transform 0.3s ease;
}

.gwd-slider-brand-card:hover {
  transform: scale(1.06);
  border-color: #00d9ff;
}

.gwd-slider-brand-card img {
  max-height: 50px;
  max-width: 100%;
  object-fit: contain;
}

.swiper-button-prev, .swiper-button-next {
  color: #0050b3 !important;
  width: 32px !important;
  height: 32px !important;
}

.swiper-button-prev::after, .swiper-button-next::after {
  font-size: 18px !important;
  font-weight: bold;
}

/* --------------------------------------------------------------------------
   5. POSTS GRID & ARCHIVE
   -------------------------------------------------------------------------- */
.box-blog-post {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.box-blog-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.box-image {
  position: relative;
  overflow: hidden;
}

.box-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.box-blog-post:hover .box-image img {
  transform: scale(1.05);
}

.box-text {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
}

.post-title a {
  color: #0a0a0a;
}

.post-title a:hover {
  color: #b30909;
}

.from_the_blog_excerpt {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 15px;
  flex-grow: 1;
}

.is-divider {
  height: 2px;
  background-color: rgba(0,0,0,0.08);
  margin: 10px 0;
}

.is-divider.small {
  width: 50px;
  margin: 10px auto;
  background-color: #b30909;
}

/* Pagination */
.nav-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 30px 0;
  padding: 0;
}

.nav-pagination li a,
.nav-pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #ffffff;
  color: #333;
  font-weight: bold;
  font-size: 14px;
}

.nav-pagination li span.current,
.nav-pagination li a:hover {
  background: #0050b3;
  color: #ffffff;
  border-color: #0050b3;
}

/* --------------------------------------------------------------------------
   6. SINGLE POST & TABLE OF CONTENTS
   -------------------------------------------------------------------------- */
.blog-single {
  background: #ffffff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.entry-header {
  margin-bottom: 20px;
}

.entry-category a {
  color: #0050b3;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.entry-title {
  font-size: 1.8rem;
  color: #0a0a0a;
  margin: 10px 0;
}

.entry-meta {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 15px;
}

.entry-image img {
  border-radius: 8px;
  margin: 0 auto 20px auto;
  width: 100%;
  max-height: 450px;
  object-fit: cover;
}

/* EZ-TOC Box */
#ez-toc-container {
  background: #f8f9fa;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 15px 20px;
  margin: 25px 0;
}

.ez-toc-title-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.ez-toc-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #1a202c;
  margin: 0;
}

.ez-toc-toggle {
  background: none;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
  padding: 3px 8px;
  cursor: pointer;
  font-size: 12px;
  color: #4a5568;
}

#ez-toc-container ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

#ez-toc-container ul li {
  margin-bottom: 6px;
  line-height: 1.4;
}

#ez-toc-container ul li a {
  color: #2b6cb0;
  font-size: 0.95rem;
}

#ez-toc-container ul li a:hover {
  color: #b30909;
  text-decoration: underline;
}

#ez-toc-container ul ul {
  padding-left: 20px;
  margin-top: 6px;
}

/* Social Share Bar */
.blog-share {
  margin: 30px 0 20px 0;
}

.share-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.share-icons .button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  color: #444;
  background: #fff;
  font-size: 16px;
  padding: 0;
}

.share-icons .button:hover {
  background: #0050b3;
  color: #fff;
  border-color: #0050b3;
}

/* Author Box */
.author-box {
  background: #f7f9fa;
  border-radius: 8px;
  padding: 20px;
  margin: 30px 0;
  border-left: 4px solid #0050b3;
}

.author-box .flex-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.blog-author-image img {
  border-radius: 50%;
  width: 100px;
  height: 100px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.author-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0a0a0a;
  margin-bottom: 6px;
}

.author-desc {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
}

/* Next / Prev Nav */
.navigation-post {
  border-top: 1px solid #eaeaea;
  border-bottom: 1px solid #eaeaea;
  padding: 15px 0;
  margin: 25px 0;
}

.next-prev-nav {
  display: flex;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   7. STICKY SIDEBAR
   -------------------------------------------------------------------------- */
.post-sidebar {
  position: relative;
}

.is-sticky-column {
  position: sticky;
  top: 90px;
}

.widget {
  background: #ffffff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.widget-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0a0a0a;
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent-blog-posts-li {
  border-bottom: 1px solid #f0f0f0;
  padding: 10px 0;
}

.recent-blog-posts-li:last-child {
  border-bottom: none;
}

.recent-blog-posts {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.badge.post-date {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}

.badge.post-date .badge-inner {
  width: 100%;
  height: 100%;
  background-size: cover !important;
  background-position: center !important;
}

.recent-blog-posts a {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a202c;
  line-height: 1.35;
  display: block;
}

.recent-blog-posts a:hover {
  color: #b30909;
}

/* --------------------------------------------------------------------------
   8. FOOTER
   -------------------------------------------------------------------------- */
.footer-wrapper {
  position: relative;
  background-color: rgb(6, 16, 59);
  color: #ffffff;
  padding-top: 0;
}

.ux-shape-divider--top {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.ux-shape-divider--top svg {
  display: block;
  width: 100%;
  height: 25px;
}

.ux-shape-fill {
  fill: rgb(11, 46, 60);
}

.footer-section {
  padding: 40px 0 25px 0;
}

.footer-intro p {
  color: #ffff00;
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-intro a {
  color: #ffffff;
  text-decoration: underline;
}

.ux-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ux-menu-link a {
  color: #d1d5db;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease, transform 0.2s ease;
}

.ux-menu-link a:hover {
  color: #00ffff;
  transform: translateX(4px);
}

.absolute-footer {
  background-color: #040a25;
  padding: 15px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem;
  color: #9ca3af;
}

.dmca-badge {
  display: inline-block;
  margin-left: 10px;
  vertical-align: middle;
}

.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0050b3;
  color: #ffffff;
  border: 2px solid #00d9ff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 999;
  transition: all 0.3s ease;
}

.back-to-top:hover {
  background: #00d9ff;
  color: #090044;
  transform: translateY(-3px);
}

/* Bottom Floating Banner Bar */
.footer-banner-gwd {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.88);
  z-index: 9990;
  padding: 6px 15px;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.4);
}

.footer-banner-gwd .row-gwd {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.footer-banner-gwd img {
  max-height: 55px;
  width: auto;
  border-radius: 6px;
}

.close-footer-banner-gwd {
  position: absolute;
  top: 6px;
  right: 15px;
  cursor: pointer;
  background: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   9. AUTHOR PAGE BIO TYPOGRAPHY
   -------------------------------------------------------------------------- */
.author-bio-content {
  color: #334155;
  line-height: 1.8;
  font-size: 1rem;
}

.author-bio-content h2,
.author-bio-content h3,
.author-bio-content h4 {
  color: #003366;
  font-weight: 700;
  margin-top: 1.4em;
  margin-bottom: 0.6em;
  line-height: 1.35;
}

.author-bio-content h2 {
  font-size: 1.35rem;
  border-left: 4px solid #0066cc;
  padding-left: 12px;
}

.author-bio-content h3 {
  font-size: 1.18rem;
  border-left: 3px solid #0088cc;
  padding-left: 10px;
}

.author-bio-content p {
  margin-bottom: 1.1em;
  text-align: justify;
}

.author-bio-content ul,
.author-bio-content ol {
  margin: 1em 0;
  padding-left: 24px;
}

.author-bio-content li {
  margin-bottom: 0.5em;
  color: #334155;
}

.author-bio-content strong {
  color: #0f172a;
}

.author-bio-content a {
  color: #0066cc;
  text-decoration: underline;
}

.author-bio-content a:hover {
  color: #b30909;
}
