*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.btn {
    font-weight: 500;
    padding: 10px 25px;
    border-radius: 100px;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #ffffff;
    background-color: #F68A0A
}
.btn.btn-primary:hover,
.btn.btn-secondary:hover {
    background-color: #c56e08;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #fefefe;
  overflow-x: hidden;
}

/* ===== SPINNER (page-load) ===== */
#spinner {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.92);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

#spinner.show {
  display: flex;
}

/* shared ring style */
.spinner-border {
  display: inline-block;
  width: 2.8rem;
  height: 2.8rem;
  border: 3px solid #e8eef6;
  border-top-color: #f68a0a;
  border-radius: 50%;
  animation: doSpin 0.8s linear infinite;
}

@keyframes doSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ===== HEADER ===== */
header {
  padding: 10px 35px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  border-bottom: 1px solid #f0f4f8;
  position: relative;
  z-index: 1000;
  flex-wrap: wrap;
}

.logo img {
  width: 230px;
  display: block;
  transition: 0.2s;
}

.btnans-container {
    display: flex;
    gap: 10px; /* Adjust the gap between buttons as needed */
}

.btnnext {
    text-align: right;
   padding: 10px 20px;
   
}

.progress {
  width: 100%;
  height: 20px;
  background: #eee;
  border-radius: 5px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #f68a0a, #ffa940);
  width: 0%;
  transition: width 0.4s ease;
  border-radius: 5px;
}

#qheading { 
    font-size: 20px !important;
    font-weight: normal !important;
    color: #000 !important;
}

#qheadinglbl {
    FLOAT: right;
    font-size: 14px;
    font-weight: normal !important;
    color: #000 !important;
}

#qsubheading{
    font-size: 16px;
    letter-spacing: normal;
    line-height: 1.7;
    color: #1a202c;
    font-weight: 500;
}
#result{
    font-size: 1rem;
    letter-spacing: normal;
    padding-top: 15px;
    line-height: 1.6;
}


/* ===== DESKTOP NAVIGATION ===== */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* MOBILE USER INFO IMPROVED */
.mobile-user-info {
  display: none;
}

@media (max-width: 768px) {
  .mobile-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
  }
  
  .card-body input[type=text] { 
            width: 190px;
        }

  .user-avatar {
    width: 40px;
    height: 40px;
    background: #f68a0a;
    color: #fff;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .user-text {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .user-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
  }

  .user-status {
    font-size: 12px;
    color: #888;
  }
}

.navbar-nav a {
  text-decoration: none;
  color: rgba(0, 0, 0, 0.7);
  font-size: 16px;
  font-weight: 500;
  transition: 0.2s;
}

.navbar-nav a:hover {
  color: #f68a0a;
}

.nav-item {
  position: relative;
}

/* DROPDOWN MENU (DESKTOP) */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  display: none;
  flex-direction: column;
  min-width: 240px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  overflow: hidden;
  z-index: 1050;
  padding: 8px 0;
  border: 1px solid #f0f0f0;
}

.dropdown-menu a {
  padding: 10px 18px;
  text-decoration: none;
  color: #f68a0a;
  font-size: 14px;
  font-weight: 500;
  display: block;
  transition: 0.2s;
}

.dropdown-menu a:hover {
  background: #fff5ea;
  color: #d96c00;
  padding-left: 22px;
}

/* SHOW DROPDOWN ON HOVER (DESKTOP) */
.nav-item.dropdown:hover .dropdown-menu {
  display: flex;
}

.dropdown-toggle i {
  margin-left: 6px;
  font-size: 12px;
  transition: transform 0.25s ease;
}

.nav-item.dropdown:hover .dropdown-toggle i {
  transform: rotate(180deg);
}

/* BUTTON STYLE */
.nav-btn .btn {
  background: #f68a0a;
  color: white;
  padding: 8px 20px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 14px;
  transition: 0.2s;
  display: inline-block;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.nav-btn .btn:hover {
  color: #2d3748;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(246, 138, 10, 0.3);
}

/* ===== RIGHT SIDE ADMIN PANEL ===== */
.admin-details {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* ICON CIRCLE */
.icon-box {
  position: relative;
  width: 44px;
  height: 44px;
  background: #f8f9fa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.icon-box:hover {
  background: #fff0e3;
}

.icon-box i {
  font-size: 18px;
  color: #4a5568;
}

/* BADGE */
.badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ff4d4d;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 50px;
  min-width: 20px;
  text-align: center;
  line-height: 1.2;
}

/* DROPDOWN PANEL (notification & message) */
.dropdown-panel {
  position: absolute;
  top: 52px;
  right: 0;
  width: 270px;
  background: #ffffff;
  padding: 16px;
  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: 0.25s ease;
  z-index: 1200;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-panel h4 {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 700;
  color: #f68a0a;
  border-left: 3px solid #f68a0a;
  padding-left: 10px;
}

.dropdown-panel p {
  font-size: 13px;
  margin-bottom: 10px;
  color: #2d3748;
  line-height: 1.4;
}

.dropdown-panel p:last-child {
  margin-bottom: 0;
}

/* SHOW ON HOVER */
.icon-box:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* LOGIN BUTTON */
.login-btn {
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: #f1f5f9;
  padding: 8px 18px;
  border-radius: 40px;
  transition: 0.2s;
  color: #1e293b;
  margin: 0;
}

.login-btn:hover {
  background: #e9eef3;
  color: #f68a0a;
}

/* HAMBURGER MENU (hidden on desktop) */
.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
  background: #f8f9fa;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.menu-toggle:hover {
  background: #f0f0f0;
}

/* Close button for mobile menu */
.mobile-close-btn {
  font-size: 35px;
  font-weight: bold;
  color: #333;
  position: absolute;
  top: 12px;
  right: 30px;
  cursor: pointer;
  z-index: 1200;
  transition: 0.2s;
  display: none;
}

.mobile-close-btn:hover {
  color: #f68a0a;
}

.login-btn-mobile {
  display: none;
}

/* ===== FULLY RESPONSIVE (FIXED) ===== */
@media (max-width: 992px) {
  .navbar-nav {
    gap: 18px;
  }
  .logo img {
    width: 150px;
  }
  .admin-details {
    gap: 12px;
  }
}

@media (max-width: 820px) {
  header {
    padding: 8px 20px;
  }
  .navbar-nav {
    gap: 16px;
  }
  .login-btn {
    padding: 6px 14px;
    font-size: 14px;
  }
}

/* MOBILE BREAKPOINT (everything stacks) */
@media (max-width: 768px) {
  header {
    padding: 8px 18px;
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .logo img {
    width: 110px;
  }

  .menu-toggle {
    display: flex;
    order: 3;
  }

  .navbar-nav {
    position: fixed;
    top: 0;
    right: -100%;
    min-height: 100vh;
    width: 260px;
    background: white;
    flex-direction: column;
    align-items: stretch;
    padding: 55px 20px 20px 20px;
    gap: 12px;
    transition: right 0.4s ease;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    overflow-y: auto;
    border-left: 1px solid #f0f0f0;
  }

  .navbar-nav.active {
    right: 0;
  }

  .nav-item {
    margin: 8px 0;
    border-bottom: 1px solid #f1f1f1;
  }

  .navbar-nav a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    display: none;
    width: 100%;
    background: #fefaf5;
    border-radius: 12px;
    margin: 6px 0 12px 0;
    padding: 6px 0;
    border: none;
  }

  .dropdown-menu a {
    padding: 10px 18px;
    font-size: 14px;
    border-bottom: none;
  }

  .nav-item.dropdown.active .dropdown-menu {
    display: flex;
  }

  .nav-item.dropdown.active .dropdown-toggle i {
    transform: rotate(180deg);
  }

  .admin-details {
    gap: 12px;
    margin-right: 8px;
  }

  .icon-box {
    width: 40px;
    height: 40px;
  }

  .dropdown-panel {
    right: -20px;
    width: 260px;
    top: 48px;
  }

  .login-btn {
    font-size: 13px;
    padding: 6px 12px;
  }

  .nav-btn {
    margin-top: 16px;
    width: 100%;
  }

  .nav-btn .btn {
    width: 100%;
    padding: 10px;
    text-align: center;
  }

  .navbar-nav .login-btn-mobile {
    display: block;
    padding: 10px;
    background: #f1f5f9;
    color: #1e293b;
    border-radius: 40px;
    text-align: center;
    margin-top: 8px;
    font-weight: 600;
  }

  .navbar-nav .login-btn-mobile:hover {
    background: #e9eef3;
    color: #f68a0a;
  }

  .mobile-close-btn {
    display: block;
  }
}

/* small phones (<=480px) */
@media (max-width: 480px) {
  .admin-details {
    gap: 8px;
    margin-left: 120px;
  }
  .icon-box {
    width: 36px;
    height: 36px;
  }
  .login-btn {
    font-size: 12px;
    padding: 5px 10px;
    display: none;
  }
  .dropdown-panel {
    width: 230px;
    right: -30px;
  }
  .logo img {
    width: 95px;
  }
  .menu-toggle {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }
  .navbar-nav.active {
    max-height: 620px;
  }
}

/* make the "Start Learning" button also responsive */
.nav-link.active {
  font-weight: 600;
}

/* minor fixes for icon alignment */
.fas,
.far {
  pointer-events: none;
}

/* improved scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Back to Top Button */
.back-to-top {
    display: none;
    position: fixed;
    right: 30px;
    bottom: 30px;
    transition: 0.5s;
    z-index: 99;
    background-color: #F68A0A !important;
    border: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    outline: none !important;
    color: #fff !important;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50%;
}

/* avoid body overflow */
body {
  overflow-x: hidden;
}

/* ===== LAYOUT ===== */
.main-layout {
  display: flex;
  width: 100%;
  min-height: calc(100vh - 80px);
}

/* LEFT = 20% */
.sidebar {
  width: 20%;
  background: #f8f9fb;
  padding: 20px;
  border-right: 1px solid #eef0f3;
}

/* RIGHT = 80% */

/* main container – full width bar with modern styling */
.action-bar {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  transition: all 0.25s ease;
  backdrop-filter: blur(0px);
}

.sidebar-bottom {
  margin-top: 20px;
}

/* LEFT SIDE: container for two dropdowns */
.dropdown-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  row-gap: 0.75rem;
  background: transparent;
}

/* individual dropdown wrapper (custom arrow + select) */
.dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: #f8faff;
  border-radius: 48px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.dropdown-wrapper:focus-within {
  border-color: #f68a0a;
  box-shadow: 0 0 0 3px rgba(246, 138, 10, 0.18);
}

/* native select – hidden default arrow but keep functionality */
.dropdown-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  padding: 0.7rem 2.5rem 0.7rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: #1e293b;
  border: none;
  border-radius: 48px;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  min-width: 140px;
  outline: none;
}

/* custom dropdown arrow (Font Awesome) */
.dropdown-wrapper i {
  position: absolute;
  right: 1rem;
  pointer-events: none;
  font-size: 0.85rem;
  color: #5b6e8c;
  transition: color 0.2s;
}

.dropdown-wrapper:hover i {
  color: #f68a0a;
}

/* RIGHT SIDE: lets start button */
.start-btn-container {
  display: flex;
  align-items: center;
}

.btn-start {
  background: #3358c6;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 8px 16px -8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-start i {
  font-size: 1.1rem;
  transition: transform 0.2s;
}

.btn-start:hover {
  background-color: #2347b0;
  border-color: #2347b0;
  transform: translateY(-2px);
  box-shadow: 0 14px 22px -10px rgba(35, 71, 176, 0.35);
}

.btn-start:active {
  transform: translateY(1px);
}

/* ========== RESPONSIVE BREAKPOINTS ========== */
@media screen and (max-width: 780px) {
  .action-bar {
    border-radius: 2rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .dropdown-group {
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
  }

  .dropdown-wrapper {
    flex: 1;
  }

  .dropdown-wrapper select {
    min-width: auto;
    width: 100%;
  }

  .start-btn-container {
    justify-content: center;
    width: 100%;
    margin-top: 0.25rem;
  }

  .btn-start {
    width: 100%;
    justify-content: center;
    padding: 0.8rem;
  }
}

/* small tweak for very large screens — keep full width elegance */
@media screen and (min-width: 1400px) {
  .action-bar {
    padding: 1rem 3rem;
  }
  .dropdown-wrapper select {
    font-size: 1.05rem;
    padding: 0.85rem 2.8rem 0.85rem 1.8rem;
  }
}

.highlight {
  transition: 0.1s;
}

.main-layout .content {
  width: 80%;
  padding: 24px 98px;
  color: black;
}

.maths{
    color: #ac0000;
    font-weight: bold;
}
.one{
    color:#3358c6;
    font-weight: bold;
}
.two{
    color:#ffa901;
    font-weight: bold;
}
/* quiz-area */
.quiz-area {
  width: 100%;
  background: linear-gradient(135deg, #3358c6 0%, #4570e8 100%);
  color: #fff;
  padding: 32px 90px 32px 36px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 2.5rem;
  box-shadow: 0 12px 40px rgba(51, 88, 198, 0.22);
}
.quiz-area img {
  width: 280px;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.18));
}

@media (max-width: 768px) {
  .quiz-area {
    flex-direction: column;
    padding: 24px 20px;
    gap: 16px;
  }
  .main-layout .content {
    width: 100%;
    padding: 24px 24px;
  }
}

.main-layout .content h1 {
  font-size: 40px;
  color: #2d3748;
  font-weight: 700;
  line-height: 1.2;
}

.main-layout .content h2 {
  font-size: 30px;
  color: #2d3748;
  font-weight: 700;
  line-height: 1.2;
}
.main-layout .content h3 {
  font-size: 25px;
  color: #2d3748;
  font-weight: 700;
  line-height: 1.2;
}
.main-layout .content p {
  margin-bottom: 20px;
  color: #000000;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  line-height: 1.8;
}

.table-of-contents {
    margin: 8px 0 24px 20px;
    padding: 0;
  }
  .table-of-contents li {
    margin-bottom: 6px;
  }
  .table-of-contents a {
    color: #e6930a;
    text-decoration: none;
    font-size: 1rem;
  }
  .table-of-contents a:hover {
    text-decoration: underline;
}
/* ===== CATEGORY BOX ===== */
.category-header {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-body {
  font-size: 14px;
}

/* ===== SWITCH ===== */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
  margin-right: 10px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  background: #ccc;
  border-radius: 20px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: 0.3s;
}

.slider:before {
  content: "";
  position: absolute;
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

input:checked + .slider {
  background: #f68a0a;
}

input:checked + .slider:before {
  transform: translateX(18px);
}

.random-text {
  vertical-align: middle;
}

/* ===== ACCORDION ===== */
.accordion {
  margin-top: 5px;
}

.accordion:nth-child(3) {
  margin-top: 20px;
}

.accordion-header {
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 8px;
  border-radius: 8px;
  font-size: 13px;
  color: #2d3748;
  transition: color 0.2s, background 0.2s;
}

.accordion-header:hover {
  color: #f68a0a;
  background: rgba(246, 138, 10, 0.06);
}

.accordion-body {
  display: none;
  flex-direction: column;
}

.accordion-body label {
  display: block;
  margin: 4px 0;
  cursor: pointer;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  color: #4a5568;
}

.accordion-body label:hover {
  color: #f68a0a;
  background: rgba(246, 138, 10, 0.06);
}

/* ACTIVE */
.accordion.active .accordion-body {
  display: flex;
}

.accordion.active i {
  transform: rotate(180deg);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .main-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .main-layout .content {
    width: 100%;
  }
  .main-layout .content h1 {
    font-size: 30px;
    line-height: 30px;
    margin-bottom: 10px;
  }
  .main-layout .content h2 {
    font-size: 24px;
    line-height: 30px;
    margin-bottom: 10px;
  }
  .main-layout .content h3 {
    font-size: 20px;
    line-height: 30px;
    margin-bottom: 10px;
  }
}

.footer {
  width: 100%;
  font-family: "Poppins", sans-serif;
}

/* TOP */
.footer-top {
  background: #212529;
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 60px;
  flex-wrap: wrap;
  gap: 40px;
}

/* force equal columns */
.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col h3 {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-col a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  margin-bottom: 8px;
  font-size: 15px;
  transition: color 0.2s, padding-left 0.2s;
}

.footer-col a:hover {
  color: #f68a0a;
  padding-left: 4px;
}

/* CENTER */
.footer-col.center {
  align-items: center;
  text-align: center;
}

.footer-col.center img {
  width: 110px;
  margin-bottom: 15px;
}

/* SOCIAL ICONS */
.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #343a40;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  transition: 0.3s;
}

.social-icons a:hover {
  background: #f68a0a;
  transform: translateY(-2px);
}

/* BOTTOM */
.footer-bottom {
  background: #e5e5e5;
  text-align: center;
  padding: 15px;
  font-size: 14px;
  color: #333;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .footer {
    margin-bottom: 80px;
  }
  .footer-top {
    flex-direction: column;
    padding: 30px 20px;
  }

  .footer-col.center {
    align-items: flex-start;
    text-align: left;
  }
  .back-to-top {
    bottom: 90px;
    right: 10px;
    z-index: 1100;
  }
}

/* MOBILE ONLY */
.sidebar-header-mobile {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-category-btn {
  display: none;
}

/* MOBILE STYLES */
@media (max-width: 768px) {
  .mobile-category-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border-radius: 12px;
    background: #f5f7fb;
    border: 1px solid #ddd;
    font-weight: 600;
  }

  .sidebar {
    position: fixed;
    left: 0;
    bottom: -100%;
    width: 100%;
    height: 80%;
    background: #fff;
    z-index: 2000;
    transition: 0.3s;
    border-radius: 20px 20px 0 0;
    overflow-y: auto;
  }

  .sidebar.active {
    bottom: 0;
  }

  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 1500;
  }

  .sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .sidebar-header-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 5px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2100;
  }

  #closeSidebarBtn {
    cursor: pointer;
    z-index: 2200;
    position: relative;
  }
}

/* ========== MOBILE BOTTOM NAVIGATION ========== */
/* Only visible on mobile, hidden on desktop */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: none; /* hidden by default, shown only on mobile */
  justify-content: space-around;
  align-items: center;
  padding: 10px 16px 20px;
  z-index: 1000;
  transition: all 0.2s ease;
}

/* Individual nav item */
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 6px 12px;
  border-radius: 40px;
  flex: 1;
  max-width: 80px;
}

.bottom-nav-item .nav-icon {
  font-size: 1.6rem;
  color: #94a3b8;
  transition: all 0.2s;
}

.bottom-nav-item .nav-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

/* Active state styling */
.bottom-nav-item.active .nav-icon {
  color: #f97316;
  text-shadow: 0 0 6px rgba(249, 115, 22, 0.2);
}

.bottom-nav-item.active .nav-label {
  color: #f97316;
  font-weight: 600;
}

/* Hover / tap feedback */
.bottom-nav-item:active {
  transform: scale(0.94);
  background: rgba(249, 115, 22, 0.08);
}

/* Center special button (like floating action) - optional but matches image style */
.bottom-nav-item.center-btn {
  background: linear-gradient(135deg, #f97316, #fdba74);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
  margin-top: -8px;
  padding: 8px 0;
  border-radius: 50px;
}

.bottom-nav-item.center-btn .nav-icon {
  color: white;
  font-size: 1.5rem;
}

.bottom-nav-item.center-btn .nav-label {
  color: white;
  font-weight: 600;
}

.bottom-nav-item.center-btn.active .nav-icon,
.bottom-nav-item.center-btn.active .nav-label {
  color: white;
}

/* Desktop: hide bottom nav */
@media (min-width: 769px) {
  .mobile-bottom-nav {
    display: none !important;
  }
}

/* Mobile: show bottom nav */
@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
  }
}

/* Additional styling for iOS safe area */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .mobile-bottom-nav {
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }
}

/* Small screens adjustment */
@media (max-width: 480px) {
  .bottom-nav-item .nav-label {
    font-size: 0.65rem;
  }
  .bottom-nav-item .nav-icon {
    font-size: 1.4rem;
  }
}

/* ===== FULL SCREEN OVERLAY ===== */
.start-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  z-index: 3000;

  transform: translateX(100%);
  transition: transform 0.3s ease;

  display: flex;
  flex-direction: column;
}

/* ACTIVE (VISIBLE) */
.start-overlay.active {
  transform: translateX(0);
}

/* HEADER */
.overlay-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px;
  border-bottom: 1px solid #eee;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.overlay-header h3 {
  font-size: 18px;
  font-weight: 600;
}

/* BACK BUTTON */
.back-btn {
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: 0.2s;
}

.back-btn:hover {
  background: #f1f1f1;
}

/* SCROLLABLE CONTENT */
.overlay-content {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
  position: relative;
}

.overlay-content p {
  margin-bottom: 15px;
  line-height: 1.6;
  color: #444;
}

@media (min-width: 769px) {
  .start-overlay {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    background: transparent;
    z-index: auto;
    transform: none;
    transition: none;
    display: none;
    margin: 0 0 32px;
  }

  .start-overlay.active {
    display: block;
  }

  .overlay-header {
    display: none;
  }

  .overlay-content {
    padding: 24px 28px;
    overflow: visible;
    background: #ffffff;
    border: 1px solid #e6edf5;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  }

  body.desktop-start-open .quiz-area {
    display: none;
  }
}

.profile-icon-btn {
  color: inherit; /* Inherits text color from header/icon-box */
  text-decoration: none;
}

.profile-icon-btn i {
  font-size: 1.5rem; /* Matches typical font awesome header configurations */
  vertical-align: middle;
  transition: color 0.2s ease;
}

.profile-icon-btn i:hover {
  color: #007bff; /* Optional accent highlight on hover */
}

/* Hide desktop profile section on mobile viewports */
@media (max-width: 768px) {
  .desktop-profile-wrapper {
    display: none !important;
  }
}
/* Hide mobile auth menu group entirely on desktop views */
@media (min-width: 769px) {
  #mobileAuthGroup {
    display: none !important;
  }
}


/* =======================================================
   ADDED OVERLAY LOGOUT MODAL STYLES (PREVENTS GLOBAL CLASH)
   ======================================================= */

/* Darkened overlay wrapping background */
.modal.fade {
  display: none; 
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999; 
  background-color: rgba(0, 0, 0, 0.5); 
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
}

/* Active Class injected via triggering script toggles display */
.modal.fade.show {
  display: flex !important;
  opacity: 1;
}

/* Centered popup card layout frame */
.modal-dialog {
  background: #ffffff;
  width: 92%;
  max-width: 520px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transform: translateY(-30px);
  transition: transform 0.25s ease-out;
}

.modal.fade.show .modal-dialog {
  transform: translateY(0);
}

/* Header Content Alignment styles */
.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h5 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: #2d3748;
}

/* Close action 'x' symbol adjustments */
.modal-header .close {
  background: none;
  border: none;
  font-size: 1.6rem;
  font-weight: bold;
  color: #a0aec0;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.modal-header .close:hover {
  color: #4a5568;
}

/* Modal text descriptive section body styles */
.modal-body {
  padding: 24px;
  font-size: 1.05rem;
  color: #4a5568;
  line-height: 1.6;
}

/* Footer layout configuration container */
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  background-color: #fafafa;
}

/* Rounded modern buttons configuration block */
.modal-footer .btn {
  padding: 10px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 24px; 
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: all 0.2s ease;
}

/* Gray Cancel Button details */
.modal-footer .btn-secondary {
  background-color: #64748b;
  color: #ffffff !important;
}

.modal-footer .btn-secondary:hover {
  background-color: #475569;
}

/* Vibrant Orange Logout Button matching your UI snippet */
.modal-footer .btn-primary {
  background-color: #f68a0a; 
  color: #ffffff !important;
}

.modal-footer .btn-primary:hover {
  background-color: #d97706;
}
a {
    color: #f68a0a;
    text-decoration: none; /* optional */
}

a:hover {
    color: #c56e08;
}
/* ===== MISSION / CONTENT SECTION ===== */
#mission {
  margin-top: 0.5rem;
  padding: 2rem 2.5rem;
  background: #ffffff;
  border: 1px solid #e6edf5;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  line-height: 1.8;
}

#mission h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #f68a0a;
  display: inline-block;
}

#mission h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #2d3748;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

#mission p {
  color: #4a5568;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  line-height: 1.8;
}

#mission ul {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

#mission ul li {
  color: #4a5568;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  line-height: 1.7;
}

#mission strong {
  color: #1e293b;
}

/* ===== QUESTION PANEL POLISH ===== */
.questionpanel {
  border-radius: 14px !important;
  overflow: hidden;
  border: 1px solid #e6edf5 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.07) !important;
}

/* ===== MODAL SPINNER (API/data loading) ===== */
#modalSpinner {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  z-index: 100;
  border-radius: 18px;
  backdrop-filter: blur(4px);
  min-height: 120px;
}

#modalSpinner .spinner-border {
  /* centre using margin:auto — keeps transform free for the rotation */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: 2.8rem;
  height: 2.8rem;
  border: 3px solid #e8eef6;
  border-top-color: #f68a0a;
  border-radius: 50%;
  animation: doSpin 0.8s linear infinite;
}

.questionpanel .card-header {
  background: #f8faff;
  border-bottom: 1px solid #e6edf5;
  padding: 14px 20px;
}

@media (max-width: 768px) {
  .questionpanel .card-header .row {
    flex-direction: column-reverse;
  }
  #qheadinglbl {
    margin-bottom: 1px;
  }
}

.questionpanel .card-body {
  padding: 20px;
}

.questionpanel .progress {
  height: 8px;
  border-radius: 8px;
  background: #e9ecef;
}

/* ===== BUTTON ICON ANIMATION ===== */
.btn-start:hover i {
  transform: translateX(4px);
}

/* ===== CATEGORY HEADER POLISH ===== */
.category-header {
  color: #2d3748;
}

.category-header i {
  color: #f68a0a;
}

/* ===== MOBILE CATEGORY BUTTON POLISH ===== */
.mobile-category-btn {
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.mobile-category-btn:hover {
  background: #eef0f4 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ===== SIDEBAR HEADER MOBILE POLISH ===== */
@media (max-width: 768px) {
  .sidebar-header-mobile {
    font-size: 15px;
    color: #2d3748;
    font-weight: 700;
  }
}

/* ===== QUIZ AREA TEXT POLISH ===== */
.main-layout .content .quiz-area p {
  font-size: 0.95rem;
  line-height: 1.75;
  opacity: 0.92;
  color:#fff;
}

/* ===== DROPDOWN WRAPPER HOVER BORDER ===== */
.dropdown-wrapper:hover {
  border-color: #f68a0a;
  box-shadow: 0 2px 8px rgba(246, 138, 10, 0.12);
}

/* ===== ACCORDION ICON COLOR ===== */
.accordion-header i {
  color: #94a3b8;
  font-size: 11px;
  transition: transform 0.25s ease, color 0.2s;
}

.accordion.active .accordion-header i {
  color: #f68a0a;
}

/* ===== SLIDER TRACK POLISH ===== */
.slider {
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

/* ===== QUIZ PANEL ACTION BUTTONS ===== */
.questionpanel .nav-btn .btn {
  border-radius: 8px;
  font-size: 0.9rem;
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
  padding: 8px 22px;
}

.questionpanel .nav-btn .btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* ===== FOOTER BOTTOM POLISH ===== */
.footer-bottom {
  background: #d4d4d4;
  font-size: 13px;
  color: #555;
  letter-spacing: 0.2px;
}