body {
  font-family: sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background: #f4f7f6;
}

.page-layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

.ad-side {
  width: 160px;
  margin: 0 10px;
}

.main-content {
  flex: 1;
  max-width: 800px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

h1 { color: #2c3e50; }
.question { font-weight: bold; margin-bottom: 15px; font-size: 1.1em; }
.option { display: block; padding: 10px; margin: 5px 0; border: 1px solid #ddd; border-radius: 5px; cursor: pointer; transition: 0.3s; }
.option:hover { background: #eef2f3; }
.selected { background: #3498db !important; color: white; border-color: #2980b9; }
.correct-answer { background: #27ae60 !important; color: white; }
.wrong-answer { background: #e74c3c !important; color: white; }
button { background: #27ae60; color: white; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; font-size: 1em; }
button:hover { background: #219150; }
.result-item { padding: 10px; margin-bottom: 10px; border-left: 5px solid; }
.correct { border-left-color: #27ae60; background: #e9f7ef; }
.wrong { border-left-color: #e74c3c; background: #fdf2f2; }
.score-display { font-size: 1.5em; font-weight: bold; margin-bottom: 20px; }

/* Ad slot styling */
.ad-slot {
  background: #f0f0f0;
  border: 1px dashed #aaa;
  text-align: center;
  margin: 15px 0;
  padding: 20px;
  font-size: 0.9em;
  color: #555;
}
.banner-ad { height: 90px; }
.inline-ad { height: 250px; width: 300px; margin: auto; }
.results-ad { height: 60px; }
.footer-ad { height: 90px; }
.side-ad { height: 600px; }
