/*
Theme Name: F8BET BETPER724 Royal Blue Child
Template: generatepress
Version: 2.0
*/
html, body { background: #ffffff !important; color: #111827 !important; font-family: 'Be Vietnam Pro', 'Roboto', sans-serif !important; overflow-x: clip !important; margin: 0; padding: 0; }
#page, .site-content, main, .f8-wrap { max-width: 100% !important; min-width: 0 !important; box-sizing: border-box !important; }
.site-header, .main-navigation, #masthead, .site-footer { display: none !important; }

/* TIER 1: WHITE TOP HEADER (LOGO LEFT + 2 ORANGE CTAS RIGHT) */
.f8-hd-wrap { position: sticky; top: 0; z-index: 999; box-shadow: 0 2px 10px rgba(5,83,224,.12); }
.f8-top-bar { background: #ffffff; border-bottom: 1px solid #e5e7eb; }
.f8-top-in { max-width: 1120px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.f8-logo img { height: 50px; width: auto; display: block; }
.f8-ctas { display: flex; gap: 10px; align-items: center; }
.f8-btn-orange { background: #eb8900; color: #ffffff !important; font-weight: 700; font-size: 13.5px; padding: 9px 20px; border-radius: 5px; text-decoration: none; text-transform: uppercase; letter-spacing: .3px; transition: background .15s, transform .15s; white-space: nowrap; }
.f8-btn-orange:hover { background: #d97706; transform: translateY(-1px); }

/* TIER 2: FULL-WIDTH ROYAL BLUE #0553e0 NAV BAR */
.f8-nav-bar { background: #0553e0; }
.f8-nav-in { max-width: 1120px; margin: 0 auto; padding: 0 12px; }
.f8-nav-in ul { margin: 0; padding: 0; list-style: none; display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; }
.f8-nav-in li a { display: block; padding: 12px 16px; color: #ffffff !important; font-weight: 700; font-size: 13.5px; text-decoration: none; text-transform: uppercase; transition: color .15s, background .15s; white-space: nowrap; }
.f8-nav-in li a:hover, .f8-nav-in li.active a { color: #eeee22 !important; background: rgba(255,255,255,.10); }

/* MAIN CONTENT (CLEAN FULL-FLOW WHITE CANVAS LIKE m.47betlike.com) */
.f8-wrap { max-width: 1120px !important; margin: 0 auto; padding: 18px 16px 36px; background: #ffffff; }
.f8-bc { padding: 7px 14px; background: #eff6ff; border-left: 4px solid #0553e0; border-radius: 4px; font-size: 13px; font-weight: 700; margin-bottom: 16px; color: #334155; }
.f8-bc a { color: #0553e0; text-decoration: none; }
.f8-hero { margin: 0 0 22px; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.f8-hero img { width: 100%; height: auto; display: block; }

/* 6-CARD GAME GRID (WIRE REAL CATEGORY LINKS) */
.f8-game-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 0 0 26px; }
.f8-game-tile { display: block; text-decoration: none; border-radius: 10px; overflow: hidden; background: #ffffff; border: 2px solid #dbeafe; box-shadow: 0 3px 10px rgba(5,83,224,.08); transition: transform .18s, border-color .18s; }
.f8-game-tile:hover { transform: translateY(-3px); border-color: #0553e0; }
.f8-game-tile img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; display: block; }
.f8-game-tile span { display: block; text-align: center; padding: 8px 6px; font-size: 12.5px; font-weight: 800; color: #0553e0; text-transform: uppercase; background: #f8fbff; }

/* 5-CARD SANH GAME STRIP */
.f8-sec-h2 { color: #0553e0; font-size: 22px; font-weight: 800; text-align: center; margin: 30px 0 16px; text-transform: uppercase; letter-spacing: .3px; }
.f8-sanh-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 0 0 28px; }
.f8-sanh-card { display: block; text-decoration: none; border-radius: 10px; overflow: hidden; background: linear-gradient(180deg, #0553e0, #123084); color: #ffffff !important; box-shadow: 0 4px 12px rgba(5,83,224,.18); transition: transform .18s; }
.f8-sanh-card:hover { transform: translateY(-3px); }
.f8-sanh-card img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; display: block; }
.f8-sanh-card b { display: block; text-align: center; padding: 9px 8px; font-size: 12.5px; font-weight: 800; color: #eeee22; text-transform: uppercase; }

/* EDITORIAL CONTENT */
.f8-h1 { color: #0553e0; font-size: 26px; font-weight: 800; line-height: 1.35; margin: 8px 0 18px; text-align: center; }
.f8-content h2 { color: #0553e0; font-size: 20px; font-weight: 800; margin: 28px 0 12px; padding: 8px 14px; background: #eff6ff; border-left: 4px solid #0553e0; border-radius: 0 6px 6px 0; }
.f8-content h3 { color: #123084; font-size: 16.5px; font-weight: 700; margin: 18px 0 6px; }
.f8-content p, .f8-content li { font-size: 15.5px; line-height: 1.78; color: #1f2937; }
.f8-content p { margin: 0 0 14px; }
.f8-content ul, .f8-content ol { margin: 0 0 16px 22px; }
.f8-content a { color: #0553e0; font-weight: 600; text-decoration: underline; }
.f8-content a:hover { color: #dd3333; }
.f8-content table { width: 100%; border-collapse: collapse; margin: 16px 0 22px; font-size: 14.5px; }
.f8-content th { background: #0553e0; color: #ffffff; padding: 10px 12px; text-align: left; border: 1px solid #cbd5e1; }
.f8-content td { border: 1px solid #cbd5e1; padding: 9px 12px; color: #1f2937; }
.f8-fig { margin: 16px auto 20px; text-align: center; max-width: 800px; }
.f8-fig img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.12); display: block; margin: 0 auto; }
.f8-fig figcaption { font-size: 13px; color: #475569; margin-top: 6px; font-style: italic; }
.cta-box { background: linear-gradient(135deg, #eff6ff, #dbeafe); border: 2px solid #0553e0; border-radius: 10px; padding: 18px 20px; margin: 22px 0; text-align: center; }
.cta-box a { display: inline-block; margin-top: 10px; background: #eb8900; color: #ffffff !important; font-weight: 800; padding: 10px 26px; border-radius: 6px; text-decoration: none; }

/* 3x2 LATEST POSTS GRID (MATCH m.47betlike.com) */
.f8-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 16px 0 28px; }
.f8-post-card { display: flex; flex-direction: column; text-decoration: none; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.05); transition: transform .18s, box-shadow .18s; }
.f8-post-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(5,83,224,.12); }
.f8-post-card img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; display: block; }
.f8-post-body { padding: 12px 14px; }
.f8-post-body h3 { margin: 0 0 6px; font-size: 15px; font-weight: 700; color: #0553e0; line-height: 1.4; }
.f8-post-body p { margin: 0; font-size: 13.5px; color: #475569; line-height: 1.55; }

/* 2-TIER FOOTER MATCHING m.47betlike.com (LIGHT SKY-BLUE + DEEP NAVY #123084 BAR) */
.f8-ft-upper { background: #e8f1ff; border-top: 3px solid #0553e0; padding: 30px 16px; color: #1e293b; }
.f8-ft-in { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.f8-ft-logo img { height: 48px; width: auto; margin-bottom: 10px; display: block; }
.f8-ft-upper p { font-size: 14px; line-height: 1.7; margin: 0 0 10px; color: #334155; }
.f8-ft-title { font-size: 15px; font-weight: 800; color: #0553e0; text-transform: uppercase; margin: 0 0 12px; border-bottom: 2px solid #bfdbfe; padding-bottom: 6px; }
.f8-ft-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.f8-ft-links a { color: #123084; font-size: 14px; font-weight: 600; text-decoration: none; }
.f8-ft-links a:hover { color: #dd3333; text-decoration: underline; }
.f8-ft-bottom { background: #123084; color: #ffffff; text-align: center; padding: 14px 16px 76px; font-size: 13.5px; font-weight: 600; }

/* STICKY BOTTOM GIF & DELAYED POPUP */
#f8-sticky { position: fixed; left: 0; right: 0; bottom: 8px; z-index: 9998; display: flex; justify-content: center; pointer-events: none; }
.f8-st-box { position: relative; display: flex; gap: 8px; pointer-events: auto; max-width: 96vw; }
.f8-st-box a img { height: 64px; width: auto; border-radius: 6px; display: block; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.f8-st-close { position: absolute; top: -12px; right: -8px; background: #eb8900; color: #fff; border: none; border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 800; cursor: pointer; }
#f8-pop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 99999; align-items: center; justify-content: center; padding: 16px; }
.f8-pop-in { position: relative; max-width: 460px; width: 100%; }
.f8-pop-in img { width: 100%; height: auto; border-radius: 10px; display: block; }
.f8-pop-close { position: absolute; top: -12px; right: -10px; background: #eb8900; color: #fff; border: none; border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 800; cursor: pointer; }

@media (max-width: 960px) {
  .f8-game-grid { grid-template-columns: repeat(3, 1fr); }
  .f8-sanh-grid { grid-template-columns: repeat(2, 1fr); }
  .f8-post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .f8-top-in { flex-wrap: wrap; justify-content: center; gap: 8px; padding: 8px 12px; }
  .f8-logo img { height: 40px; }
  .f8-btn-orange { padding: 7px 14px; font-size: 12px; }
  .f8-nav-in li a { padding: 8px 10px; font-size: 12px; }
  .f8-game-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .f8-post-grid { grid-template-columns: 1fr; }
  .f8-ft-in { grid-template-columns: 1fr; gap: 20px; }
  .f8-content table { display: block !important; overflow-x: auto !important; width: 100% !important; }
  .f8-st-box a:nth-of-type(2) { display: none !important; }
  .f8-st-box a img { height: auto; max-width: 94vw; }
}

/* MOBILE STRICT 100% WIDTH LOCK (FIX FLEX EXPANSION) */
#page, .site-content, main.f8-wrap, .f8-content { width: 100% !important; max-width: 1120px !important; min-width: 0 !important; box-sizing: border-box !important; }
@media (max-width: 768px) {
  #page, .site-content, main.f8-wrap { width: 100vw !important; max-width: 100% !important; overflow-x: hidden !important; padding-left: 12px !important; padding-right: 12px !important; }
  .f8-content, .f8-content * { max-width: 100% !important; box-sizing: border-box !important; }
  .f8-content table { display: block !important; width: 100% !important; max-width: calc(100vw - 24px) !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
}


/* CENTER ALL CONTENT FIGURES & CAPTIONS */
.f8-content figure, .f8b-fig, .f8-fig { margin: 18px auto 22px !important; text-align: center !important; max-width: 800px !important; width: 100% !important; display: block !important; }
.f8-content figure img, .f8b-fig img, .f8-fig img { margin: 0 auto !important; display: block !important; max-width: 100% !important; height: auto !important; border-radius: 8px; }
.f8-content figcaption, .f8b-fig figcaption, .f8-fig figcaption { text-align: center !important; font-size: 13.5px; color: #475569; margin-top: 6px; font-style: italic; }

