
:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary: #7c3aed;
  --bg: #f9fafb;
  --text: #111827;
  --text-light: #4b5563;
  --white: #ffffff;
  --border: #e5e7eb;
  --font-family: system-ui, -apple-system, sans-serif;
}
body {
  font-family: var(--font-family);
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
* { box-sizing: border-box; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }
.flex { display: flex; }
.grid { display: grid; }
.header { position: sticky; top: 0; background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); z-index: 100; transition: background-color 0.3s; width: 100%; }
.header .container { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { color: var(--text-light); font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.btn { background: var(--primary); color: var(--white); padding: 10px 20px; border-radius: 8px; font-weight: bold; border: none; cursor: pointer; transition: 0.2s; text-align: center; display: inline-block; }
.btn:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 4px 6px rgba(37,99,235,0.2); }
.btn-secondary { background: var(--white); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: #f3f4f6; }
.btn-large { padding: 15px 30px; font-size: 1.1rem; border-radius: 999px; width: auto; }
h1, h2, h3, h4, h5, h6 { margin-top: 0; }
h1 { font-size: 3rem; font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
h2 { font-size: 2rem; font-weight: 700; margin-bottom: 20px; }
p { margin-top: 0; margin-bottom: 20px; color: var(--text-light); }
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-8 { margin-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--white); padding: 24px; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); transition: all 0.3s ease; width: 100%; }
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); border-color: var(--primary); }
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-weight: 500; margin-bottom: 0.5rem; }
.form-control { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 1rem; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2); }
.footer { background: #111827; color: #9ca3af; padding: 4rem 0 2rem; width: 100%; }
.footer .grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.footer h4 { color: white; margin-bottom: 1rem; font-size: 1.1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 0.75rem; }
.footer a:hover { color: white; text-decoration: underline; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #374151; text-align: center; }
.hero { text-align: center; padding: 6rem 0; background: linear-gradient(180deg, #f3f4f6 0%, #ffffff 100%); }
.gradient-text { background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Mobile Menu & Drawer Styling */
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text); padding: 5px; }

.drawer-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
}
.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav { 
  position: fixed;
  top: 0; right: -300px;
  width: 300px; max-width: 80vw; height: 100%;
  background: var(--white);
  box-shadow: -4px 0 15px rgba(0,0,0,0.1);
  z-index: 1001;
  display: flex; flex-direction: column;
  padding: 2rem;
  transition: 0.3s ease;
  overflow-y: auto;
}
.mobile-nav.active { right: 0; }
.mobile-nav-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.close-drawer { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text); padding: 5px; }
.mobile-nav a { padding: 1rem 0; border-bottom: 1px solid var(--border); font-size: 1.1rem; color: var(--text); font-weight: 500; }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover, .mobile-nav a.active { color: var(--primary); }

.generator-grid { display: grid; grid-template-columns: 350px 1fr; gap: 2rem; width: 100%; }
.quiz-output { display: none; }
.quiz-output.active { display: block; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.empty-state { text-align: center; padding: 4rem 2rem; background: #f9fafb; border-radius: 12px; border: 2px dashed #e5e7eb; }
.loading-state { display: none; text-align: center; padding: 4rem 2rem; }
.loading-state.active { display: block; }
.spinner { width: 40px; height: 40px; border: 4px solid #e5e7eb; border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 1rem; }
@keyframes spin { to { transform: rotate(360deg); } }
.faq-item { margin-bottom: 1rem; border: 1px solid var(--border); border-radius: 8px; background: var(--white); overflow: hidden; width: 100%; }
.faq-question { width: 100%; text-align: left; background: none; border: none; padding: 1rem 1.5rem; cursor: pointer; font-weight: bold; display: flex; justify-content: space-between; align-items: center; color: var(--text); font-size: 1.1rem; }
.faq-answer { padding: 0 1.5rem; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; color: var(--text-light); }
.faq-item.active .faq-answer { max-height: 1000px; padding-bottom: 1.5rem; }
.blog-content { max-width: 800px; margin: 0 auto; font-size: 1.1rem; width: 100%; }
.blog-content p { margin-bottom: 1.5rem; }
.blog-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.8rem; color: var(--text); }
.blog-content ul { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.blog-content li { margin-bottom: 0.5rem; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 8px; }
.logo span { color: var(--primary); }
.badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.875rem; font-weight: 500; background: #e0e7ff; color: #3730a3; margin-bottom: 1rem; text-align: center; }
.question-block { background: var(--bg); padding: 1.5rem; border-radius: 12px; margin-bottom: 1.5rem; border: 1px solid var(--border); width: 100%; overflow-wrap: break-word; }
.option-label { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px; background: var(--white); cursor: pointer; transition: 0.2s; word-break: break-word; }
.option-label:hover { background: #f3f4f6; }
.option-label.correct { background: #dcfce7; border-color: #86efac; }
.explanation-box { background: var(--white); padding: 1rem; border-radius: 8px; border-left: 4px solid var(--primary); margin-top: 1rem; }
.page-title-banner { background: var(--bg); padding: 4rem 0; text-align: center; border-bottom: 1px solid var(--border); width: 100%; }
.icon-box { width: 48px; height: 48px; border-radius: 12px; background: #e0e7ff; color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.alert-success { background: #dcfce7; color: #166534; padding: 1rem; border-radius: 8px; margin-bottom: 1rem; display: none; }

/* Responsive adjustments */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .generator-grid { grid-template-columns: 1fr; }
  
  .card[style*="position: sticky"] {
    position: relative !important;
    top: auto !important;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  .hero { padding: 3rem 0; }
  .py-16 { padding-top: 2rem; padding-bottom: 2rem; }
  .page-title-banner { padding: 2rem 0; }
  .btn-large { width: 100%; display: block; margin-bottom: 1rem; }
  .flex { flex-direction: column; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .header .container { height: 60px; }
  
  /* Fix layout shifts and scrolling issues */
  .container { padding: 0 15px; }
  .card { padding: 1rem; }
  .question-block { padding: 1rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
}
