/* ===== BASE ===== */
*{ box-sizing:border-box; }
body{
  margin:0;
  background:#f4f6fb;
  font-family:Segoe UI, Arial, sans-serif;
  color:#222;
}

/* ===== HEADER ===== */
header{
  background:linear-gradient(135deg,#0a2a66,#123d9c);
  color:#fff;
  padding:14px 16px;
  display:flex;
  align-items:center;
}
.menu-btn{font-size:26px;cursor:pointer}
.header-text{flex:1;text-align:center}
.header-text h1{margin:0;font-size:22px}
.header-text p{margin:4px 0 0;font-size:13px;opacity:.9}

/* ===== MENU ===== */
.overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  display:none;
  z-index:9;
}
.side-menu{
  position:fixed;
  top:0;
  left:-260px;
  width:260px;
  height:100%;
  background:#0a2a66;
  padding:20px;
  transition:.3s;
  z-index:10;
}
.side-menu.active{left:0}
.side-menu a{
  display:block;
  color:#fff;
  text-decoration:none;
  padding:12px 0;
  border-bottom:1px solid rgba(255,255,255,.25);
}
.menu-header{
  display:flex;
  justify-content:space-between;
  padding:12px;
  margin-bottom:10px;
  border-radius:14px;
  background:rgba(255,255,255,.15);
}
.menu-header div:nth-child(2){
  color:#fff;
  font-size:18px;
  
}

.menu-logo{
  width:42px;height:42px;
  border-radius:50%;
  background:#fff;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
}
.menu-close{font-size:40px;cursor:pointer;color:#fff}



/* ================= RESULT BOX CENTER SYSTEM ================= */

/* Har draw container ko flex center bana do */
[id^="draw"] {
  display: flex;
  flex-direction: column;
  align-items: center;      /* horizontal center */
  justify-content: center;  /* vertical flow center */
  text-align: center;
  width: 100%;
}
/* ===== RESULT SECTION ===== */
.result-section{

  gap:16px;
  padding:5px;
}
.result-box{
  flex:1;
  display:flex;
  flex-direction:column;
  border:1px solid #e5e7eb;
  border-radius:8px;
  margin: 12px 0;
  padding:14px;
  background:#fff;
}
.result-box h2{
  font-size:18px;
  margin-bottom:6px;
  color:#0f172a;
}

.seo-text{
  font-size:14px;
  line-height:1.6;
  color:#334155;
}

.date-title{
  text-align:center;
  font-size:16px;
  font-weight:700;
  color:#1e3a8a;
  margin:16px 0;
}

/* Status text + spinner */
.status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color:#ea580c;
  margin: 12px 0;
  text-align: center;
}
/* Spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 3px solid #e5e7eb;
  border-top: 3px solid #2563eb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Date + Draw title (jo JS inject karta hai) */
.draw-title,
.draw-date {
  font-weight: 600;
  margin-bottom: 6px;
}



/* Download button CENTER */
.download-btn {
  display: none;
  margin: 14px auto 0;
  padding: 12px 24px;
  background: linear-gradient(135deg,#16a34a,#22c55e);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
}

/* Retry button CENTER */
.retry-btn {
  display: none;
  margin: 14px auto 0;
  padding: 10px 22px;
  background: #f97316;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

/* ===== RESPONSIVE PDF ===== */
.pdf-container{
  position:relative;
  width:100%;
  padding-top:140%;
  margin-top:10px;
  display:none;
}
.pdf-container iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:none;
  border-radius:6px;
  background:#000;
}
@media(min-width:768px){
  .pdf-container{padding-top:100%}
}

/* ===== MAIN PAGE H1 ===== */
.page-title,
h1{
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  color: #0a2a66;              /* deep navy */
  line-height: 1.35;
  margin: 16px auto 18px;
  max-width: 1000px;
  padding: 0 12px;
}

/* subtle underline */
.page-title::after,
h1::after{
  content:"";
  display:block;
  width:60px;
  height:4px;
  margin:10px auto 0;
  border-radius:4px;
  background:linear-gradient(135deg,#2563eb,#1e40af);
}

/* ===== MOBILE ===== */
@media(max-width:768px){
  .page-title,
  h1{
    font-size:22px;
    line-height:1.4;
  }
}

@media(max-width:480px){
  .page-title,
  h1{
    font-size:20px;
  }
}


/* ===== FOOTER ===== */
.site-footer{
  background:#0a2a66;
  color:#e5e7eb;
  margin-top:30px;
  padding:26px 16px 18px;
}

/* inner wrap */
.footer-inner{
  max-width:1100px;
  margin:auto;
  text-align:center;
}

/* title */
.footer-title{
  font-size:18px;
  font-weight:700;
  color:#ffffff;
  margin-bottom:6px;
}

/* description */
.footer-text{
  font-size:14px;
  line-height:1.65;
  color:#c7d2fe;
  max-width:760px;
  margin:0 auto 14px;
}

/* links */
.footer-links{
  display:flex;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
  margin:14px 0;
}

.footer-links a{
  color:#e0e7ff;
  text-decoration:none;
  font-size:14px;
  font-weight:600;
  padding:6px 10px;
  border-radius:6px;
  transition:.2s;
}

.footer-links a:hover{
  background:rgba(255,255,255,.12);
  color:#ffffff;
}

/* divider */
.footer-divider{
  width:100%;
  height:1px;
  background:rgba(255,255,255,.25);
  margin:18px 0 12px;
}

/* copyright */
.footer-copy{
  font-size:13px;
  color:#c7d2fe;
}

/* ===== MOBILE ===== */
@media(max-width:480px){
  .footer-title{font-size:16px;}
  .footer-text{font-size:13px;}
  .footer-links a{font-size:13px;}
}


.result-nav{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
  margin:14px auto 18px;
  padding:6px;
  max-width:1000px;
}

.result-nav a{
  text-decoration:none;
  padding:7px 14px;          /* 🔽 height kam */
  font-size:13.5px;
  font-weight:600;
  color:#1e293b;
  background:#ffffff;
  border:1px solid #dbe2f1;
  border-radius:6px;         /* 🔽 pill nahi */
  transition:all .2s ease;
}

.result-nav a:hover{
  background:#f1f5ff;
  color:#1e40af;
  border-color:#c7d2fe;
}

.result-nav a.active{
  background:#1e3a8a;
  color:#ffffff;
  border-color:#1e3a8a;
}

/* Mobile fine-tune */
@media(max-width:480px){
  .result-nav a{
    padding:6px 12px;
    font-size:13px;
  }
}
