* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}
section {
  scroll-margin-top: 110px;
}
body {
  background: #f7f9fc;
  color: #1f2937;

}

/*---------------------------------------- NAVBAR ----------------------------------*/
header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
}

.navbar {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  width: 200px;
  height:100px;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
}

nav ul li a {
  text-decoration: none;
  color: #1f2937;
  font-weight: 500;
  font-size: 15px;
}

.btn-primary {
  background: #f97316;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
}
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
}
/* FORCE MOBILE NAV TO WORK */
@media (max-width: 768px) {

  header {
    position: relative;
    z-index: 1000;
  }

  .navbar {
    position: relative;
    z-index: 1000;
  }

  .menu-toggle {
    display: block;
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
  }

  nav ul {
    display: none;
    flex-direction: column;
    background: #ffffff;
    padding: 20px;
    gap: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  }

  nav ul.show {
    display: flex;
  }
}

/*--------------------------------- FOOTER ----------------------------------------*/
.site-footer {
  background: #0f172a;
  color: #e5e7eb;
  padding: 60px 20px 20px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

.footer-brand h3 {
  font-size: 22px;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: #cbd5f5;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 16px;
  margin-bottom: 14px;
  color: #ffffff;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #cbd5f5;
  text-decoration: none;
  font-size: 14px;
}

.footer-links ul li a:hover {
  color: #ffffff;
}

.social-links {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}

.social-links img {
  width: 28px;
  height: 28px;
  filter: brightness(1) invert(3);
}

.footer-email {
  font-size: 14px;
  color: #cbd5f5;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: #94a3b8;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}


/*------------------------------------ QUIZ HERO -----------------------------------*/
.quiz-hero {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #ffffff;
  text-align: center;
  padding: 160px 20px 100px;
}

.quiz-hero h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
}

.quiz-hero p {
  font-size: 16px;
  opacity: 0.9;
}

/* QUIZ CATEGORIES */
.quiz-categories {
  padding: 80px 20px;
  text-align: center;
}

.quiz-categories h2 {
  font-size: 32px;
  color: #1e3a8a;
  margin-bottom: 40px;
}

.quiz-grid {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.quiz-card {
  background: #ffffff;
  padding: 32px;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.quiz-card h3 {
  color: #1e3a8a;
  margin-bottom: 10px;
}

.quiz-card p {
  color: #64748b;
  margin-bottom: 20px;
}

.quiz-card button {
  padding: 10px 26px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* QUIZ BOX */
.quiz-box {
  background: #f8fbff;
  padding: 60px 20px;
}

.quiz-container {
  max-width: 600px;
  margin: auto;
  background: #ffffff;
  padding: 40px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.options {
  margin-top: 30px;
  display: grid;
  gap: 14px;
}

.option {
  padding: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 8px;
  cursor: pointer;
}

.option:hover {
  background: #eef6ff;
}

.quiz-footer {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#nextBtn {
  padding: 10px 24px;
  background: #f97316;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* RESULT */
.quiz-result {
  padding: 80px 20px;
  text-align: center;
}

.quiz-result h2 {
  font-size: 32px;
  color: #1e3a8a;
}

.quiz-result p {
  margin: 14px 0 26px;
  font-size: 16px;
}
/* Quiz option states */
.option.selected {
  background: #dbeafe;
  border-color: #2563eb;
}

.option.correct {
  background: #dcfce7;
  border-color: #16a34a;
}

.option.wrong {
  background: #fee2e2;
  border-color: #dc2626;
}

#timer {
  font-weight: 600;
  color: #dc2626;
}

/* UTILITY */
.hidden {
  display: none;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .quiz-grid {
    grid-template-columns: 1fr;
  }
}
