/* ===========================================================
   PGSLOT168 – Bootstrap 5 rebuild  (cloned from idea-bet.live)
   Theme: gold / orange / red Asian gaming
   =========================================================== */

:root {
  --pg-orange: #ff7900;
  --pg-gold:   #ffc107;
  --pg-gold-2: #ffe082;
  --pg-red:    #c1121f;
  --pg-dark:   #2b0a0a;
  --pg-dark-2: #1a0606;
  --pg-text:   #fff7e6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Kanit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--pg-text);
  background: var(--pg-dark-2);
  overflow-x: hidden;
}

a { text-decoration: none; }
img { max-width: 100%; height: auto; }

.text-gold   { color: var(--pg-gold) !important; }
.text-orange { color: var(--pg-orange) !important; }
.bg-pg-dark  { background: var(--pg-dark); }

h1, h2, h3, h4 { font-weight: 700; }

.section-title {
  text-align: center;
  margin-bottom: 1.75rem;
  text-shadow: 0 2px 6px rgba(0,0,0,.6);
}
.section-title span { color: var(--pg-gold); }
.section-title::after {
  content: "";
  display: block;
  width: 90px; height: 4px;
  margin: .75rem auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--pg-orange), var(--pg-gold));
}

/* ---------- Top bar ---------- */
.topbar {
  background: linear-gradient(90deg, #7a0d10, #c1121f 50%, #7a0d10);
  font-size: .85rem;
}

/* ---------- Navbar ---------- */
.navbar.pg-nav {
  background: linear-gradient(180deg, #3a0c0c, #2b0a0a);
  border-bottom: 2px solid var(--pg-orange);
  box-shadow: 0 4px 18px rgba(0,0,0,.5);
}
.pg-nav .navbar-brand img { height: 56px; }
.pg-nav .nav-link {
  color: var(--pg-text) !important;
  font-weight: 500;
  padding: .35rem .9rem !important;
  transition: color .2s;
}
.pg-nav .nav-link:hover,
.pg-nav .nav-link.active { color: var(--pg-gold) !important; }

/* image-text buttons (register / login) */
.btn-img { display: inline-block; line-height: 0; transition: transform .15s; }
.btn-img:hover { transform: translateY(-2px) scale(1.03); }
.btn-img img { height: 50px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(43,10,10,.15), rgba(26,6,6,.9)),
    url('../img/2025/05/bg0001-1.webp') center top / cover no-repeat,
    var(--pg-dark);
  padding: 4rem 0 3rem;
  overflow: hidden;
}
.hero h1 {
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.2;
  text-shadow: 0 3px 10px rgba(0,0,0,.7);
}
.hero .lead { color: #ffe9c7; }
.hero-dragon {
  filter: drop-shadow(0 10px 25px rgba(0,0,0,.5));
  animation: floaty 5s ease-in-out infinite;
}
@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }

/* ---------- Marquee / camp logos ---------- */
.marquee {
  overflow: hidden;
  background: rgba(0,0,0,.35);
  border-block: 1px solid rgba(255,193,7,.25);
  padding: 14px 0;
}
.marquee__track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: scroll-x 32s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee img { height: 60px; width: auto; opacity: .9; }
@keyframes scroll-x { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ---------- Game cards ---------- */
.game-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #1f0808;
  border: 1px solid rgba(255,193,7,.25);
  box-shadow: 0 6px 16px rgba(0,0,0,.45);
  transition: transform .2s, box-shadow .2s;
}
.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(255,121,0,.35);
}
.game-card img { aspect-ratio: 3/4; object-fit: cover; width: 100%; display: block; }
.game-card .play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.45);
  opacity: 0; transition: opacity .2s;
}
.game-card:hover .play { opacity: 1; }
.game-card .play .btn { font-weight: 600; }

/* ---------- Feature cards ---------- */
.feature-card {
  height: 100%;
  background: linear-gradient(180deg, #3a0c0c, #240808);
  border: 1px solid rgba(255,193,7,.3);
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: transform .2s, border-color .2s;
}
.feature-card:hover { transform: translateY(-5px); border-color: var(--pg-gold); }
.feature-card img { height: 84px; margin-bottom: 1rem; }
.feature-card h5 { color: var(--pg-gold); }

/* ---------- Content (SEO) ---------- */
.content-section {
  background: var(--pg-dark);
  border-top: 1px solid rgba(255,193,7,.15);
}
.content-section h2 { color: var(--pg-gold); margin-top: 1.75rem; }
.content-section p,
.content-section li { color: #e9d9c2; line-height: 1.9; }
.content-section .lead-box {
  background: rgba(255,121,0,.08);
  border-left: 4px solid var(--pg-orange);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

/* ---------- Articles ---------- */
.article-card {
  background: #240808;
  border: 1px solid rgba(255,193,7,.25);
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  transition: transform .2s;
}
.article-card:hover { transform: translateY(-5px); }
.article-card img { aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.article-card .body { padding: 1rem; }

/* ---------- Payment band ---------- */
.pay-band {
  background:
    linear-gradient(rgba(26,6,6,.85), rgba(26,6,6,.92)),
    url('../img/2025/05/gold01.webp') center / cover;
  text-align: center;
}

/* ---------- Footer ---------- */
.pg-footer {
  background:
    linear-gradient(rgba(20,4,4,.92), rgba(20,4,4,.97)),
    url('../img/2022/03/footer001.webp') center / cover;
  padding-top: 3rem;
}
.pg-footer a { color: #e9d9c2; }
.pg-footer a:hover { color: var(--pg-gold); }
.pg-footer .social img { height: 44px; margin: 0 6px; transition: transform .15s; }
.pg-footer .social img:hover { transform: scale(1.12); }
.footer-copy {
  background: #100303;
  border-top: 1px solid rgba(255,193,7,.2);
  font-size: .85rem;
  color: #b89b7a;
}

/* ---------- Scroll-to-top ---------- */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 1030;
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(180deg, var(--pg-orange), var(--pg-red));
  color: #fff; border: none; font-size: 1.2rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.5);
  display: none;
}
.to-top.show { display: block; }

/* ---------- Floating contact ---------- */
.float-contact {
  position: fixed; left: 14px; bottom: 18px; z-index: 1030;
  display: flex; flex-direction: column; gap: 10px;
}
.float-contact img { height: 52px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); transition: transform .15s; }
.float-contact a:hover img { transform: scale(1.1); }

@media (max-width: 575.98px) {
  .pg-nav .navbar-brand img { height: 46px; }
  .btn-img img { height: 42px; }
}

/* ==========================================================================
   PAGE-BUILDER BLOCKS (block_type 1-18) — เนื้อหา CMS กลางหน้า
   เดิม class พวกนี้ไม่มีนิยามใน ripley → ใส่พื้นหลัง/กรอบให้ content
   ========================================================================== */
.super-body { color: var(--pg-text); }
.b-color { color: var(--pg-gold); font-weight: 700; }
.d-color { color: #f0dcc4; }

/* กล่องเนื้อหา (block_type 1,2,3,7,8) */
.v-content {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.25));
  border: 1px solid rgba(255,193,7,.28);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 10px 26px rgba(0,0,0,.4);
  line-height: 1.85;
}
.v-content img { border-radius: 10px; }
.v-content a { color: var(--pg-gold); }

/* การ์ด FAQ / content */
.bg-faq {
  background: linear-gradient(180deg, rgba(43,10,10,.85), rgba(26,6,6,.92)) !important;
  border: 1px solid rgba(255,193,7,.25);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,.4);
}

/* FAQ (block_type 5) */
.fags h2 { color: var(--pg-gold); }
.fags .bg-faq { transition: transform .18s ease, border-color .2s ease; }
.fags .bg-faq:hover { transform: translateY(-3px); border-color: rgba(255,193,7,.6); }
.fags .bg-faq h3 {
  display: flex; align-items: flex-start; gap: 10px;
  padding-bottom: 12px; margin-bottom: 12px;
  border-bottom: 1px dashed rgba(255,193,7,.3);
  color: var(--pg-gold); font-weight: 700;
}
.fags .bg-faq h3::before {
  content: "Q"; flex: 0 0 auto; display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(180deg, var(--pg-gold), var(--pg-orange));
  color: var(--pg-dark); font-weight: 800;
}
.fags .bg-faq p { display: flex; align-items: flex-start; gap: 10px; margin: 0; color: #f0dcc4; line-height: 1.8; }
.fags .bg-faq p::before {
  content: "A"; flex: 0 0 auto; display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--pg-red); color: #fff; font-weight: 800;
}

/* block ผลบอลสด / ผลหวย (ถ้ามีในหน้า) */
.livescore-block, .lotto-block, .football-block, .lottopage-block {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.3));
  border: 1px solid rgba(255,193,7,.25);
  border-radius: 14px; padding: 18px 16px;
  box-shadow: 0 10px 26px rgba(0,0,0,.4);
}

/* ==========================================================================
   MOBILE BOTTOM ACTION BAR — ปุ่มเข้าสู่ระบบ/สมัคร ลอยล่างจอ (เฉพาะมือถือ)
   ========================================================================== */
.mobile-actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1045;
  display: flex; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(26,6,6,.82), rgba(26,6,6,.98));
  border-top: 1px solid rgba(255,193,7,.32);
  box-shadow: 0 -6px 20px rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
}
.mab-btn {
  flex: 1; text-align: center;
  padding: 11px 8px; border-radius: 10px;
  font-weight: 700; font-size: .95rem; line-height: 1.1;
  box-shadow: 0 4px 12px rgba(0,0,0,.35);
}
.mab-login    { background: linear-gradient(180deg, var(--pg-gold), var(--pg-orange)); color: var(--pg-dark); }
.mab-register { background: linear-gradient(180deg, var(--pg-red), #8a0010); color: #fff; }
.mab-btn:active { transform: translateY(1px); }
/* เว้นที่ด้านล่าง + ยกปุ่มลอยเดิมขึ้นเหนือแถบ บนมือถือ */
@media (max-width: 991.98px) {
  body { padding-bottom: 68px; }
  .to-top { bottom: 80px; }
  .float-contact { bottom: 80px; }
}

/* ============================================================
   NAVBAR TOGGLER (hamburger) — เดิม icon default สีเข้มกลืนกับ navbar มืดแดง
   ใส่กรอบ + ไอคอนเส้นสีทองให้เห็นชัด
   ============================================================ */
.pg-nav .navbar-toggler{
  border:2px solid rgba(255,193,7,.6); border-radius:10px;
  padding:.35rem .55rem; background:rgba(0,0,0,.3);
}
.pg-nav .navbar-toggler:focus{ box-shadow:0 0 0 .2rem rgba(255,193,7,.35); outline:none; }
.pg-nav .navbar-toggler-icon{
  width:1.4em; height:1.4em;
  background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffc107' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.6' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== OFFCANVAS MOBILE MENU (offset) — RIPLEY ===== */
.pg-offcanvas{ background:var(--pg-dark-2,#1a0606); color:#e9d9c2; }
.pg-offcanvas .offcanvas-title{ color:var(--pg-gold,#ffc107); font-weight:700; }
.pg-offcanvas .nav-link{ color:#e9d9c2; }
.pg-offcanvas .nav-link.active,.pg-offcanvas .nav-link:hover{ color:var(--pg-gold,#ffc107) !important; }
.pg-offcanvas .btn-img img{ max-height:42px; }
