/* ==================================================
   QnAWorld – High RPM + SEO + Mobile Optimized CSS
================================================== */

:root{
  --bg:#f6f9fc;
  --card:#ffffff;
  --accent:#0b63d8;
  --accent2:#3b82f6;
  --muted:#5a657d;
  --txt:#0b1a2a;
  --soft:#eef3f9;
  --radius:12px;
  --shadow:0 3px 10px rgba(0,0,0,.07);
  --maxw:1120px;
}
html {
  scroll-behavior: smooth;
}

/* RESET */
*{box-sizing:border-box;}
body{ 
  scroll-padding-top: 72px;
  margin:0;
  font-family:Inter,system-ui,Segoe UI,Roboto,Arial;
  background:var(--bg);
  color:var(--txt);
  -webkit-font-smoothing:antialiased;
}

/* LINKS */
a{
  color:var(--accent);
  text-decoration:none;
}
a:hover{opacity:.85}

/* LAYOUT */
.container{
  max-width:var(--maxw);
  margin:auto;
  padding:16px;
}

/* ===== HEADER FINAL FIX ===== */
header, footer { padding:12px 18px;}
.header-inner { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap;}
.main-nav a { color:#e6eef6; text-decoration:none; margin-right:10px;}
.main-nav a:hover { color:#7ee7f7;}
.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-badge {
  background: var(--accent);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.brand-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--txt);
}

.simple-menu-btn {
  display: none; /* desktop hidden */
}

/* Desktop */
@media (min-width: 821px) {
  .simple-menu {
    display: flex !important;
    gap: 14px;
    align-items: center;
    margin-left: auto;
  }
}

/* Mobile */
@media (max-width: 820px) {
  .simple-menu-btn {
    display: block;
  }

  .simple-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    background: #fff;
    border-top: 1px solid #eee;
    margin-top: 10px;
  }

  .simple-menu.open {
    display: flex;
  }

  .simple-menu a {
    padding: 12px 18px;
    border-bottom: 1px solid #f3f3f3;
  }
}


/* HERO */
.hero{
  background:#eaf3ff;
  border-radius:16px;
  padding:30px;
  text-align:center;
  margin-top:14px;
}
.hero h1{
  font-size:28px;
  margin:0;
}
.lead{
  color:var(--muted);
  margin-top:8px;
}

/* GRID */
.hero{
  display:grid;
  grid-template-columns:1fr 320px;
  gap:20px;
}

/* CARD */
.card{
  background:var(--card);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
}

/* SEARCH */
.search{
  display:flex;
  gap:10px;
  margin-top:18px;
}
input[type="search"],select{
  padding:12px;
  border-radius:10px;
  border:1px solid #dbe6f5;
  font-size:15px;
}

/* QA LIST */
.qa-list{
  margin-top:20px;
  display:grid;
  gap:16px;
}
.qa{
  background:#fff;
  border:1px solid #edf2fb;
  border-radius:12px;
  padding:16px;
}
.q h3{
  margin:0 0 6px;
  font-size:17px;
  color:var(--accent);
}
.a{
  color:var(--muted);
  font-size:15px;
  line-height:1.6;
}

/* ===== ADS (IMPORTANT FOR EARNINGS) ===== */
.adsbygoogle{
  background:#f8fbff;
  border:1px dashed #dbe6f5;
  border-radius:10px;
  padding:6px;
}

/* SIDEBAR */
.sidebar{
  position:sticky;
  top:90px;
}

/* Affiliate product */
.product-card img{
  border-radius:10px;
}
.buy-btn{
  display:block;
  background:#ff9900;
  padding:10px;
  margin-top:10px;
  border-radius:8px;
  text-align:center;
  font-weight:700;
  color:#000;
}

/* FOOTER */
footer{
  background:#fff;
  border-top:1px solid #e6eef6;
  margin-top:40px;
  padding:20px 0;
  font-size:14px;
  color:var(--muted);
}

/* MOBILE */
@media(max-width:820px){
  .hero{
    grid-template-columns:1fr;
  }
  .sidebar{
    position:static;
  }
  .hero h1{
    font-size:22px;
  }
 
}
/* ===== STICKY HEADER (SAFE VERSION) ===== */

.simple-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #ffffff;      /* keeps existing color */
  border-bottom: 1px solid #e5e7eb;
}

/* Optional subtle shadow on scroll */
.simple-header {
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
/* Mobile Enroll Sticky Bar */
#mobileEnrollBar {
  display:none;
}

@media (max-width: 768px) {
  #mobileEnrollBar {
    position:fixed;
    bottom:0;
    left:0;
    width:100%;
    z-index:9999;
    background:var(--accent);
    text-align:center;
    box-shadow:0 -4px 15px rgba(0,0,0,.2);
  }

  #mobileEnrollBar a {
    display:block;
    padding:14px;
    color:#fff;
    font-size:16px;
    font-weight:600;
    text-decoration:none;
  }
}
