/* =========================
   🔧 GLOBAL RESET + LAYOUT
========================= */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden !important;
  scroll-behavior: smooth;
  font-family: 'Poppins', sans-serif;
  background: #fff;
}

* {
  box-sizing: border-box;
  max-width: 100%;
}

/* =========================
   🔝 HEADER + NAVBAR STICKY
========================= */
header, nav {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* =========================
   🧱 CONTAINER LAYOUT
========================= */
.container {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 15px;
  box-sizing: border-box;
  overflow: hidden;
}

.row {
  margin: 0 -10px;
}

.col-md-6, .col-12 {
  padding: 10px;
}

img, iframe {
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
}

/* =========================
   📰 PAGE TITLE + CONTENT
========================= */
h1 {
  color: #000;
  font-size: 26px;
  text-align: center;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.4;
  word-break: break-word;
}

.feature-image {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}

.content {
  margin-top: 15px;
  font-size: 17px;
  line-height: 1.8;
  text-align: justify;
  color: #333;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.content img,
.content iframe,
.content table {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  display: block;
  margin: 10px auto;
}

/* =========================
   📅 LAST UPDATED INFO
========================= */
.last-updated {
  text-align: center;
  color: #777;
  font-size: 14px;
  margin-bottom: 15px;
}

/* =========================
   🧠 QUIZ CARD SECTION
========================= */


.quiz-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

/* Quiz Title */
.quiz-title {
  font-size: 20px;
  font-weight: 600;
  color: #222;
  margin-bottom: 10px;
  text-transform: capitalize;
}

/* Quiz Meta Text */
.quiz-meta {
  font-size: 15px;
  color: #666;
  margin-bottom: 12px;
  line-height: 1.5;
}

/* Badge (Question Count) */
.badge.bg-info {
  background-color: #17a2b8 !important;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 12px;
}

/* Start Button */
.btn-start {
  font-size: 15px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 8px;
  background-color: #007bff;
  color: #fff !important;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s ease, transform 0.2s ease;
  margin-top: auto; 
}

.btn-start:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

/* =========================
   📱 MOBILE RESPONSIVE
========================= */


/* =========================
   QUIZ PREVIEW PAGE (CLEAN, FULL-WIDTH)
========================= */
body {
  font-family: 'Poppins', sans-serif;
  background: #fff;
  margin: 0;
  padding: 0;
  color: #111;
}

/* ✅ MAIN CONTAINER */
.quiz-preview-container {
  width: 95%;
  max-width: 1500px;
  margin: 50px auto;
  padding: 40px 60px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* ✅ QUIZ HEADING */
.quiz-heading {
  text-align: center;
  color: #0d47a1;
  font-size: 2rem;
  margin-bottom: 35px;
  font-weight: 700;
}

/* ✅ QUIZ CONTENT */
.quiz-content {
  font-size: 1.05rem;
  color: #333;
  line-height: 1.8;
  margin-bottom: 40px;
  text-align: justify;
}

/* ✅ QUESTION BLOCK */
.question-block {
  background: #f9faff;
  border: 1px solid #ddd;
  padding: 25px 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  transition: 0.3s ease;
}

.question-block:hover {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.question-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #111;
}

/* ✅ OPTIONS */
.options p {
  margin: 8px 0;
  padding: 10px 14px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #ccc;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.options p:hover {
  background: #eaf2ff;
  border-color: #007bff;
}

/* ✅ BUTTON */
.toggle-btn {
  display: block;
  width: 260px;
  margin: 25px auto 10px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.toggle-btn:hover {
  background: #0056b3;
}

/* ✅ ANSWER + EXPLANATION */
.answer,
.explanation {
  background: #eef6ff;
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 12px;
  border-left: 5px solid #007bff;
  font-size: 1rem;
  line-height: 1.6;
}

/* ✅ PAGINATION */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 35px 0 20px;
  flex-wrap: wrap;
}

.pagination a {
  text-decoration: none;
  color: #007bff;
  border: 2px solid #007bff;
  padding: 8px 15px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background: #007bff;
  color: #fff;
}

/* ✅ RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .quiz-preview-container {
    width: 95%;
    padding: 25px 25px;
  }
  .quiz-heading {
    font-size: 1.6rem;
  }
  .question-title {
    font-size: 1.05rem;
  }
  .options p {
    font-size: 0.95rem;
  }
  .toggle-btn {
    width: 100%;
    font-size: 0.95rem;
  }
}
