/* ==========================================================================
   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.9);
}

.header-main {
  height: 110px;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

#logo {
  width: 118px;
  flex: 0 0 auto;
}

#logo img {
  max-height: 110px;
  width: auto;
  transition: all 0.3s ease;
}

.header-nav-main {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0 15px;
  gap: 15px;
  align-items: center;
}

.header-nav-main > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f9e024;
  font-family: "Roboto Slab", sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  padding: 8px 10px;
  line-height: 16px;
  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;
}

.ux-menu-icon, .ux-sidebar-menu-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
}

/* Header Right Elements */
.header-nav-right {
  display: flex;
  list-style: none;
  gap: 12px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.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 Bar & Drawer */
.show-for-medium {
  display: none !important;
}

@media (max-width: 1024px) {
  .hide-for-medium { display: none !important; }
  .show-for-medium { display: flex !important; }
  .header-main { height: 70px; }
  #logo img { max-height: 70px; }
  
  #wide-nav.header-bottom {
    background-color: #0c1b3a;
    padding: 8px 15px;
    display: flex;
    justify-content: center;
  }
  
  .header-bottom-nav {
    display: flex;
    list-style: none;
    gap: 15px;
    margin: 0;
    padding: 0;
    width: 100%;
    justify-content: center;
  }
}

.mobile-nav-toggle {
  color: #fff;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

/* 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;
}
