/*
Theme Name: Jaya9 Satellite
Theme URI: https://seo.casino/
Description: Classic PHP theme for Jaya9 Bangladesh satellite sites. Content is built with ACF Pro Flexible Content; ready for Yoast SEO, Polylang and W3 Total Cache.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: jaya9
License: GPLv2 or later
*/

/* =========================================================
   Jaya9 satellite template
   Palette taken from jaya9bangla.com (computed styles)
   ========================================================= */

:root {
  /* blues - header gradient and accents */
  --blue-light: #5B52C7;
  --blue-dark: #142590;
  --blue-mid: #3539A9;
  --blue-soft: #514BBE;

  /* oranges - buttons and menu bar */
  --orange: #F56908;
  --orange-from: #F48020;
  --orange-to: #F05724;

  /* neutrals */
  --text: rgba(0, 0, 0, .87);
  --muted: #777777;
  --line: #DDDDDD;
  --line-strong: #D5D5D5;
  --bg-soft: #F3F3F3;
  --white: #FFFFFF;
  --dark: #111111;

  --green: #04B22B;

  --grad-header: linear-gradient(180deg, var(--blue-light), var(--blue-dark));
  --grad-orange: linear-gradient(90deg, var(--orange-from), var(--orange-to));

  --radius: 4px;
  --radius-lg: 10px;
  --container: 1140px;
  --header-h: 108px;

  --font: "Readex Pro", "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- fonts (local, assets/fonts) ---------- */
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url("/wp-content/themes/jaya9/assets/fonts/readex-pro-400.woff2") format("woff2"); }
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 500; font-display: swap; src: url("/wp-content/themes/jaya9/assets/fonts/readex-pro-500.woff2") format("woff2"); }
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url("/wp-content/themes/jaya9/assets/fonts/readex-pro-600.woff2") format("woff2"); }
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 700; font-display: swap; src: url("/wp-content/themes/jaya9/assets/fonts/readex-pro-700.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans Bengali"; font-style: normal; font-weight: 400; font-display: swap; src: url("/wp-content/themes/jaya9/assets/fonts/noto-bengali-taka-400.woff2") format("woff2"); unicode-range: U+09F3; }
@font-face { font-family: "Noto Sans Bengali"; font-style: normal; font-weight: 700; font-display: swap; src: url("/wp-content/themes/jaya9/assets/fonts/noto-bengali-taka-700.woff2") format("woff2"); unicode-range: U+09F3; }

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-dark); }
a:hover { color: var(--orange); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-to); color: var(--white); }

.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--blue-dark); }

.btn-light { background: var(--white); color: var(--orange); }
.btn-light:hover { background: var(--blue-dark); color: var(--white); }

.btn-lg { min-height: 48px; padding: 0 30px; font-size: 16px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--grad-header);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 58px;
}

.logo img { height: 34px; width: auto; }

.header-actions { display: flex; gap: 10px; }
.header-actions .btn { min-height: 34px; padding: 0 20px; font-size: 14px; }

/* menu bar */
.main-nav { background: var(--grad-orange); }

.nav-list {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0 auto;
  height: 42px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-list::-webkit-scrollbar { display: none; }

.nav-list a {
  display: block;
  padding: 0 16px;
  line-height: 42px;
  color: var(--white);
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
}
.nav-list li + li a::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 14px;
  height: 14px;
  width: 1px;
  background: rgba(255, 255, 255, .45);
}
.nav-list a:hover,
.nav-list .current-menu-item > a { background: rgba(0, 0, 0, .1); color: var(--white); }

/* ---------- hero ---------- */
.hero {
  background: var(--bg-soft);
  border-bottom: 3px solid var(--orange);
  padding: 48px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 44px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  margin-bottom: 14px;
  border-radius: var(--radius);
  background: var(--green);
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.2;
  font-weight: 700;
  color: var(--blue-dark);
}

.hero p {
  margin: 0 0 26px;
  font-size: 16px;
  color: var(--muted);
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-buttons .btn-outline { color: var(--blue-dark); border-color: var(--blue-dark); }
.hero-buttons .btn-outline:hover { background: var(--blue-dark); color: var(--white); }

.hero-cover {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(20, 37, 144, .25);
  aspect-ratio: 16 / 9;
  background: var(--grad-header);
}
.hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.hero--single .hero-grid { grid-template-columns: 1fr; max-width: 900px; }

/* ---------- layout ---------- */
.content-wrap { padding-top: 40px; padding-bottom: 56px; max-width: 900px; }

/* ---------- table of contents ---------- */
.toc {
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  background: var(--white);
  margin-bottom: 40px;
}

.toc summary {
  padding: 14px 20px;
  font-weight: 600;
  font-size: 17px;
  color: var(--blue-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: rotate(45deg);
  transition: transform .2s;
}
.toc[open] summary::after { transform: rotate(-135deg); }

.toc ol {
  margin: 0;
  padding: 4px 20px 18px 40px;
  columns: 2;
  column-gap: 40px;
}
.toc li { padding: 4px 0; break-inside: avoid; }
.toc li::marker { color: var(--orange); font-weight: 600; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--orange); }

/* ---------- article typography ---------- */
.content section { scroll-margin-top: calc(var(--header-h) + 16px); }

.content h2,
.content h3,
.content h4 { color: var(--blue-dark); line-height: 1.3; font-weight: 600; }

.content h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 28px;
  margin: 48px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

/* inline SVG icon badge in H2 */
.h-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background: var(--grad-orange);
  box-shadow: 0 6px 14px rgba(240, 87, 36, .3);
}
.h-icon svg,
.li-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--white);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* decorative emoji */
.emo {
  display: inline-block;
  margin-right: 8px;
  font-style: normal;
  line-height: 1;
}
.content h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 64px;
  height: 3px;
  background: var(--orange);
}
.content section:first-child h2 { margin-top: 0; }

.content h3 { font-size: 21px; margin: 32px 0 12px; }

.content h4 { font-size: 17px; margin: 24px 0 10px; color: var(--blue-mid); }

.content p { margin: 0 0 16px; }

/* image block */
.content .j9-figure { margin: 0 0 24px; }
.content .j9-figure img { border-radius: var(--radius-lg); }
.content .j9-figure figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* lists */
.content ul,
.content ol { margin: 0 0 20px; padding-left: 0; list-style: none; }

.content ul li,
.content ol li { position: relative; padding-left: 32px; margin-bottom: 8px; }

.content ul li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.content ol { counter-reset: num; }
.content ol li { counter-increment: num; }
.content ol li::before {
  content: counter(num);
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue-dark);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  line-height: 22px;
  text-align: center;
}

.content .list-columns { columns: 2; column-gap: 32px; }
.content .list-columns li { break-inside: avoid; }

/* icon list: emoji or SVG check instead of the dot */
.content ul.list-check {
  display: grid;
  gap: 10px;
}
.content ul.list-check li {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.content ul.list-check li::before { display: none; }
.content ul.list-check li .emo { font-size: 20px; margin-right: 10px; }
.content ul.list-check .li-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 2px 10px 0 0;
  padding: 4px;
  border-radius: 50%;
  background: var(--green);
  stroke-width: 3;
}

/* callout box */
.callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 0 0 20px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  background: #EEEDFA;
  border-left: 4px solid var(--blue-light);
}
.callout p { margin: 0; }
.callout-icon { font-size: 22px; line-height: 1.3; }
.callout--calc { background: #FEF0E6; border-left-color: var(--orange); }
.callout--warn { background: var(--bg-soft); border-left-color: var(--dark); }

/* chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 500;
}

/* platform cards */
.platforms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 20px;
}
.platform {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: var(--grad-header);
  color: var(--white);
}
.platform-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  font-size: 24px;
}
.platform strong { display: block; font-size: 17px; font-weight: 600; }
.platform div span { font-size: 14px; color: rgba(255, 255, 255, .85); }

/* payment marker in tables */
.pay-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 50%;
  vertical-align: 1px;
}
.pay-dot--bkash { background: var(--orange-to); }
.pay-dot--nagad { background: var(--orange); }
.pay-dot--rocket { background: var(--blue-light); }
.pay-dot--bank { background: var(--blue-dark); }

/* FAQ accordion */
.faq { display: grid; gap: 10px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
}
.faq details[open] { border-color: var(--orange); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--orange);
  font-size: 20px;
  line-height: 27px;
  text-align: center;
  transition: transform .2s, background-color .2s;
}
.faq details[open] summary::after { content: "−"; background: var(--orange); color: var(--white); }
.content .faq h3 { margin: 0; font-size: 17px; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* tables: scroll horizontally inside their own frame on mobile */
.table-wrap {
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-wrap table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15px;
}
.table-wrap table.table-facts { min-width: 0; }

.table-wrap th,
.table-wrap td { padding: 12px 16px; text-align: left; vertical-align: top; }

.table-wrap thead th {
  background: var(--grad-header);
  color: var(--white);
  font-weight: 500;
  white-space: nowrap;
}

.table-wrap tbody tr:nth-child(even) { background: var(--bg-soft); }
.table-wrap tbody tr + tr td { border-top: 1px solid var(--line); }
.table-wrap tbody td:first-child { font-weight: 500; color: var(--blue-dark); }

/* ---------- promo banners ---------- */
.promo-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  margin: 48px 0;
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  background: var(--grad-header);
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(20, 37, 144, .28);
}
.promo-banner::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--grad-orange);
}
.promo-banner::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 30px solid rgba(255, 255, 255, .06);
  pointer-events: none;
}

.promo-logo { width: 140px; height: auto; }

.promo-title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.promo-subtitle { margin: 0; font-size: 15px; color: rgba(255, 255, 255, .85); }

.promo-btn {
  position: relative;
  z-index: 1;
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(245, 105, 8, .6); }
  70%  { box-shadow: 0 0 0 14px rgba(245, 105, 8, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 105, 8, 0); }
}

/* orange variant: logo sits on a blue plate so it stays readable */
.promo-banner--orange { background: var(--grad-orange); box-shadow: 0 12px 28px rgba(240, 87, 36, .3); }
.promo-banner--orange::before { background: var(--blue-dark); }
.promo-banner--orange .promo-logo {
  background: var(--blue-dark);
  padding: 12px 14px;
  border-radius: var(--radius);
  width: 164px;
}
.promo-banner--orange .promo-subtitle { color: rgba(255, 255, 255, .92); }
.promo-banner--orange .promo-btn { animation-name: pulse-white; }

@keyframes pulse-white {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); }
  70%  { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .promo-btn { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- disclaimer ---------- */
.disclaimer {
  background: var(--blue-mid);
  color: var(--white);
  padding: 22px 0;
}

.disclaimer-inner { display: flex; gap: 18px; align-items: flex-start; }
.disclaimer p { margin: 0; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .9); }
.disclaimer p + p { margin-top: 8px; }
.disclaimer a { color: var(--white); }
.disclaimer a:hover { color: var(--orange-from); }

.age-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  background: var(--white);
  color: var(--orange);
  font-weight: 700;
  font-size: 16px;
}
.age-badge--sm { width: 34px; height: 34px; font-size: 12px; }

/* ---------- footer ---------- */
.site-footer { background: var(--line-strong); color: var(--text); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 32px;
}

.footer-brand .logo img { height: 32px; }
.footer-brand p { margin: 14px 0 0; font-size: 14px; color: var(--muted); max-width: 320px; }

.footer-title {
  margin: 0 0 12px;
  font-weight: 600;
  font-size: 15px;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text); text-decoration: none; font-size: 14px; }
.footer-col a:hover { color: var(--orange); }

.footer-bottom { border-top: 1px solid rgba(0, 0, 0, .12); }
.footer-bottom-inner { display: flex; align-items: center; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.footer-bottom p { margin: 0; font-size: 13px; color: var(--muted); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-cover { order: -1; }
  .promo-banner { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --header-h: 96px; }
  .header-bar { height: 54px; }
  .logo img { height: 26px; }
  .header-actions { gap: 6px; }
  .header-actions .btn { padding: 0 12px; font-size: 13px; min-height: 32px; }
  .nav-list a { padding: 0 12px; font-size: 14px; }

  .hero { padding: 24px 0 32px; }
  .hero p { font-size: 16px; }
  .hero-buttons .btn { flex: 1 1 140px; }

  .toc ol { columns: 1; }
  .content h2 { font-size: 23px; margin-top: 40px; gap: 10px; }
  .h-icon { width: 34px; height: 34px; }
  .h-icon svg { width: 19px; height: 19px; }
  .callout { padding: 14px 16px; }
  .content h3 { font-size: 19px; }
  .promo-banner { padding: 24px 20px; margin: 36px 0; }
  .promo-title { font-size: 20px; }
  .promo-btn { width: 100%; }
}

@media (max-width: 420px) {
  .container { padding-left: 14px; padding-right: 14px; }
  .logo img { height: 22px; }
  .header-actions .btn { padding: 0 10px; font-size: 12px; }
  .hero h1 { font-size: 25px; }
  .content .list-columns { columns: 1; }
  .platforms { grid-template-columns: 1fr; }
  .faq summary { padding: 14px 16px; }
  .faq details p { padding: 0 16px 16px; }
  .table-wrap th,
  .table-wrap td { padding: 10px 12px; font-size: 14px; }
  .disclaimer-inner { flex-direction: column; align-items: center; text-align: center; }

  /* mobile footer: single column, centred */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .footer-brand .logo img { margin: 0 auto; }
  .footer-brand p { margin-left: auto; margin-right: auto; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}
