/* Reset */
@import url("assets/css/search.css");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #f9f9f9;
  color: #333;
}

html,
body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  /* Pushes footer to bottom */
}

footer {
  background: #003366;
  color: #fff;
  text-align: center;
  padding: 15px 0;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* **************** */

header {
  background-color: #003366;
  color: #fff;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

header .logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

header nav {}

header .nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding-left: 0;
}

header .nav-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s, background 0.3s;
  padding: 5px 10px;
  border-radius: 4px;
}

header .nav-links li a:hover {
  color: #ffd700;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Hamburger menu */
#menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #fff;
  border-radius: 3px;
}

/* Responsive */
@media (max-width: 768px) {

  .hamburger {
    display: flex;
  }

  header .logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
  }

  nav {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: #004080;
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
  }

  /* Show menu when checkbox is checked */
  #menu-toggle:checked+.hamburger+nav {
    display: flex;
    animation: slideDown 0.3s ease-in-out;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 0;
    border-radius: 0;
  }

  .nav-links li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
  }
}

/* Slide down animation */
@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ******************* */
main .hero {
  background: #e3f2fd;
  padding: 40px 20px;
  text-align: center;
  border-radius: 8px;
  margin-top: 20px;
}

.hero h2 {
  margin-bottom: 15px;
  text-transform: uppercase;
}

.mcq-links .btn {
  padding: 10px 20px;
  background: #0074d9;
  color: #fff;
  text-decoration: none;
  margin-top: 15px;
  border-radius: 5px;
  display: flex;
  justify-content: center;
}

.hero .btn {
  display: inline-block;
  padding: 10px 20px;
  background: #0074d9;
  color: #fff;
  text-decoration: none;
  margin-top: 15px;
  border-radius: 5px;
}

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 30px;
  gap: 20px;
}

.features>div {
  flex: 1;
  min-width: 250px;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
}

.mcq-question {
  flex: 1;
  min-width: 250px;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
}

footer {
  background: #003366;
  color: #fff;
  text-align: center;
  padding: 15px 0;
  margin-top: 40px;
}

/* ------------------------ */
.mcq-links {
  list-style: none;
  margin-top: 20px;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

.mcq-links ul {
  list-style: none;
  padding: 0px;
  margin: 0px;
}

.mcq-links li {
  background: #ffffff;
  padding: 12px 16px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
  margin-bottom: 5px;
  text-transform: uppercase;


}

.mcq-links li:hover {
  background: #f0f8ff;
}

.mcq-links a {
  text-decoration: none;
  color: #003366;
  font-weight: bold;
  text-transform: uppercase;
}

dl,
ol,
ul {
  margin-top: 0;
  margin-bottom: unset;
}

/* -------------------- */

.pagination {
  margin-top: 20px;
}

.pagination a,
.pagination .dots {
  margin: 0 4px;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 3px;
  text-decoration: none;
  color: #333;
}

.pagination a.active {
  font-weight: bold;
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
}

.pagination .dots {
  pointer-events: none;
  color: #888;
}

.option-btn {
  margin-bottom: 10px;
}

.correct {
  background-color: #28a745 !important;
  color: white;
}

.incorrect {
  background-color: #dc3545 !important;
  color: white;
}

.mcq-list {
  padding: 0px;
}

.urdu-text {
  font-family: 'Noto Nastaliq Urdu', serif;
}

.mcq-question h2 {
  font-size: 1.3em;
}

.mcq-question h2 a {
  text-decoration: none;
}

.quote {
  font-style: italic;
  font-size: 1.1rem;
  color: #444;
  /* border-left: 4px solid #ccc; */

  margin: 20px 0;
  /* background-color: #f9f9f9; */
}

.correct-answer {
  background-color: #d4edda !important;
  color: #155724 !important;
  font-weight: bold;
}

.wrong-answer {
  background-color: #f8d7da !important;
  color: #721c24 !important;
}

#searchInput {
  width: 100%;
  /* Makes the search bar fill its container */
  padding: 12px 20px;
  /* Adjusts the inner spacing */
  margin: 8px 0;
  /* Adds some space above and below */
  box-sizing: border-box;
  /* Ensures padding doesn't affect total width */
  border: 2px solid #ccc;
  /* A subtle gray border */
  border-radius: 4px;
  /* Softens the corners */
  font-size: 16px;
  /* Makes the text readable */
  transition: width 0.4s ease-in-out;
  /* Smooth transition for focus effect */
}

/* Style the input field when it's focused */
#searchInput:focus {
  border: 2px solid #555;
  /* Darker border on focus */
  outline: none;
  /* Removes the default blue outline */
}