/*
Theme Name: 1xBet App Guide
Theme URI: https://1xbetbd-app.com/
Author: Site Editorial Team
Description: A fast multilingual theme focused exclusively on independent 1xBet App information.
Version: 1.0.4
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: bd-app-guide
*/

:root {
  --navy: #071d33;
  --navy-2: #0b2d4d;
  --blue: #1379c4;
  --sky: #e9f6ff;
  --green: #16a76b;
  --green-dark: #0d8252;
  --ink: #112235;
  --muted: #5c6b7a;
  --line: #dce5ed;
  --paper: #ffffff;
  --soft: #f5f8fb;
  --warning: #fff5db;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(7, 29, 51, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: #096cad; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #064c7b; }
button, input, textarea { font: inherit; }
.wrap { width: min(1160px, calc(100% - 36px)); margin-inline: auto; }
.narrow { width: min(800px, calc(100% - 36px)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; padding: 10px; background: #fff; z-index: 10000; }

.age-strip {
  background: #041321;
  color: #d9e9f6;
  font-size: 13px;
  text-align: center;
  padding: 7px 16px;
}
.age-strip strong { color: #fff; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(7,29,51,.98); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 22px; }
.brand { color: #fff; display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex: 0 0 auto; }
.brand-logo-wrap { min-width: 128px; height: 45px; padding: 0 16px; display: grid; place-items: center; border-radius: 11px; background: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.brand-logo { width: 100px; height: auto; }
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong { font-size: 17px; letter-spacing: .02em; }
.brand-copy small { margin-top: 4px; color: #a9c5d9; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a { color: #dcebf5; text-decoration: none; font-size: 14px; font-weight: 650; padding: 10px 9px; border-radius: 9px; }
.site-nav a:hover, .site-nav a:focus-visible { color: #fff; background: rgba(255,255,255,.09); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.btn, .header-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 11px; padding: 12px 18px; font-weight: 800; text-decoration: none; line-height: 1.2; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover, .header-btn:hover { transform: translateY(-1px); }
.header-btn { font-size: 13px; padding: 10px 14px; }
.btn-primary, .header-btn.primary { color: #fff; background: var(--green); box-shadow: 0 9px 20px rgba(22,167,107,.22); }
.btn-primary:hover, .header-btn.primary:hover { color: #fff; background: var(--green-dark); }
.btn-secondary, .header-btn.secondary { color: #fff; background: rgba(255,255,255,.11); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.btn-secondary:hover, .header-btn.secondary:hover { color: #fff; background: rgba(255,255,255,.18); }
.menu-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; border-radius: 11px; background: rgba(255,255,255,.10); color: #fff; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; margin: 5px auto; background: currentColor; border-radius: 5px; }

.hero { position: relative; overflow: hidden; background: radial-gradient(circle at 83% 22%, rgba(29,154,220,.30), transparent 30%), linear-gradient(135deg,var(--navy),#0a385e); color: #fff; padding: 78px 0 72px; }
.hero::before { content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%; left: -230px; bottom: -340px; background: rgba(22,167,107,.19); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0,1.08fr) minmax(300px,.92fr); align-items: center; gap: 58px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 7px 12px; color: #bfe4f7; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.hero h1 { margin: 18px 0 18px; max-width: 760px; font-size: clamp(38px,5.7vw,66px); line-height: 1.04; letter-spacing: -.045em; }
.hero p { max-width: 680px; color: #d4e7f4; font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 27px; color: #bfd5e4; font-size: 13px; }
.trust-row span::before { content: "✓"; margin-right: 7px; color: #66dfaa; font-weight: 900; }
.phone-art { position: relative; min-height: 465px; display: grid; place-items: center; }
.phone-art img { max-height: 460px; filter: drop-shadow(0 28px 30px rgba(0,0,0,.25)); }
.hero-note { position: absolute; right: 0; bottom: 30px; max-width: 240px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.96); color: var(--ink); box-shadow: var(--shadow); font-size: 13px; line-height: 1.5; }
.hero-note strong { display: block; color: var(--green-dark); }

.quick-facts { position: relative; z-index: 2; margin-top: -34px; }
.facts-grid { display: grid; grid-template-columns: repeat(4,1fr); background: #fff; border: 1px solid var(--line); border-radius: 17px; box-shadow: var(--shadow); overflow: hidden; }
.fact { padding: 19px 22px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact small { color: var(--muted); display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; }
.fact strong { display: block; margin-top: 4px; font-size: 15px; }

.section { padding: 72px 0; }
.section.soft { background: var(--soft); }
.section-head { max-width: 740px; margin-bottom: 32px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head h2 { margin: 8px 0 12px; font-size: clamp(30px,4vw,44px); line-height: 1.15; letter-spacing: -.035em; }
.section-head p { color: var(--muted); margin: 0; }
.kicker { color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.card-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 25px; box-shadow: 0 10px 25px rgba(12,40,65,.05); }
.card h3 { margin: 13px 0 8px; font-size: 21px; line-height: 1.28; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.icon-tile { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--sky); color: var(--blue); font-weight: 900; }
.guide-split { display: grid; grid-template-columns: .86fr 1.14fr; align-items: center; gap: 58px; }
.guide-art { border-radius: 26px; background: linear-gradient(145deg,#e8f7ff,#e7fff3); padding: 32px; }
.longform { padding-top: 24px; }
.jump-box { margin: 0 0 46px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); }
.jump-box strong { display: block; margin-bottom: 12px; }
.jump-links { display: flex; flex-wrap: wrap; gap: 8px; }
.jump-links a { padding: 7px 11px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: #34536b; text-decoration: none; font-size: 13px; font-weight: 700; }
.long-section { padding: 28px 0 48px; border-bottom: 1px solid var(--line); }
.long-section:last-child { border-bottom: 0; }
.long-section-grid { display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: 42px; align-items: center; }
.long-section:nth-child(even) .long-section-grid { grid-template-columns: 290px minmax(0,1fr); }
.long-section:nth-child(even) .long-copy { order: 2; }
.long-copy h2 { margin: 0 0 16px; font-size: clamp(28px,4vw,39px); line-height: 1.18; letter-spacing: -.03em; }
.long-copy h3 { margin: 25px 0 10px; }
.long-copy p { color: #40566a; }
.long-copy ul, .long-copy ol { padding-left: 22px; }
.long-copy li { margin: 8px 0; }
.app-shot { margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(145deg,#f5fbff,#eafff4); text-align: center; box-shadow: 0 12px 28px rgba(12,40,65,.07); }
.app-shot img { max-height: 470px; margin: 0 auto; border-radius: 11px; }
.app-shot.wide img { max-height: none; }
.app-shot figcaption { margin-top: 11px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.screen-gallery { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; margin: 28px 0; }
.screen-gallery figure { margin: 0; padding: 9px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.screen-gallery img { width: 100%; border-radius: 9px; }
.screen-gallery figcaption { margin-top: 7px; color: var(--muted); font-size: 11px; text-align: center; }
.comparison-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.comparison-table th, .comparison-table td { padding: 13px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison-table th { background: var(--navy); color: #fff; }
.long-faq { margin-top: 48px; padding: 32px; border-radius: 22px; background: var(--soft); }
.long-faq h2 { margin-top: 0; }
.long-faq details { border-bottom: 1px solid var(--line); }
.long-faq summary { padding: 15px 0; font-weight: 800; cursor: pointer; }
.long-faq p { padding-bottom: 15px; color: var(--muted); }
.check-list { margin: 22px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 10px 0 10px 34px; border-bottom: 1px solid var(--line); }
.check-list li:last-child { border: 0; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 10px; width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--green); font-size: 12px; font-weight: 900; }
.notice { margin: 26px 0; padding: 17px 19px; border: 1px solid #f2d48a; border-left: 4px solid #e3a925; border-radius: 11px; background: var(--warning); color: #513f16; font-size: 14px; }
.notice strong { display: block; margin-bottom: 3px; }

.article-hero { background: linear-gradient(135deg,var(--navy),var(--navy-2)); color: #fff; padding: 55px 0; }
.article-hero .breadcrumbs { color: #a9c6d9; font-size: 13px; margin-bottom: 15px; }
.article-hero .breadcrumbs a { color: #d9effc; }
.article-hero h1 { margin: 0; max-width: 900px; font-size: clamp(34px,5vw,54px); line-height: 1.08; letter-spacing: -.04em; }
.article-hero p { margin: 15px 0 0; max-width: 760px; color: #cbe0ed; }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 18px; color: #b9d0df; font-size: 13px; }
.content-shell { display: grid; grid-template-columns: minmax(0,780px) 280px; gap: 48px; align-items: start; padding: 58px 0 78px; }
.prose { min-width: 0; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 42px 0 14px; font-size: 31px; line-height: 1.22; letter-spacing: -.025em; }
.prose h3 { margin: 30px 0 10px; font-size: 23px; line-height: 1.3; }
.prose p { margin: 0 0 19px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin: 8px 0; }
.prose img { margin: 30px auto; border-radius: 18px; background: var(--soft); }
.prose table { width: 100%; border-collapse: collapse; margin: 25px 0; font-size: 15px; }
.prose th, .prose td { padding: 13px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--navy); color: #fff; }
.prose blockquote { margin: 28px 0; padding: 18px 22px; border-left: 4px solid var(--blue); background: var(--sky); }
.prose details { border: 1px solid var(--line); border-radius: 12px; padding: 0 17px; margin: 12px 0; background: #fff; }
.prose summary { padding: 16px 0; font-weight: 800; cursor: pointer; }
.prose details p { padding-bottom: 15px; color: var(--muted); }
.toc { position: sticky; top: 106px; border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: var(--soft); font-size: 14px; }
.toc strong { display: block; margin-bottom: 10px; }
.toc a { display: block; padding: 6px 0; color: #34536b; text-decoration: none; }
.toc a:hover { color: var(--blue); }

.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.post-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 10px 25px rgba(12,40,65,.05); }
.post-card-art { display: grid; place-items: center; min-height: 160px; background: linear-gradient(135deg,#dff3ff,#e8fff4); }
.post-card-art span { width: 74px; height: 74px; display: grid; place-items: center; border-radius: 22px; background: #fff; color: var(--blue); font-size: 27px; font-weight: 900; box-shadow: 0 12px 24px rgba(8,50,78,.12); }
.post-card-body { padding: 22px; }
.post-card-body small { color: var(--blue); font-weight: 800; }
.post-card-body h2, .post-card-body h3 { margin: 8px 0 10px; font-size: 21px; line-height: 1.3; }
.post-card-body h2 a, .post-card-body h3 a { color: var(--ink); text-decoration: none; }
.post-card-body p { margin: 0; color: var(--muted); font-size: 14px; }
.post-card-body .read-more { display: inline-block; margin-top: 16px; font-weight: 800; font-size: 14px; }

.contact-form { display: grid; gap: 15px; max-width: 650px; }
.contact-form label { font-weight: 800; font-size: 14px; }
.contact-form input, .contact-form textarea { width: 100%; margin-top: 6px; border: 1px solid #bccbd7; border-radius: 10px; padding: 12px 13px; background: #fff; color: var(--ink); }
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid rgba(19,121,196,.15); border-color: var(--blue); }
.form-status { padding: 14px 16px; border-radius: 10px; background: #e8fbf2; border: 1px solid #a8e6c8; }
.hp-field { position: absolute !important; left: -9999px !important; }

.lang-switcher { position: fixed; right: 18px; bottom: 18px; z-index: 120; }
.lang-button { display: flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 16px; color: #fff; background: var(--navy); box-shadow: 0 12px 30px rgba(0,0,0,.22); font-weight: 800; cursor: pointer; }
.lang-menu { display: none; position: absolute; right: 0; bottom: 54px; min-width: 180px; padding: 8px; border-radius: 13px; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); }
.lang-switcher.open .lang-menu { display: block; }
.lang-menu a { display: block; padding: 10px 12px; border-radius: 9px; color: var(--ink); text-decoration: none; font-size: 14px; }
.lang-menu a:hover, .lang-menu a[aria-current="true"] { background: var(--sky); color: var(--blue); }

.site-footer { background: #061827; color: #c4d5e0; padding: 55px 0 25px; }
.footer-grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr; gap: 50px; }
.site-footer h2, .site-footer h3 { color: #fff; margin-top: 0; }
.site-footer p, .site-footer li { font-size: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 8px 0; }
.site-footer a { color: #d9edf9; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 35px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; gap: 20px; justify-content: space-between; color: #90a8b8; font-size: 12px; }
.age-badge { display: inline-grid; place-items: center; width: 45px; height: 45px; border: 2px solid #f3ca55; color: #f3ca55; border-radius: 50%; font-weight: 900; }
.footer-logo { display: inline-grid; place-items: center; min-width: 118px; min-height: 42px; padding: 10px 12px; border-radius: 10px; background: #fff; margin: 12px 0 15px; }
.pagination { margin-top: 35px; }
.pagination .page-numbers { display: inline-block; padding: 8px 12px; margin-right: 4px; border-radius: 8px; background: var(--soft); text-decoration: none; }
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 70px 0; }

@media (max-width: 1040px) {
  .site-nav, .header-actions { display: none; }
  .menu-toggle { display: block; }
  .site-header.menu-open .site-nav { display: grid; position: absolute; left: 18px; right: 18px; top: 74px; margin: 0; padding: 12px; border-radius: 14px; background: var(--navy); box-shadow: var(--shadow); }
  .site-header.menu-open .site-nav a { padding: 12px; }
  .site-header.menu-open .header-actions { display: flex; position: absolute; left: 30px; right: 30px; top: 370px; padding: 12px 0 18px; background: var(--navy); }
  .hero-grid { grid-template-columns: 1fr .76fr; gap: 28px; }
  .content-shell { grid-template-columns: minmax(0,1fr) 240px; gap: 32px; }
}

@media (max-width: 780px) {
  body { font-size: 16px; }
  .wrap, .narrow { width: min(100% - 28px, 1160px); }
  .header-inner { min-height: 68px; }
  .brand-logo-wrap { min-width: 112px; height: 39px; padding-inline: 10px; }
  .brand-logo { width: 88px; }
  .brand-copy strong { font-size: 15px; }
  .brand-copy small { display: none; }
  .site-header.menu-open .site-nav { top: 67px; }
  .site-header.menu-open .header-actions { top: 360px; }
  .hero { padding: 54px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(38px,12vw,55px); }
  .hero p { font-size: 17px; }
  .phone-art { min-height: 330px; }
  .phone-art img { max-height: 330px; }
  .hero-note { right: 2px; bottom: 5px; max-width: 205px; }
  .facts-grid { grid-template-columns: repeat(2,1fr); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section { padding: 54px 0; }
  .card-grid, .blog-grid { grid-template-columns: 1fr; }
  .guide-split { grid-template-columns: 1fr; gap: 30px; }
  .long-section-grid, .long-section:nth-child(even) .long-section-grid { grid-template-columns: 1fr; gap: 25px; }
  .long-section:nth-child(even) .long-copy { order: initial; }
  .app-shot { max-width: 360px; margin-inline: auto; }
  .screen-gallery { grid-template-columns: repeat(2,1fr); }
  .content-shell { grid-template-columns: 1fr; padding-top: 38px; }
  .toc { position: static; order: -1; }
  .prose h2 { font-size: 27px; }
  .article-hero { padding: 42px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { display: block; }
  .lang-switcher { right: 12px; bottom: 12px; }
}

@media (max-width: 460px) {
  .facts-grid { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); }
  .fact:last-child { border-bottom: 0; }
  .hero-actions .btn { width: 100%; }
  .article-meta { display: grid; gap: 5px; }
  .prose table { display: block; overflow-x: auto; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
