/*
Theme Name: Lucien Elementor
Theme URI: https://1xbet8xbet.com/
Author: 1xbet8xbet.com
Description: WordPress theme converted from the 1xbet8xbet.com static site. Fully Elementor compatible: every page section is an editable Elementor widget, header and footer are shared and managed from Appearance → Customize and Appearance → Menus. Includes a one-click demo importer (Appearance → Lucien Demo Import).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lucien
Tags: elementor, one-column, custom-menu, custom-logo, theme-options
*/

/* =========================================================
   1xbet8xbet.com — static build (8XBET-style structure)
   Primary green #0d5a3c · Accent emerald #12a150
   ========================================================= */
:root{
  --navy:#0d5a3c;
  --blue:#12a150;
  --navy-dark:#083f2a;
  --heading:#0d5a3c;
  --text:#333333;
  --muted:#5a5a5a;
  --border:#e6e6e6;
  --bg-soft:#f4f7fb;
  --max:1140px;
  --content:820px;
  --radius:10px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Inter","Segoe UI",Arial,Helvetica,sans-serif;
  color:var(--text);
  background:#fff;
  line-height:1.7;
  font-size:16px;
}
img{max-width:100%;height:auto;display:block}
a{text-decoration:none;color:var(--blue)}
a:hover{color:var(--navy)}
.container{width:min(var(--max),calc(100% - 32px));margin:0 auto}

h1,h2,h3,h4,h5,h6{font-family:"Inter",sans-serif;color:var(--heading);line-height:1.3}
h1{font-size:30px;margin:0 0 18px}
h2{font-size:24px;margin:34px 0 14px}
h3{font-size:19px;margin:24px 0 10px}
p{margin:0 0 15px}
ul{margin:0 0 16px;padding-left:22px}
li{margin-bottom:8px}

/* ---------------- Buttons ---------------- */
.btn{display:inline-block;padding:10px 22px;border-radius:6px;font-weight:600;font-size:15px;color:#fff;transition:.25s;white-space:nowrap}
.btn-register{background:var(--navy)}
.btn-login{background:var(--blue)}
.btn:hover{color:#fff;filter:brightness(1.08);transform:translateY(-1px)}

/* ---------------- Header ---------------- */
.site-header{background:#fff;box-shadow:0 2px 14px rgba(0,0,0,.08);position:sticky;top:0;z-index:1000}
.header-top{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:70px}
.logo img{height:38px;width:auto}
.header-buttons{display:flex;gap:10px}
.nav-toggle{display:none;flex-direction:column;gap:5px;width:44px;height:44px;background:none;border:none;cursor:pointer;padding:9px}
.nav-toggle span{display:block;height:3px;width:100%;background:var(--navy);border-radius:2px;transition:.3s}

/* Bottom nav bar */
.header-nav{background:var(--navy)}
.main-nav{display:flex;flex-wrap:wrap;justify-content:center;gap:2px;list-style:none;margin:0;padding:0}
.main-nav>li>a{display:block;padding:13px 16px;color:#fff;font-weight:600;font-size:15px}
.main-nav>li>a:hover,.main-nav>li.active>a{color:#fff;background:var(--blue)}

/* ---------------- Hero ---------------- */
.hero{padding:24px 0}
.hero-slide img{width:100%;border-radius:var(--radius);box-shadow:0 8px 26px rgba(24,48,89,.15)}

/* ---------------- Article ---------------- */
.article{padding:10px 0 40px}
.article-inner{max-width:var(--content);margin:0 auto}
.article-inner p strong,.article-inner a{color:var(--blue)}
.article-figure{margin:22px auto;text-align:center}
.article-figure img{width:100%;border-radius:var(--radius);box-shadow:0 6px 22px rgba(24,48,89,.12)}
.article-figure figcaption{font-size:13px;color:var(--muted);margin-top:8px;font-style:italic}
.note-center{text-align:center;background:var(--bg-soft);border-left:4px solid var(--blue);padding:14px 18px;border-radius:8px}
.note-center>:last-child{margin-bottom:0}

/* ---------------- FAQ table ---------------- */
.faq-section{padding:20px 0}
.faq-section h2{text-align:center}
.table-wrap{overflow-x:auto;margin:18px auto;max-width:var(--content)}
table{width:100%;min-width:560px;border-collapse:collapse;border:1px solid var(--border)}
th,td{padding:13px 16px;border:1px solid var(--border);text-align:left;vertical-align:top;font-size:15px}
th{background:var(--navy);color:#fff;font-weight:700}
tbody tr:nth-child(even){background:var(--bg-soft)}

/* ---------------- Game grid ---------------- */
.block{padding:26px 0}
.block h2{text-align:center;margin-bottom:22px}
.game-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:14px}
.game-grid .cell{background:var(--bg-soft);border-radius:12px;padding:14px;display:flex;align-items:center;justify-content:center;transition:.25s}
.game-grid .cell:hover{transform:translateY(-4px);box-shadow:0 8px 20px rgba(24,48,89,.15)}
.game-grid img{width:100%;height:auto;border-radius:8px}

/* ---------------- Payment grid ---------------- */
.pay-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}
.pay-grid .cell{background:#fff;border:1px solid var(--border);border-radius:10px;padding:12px;display:flex;align-items:center;justify-content:center;min-height:74px}
.pay-grid img{max-height:48px;width:auto}

/* ---------------- Footer ---------------- */
.site-footer{background:var(--navy);color:#d7deea;padding:44px 0 0;margin-top:30px}
.footer-grid{display:grid;grid-template-columns:2fr 1.2fr 1.2fr 1.4fr;gap:28px}
.site-footer h4,.site-footer h5,.site-footer h6{color:#fff;margin:0 0 14px;font-size:16px}
.footer-logo{max-width:150px;margin:0 0 12px}
.site-footer p{color:#c3cddd;font-size:14px}
.footer-links{list-style:none;padding:0;margin:0}
.footer-links li{margin-bottom:10px}
.footer-links a{color:#c3cddd;font-size:14px;display:flex;align-items:center;gap:8px}
.footer-links a:hover{color:#fff}
.footer-links .ico{color:var(--blue);font-weight:700}
.dmca{margin-top:16px}
.hashtags{font-size:12px;color:#96a3ba;word-spacing:2px}
.footer-bottom{border-top:1px solid rgba(255,255,255,.12);margin-top:30px;padding:16px 0}
.footer-bottom-inner{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.footer-bottom p{margin:0;font-size:13px;color:#c3cddd}
.socials{display:flex;gap:10px}
.socials a{width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.1);display:flex;align-items:center;justify-content:center;color:#fff;font-size:13px;font-weight:700;transition:.25s}
.socials a:hover{background:var(--blue)}

/* ---------------- Back to top ---------------- */
.back-to-top{position:fixed;right:20px;bottom:20px;width:46px;height:46px;border-radius:50%;background:var(--blue);color:#fff;display:flex;align-items:center;justify-content:center;font-size:22px;opacity:0;visibility:hidden;transition:.3s;z-index:900;border:none;cursor:pointer}
.back-to-top.show{opacity:1;visibility:visible}

/* ---------------- Responsive ---------------- */
@media (max-width:1024px){
  .game-grid{grid-template-columns:repeat(4,1fr)}
  .pay-grid{grid-template-columns:repeat(4,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:768px){
  .nav-toggle{display:flex}
  .header-nav{display:none}
  .header-nav.open{display:block}
  .main-nav{flex-direction:column}
  .main-nav>li>a{padding:12px 16px;border-top:1px solid rgba(255,255,255,.1)}
  h1{font-size:24px}h2{font-size:21px}
  .game-grid{grid-template-columns:repeat(3,1fr)}
  .pay-grid{grid-template-columns:repeat(3,1fr)}
  .footer-grid{grid-template-columns:1fr}
}
@media (max-width:480px){
  .game-grid{grid-template-columns:repeat(2,1fr)}
  .pay-grid{grid-template-columns:repeat(2,1fr)}
}

/* ---------------- Mobile fixes (header overflow + body width) ---------------- */
html,body{max-width:100%}
.article-inner,.site-footer{overflow-wrap:anywhere}
@media (max-width:768px){
  .header-top{min-height:60px;gap:10px;flex-wrap:nowrap}
  .logo{flex:0 0 auto}
  .logo svg,.logo img{height:32px!important}
  .header-buttons{gap:6px;flex:0 1 auto;min-width:0}
  .header-buttons .btn{padding:8px 12px;font-size:13px}
  .nav-toggle{flex:0 0 44px;margin-left:auto}
  .article-figure{margin:16px auto}
  table{min-width:480px}
  th,td{padding:10px 12px;font-size:14px}
}
@media (max-width:400px){
  .header-top{gap:8px}
  .logo svg,.logo img{height:28px!important}
  .header-buttons{gap:4px}
  .header-buttons .btn{padding:7px 9px;font-size:12px}
  .nav-toggle{flex:0 0 40px;width:40px;padding:8px}
  h1{font-size:22px}h2{font-size:19px}h3{font-size:17px}
  table{min-width:420px}
}

/* ---------------- Sticky header (desktop + mobile) ---------------- */
html,body{overflow-x:clip}
.site-header{position:sticky;top:0;z-index:1000}
h1[id],h2[id],h3[id],section[id],div[id]{scroll-margin-top:130px}
html{scroll-behavior:smooth}
@media (max-width:768px){
  h1[id],h2[id],h3[id],section[id],div[id]{scroll-margin-top:70px}
  .header-nav.open{max-height:calc(100vh - 60px);overflow-y:auto}
}

/* ---------------- Promo banner (global, from footer.js) ---------------- */
.promo-banner{position:fixed;bottom:0;left:0;right:0;z-index:9999;display:flex;width:1250px;margin:auto;justify-content:center}
.banner-item img{width:100%;display:block}
@media (max-width:767px){
  .promo-banner{display:block;background:#fff;width:100%;margin:auto}
}

/* =========================================================
   WordPress / Elementor compatibility
   (keeps the original look when content is built in Elementor)
   ========================================================= */
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}
.main-nav>li.current-menu-item>a,.main-nav>li.current_page_item>a{color:#fff;background:var(--blue)}
.main-nav .sub-menu{display:none}
.admin-bar .site-header{top:32px}
@media (max-width:782px){.admin-bar .site-header{top:46px}}
@media (max-width:600px){.admin-bar .site-header{top:0}}

/* Lucien Elementor widgets: zero out Elementor's own widget spacing */
.elementor .elementor-element[class*="elementor-widget-lucien-"]{margin-bottom:0;margin-block-end:0}
.elementor-widget-lucien-article .lucien-article-block{display:flow-root}
.elementor-widget-lucien-article .lucien-article-block>:last-child,
.elementor-widget-lucien-article .lucien-article-text>:last-child{margin-bottom:0}
.elementor-widget-lucien-article .lucien-article-block>.lucien-article-text:first-child>:first-child{margin-top:0}
.elementor-widget-lucien-article .lucien-article-block>:first-child:not(h1):not(h2):not(h3){margin-top:0}
.lucien-article-block .wp-caption{max-width:100%}

/* Elementor resets figures and images (margin/radius/shadow) – restore the original design */
.elementor .elementor-widget .container.article-inner figure.article-figure{margin:22px auto}
@media (max-width:768px){.elementor .elementor-widget .container.article-inner figure.article-figure{margin:16px auto}}
.elementor .hero .hero-slide img{width:100%;border-radius:var(--radius);box-shadow:0 8px 26px rgba(24,48,89,.15)}
.elementor .article-inner .article-figure img{width:100%;border-radius:var(--radius);box-shadow:0 6px 22px rgba(24,48,89,.12)}
.elementor .game-grid img{width:100%;height:auto;border-radius:8px}
.elementor .pay-grid img{max-height:48px;width:auto}
.elementor .article-inner a,.elementor .article-inner p strong{color:var(--blue)}

/* Lucien Button widget */
.lucien-btn-wrap{display:flex;gap:10px;flex-wrap:wrap}
.lucien-btn-wrap.align-center{justify-content:center}
.lucien-btn-wrap.align-right{justify-content:flex-end}

/* Non-Elementor (classic / block editor) content */
.article-inner .wp-block-image img,.article-inner .alignnone img{border-radius:var(--radius)}
.article-inner .aligncenter{margin-left:auto;margin-right:auto}
.post-list{list-style:none;padding:0;margin:0}
.post-list li{padding:18px 0;border-bottom:1px solid var(--border)}
.post-list h2{margin:0 0 8px;font-size:21px}
.post-list h2 a{color:var(--heading)}
.pagination{display:flex;gap:8px;flex-wrap:wrap;margin-top:24px}
.pagination .page-numbers{padding:6px 12px;border:1px solid var(--border);border-radius:6px}
.pagination .current{background:var(--navy);color:#fff;border-color:var(--navy)}
