/*
Theme Name: Blue Swan Lottery
Theme URI: https://blueswanlottery.com
Description: Blue Swan Lottery Child Theme for Astra - Thai Lottery Website
Author: Blue Swan Lottery
Template: astra
Version: 4.0.0
Text Domain: blueswan-child
*/

/* ============================================================
   GOOGLE FONTS — Cinzel (display) + Sarabun (Thai body)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;800;900&family=Kanit:wght@300;400;500;600;700;800&family=Sarabun:wght@300;400;500;600;700;800&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --color-primary:        #0D47A1;
  --color-primary-dark:   #0a1f4e;
  --color-primary-light:  #1565C0;
  --color-secondary:      #00B0FF;
  --color-tertiary:       #FFD700;
  --color-tertiary-dark:  #F9A825;
  --color-body-bg:        #0a1628;
  --color-card-bg:        rgba(13, 25, 52, 0.75);
  --color-footer-bg:      #050d1a;
  --color-neutral:        #F5F7FA;
  --color-white:          #FFFFFF;
  --color-text-on-dark:   #FFFFFF;
  --color-text-muted:     rgba(255,255,255,0.72);
  --font-display:         'Cinzel', 'Sarabun', serif;
  --font-primary:         'Sarabun', sans-serif;
  --container-max:        1200px;
  --transition:           all 0.3s ease;
  --radius-sm:            8px;
  --radius-md:            16px;
  --radius-lg:            24px;
  --radius-xl:            32px;
  --shadow-gold:          0 0 40px rgba(255,215,0,0.45), 0 4px 24px rgba(255,215,0,0.25);
  --shadow-card:          0 8px 40px rgba(0,0,0,0.55);
  --shadow-glow-blue:     0 0 40px rgba(0,176,255,0.25);
  --glass-bg:             rgba(255,255,255,0.05);
  --glass-border:         rgba(255,255,255,0.1);
}

/* ============================================================
   GLOBAL RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-image: url('images/BS-bg1.jpg');
  background-repeat: no-repeat;
  background-position: bottom left;
  background-size: cover;
  min-height: 100vh;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-on-dark);
  background-color: var(--color-body-bg);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

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

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-tertiary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-on-dark);
  margin-top: 0;
}

p {
  color: var(--color-text-muted);
  margin-top: 0;
}

/* Astra overrides — hide default header/footer on homepage */
body.home .site-header,
body.front-page .site-header,
body.home .site-footer,
body.front-page .site-footer,
body.home #ast-scroll-top,
body.front-page #ast-scroll-top {
  display: none !important;
}

body.home #content,
body.front-page #content,
body.home .site-content,
body.front-page .site-content,
body.home .ast-container,
body.front-page .ast-container {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}

body.home .entry-content,
body.front-page .entry-content {
  padding: 0 !important;
  margin: 0 !important;
}

/* ============================================================
   KEYFRAME ANIMATIONS
   ============================================================ */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-20px) rotate(2deg); }
  66%       { transform: translateY(-10px) rotate(-1.5deg); }
}

@keyframes float2 {
  0%, 100% { transform: translateY(0px) scale(1); }
  50%       { transform: translateY(-28px) scale(1.06); }
}

@keyframes float3 {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  25%       { transform: translateY(-14px) translateX(8px); }
  75%       { transform: translateY(8px) translateX(-6px); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes shimmer-text {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,215,0,0.5); }
  50%       { box-shadow: 0 0 0 14px rgba(255,215,0,0); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

@keyframes step-line-grow {
  from { width: 0; }
  to   { width: 100%; }
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.bs-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   GRADIENT SECTION DIVIDER
   ============================================================ */
.bs-gradient-line {
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0,176,255,0.4) 20%,
    rgba(255,215,0,0.7) 50%,
    rgba(0,176,255,0.4) 80%,
    transparent 100%);
  border: none;
  margin: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.bs-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.bs-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bs-btn:hover::before {
  opacity: 1;
}

.bs-btn-gold {
  background: linear-gradient(to top, #d4a017, #f5c842);
  color: #1a1a1a;
  border-color: transparent;
  font-weight: 800;
}

.bs-btn-gold:hover {
  background: linear-gradient(to top, #c4960f, #eab308);
  color: #1a1a1a;
  box-shadow: 0 0 24px rgba(234,179,8,0.4);
  transform: translateY(-2px);
}

.bs-btn-outline-gold {
  background: rgba(75, 85, 99, 0.3);
  color: #FFFFFF;
  border-color: transparent;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.bs-btn-outline-gold:hover {
  background: rgba(55, 65, 81, 0.6);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}

.bs-btn-lg {
  padding: 18px 48px;
  font-size: 17px;
}

.bs-btn-sm {
  padding: 10px 22px;
  font-size: 13px;
}

/* ============================================================
   SECTION HEADING COMMON
   ============================================================ */
.bs-section-heading {
  text-align: center;
  margin-bottom: 60px;
}

.bs-section-heading__label {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 14px;
  padding: 5px 20px;
  border: 1px solid rgba(0,176,255,0.35);
  border-radius: 20px;
  background: rgba(0,176,255,0.08);
}

.bs-section-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #FFFFFF 20%, #FFD700 60%, #F9A825 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer-text 4s ease infinite;
}

.bs-section-heading p {
  color: rgba(255,255,255,0.58);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================================
   1. HEADER (NON-STICKY, SCROLLS NORMALLY)
   ============================================================ */
.bs-header {
  position: relative;
  z-index: 100;
  background: linear-gradient(135deg, #07152e 0%, #0D47A1 55%, #0a2260 100%);
  border-bottom: 1px solid rgba(255,215,0,0.25);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.bs-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.bs-header__logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: 1px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}

.bs-header__logo-text:hover {
  color: var(--color-tertiary);
  text-shadow: 0 0 24px rgba(255,215,0,0.6);
}

.bs-header__logo img {
  height: 56px;
  width: auto;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5));
}

.bs-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ============================================================
   2. HERO SECTION
   ============================================================ */
.bs-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(13,71,161,0.7) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(0,176,255,0.12) 0%, transparent 60%),
    linear-gradient(160deg, #07152e 0%, #0a1628 40%, #0d1f3c 70%, #0a1628 100%);
}

/* Decorative floating orbs */
.bs-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.bs-hero__orb--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(13,71,161,0.5) 0%, transparent 70%);
  top: -120px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.bs-hero__orb--2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0,176,255,0.18) 0%, transparent 70%);
  bottom: 0;
  left: -80px;
  animation: float2 10s ease-in-out infinite;
}

.bs-hero__orb--3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,215,0,0.12) 0%, transparent 70%);
  top: 40%;
  right: 25%;
  animation: float3 12s ease-in-out infinite;
}

/* Floating geometric dots */
.bs-hero__dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.bs-hero__dot {
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
}

.bs-hero__dot--1 {
  width: 6px; height: 6px;
  background: var(--color-tertiary);
  top: 20%; left: 15%;
  animation: float 6s ease-in-out infinite;
}
.bs-hero__dot--2 {
  width: 4px; height: 4px;
  background: var(--color-secondary);
  top: 55%; left: 8%;
  animation: float2 8s ease-in-out infinite;
}
.bs-hero__dot--3 {
  width: 8px; height: 8px;
  background: var(--color-tertiary);
  top: 30%; right: 12%;
  animation: float3 7s ease-in-out infinite;
}
.bs-hero__dot--4 {
  width: 5px; height: 5px;
  background: var(--color-secondary);
  bottom: 25%; right: 20%;
  animation: float 9s ease-in-out infinite;
}
.bs-hero__dot--5 {
  width: 3px; height: 3px;
  background: #ffffff;
  top: 70%; left: 25%;
  animation: float2 11s ease-in-out infinite;
}

/* Ring decorations */
.bs-hero__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,215,0,0.12);
  pointer-events: none;
}

.bs-hero__ring--1 {
  width: 400px; height: 400px;
  top: -100px; right: -60px;
  animation: spin-slow 30s linear infinite;
}

.bs-hero__ring--2 {
  width: 260px; height: 260px;
  top: 60px; right: 60px;
  border-color: rgba(0,176,255,0.1);
  animation: spin-slow 20s linear infinite reverse;
}

.bs-hero__content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 100px 0;
}

.bs-hero__inner {
  max-width: 720px;
}

.bs-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-tertiary);
  border: 1px solid rgba(255,215,0,0.4);
  border-radius: 20px;
  padding: 6px 18px;
  background: rgba(255,215,0,0.08);
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease both;
}

.bs-hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-tertiary);
  border-radius: 50%;
  animation: glow-pulse 2s ease infinite;
}

.bs-hero h1 {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFFFFF 40%, #FFD700 70%, #F9A825 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  animation: fadeInUp 0.7s ease 0.1s both, shimmer-text 5s ease infinite;
  filter: drop-shadow(0 0 30px rgba(255,215,0,0.3));
}

.bs-hero__sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.8;
  animation: fadeInUp 0.7s ease 0.2s both;
}

.bs-hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease 0.35s both;
}

/* Scroll indicator */
.bs-hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.bs-hero__scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid rgba(255,255,255,0.5);
  border-bottom: 2px solid rgba(255,255,255,0.5);
  transform: rotate(45deg);
  animation: float2 1.5s ease-in-out infinite;
}

/* ============================================================
   3. TRUST BAR
   ============================================================ */
.bs-trust-bar {
  background: rgba(13,71,161,0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,215,0,0.15);
  border-bottom: 1px solid rgba(255,215,0,0.15);
  padding: 24px 0;
}

.bs-trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.bs-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.bs-trust-item:hover {
  background: rgba(255,255,255,0.05);
  transform: translateY(-3px);
}

.bs-trust-item__icon {
  font-size: 2rem;
  filter: drop-shadow(0 0 8px rgba(255,215,0,0.5));
}

.bs-trust-item__title {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-tertiary);
  margin: 0;
}

.bs-trust-item__sub {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin: 0;
}

/* ============================================================
   4. FEATURES SECTION — "ทำไมต้องเลือกเรา"
   ============================================================ */
.bs-features {
  padding: 100px 0;
  position: relative;
  background:
    radial-gradient(ellipse 70% 50% at 30% 50%, rgba(13,71,161,0.12) 0%, transparent 60%),
    linear-gradient(180deg, var(--color-body-bg) 0%, #0d1f3c 50%, var(--color-body-bg) 100%);
}

.bs-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.bs-feature-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.bs-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-tertiary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bs-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(255,215,0,0.08);
  border-color: rgba(255,215,0,0.25);
}

.bs-feature-card:hover::before {
  opacity: 1;
}

.bs-feature-card__icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
  filter: drop-shadow(0 0 12px rgba(255,215,0,0.4));
}

.bs-feature-card__title {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 12px;
}

.bs-feature-card__desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  margin: 0;
}

/* ============================================================
   5. PROMOTIONS SECTION
   ============================================================ */
.bs-promotions {
  padding: 100px 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(0,176,255,0.08) 0%, transparent 60%),
    var(--color-body-bg);
}

.bs-promotions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.bs-promo-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  padding: 36px 28px 32px;
  text-align: center;
}

/* Gradient border via pseudo-element */
.bs-promo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,215,0,0.3), rgba(0,176,255,0.2), rgba(255,215,0,0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bs-promo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

.bs-promo-card:hover::after {
  opacity: 1;
}

.bs-promo-card--featured {
  border-color: rgba(255,215,0,0.4);
  background: rgba(13,71,161,0.3);
}

.bs-promo-card--featured::after {
  opacity: 1;
}

.bs-promo-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, #FFD700, #F9A825);
  color: #0a1628;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
}

.bs-promo-card__icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 16px rgba(255,215,0,0.5));
}

.bs-promo-card__title {
  font-family: var(--font-primary);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 10px;
}

.bs-promo-card__price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-tertiary);
  text-shadow: 0 0 20px rgba(255,215,0,0.5);
  margin-bottom: 8px;
}

.bs-promo-card__price-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

.bs-promo-card__desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.62);
  margin-bottom: 24px;
  line-height: 1.7;
}

/* ============================================================
   6. HOW-TO SECTION — "วิธีการซื้อหวย"
   ============================================================ */
.bs-howto {
  padding: 100px 0;
  background: linear-gradient(180deg, #0d1f3c 0%, var(--color-body-bg) 100%);
  position: relative;
  overflow: hidden;
}

.bs-howto::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(13,71,161,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.bs-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

/* Connecting line between steps */
.bs-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(12.5% + 12px);
  right: calc(12.5% + 12px);
  height: 2px;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-tertiary), var(--color-secondary));
  opacity: 0.4;
  z-index: 0;
}

.bs-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

.bs-step__number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border: 2px solid rgba(255,215,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 0 30px rgba(13,71,161,0.5), 0 4px 16px rgba(0,0,0,0.4);
}

.bs-step__number-inner {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-tertiary);
}

.bs-step__icon {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.bs-step__title {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 10px;
}

.bs-step__desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   7. SEO ARTICLE SECTION
   ============================================================ */
.bs-seo-section {
  padding: 100px 0;
  background: var(--color-body-bg);
}

.bs-seo-section h1 {
  font-family: var(--font-primary);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 24px;
  line-height: 1.3;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(255,215,0,0.25);
  position: relative;
}

.bs-seo-section h1::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px;
  height: 2px;
  background: var(--color-tertiary);
}

.bs-seo-intro {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.85;
  margin-bottom: 40px;
  max-width: 860px;
}

/* Table of Contents */
.bs-toc {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  margin-bottom: 56px;
  overflow: hidden;
}

.bs-toc__toggle {
  display: none;
}

.bs-toc__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.bs-toc__header:hover {
  background: rgba(255,255,255,0.04);
}

.bs-toc__title {
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-tertiary);
}

.bs-toc__arrow {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  transition: transform 0.3s ease;
}

.bs-toc__toggle:checked ~ .bs-toc__header {
  border-bottom-color: var(--glass-border);
}

.bs-toc__toggle:checked ~ .bs-toc__header .bs-toc__arrow {
  transform: rotate(180deg);
}

.bs-toc__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.bs-toc__toggle:checked ~ .bs-toc__body {
  max-height: 400px;
}

.bs-toc__list {
  list-style: none;
  padding: 20px 24px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: toc-counter;
}

.bs-toc__list li {
  counter-increment: toc-counter;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.bs-toc__list li::before {
  content: counter(toc-counter, decimal-leading-zero);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-tertiary);
  opacity: 0.7;
  flex-shrink: 0;
  margin-top: 2px;
}

.bs-toc__list a {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.72);
  transition: var(--transition);
}

.bs-toc__list a:hover {
  color: var(--color-tertiary);
}

/* SEO Content Body */
.bs-seo-content h2 {
  font-family: var(--font-primary);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 800;
  color: var(--color-white);
  margin: 48px 0 18px;
  padding-left: 18px;
  border-left: 4px solid var(--color-tertiary);
  line-height: 1.35;
}

.bs-seo-content h3 {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin: 28px 0 12px;
}

.bs-seo-content p {
  color: rgba(255,255,255,0.7);
  font-size: 0.97rem;
  line-height: 1.85;
  margin-bottom: 16px;
}

.bs-seo-content ul {
  padding-left: 0;
  list-style: none;
  margin-bottom: 24px;
}

.bs-seo-content ul li {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  padding: 8px 0 8px 28px;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.bs-seo-content ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--color-tertiary);
  font-size: 0.7rem;
  top: 10px;
}

/* SEO image placeholder — gradient box, no broken images */
.bs-seo-img {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(13,71,161,0.6) 0%, rgba(0,176,255,0.2) 50%, rgba(13,71,161,0.4) 100%);
  border: 1px solid rgba(0,176,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 28px 0;
  position: relative;
  overflow: hidden;
}

.bs-seo-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,215,0,0.05) 100%);
}

.bs-seo-img span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

/* SEO CTA block */
.bs-seo-cta {
  background: linear-gradient(135deg, rgba(13,71,161,0.4) 0%, rgba(0,176,255,0.1) 100%);
  border: 1px solid rgba(0,176,255,0.2);
  border-radius: var(--radius-md);
  padding: 32px 36px;
  text-align: center;
  margin: 40px 0;
}

.bs-seo-cta p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 20px;
  font-weight: 500;
}

/* ============================================================
   8. LATEST ARTICLES SECTION
   ============================================================ */
.bs-articles {
  padding: 100px 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 50%, rgba(13,71,161,0.1) 0%, transparent 60%),
    linear-gradient(180deg, var(--color-body-bg) 0%, #0d1f3c 50%, var(--color-body-bg) 100%);
}

.bs-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.bs-article-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.bs-article-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,215,0,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px rgba(255,215,0,0.08);
}

.bs-article-card__thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(13,71,161,0.6) 0%, rgba(0,176,255,0.2) 100%);
}

.bs-article-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.bs-article-card:hover .bs-article-card__thumb img {
  transform: scale(1.06);
}

/* Gradient overlay on thumb */
.bs-article-card__thumb::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(7,21,46,0.8), transparent);
  pointer-events: none;
}

.bs-article-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, rgba(13,71,161,0.5) 0%, rgba(0,176,255,0.2) 100%);
}

.bs-article-card__body {
  padding: 24px 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bs-article-card__date {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.bs-article-card__title {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.5;
  flex: 1;
}

.bs-article-card__title a {
  color: var(--color-white);
  transition: var(--transition);
}

.bs-article-card__title a:hover {
  color: var(--color-tertiary);
}

.bs-article-card__excerpt {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.52);
  line-height: 1.7;
  margin-bottom: 18px;
}

.bs-article-card__readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-tertiary);
  transition: var(--transition);
  margin-top: auto;
}

.bs-article-card__readmore::after {
  content: '→';
  transition: transform 0.3s ease;
}

.bs-article-card:hover .bs-article-card__readmore::after {
  transform: translateX(4px);
}

.bs-no-posts {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   9. CTA BANNER
   ============================================================ */
.bs-cta-banner {
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 100% at 50% 50%, rgba(13,71,161,0.6) 0%, transparent 70%),
    linear-gradient(135deg, #071634 0%, #0D47A1 50%, #071634 100%);
  border-top: 1px solid rgba(255,215,0,0.2);
  border-bottom: 1px solid rgba(255,215,0,0.2);
}

.bs-cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,215,0,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.bs-cta-banner__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 16px;
  opacity: 0.8;
}

.bs-cta-banner h2 {
  font-family: var(--font-primary);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 16px;
  text-shadow: 0 0 40px rgba(255,215,0,0.25);
}

.bs-cta-banner__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   10. FOOTER
   ============================================================ */
.bs-footer {
  background: var(--color-footer-bg);
  padding: 72px 0 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative;
}

.bs-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.4), transparent);
}

.bs-footer__brand {
  text-align: center;
  padding-bottom: 40px;
}

.bs-footer__logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-secondary);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 24px;
  letter-spacing: 1px;
  transition: var(--transition);
}

.bs-footer__logo img {
  max-height: 120px;
  width: auto;
}

.bs-footer__logo:hover {
  color: var(--color-tertiary);
}

.bs-footer__desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.9;
  max-width: 700px;
  margin: 0 auto 32px;
}

.bs-footer__nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.bs-footer__nav a {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-secondary);
  padding: 8px 20px;
  transition: var(--transition);
  text-decoration: none;
}

.bs-footer__nav a:hover {
  color: var(--color-tertiary);
}

.bs-footer__nav-divider {
  color: rgba(255,255,255,0.2);
  font-size: 1rem;
  user-select: none;
}

.bs-footer__bottom {
  background: rgba(0,0,0,0.3);
  padding: 24px 0;
  text-align: center;
}

.bs-footer__copyright {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
  margin: 0;
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .bs-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bs-promotions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bs-articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bs-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .bs-steps::before {
    display: none;
  }

}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  .bs-hero {
    min-height: auto;
  }

  .bs-hero__content {
    padding: 72px 0 80px;
  }

  .bs-hero__cta {
    gap: 12px;
  }

  .bs-trust-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .bs-features-grid {
    grid-template-columns: 1fr;
  }

  .bs-promotions-grid {
    grid-template-columns: 1fr;
  }

  .bs-articles-grid {
    grid-template-columns: 1fr;
  }

  .bs-steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .bs-footer__nav a {
    font-size: 0.9rem;
    padding: 6px 12px;
  }

  .bs-header__actions .bs-btn {
    padding: 10px 18px;
    font-size: 13px;
  }

  .bs-feature-card {
    padding: 28px 24px;
  }
}

@media (max-width: 480px) {
  .bs-trust-bar__grid {
    grid-template-columns: 1fr 1fr;
  }

  .bs-hero h1 {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  .bs-cta-banner h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
}

/* ============================================================
   IMAGE INTEGRATION STYLES
   ============================================================ */

/* --- Header Logo Image --- */
.bs-header__logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: var(--transition);
}

.bs-header__logo-link:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.bs-header__logo-img {
  height: 52px;
  width: auto;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.4));
}

/* --- Hero Split Layout --- */
.bs-hero__inner.bs-hero__split {
  max-width: 100%;
}

.bs-hero__split {
  display: flex;
  align-items: center;
  gap: 48px;
}

.bs-hero__text {
  flex: 1;
  min-width: 0;
}

.bs-hero__visual {
  flex: 0 0 420px;
  position: relative;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.bs-hero__banner-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(0,176,255,0.15);
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.bs-hero__banner-img:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 28px 70px rgba(0,0,0,0.6), 0 0 50px rgba(255,215,0,0.12);
}

/* --- Banner Slider --- */
.bs-banner-slider {
  padding: 40px 0;
  background: linear-gradient(180deg, rgba(7,21,46,0.8) 0%, var(--color-body-bg) 100%);
}

.bs-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,215,0,0.15);
}

.bs-slider__track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 6;
  overflow: hidden;
}

.bs-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.bs-slider__slide--active {
  opacity: 1;
}

.bs-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bs-slider__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.bs-slider__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.7);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.bs-slider__dot--active {
  background: var(--color-tertiary);
  border-color: var(--color-tertiary);
  box-shadow: 0 0 12px rgba(255,215,0,0.6);
}

.bs-slider__dot:hover {
  background: rgba(255,215,0,0.5);
}

/* --- Feature / Promo / Step Image Icons --- */
.bs-feature-card__icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
  transition: transform 0.3s ease;
}

.bs-feature-card:hover .bs-feature-card__icon img {
  transform: scale(1.1);
}

.bs-promo-card__icon img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(255,215,0,0.3));
  transition: transform 0.3s ease;
}

.bs-promo-card:hover .bs-promo-card__icon img {
  transform: scale(1.12) rotate(3deg);
}

.bs-step__icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
  transition: transform 0.3s ease;
}

.bs-step:hover .bs-step__icon img {
  transform: scale(1.15);
}

/* --- SEO Images (real images instead of placeholders) --- */
.bs-seo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  position: relative;
  z-index: 1;
}

/* --- Lottery Types Section --- */
.bs-lottery-types {
  padding: 80px 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(13,71,161,0.15) 0%, transparent 60%),
    var(--color-body-bg);
}

.bs-lottery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

.bs-lottery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 16px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  cursor: default;
}

.bs-lottery-item:hover {
  transform: translateY(-6px);
  border-color: rgba(255,215,0,0.3);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 24px rgba(255,215,0,0.08);
}

.bs-lottery-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
  transition: transform 0.3s ease;
}

.bs-lottery-item:hover img {
  transform: scale(1.12);
}

.bs-lottery-item span {
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-align: center;
  letter-spacing: 0.5px;
}

/* --- Footer with logo image --- */
.bs-footer__logo img {
  max-height: 100px;
  width: auto;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.5));
  transition: transform 0.3s ease;
}

.bs-footer__logo:hover img {
  transform: scale(1.04);
}

/* ============================================================
   RESPONSIVE — IMAGE SECTIONS
   ============================================================ */
@media (max-width: 1024px) {
  .bs-hero__split {
    flex-direction: column;
    text-align: center;
  }

  .bs-hero__visual {
    flex: 0 0 auto;
    max-width: 480px;
    width: 100%;
  }

  .bs-hero__cta {
    justify-content: center;
  }

  .bs-hero__badge {
    margin-left: auto;
    margin-right: auto;
  }

  .bs-lottery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .bs-hero__visual {
    max-width: 360px;
  }

  .bs-header__logo-img {
    height: 40px;
  }

  .bs-lottery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .bs-lottery-item {
    padding: 20px 12px;
  }

  .bs-lottery-item img {
    width: 56px;
    height: 56px;
  }

  .bs-slider__track {
    aspect-ratio: 16 / 8;
  }
}

@media (max-width: 480px) {
  .bs-hero__visual {
    max-width: 300px;
  }

  .bs-lottery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bs-feature-card__icon img {
    width: 52px;
    height: 52px;
  }

  .bs-slider__track {
    aspect-ratio: 16 / 10;
  }
}

/* --- Banner Slider Auto-play Script (CSS-only fallback animation) --- */
@keyframes slider-auto {
  0%, 30%   { opacity: 1; }
  33%, 63%  { opacity: 0; }
  66%, 96%  { opacity: 0; }
  100%      { opacity: 1; }
}

@keyframes slider-auto-2 {
  0%, 30%   { opacity: 0; }
  33%, 63%  { opacity: 1; }
  66%, 96%  { opacity: 0; }
  100%      { opacity: 0; }
}

@keyframes slider-auto-3 {
  0%, 30%   { opacity: 0; }
  33%, 63%  { opacity: 0; }
  66%, 96%  { opacity: 1; }
  100%      { opacity: 0; }
}

.bs-slider__slide:nth-child(1) {
  animation: slider-auto 12s ease infinite;
}

.bs-slider__slide:nth-child(2) {
  animation: slider-auto-2 12s ease infinite;
}

.bs-slider__slide:nth-child(3) {
  animation: slider-auto-3 12s ease infinite;
}
