/*
Theme Name: VB88 Child
Template: generatepress
Description: 1:1 UI clone of vb88.co for vb888.br.com
Version: 1.0.0
Text Domain: vb88-child
*/

:root {
  --vb-primary: #21a373;
  --vb-primary-dark: #1c6a43;
  --vb-primary-light: #00b668;
  --vb-secondary: #ffd255;
  --vb-border-green: #488b00;
  --vb-text: #333333;
  --vb-heading: #0a0a0a;
  --vb-bg: #ffffff;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: "Bai Jamjuree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--vb-text);
  background: #ffffff;
  overflow-x: hidden;
}
a { color: #0a0a0a; text-decoration: none; transition: color .2s ease; }
a:hover { color: #16b068; }
img { max-width: 100%; height: auto; display: block; }

.vb-container { max-width: 1240px; margin: 0 auto; padding: 0 15px; }

/* Header */
.vb-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #fff;
  box-shadow: 0 10px 40px rgba(109, 141, 173, 0.25);
}
.vb-header-main {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.vb-logo img { height: 42px; width: auto; }
.vb-header-actions { display: flex; align-items: center; gap: 10px; }
.vb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}
.vb-btn-primary {
  background: linear-gradient(180deg, rgba(0,182,104,1) 0%, rgba(28,106,67,1) 91%);
  color: #fff !important;
}
.vb-btn-secondary {
  background: linear-gradient(180deg, rgba(255,241,30,1) 0%, rgba(255,155,24,1) 91%);
  color: #000 !important;
}
.vb-btn-pill { border-radius: 99px; }
.vb-btn-sm { padding: 6px 12px; font-size: 13px; width: 100%; text-transform: none; }

.vb-hamburger {
  display: none;
  background: transparent;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #222;
}

.vb-nav-bar {
  background: linear-gradient(180deg, rgba(0,182,104,1) 0%, rgba(28,106,67,1) 91%);
  min-height: 54px;
  display: flex;
  align-items: center;
}
.vb-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.vb-nav-list > li > a {
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  padding: 14px 4px;
  display: inline-block;
  position: relative;
}
.vb-nav-list > li > a:hover,
.vb-nav-list > li.current-menu-item > a {
  color: #ffd255;
}

/* Mobile Drawer */
.vb-mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 10000;
}
.vb-mobile-drawer.open { display: block; }
.vb-mobile-panel {
  width: 280px;
  max-width: 85vw;
  height: 100%;
  background: #1b5e3f;
  color: #fff;
  padding: 20px 16px;
  overflow-y: auto;
}
.vb-mobile-close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 26px;
  float: right;
  cursor: pointer;
}
.vb-mobile-menu { list-style: none; padding: 16px 0 0; margin: 0; clear: both; }
.vb-mobile-menu li { border-bottom: 1px solid rgba(255,255,255,0.14); }
.vb-mobile-menu a { display: block; padding: 12px 4px; color: #fff; font-weight: 700; text-transform: uppercase; font-size: 14px; }

/* Slider */
.vb-slider-wrap { margin-top: 12px; position: relative; border-radius: 8px; overflow: hidden; }
.vb-slides { display: flex; transition: transform .4s ease; }
.vb-slide { min-width: 100%; }
.vb-slide img { width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; }
.vb-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  z-index: 2;
}
.vb-slider-prev { left: 12px; }
.vb-slider-next { right: 12px; }
.vb-slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.vb-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.55);
  cursor: pointer;
  padding: 0;
}
.vb-dot.active { background: #fff; transform: scale(1.15); }

/* Pill Title */
.vb-pill-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px 0 14px;
  gap: 14px;
}
.vb-pill-title-wrap::before,
.vb-pill-title-wrap::after {
  content: "";
  flex: 1;
  height: 2px;
  background: #ececec;
}
.vb-pill-title {
  margin: 0;
  background-color: var(--vb-primary);
  border: 1px solid #e0ff30;
  padding: 7px 26px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  border-radius: 99px;
  text-align: center;
  line-height: 1.3;
}

/* 4 Feature Category Cards */
.vb-cat-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.vb-cat-card {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  transition: transform .25s ease;
}
.vb-cat-card:hover { transform: translateY(-3px); }
.vb-cat-card img { width: 100%; height: auto; aspect-ratio: 544 / 226; object-fit: cover; border-radius: 8px; }

/* Main 2-column Grid */
.vb-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.vb-green-box {
  background: #ffffff;
  border: 1px solid var(--vb-border-green);
  border-top-width: 3px;
  border-radius: 7px;
  padding: 20px;
  margin-top: 22px;
  position: relative;
}
.vb-green-box.bg-tint { background-color: rgb(250, 255, 234); }
.vb-box-pill {
  margin: -38px auto 14px;
  width: fit-content;
}
.vb-box-pill h2 {
  margin: 0;
  background: var(--vb-primary);
  border: 1px solid #e0ff30;
  color: #fff;
  font-size: 19px;
  padding: 5px 24px;
  border-radius: 99px;
}

/* Top Jackpot Table */
.vb-jackpot-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.vb-jackpot-table th, .vb-jackpot-table td { padding: 8px 10px; border-bottom: 1px solid #dce9c6; text-align: left; }
.vb-jackpot-table th { color: #1c6a43; font-weight: 700; }
.vb-jackpot-amt { color: #d32f2f; font-weight: 700; }

/* Game Grid 4 cols */
.vb-games-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.vb-game-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 7px;
  padding: 6px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.vb-game-card img { width: 100%; border-radius: 6px; aspect-ratio: 300 / 209; object-fit: cover; margin-bottom: 6px; }

/* Sidebar Sports */
.vb-sidebar-box {
  background: #fff;
  border: 1px solid var(--vb-border-green);
  border-top-width: 3px;
  border-radius: 7px;
  padding: 14px;
  margin-top: 22px;
  position: sticky;
  top: 130px;
}
.vb-sport-card { position: relative; margin-bottom: 14px; text-align: center; }
.vb-sport-card:last-child { margin-bottom: 0; }
.vb-sport-card img { width: 100%; border-radius: 7px; aspect-ratio: 300 / 241; object-fit: cover; margin-bottom: 6px; }
.vb-badge-hot, .vb-badge-moi {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 99px;
  z-index: 2;
}
.vb-badge-hot { background: #ffeb3b; color: #d32f2f; }
.vb-badge-moi { background: #e95a45; color: #fff; }

/* News Grid (Ban tin VB88) */
.vb-news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 30px;
}
.vb-news-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  background: #fff;
  border-radius: 7px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  align-items: center;
}
.vb-news-thumb { width: 140px; flex-shrink: 0; border-radius: 5px; overflow: hidden; }
.vb-news-thumb img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.vb-news-info h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.35; font-weight: 700; }
.vb-news-meta { font-size: 12px; color: #777; }

/* Article / Page / Archive */
.vb-breadcrumb { font-size: 13px; color: #666; margin: 16px 0 8px; }
.vb-breadcrumb a { color: #1c6a43; font-weight: 600; }
.vb-article-wrap {
  background: #fff;
  border: 1px solid #e6ece8;
  border-top: 3px solid var(--vb-border-green);
  border-radius: 8px;
  padding: 24px;
  margin: 14px 0 28px;
}
.vb-article-h1 { font-size: 28px; line-height: 1.3; margin: 0 0 12px; color: #0a0a0a; }
.vb-article-meta { font-size: 13px; color: #666; margin-bottom: 16px; }
.vb-featured-img { margin: 0 0 20px; border-radius: 8px; overflow: hidden; }
.vb-featured-img img { width: 100%; max-width: 800px; aspect-ratio: 2 / 1; object-fit: cover; margin: 0 auto; border-radius: 8px; }
.vb-prose h2 { font-size: 22px; color: #1c6a43; margin: 24px 0 10px; border-left: 4px solid var(--vb-primary); padding-left: 10px; }
.vb-prose h3 { font-size: 18px; color: #0a0a0a; margin: 18px 0 8px; }
.vb-prose p { margin: 0 0 14px; }
.vb-prose a { color: #0d7a4a; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.vb-prose a:hover { color: #16b068; }
.vb-prose ul, .vb-prose ol { margin: 0 0 16px; padding-left: 22px; }
.vb-prose li { margin-bottom: 6px; }
.vb-prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.vb-prose th, .vb-prose td { border: 1px solid #dce5df; padding: 10px; text-align: left; }
.vb-prose th { background: #eef8f3; color: #1c6a43; }
article figure, .vb-prose figure { margin: 18px auto 22px !important; text-align: center !important; max-width: 800px; }
article figure img, .vb-prose figure img { margin: 0 auto !important; display: block !important; border-radius: 8px; }
.wp-caption-text { font-size: 13px; color: #555; font-style: italic; margin-top: 6px; text-align: center; }

/* Related Posts Grid (responsive 4 cols PC, 2 cols Mobile) */
.vb-rel-section { margin: 24px 0 32px; }
.vb-rel-title { font-size: 20px; font-weight: 700; color: #1c6a43; margin: 0 0 14px; border-left: 4px solid var(--vb-primary); padding-left: 10px; }
.vb-rel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.vb-rel-card {
  background: #fff;
  border: 1px solid #e6ece8;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.vb-rel-card img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.vb-rel-card-title { padding: 10px 12px; font-size: 14px; font-weight: 700; line-height: 1.4; color: #0a0a0a; }

/* Archive Grid */
.vb-archive-intro {
  background: #f5fbf8;
  border: 1px solid #cfe7da;
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 22px;
}
.vb-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}
.vb-archive-card {
  background: #fff;
  border: 1px solid #e6ece8;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.vb-archive-card img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.vb-archive-body { padding: 14px; }
.vb-archive-body h2 { margin: 0 0 8px; font-size: 17px; line-height: 1.4; }
.vb-archive-body p { margin: 0; font-size: 14px; color: #555; }

/* Footer */
.vb-footer {
  position: relative;
  background-color: rgb(40, 40, 40);
  background-size: cover;
  background-position: 51% 79%;
  color: #ffffff;
  margin-top: 30px;
}
.vb-footer-overlay {
  background-color: rgba(0, 0, 0, 0.78);
  padding: 34px 0 26px;
}
.vb-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.vb-footer h3 {
  color: #ffffff;
  font-size: 16px;
  text-transform: uppercase;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
.vb-footer p, .vb-footer li, .vb-footer a { color: #e2e2e2; font-size: 14px; }
.vb-footer a:hover { color: #ffd255; }
.vb-footer-links { list-style: none; padding: 0; margin: 0; }
.vb-footer-links li { border-bottom: 1px solid rgba(255,255,255,0.1); padding: 8px 0; }
.vb-footer-bottom {
  background: #0a0a0a;
  color: #ccc;
  text-align: center;
  padding: 12px 15px;
  font-size: 13px;
}

/* Floating Social Icons */
.vb-float-social {
  position: fixed;
  right: 10px;
  top: 42%;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vb-float-social a img { width: 38px; height: 38px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }

/* Responsive */
@media (max-width: 960px) {
  .vb-main-grid { grid-template-columns: minmax(0, 1fr); }
  .vb-sidebar-box { position: static; }
  .vb-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vb-footer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
  .vb-hamburger { display: inline-flex; }
  .vb-nav-bar { display: none; }
  .vb-btn { padding: 7px 11px; font-size: 12px; }
  .vb-pill-title { font-size: 16px; padding: 6px 16px; }
  .vb-cat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .vb-games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vb-news-grid { grid-template-columns: minmax(0, 1fr); }
  .vb-rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vb-archive-grid { grid-template-columns: minmax(0, 1fr); }
  .vb-article-wrap { padding: 16px; }
  .vb-article-h1 { font-size: 22px; }
  .vb-float-social a img { width: 32px; height: 32px; }
}
