/*
Theme Name: 4777bet বাংলা গাইড
Theme URI: https://4777bet.space/
Author: 4777bet বাংলা গাইড
Description: Bangladesh-focused independent brand, games and mobile information theme.
Version: 1.0.1
Text Domain: bet-guide
*/

:root {
  --bg: #f4f8f6;
  --surface: #ffffff;
  --hero: #0f7a5a;
  --hero-deep: #0a5c45;
  --accent: #18a879;
  --accent-soft: #7bc9a9;
  --highlight: #f1c75b;
  --text: #102a22;
  --muted: #60736b;
  --border: #d8e8e0;
  --info: #eaf6f1;
  --warning: #fff5d9;
  --warning-text: #946316;
  --danger: #b84b4b;
  --focus: #064e3b;
  --wide: 1160px;
  --reading: 780px;
  --radius-card: 18px;
  --radius-button: 12px;
  --shadow: 0 14px 36px rgba(17, 84, 63, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans Bengali", "Nirmala UI", "Vrinda", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  overflow-wrap: break-word;
}
body.nav-open { overflow: hidden; }
a { color: var(--hero); text-decoration-thickness: 2px; text-underline-offset: .18em; }
a:hover { color: var(--hero-deep); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: #fff;
  color: var(--focus);
  border-radius: 8px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.site-header { background: var(--hero); color: #fff; }
.header-inner {
  width: min(calc(100% - 40px), var(--wide));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.site-branding { display: flex; flex: 0 0 auto; align-items: center; }
.site-logo, .custom-logo-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  text-decoration: none;
}
.site-logo {
  color: #fff;
  font-family: system-ui, sans-serif;
  font-size: 1.42rem;
  font-weight: 850;
  letter-spacing: -.03em;
}
.site-logo:hover { color: #fff; }
.custom-logo {
  width: auto;
  height: 44px;
  max-width: 174px;
  object-fit: contain;
}
.site-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: flex;
  min-height: 48px;
  align-items: center;
  padding: 0 15px;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a { background: rgba(255, 255, 255, .14); }
.menu-toggle {
  display: none;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 10px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  content: "";
}
.menu-icon { position: relative; }
.menu-icon::before { position: absolute; top: -7px; }
.menu-icon::after { position: absolute; top: 7px; }
.menu-label { font-size: .88rem; font-weight: 750; }

.article-header {
  background: linear-gradient(145deg, var(--hero) 0%, var(--hero-deep) 100%);
  color: #fff;
  padding: 64px 0 58px;
}
.article-header-inner { width: min(calc(100% - 40px), var(--reading)); margin: 0 auto; }
.article-header h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.15rem, 5vw, 4rem);
  line-height: 1.15;
  letter-spacing: -.035em;
}
.article-lead { margin: 22px 0 0; max-width: 730px; font-size: 1.16rem; line-height: 1.75; color: rgba(255,255,255,.93); }
.updated { margin: 20px 0 0; color: rgba(255,255,255,.74); font-size: .88rem; }

.site-main { min-width: 0; }
.content-shell {
  width: min(calc(100% - 40px), var(--reading));
  margin: 0 auto;
  padding: 64px 0 76px;
}
.content-wide { width: min(calc(100% - 40px), var(--wide)); }
.prose > section { padding: 0 0 56px; margin: 0 0 56px; border-bottom: 1px solid var(--border); }
.prose > section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.prose h2 { margin: 0 0 22px; font-size: clamp(1.65rem, 3.3vw, 2.35rem); line-height: 1.25; letter-spacing: -.025em; }
.prose h3 { margin: 35px 0 10px; font-size: clamp(1.22rem, 2.4vw, 1.55rem); line-height: 1.35; }
.prose p { margin: 0 0 1.25em; }
.prose ul, .prose ol { margin: 0 0 1.4em; padding-inline-start: 1.35em; }
.prose li + li { margin-top: .5em; }
.prose strong { color: #0a5c45; }

.content-image { margin: 34px 0 38px; }
.content-image img { width: 100%; border-radius: var(--radius-card); box-shadow: var(--shadow); background: var(--surface); }
.content-image figcaption { margin-top: 10px; color: var(--muted); font-size: .88rem; }
.section-link, .button-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  border-radius: var(--radius-button);
  background: var(--hero);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
  transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.section-link:hover, .button-link:hover { background: var(--hero-deep); color: #fff; box-shadow: 0 8px 22px rgba(15,122,90,.18); transform: translateY(-1px); }
.text-link { font-weight: 750; }
.link-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.notice {
  margin: 28px 0;
  padding: 20px 22px;
  border-inline-start: 5px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: var(--info);
}
.notice.warning { border-inline-start-color: var(--highlight); background: var(--warning); color: var(--warning-text); }
.notice p:last-child { margin-bottom: 0; }

.table-wrap { margin: 30px 0 38px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); box-shadow: 0 8px 24px rgba(17,84,63,.06); }
table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .96rem; }
th, td { padding: 16px 17px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--border); }
th { background: var(--info); color: var(--hero-deep); font-weight: 800; }
tr:last-child td { border-bottom: 0; }

.page-close { padding: 28px 0 0; }
.legal-list { padding-inline-start: 1.3em; }
.not-found { text-align: center; }

.site-footer { background: var(--text); color: rgba(255,255,255,.82); }
.footer-inner { width: min(calc(100% - 40px), var(--wide)); margin: 0 auto; padding: 48px 0 32px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, .8fr); gap: 54px; align-items: start; }
.footer-brand { margin: 0 0 12px; color: #fff; font-family: system-ui, sans-serif; font-size: 1.5rem; font-weight: 850; }
.footer-copy { max-width: 650px; margin: 0 0 12px; }
.footer-note { color: rgba(255,255,255,.66); font-size: .9rem; }
.footer-nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; list-style: none; margin: 0; padding: 0; }
.footer-nav a { display: flex; min-height: 44px; align-items: center; padding: 5px 8px; color: #fff; font-weight: 700; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.55); font-size: .85rem; }

.posts-list { display: grid; gap: 18px; }
.post-card { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow); }
.post-card h2 { margin-top: 0; }

@media (max-width: 767px) {
  body { font-size: 16px; }
  .header-inner { width: min(calc(100% - 32px), var(--wide)); min-height: 58px; }
  .site-logo, .custom-logo-link { min-height: 48px; }
  .site-logo { font-size: 1.28rem; }
  .custom-logo { height: 38px; max-width: 150px; }
  .js .menu-toggle { display: inline-flex; }
  .site-nav { width: 100%; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 6px 0 12px; }
  .site-nav a { width: 100%; padding-inline: 16px; }
  .header-inner { flex-wrap: wrap; gap: 0; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .article-header { padding: 42px 0 38px; }
  .article-header-inner, .content-shell, .content-wide { width: min(calc(100% - 32px), var(--reading)); }
  .article-header h1 { font-size: clamp(2rem, 10vw, 2.65rem); }
  .article-lead { font-size: 1.04rem; }
  .content-shell { padding: 44px 0 56px; }
  .prose > section { padding-bottom: 40px; margin-bottom: 40px; }
  .prose h2 { font-size: 1.65rem; }
  .content-image img { border-radius: 14px; }
  .section-link, .button-link { width: 100%; }
  .link-row { flex-direction: column; }
  .footer-inner { width: min(calc(100% - 32px), var(--wide)); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-nav ul { grid-template-columns: 1fr; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .js .menu-toggle { display: inline-flex; }
  .header-inner { flex-wrap: wrap; gap: 0; }
  .site-nav { width: 100%; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding-bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
