
/* Ensure login/register tabs are in one line and styled as tabs */

.navigation-buttons button {
  font-family: 'Segoe UI', 'Noto Sans', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: bold;
  border: none;
  border-radius: 14px;
  padding: 10px 24px;
  box-shadow: 0 2px 12px rgba(33,150,243,0.10);
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.18s, transform 0.14s, box-shadow 0.14s;
  outline: none;
  margin: 0 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.navigation-buttons button.prev-btn {
  background: linear-gradient(90deg, #2196f3 60%, #1976d2 100%);
  color: #fff;
}
.navigation-buttons button.next-btn {
  background: linear-gradient(90deg, #4caf50 60%, #388e3c 100%);
  color: #fff;
}
.navigation-buttons button.report-btn {
  background: #ededed;
  color: #bdbdbd;
  border-radius: 12px;
  padding: 0 6px;
  font-size: 0.38rem;
  font-family: Verdana, Geneva, sans-serif;
  font-weight: 400;
  box-shadow: none;
  letter-spacing: 0;
  opacity: 0.18;
}
.navigation-buttons button.submit-btn {
  background: linear-gradient(90deg, #e91e63 30%, #500172 70%);
  color: #fff;
  border-radius: 50px;
}
.navigation-buttons button:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(33,150,243,0.18);
}
.navigation-buttons button.report-btn:hover {
  background: linear-gradient(90deg, #bdbdbd 0%, #e0e0e0 100%);
  opacity: 0.9;
  box-shadow: none;
}
.navigation-buttons button.submit-btn:hover {
  background: linear-gradient(90deg, #1976d2 0%, #2196f3 100%);
  box-shadow: 0 6px 24px rgba(33,150,243,0.32);
}
.navigation-buttons button.prev-btn:hover {
  background: linear-gradient(90deg, #1976d2 0%, #2196f3 100%);
  box-shadow: 0 6px 24px rgba(33,150,243,0.32);
}
.navigation-buttons button.next-btn:hover {
  background: linear-gradient(90deg, #388e3c 0%, #4caf50 100%);
  box-shadow: 0 6px 24px rgba(76,175,80,0.32);
}
.section-name {
  font-size: 1.18rem;
  font-weight: bold;
  font-family: 'Segoe UI', 'Noto Sans', Arial, sans-serif;
  color: #2196f3;
  background: linear-gradient(90deg, #e3f2fd 0%, #fffde7 100%);
  padding: 6px 18px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(33,150,243,0.10);
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 10px;
}
/* Section Pie Chart Block Styling */
.section-chart-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 12px 12px 0;
  background: linear-gradient(165deg, #ffffff 0%, #f5f9ff 100%);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(33, 150, 243, 0.12),
              inset 0 2px 4px rgba(255, 255, 255, 0.8);
  padding: 16px;
  min-width: 260px;
  text-align: center;
  border: 1px solid rgba(3, 169, 244, 0.15);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.section-chart-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(33, 150, 243, 0.18),
              inset 0 2px 8px rgba(255, 255, 255, 0.9);
  border-color: rgba(3, 169, 244, 0.25);
}

.section-chart-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2196f3, #4caf50);
  opacity: 0.8;
}
.section-chart-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: 1.2px;
  background: linear-gradient(45deg, #000000, #333333);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  text-transform: uppercase;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
  padding: 4px 0;
}

.section-chart-title::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  bottom: -4px;
  transform: scaleY(-0.3) translateY(1px);
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: blur(0.5px);
  opacity: 0.6;
}
/* Test Header Styles */
.test-header {
  text-align: center;
  margin-bottom: 10px;
  padding: 8px;
  background: linear-gradient(135deg, rgba(71, 2, 57, 0.95), rgba(60, 3, 118, 0.9));
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 2px 6px rgba(60, 2, 51, 0.827);
}

.test-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.3rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 2px 2px 4px rgba(33,150,243,0.2);
  line-height: 1.2;
}

.test-subtitle {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  margin: 5px 0 0;
  letter-spacing: 0.4px;
  text-transform: capitalize;
  padding: 4px 12px;
  border-radius: 16px;
  display: inline-block;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.result-card .not-answered {
  color: #b0b8d9;
  font-weight: bold;
  margin-left: 8px;
  font-size: 1.08em;
  background: #fffde7;
  border-radius: 6px;
  padding: 2px 8px;
  display: inline-block;
}

/* Enhanced Result Section Styles */
.result-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  padding: 1.5rem;
  font-family: 'Arial', sans-serif;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .result-container {
    padding: 1rem;
  }
}

.result-header {
  text-align: center;
  margin-bottom: 0.5rem;
  padding: 0 0.5rem;
}

.result-header h2 {
  content: "TEST RESULT";
  font-size: 2.4rem;
  font-weight: 800;
  color: #2196f3;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-header .test-subtitle {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: #666;
  margin: 5px 0 20px 0;
  padding: 8px 20px;
  background: linear-gradient(135deg, rgba(33,150,243,0.1) 0%, rgba(80,1,114,0.1) 100%);
  border-radius: 25px;
  letter-spacing: 0.5px;
  border: 1px solid rgba(33,150,243,0.2);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

@media (max-width: 576px) {
  .result-header h2 {
    font-size: 1.8rem;
  }
  
  .result-header .test-subtitle {
    font-size: 0.9rem;
    padding: 6px 15px;
  }
}

.result-header {
  text-align: center;
  margin: -0.5rem -1rem 1rem -1rem;
  padding: 0.75rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.result-header h2 {
  font-size: 1.75rem;
  margin: 0 0 0.5rem 0;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.result-header .test-name {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

.footer-btn {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  /* reduced vertical padding and slightly smaller horizontal padding */
  padding: 4px 12px;
  font-size: 0.95rem;
  border-radius: 6px;
  cursor: pointer;
  min-width: 80px;
  width: 100px;
  max-width: 100%;
  box-sizing: border-box;
  /* decreased height for a more minimal look */
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.18);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  font-weight: 500;
  letter-spacing: 0.2px;
}
@media (max-width: 576px) {
  .score-info {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
}

.score-item {
  text-align: center;
  padding: 0.5rem;
  background: linear-gradient(180deg, rgba(45,45,45,0.95), rgba(35,35,35,0.9));
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  color: #ffffff;
  transition: all 0.2s ease;
}

.score-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

.score-item h3 {
  font-size: 1.2rem;
  margin: 0 0 0.2rem 0;
  font-weight: 600;
  color: #ffffff;
}

.score-item p {
  font-size: 0.8rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  opacity: 0.9;
}

@media (max-width: 576px) {
  .score-item {
    padding: 0.5rem;
    margin: 0;
  }
}

@media (max-width: 576px) {
  .score-item {
    padding: 0.8rem;
  }
  
  .score-item h3 {
    font-size: 1.5rem;
  }
}

.score-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(33, 150, 243, 0.2);
}

.score-item h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #4CAF50;
  text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.question-review {
  background: rgba(0, 7, 53, 0.886);
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(5, 113, 201, 0.1);
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.08);
  transition: all 0.3s ease;
}

.question-review:hover {
  transform: translateY(-5px);
}

.question-review h3 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 0.5rem;
}

.options-list {
  list-style: none;
  padding: 0;
}

.option-item {
  padding: 0.5rem;
  margin: 0.25rem 0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  flex-wrap: wrap;
  gap: 0.25rem;
}

@media (max-width: 576px) {
  .option-item {
    padding: 0.4rem;
    margin: 0.2rem 0;
    border-radius: 4px;
  }
}

@media (max-width: 576px) {
  .option-item {
    padding: 0.6rem;
    font-size: 0.9rem;
  }
}

.option-item.correct {
  background: rgba(76, 175, 80, 0.2);
  border: 1px solid #4CAF50;
}

.option-item.incorrect {
  background: rgba(244, 67, 54, 0.2);
  border: 1px solid #F44336;
}

@media (max-width: 576px) {
  .option-item.correct,
  .option-item.incorrect {
    padding: 0.5rem;
  }
}

.explanation {
  display: block !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.756) 30%, rgba(33, 149, 243, 0.214) 100%);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  border-left: 4px solid #2196F3;
  font-style: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  color: #0f0808;
  font-size: 0.95rem;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 576px) {
  .explanation {
    padding: 0.5rem;
    margin-top: 0.5rem;
    border-left: 2px solid #2196F3;
    border-radius: 4px;
  }
}

@media (max-width: 576px) {
  .explanation {
    padding: 0.8rem;
    margin-top: 0.8rem;
    font-size: 0.9rem;
  }
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
  flex-wrap: wrap;
  padding: 0 0.5rem;
}

@media (max-width: 576px) {
  .action-buttons {
    gap: 0.3rem;
    margin-top: 0.75rem;
    padding: 0 0.25rem;
  }
}

@media (max-width: 576px) {
  .action-buttons {
    gap: 0.8rem;
    margin-top: 1.5rem;
    flex-direction: column;
  }
}

.action-button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #03a9f4 0%, #00bcd4 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(3, 169, 244, 0.3);
  width: auto;
  min-width: 80px;
}

@media (max-width: 576px) {
  .action-button {
    width: auto;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    min-width: 70px;
  }
}

.action-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(3, 169, 244, 0.4);
  background: linear-gradient(135deg, #00bcd4 0%, #03a9f4 100%);
}

.reattempt-btn {
  background: linear-gradient(45deg, #4CAF50, #45a049);
  color: white;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.reattempt-btn:hover {
  background: linear-gradient(45deg, #45a049, #4CAF50);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.view-solutions-btn {
  background: linear-gradient(45deg, #2196F3, #1e88e5);
  color: white;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.view-solutions-btn:hover {
  background: linear-gradient(45deg, #1e88e5, #2196F3);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.performance-analysis {
  background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid rgba(33, 150, 243, 0.15);
  box-shadow: 0 8px 30px rgba(33, 150, 243, 0.1);
  position: relative;
  overflow: hidden;
}

.performance-analysis::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  transform: skewX(-20deg);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) skewX(-20deg); }
  100% { transform: translateX(100%) skewX(-20deg); }
}

.performance-chart {
  height: 300px;
  margin: 2rem 0;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 1rem;
}
.result-card .skipped {

  color: #500172;
  font-weight: bold;
  margin-left: 8px;
  font-size: 1.08em;
  background: #fff3e0;
  border-radius: 6px;
  padding: 2px 8px;
  display: inline-block;
}
/* Result Card & Analysis Modern Design */
.result-card {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(33, 150, 243, 0.15);
  padding: 1.5rem 1rem;
  width: 100%;
  max-width: 700px;
  margin: 1rem auto;
  text-align: center;
  position: relative;
  border: 1px solid rgba(3, 169, 244, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .result-card {
    padding: 1.5rem 1rem;
    margin: 1rem auto;
    border-radius: 16px;
  }
  
  .result-card h2 {
    font-size: 1.8rem;
  }
  
  .result-card h3 {
    font-size: 1.2rem;
  }
  
  .result-card p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .result-card {
    padding: 0.8rem;
    border-radius: 8px;
    margin: 0.5rem auto;
  }
  
  .result-card h2 {
    font-size: 1.3rem;
  }
  
  .result-card h3 {
    font-size: 1rem;
  }
  
  .result-card p {
    font-size: 0.9rem;
    margin-bottom: 12px;
  }
  
  .exam-category {
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 8px;
  }
  
  .category-icon {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
  }
  
  .open-btn {
    padding: 8px 20px;
    font-size: 0.95rem;
    border-radius: 20px;
  }
  
  .paper-item {
    padding: 0.6rem;
    gap: 0.5rem;
  }
  
  .start-test-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}

.result-card {
  animation: resultpop 0.5s cubic-bezier(.68,-0.55,.27,1.55);
}

@keyframes resultpop {
  0% { transform: scale(0.8) translateY(40px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.result-card h2 {
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #2196f3 0%, #500172 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(33,150,243,0.2);
  position: relative;
  padding-bottom: 10px;
}

.result-card h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #2196f3, #500172);
  border-radius: 2px;
}

.result-card .test-subtitle {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: #666;
  margin: 5px 0 20px 0;
  padding: 8px 20px;
  background: linear-gradient(135deg, rgba(33,150,243,0.1) 0%, rgba(80,1,114,0.1) 100%);
  border-radius: 25px;
  letter-spacing: 0.5px;
  border: 1px solid rgba(33,150,243,0.2);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.result-card p {
  font-size: 1.15rem;
  color: #673ab7;
  margin-bottom: 18px;
  font-weight: 500;
}
.result-card h3 {
  font-size: 1.3rem;
  color: #500172;
  margin: 18px 0 10px 0;
  font-weight: 700;
  letter-spacing: 1px;
}
.result-card ul {
  text-align: left;
  margin: 0 auto 0 auto;
  padding: 0 0 0 0;
  max-height: 320px;
  overflow-y: auto;
  background: rgba(255,255,255,0.85);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(33,150,243,0.07);
  font-size: 1.05rem;
  list-style: none;
}
.result-card ul li {
  margin: 0 0 18px 0;
  padding: 14px 18px 10px 18px;
  border-bottom: 1px solid #e3f2fd;
  border-radius: 8px;
  background: linear-gradient(90deg, #fffde7 60%, #e3f2fd 100%);
  box-shadow: 0 1px 4px rgba(255,152,0,0.07);
}
.result-card ul li:last-child {
  border-bottom: none;
}
.result-card .correct {
  color: #4caf50;
  font-weight: bold;
  margin-left: 8px;
  font-size: 1.1em;
}
.result-card .wrong {
  color: #e91e63;
  font-weight: bold;
  margin-left: 8px;
  font-size: 1.1em;
}
.result-card button {
  background: linear-gradient(90deg, #2196f3 0%, #500172 100%);
  color: white;
  border: none;
  border-radius: 14px;
  padding: 10px 28px;
  font-size: 1.08rem;
  font-weight: bold;
  margin: 18px 8px 0 8px;
  box-shadow: 0 2px 12px rgba(33,150,243,0.12);
  cursor: pointer;
  transition: background 0.18s, transform 0.16s;
}
.result-card button:hover {
  background: linear-gradient(90deg, #500172 0%, #2196f3 100%);
  transform: scale(1.07);
}


/* Page background: subtle deep-blue gradient to make cards pop */
.result-container {
  background: linear-gradient(135deg, #07132a 0%, #0b2b4a 60%);
  color: #eaf6ff;
}

/* Make the score card look like a premium glass card */
.score-card {
  background: linear-gradient(180deg, rgba(242, 209, 209, 0.98) 0%, rgba(175, 214, 239, 0.94) 100%);
  color: #052033;
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 18px 40px rgba(3,18,33,0.28);
  border: 1px solid rgba(6,22,40,0.06);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.score-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(3,18,33,0.32);
}

/* Score info layout with responsive design */
.score-info {
  display: grid;
  grid-template-columns: 260px repeat(3, 1fr);
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .score-info { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 0.8rem;
  }
}

@media (max-width: 576px) {
  .score-info { 
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
}

/* Score item base styles */
.score-item {
  text-align: center;
  padding: 0.8rem;
  background: linear-gradient(180deg, rgba(45,45,45,0.95), rgba(35,35,35,0.9));
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  color: #ffffff;
  transition: all 0.2s ease;
}

.score-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* Primary score item (first child) */
.score-info .score-item:first-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background: linear-gradient(135deg, #2196f3 0%, #7b1fa2 100%);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(33, 150, 243, 0.22);
}

.score-info .score-item:first-child h3 {
  font-size: 2.5rem;
  line-height: 1;
  margin: 0;
  color: #ffffff;
  text-shadow: 0 4px 16px rgba(123,31,162,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.score-item p {
  margin: 6px 0 0 0;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Section-wise blocks: clean card look with subtle shadow */
.section-chart-block {
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(6,22,40,0.06);
  padding: 10px;
  min-width: 200px;
  text-align: center;
  border: 1px solid rgba(6,22,40,0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.section-chart-block canvas {
  margin: 0 auto;
}

.section-chart-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #000000;
  text-transform: uppercase;
  position: relative;
  letter-spacing: 1px;
  background: linear-gradient(180deg, #000000 0%, #333333 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 
    2px 2px 4px rgba(0,0,0,0.2),
    0 4px 4px rgba(0,0,0,0.1);
}

.section-chart-title::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  bottom: -4px;
  transform: scaleY(-0.3) translateY(1px);
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: blur(0.5px);
  opacity: 0.5;
}

.performance-analysis {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,253,255,0.95));
  border-radius: 14px;
  padding: 1rem;
  margin: 1.25rem 0;
  border: 1px solid rgba(6,22,40,0.04);
  box-shadow: 0 18px 40px rgba(6,22,40,0.04);
}

/* Make question review cards crisp and readable */
.question-review {
  background: #ffffff;
  color: #052033;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(6,22,40,0.04);
  box-shadow: 0 12px 30px rgba(6,22,40,0.04);
  order: 2; /* Added to ensure it appears after questions palette */
}

.question-review h3 {
  color: #07203a;
  font-size: 1rem;
}

/* Keep option colors consistent on light background */
.option-item.correct { background: rgba(76,175,80,0.12); border: 1px solid rgba(76,175,80,0.25); color: #155724; }
.option-item.incorrect { background: rgba(244,67,54,0.08); border: 1px solid rgba(244,67,54,0.18); color: #7b1f1f; }

/* Small utilities */
.score-small { font-size: 0.95rem; color: #0b2b4a; }

/* Question transition animation for detailed analysis */
.qa-fade {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 300ms ease, transform 300ms ease;
}
.qa-fade.qa-fade-active {
  opacity: 1;
  transform: translateY(0);
}

/* Compact, accessible footer - rewritten for clarity and reliability */
.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  /* decreased height by 4px as requested */
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  background: #170020;
  color: #fff;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
  z-index: 1200;
  border-top: 1px solid rgba(255,255,255,0.03);
}

.footer-inner {
  width: 100%;
  max-width: 1100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

/* left/center/right columns */
.footer-col { display:flex; align-items:center; gap:4px; flex:1; }
.footer-col.center { justify-content:center; }
.footer-col.left { justify-content:flex-start; }
.footer-col.right { justify-content:flex-end; }

/* Footer buttons - elevated look */
.footer-btn {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.043);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.442);
  padding: 6px 16px;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  min-width: 90px;
  width: 110px;
  max-width: 100%;
  box-sizing: border-box;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.footer-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,0.25); }
.footer-btn:active { transform: translateY(0); box-shadow: 0 4px 12px rgba(0,0,0,0.18); }

/* Back button initial state: visually subdued until a page registers a back action */
.footer-btn.back-disabled { opacity: 0.48; pointer-events: none; }

/* Small screens: compact the footer */
@media (max-width: 600px) {
  /* Keep footer container flexible on mobile; only buttons are compacted */
  .footer { 
    height: auto; 
    padding: 6px 8px; 
  }
  .footer-inner { 
    gap: 4px; 
    padding: 2px 0; 
  }
  .footer-btn { 
    padding: 3px 8px; 
    /* more compact mobile height */
    height: 24px; 
    min-width: 64px; 
    width: 82px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15px;
    border-radius: 4px;
  }
  .footer-col {
    gap: 4px;
  }
}

/* keep main content padded so footer won't overlap */
main { padding-bottom: 90px; }

/* New styles for grouped papers */
.papers-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px 0;
}

.papers-group {
  width: calc(50% - 10px);
  min-width: 300px;
  flex: 1;
  background: linear-gradient(135deg, #4fb9e4 0%, #0987e1 100%);
  border-radius: 6px;
  padding: 1px;
  box-shadow: 0 2px 6px rgba(33, 150, 243, 0.08);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(3, 169, 244, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  margin: 0;
}

.papers-group:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(33, 150, 243, 0.25);
}

.papers-group::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4caf50, #2196f3);
}

.papers-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  padding: 8px;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.1);
  border: 1px solid rgba(3, 169, 244, 0.15);
  backdrop-filter: blur(10px);
}

.papers-list .test-item-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  min-width: 180px;
  gap: 8px;
  padding: 4px 8px;  /* Reduced padding */
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transform: scale(0.85);  /* Added 15% size reduction */
  margin: -4px 0;  /* Adjust margins to prevent gaps */
}

.papers-list .test-tag {
  width: 120px;
  padding: 6px 12px;
  background: #500172;
  color: white;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 2px 4px rgba(80, 1, 114, 0.2);
  letter-spacing: 0.3px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.papers-list .start-test-btn {
  width: 120px;
  padding: 6px 12px;
  border-radius: 6px;
  background: #4CAF50;
  color: white;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 4px rgba(76, 175, 80, 0.2);
  letter-spacing: 0.3px;
}

.papers-list .start-test-btn:hover {
  background: linear-gradient(45deg, #2196f3, #4caf50);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.3);
}

.papers-list .start-test-btn .arrow {
  transition: transform 0.2s ease;
}

.papers-list .start-test-btn:hover .arrow {
  transform: translateX(5px);
}

@media (max-width: 768px) {
  .papers-list .start-test-btn {
    max-width: 100%;
    font-size: 0.9rem;
    padding: 10px 15px;
  }
  
  .test-card {
    padding: 0.8rem;
    border-radius: 8px;
  }
  
  .test-card h3 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }
  
  .papers-group {
    max-width: 100%;
    margin: 0 10px;
  }
  
  .category-stats {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }
  
  .category-desc {
    font-size: 0.9rem;
    margin: 0.6rem 0;
  }
}

/* Add padding to main content to prevent footer overlap */
main {
  padding-bottom: 70px; /* Increased padding to prevent content from being hidden behind footer */
  margin-right: 0;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .footer {
    padding: 0.4rem 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .footer-left, .footer-center, .footer-right {
    font-size: 0.75rem;
  }

  .footer-center {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 0.8rem;
  }

  .copyright {
    font-size: 0.75rem;
  }

  .social-links a {
    font-size: 0.7rem;
    padding: 0.15rem 0.3rem;
  }

  .subscribe-btn {
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
  }
}
.q-image img {
  width: 100%;
  max-width: 100%;
  max-height: 180px;
  height: auto;
  display: block;
  margin: 12px auto 8px auto;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(33,150,243,0.10);
  font-weight: 700;
  font-size: 1.1em;
}

.desc-en {
  font-size: 0.98rem;
  color: #0a0606;
  font-weight: 700;
}
.desc-hi {
  font-size: 0.96rem;
  color: #02675b;
  font-weight: 600;
  font-family: 'Noto Sans', 'Mangal', Arial, sans-serif;
}
.category-desc {
  font-size: 0.9rem;
  color: #0f0808;
  margin: 0.5rem 0;
  text-align: center;
  line-height: 1.3;
}

@media (max-width: 576px) {
  .category-desc {
    font-size: 0.7rem;
    line-height: 1.2;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: auto;
    min-height: 2.6em;
    max-height: 3.9em;
    padding: 0 0.3rem;
    word-wrap: break-word;
    hyphens: auto;
  }
}

.exam-category {
  position: relative;
  z-index: 1;
}

/* White overlay layer */
.exam-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: var(--category-icon);
  background-size: 140%;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.2;
  z-index: 1;
  transition: all 0.3s ease;
  filter: blur(1px);
}

.exam-category::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.85);
  z-index: 2;
  pointer-events: none;
}

.category-icon {
  display: none;
}

.category-stats {
  margin: 0.4rem 0;
  padding: 0.6rem 0.8rem;
  background: linear-gradient(135deg, #459cda15 0%, #bbdefb40 100%);
  border-radius: 10px;
  font-size: 0.85rem;
  color: #061b95;
  font-weight: 500;
  border: 1px solid rgba(3, 169, 244, 0.15);
  box-shadow: 0 2px 6px rgba(33, 150, 243, 0.08);
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: all 0.3s ease;
}

@media (max-width: 576px) {
  .category-stats {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
    gap: 0.3rem;
    margin: 0.3rem 0;
  }

  .category-stats h3 {
    font-size: 0.85rem;
    line-height: 1.2;
    margin: 0;
  }
}

.exam-category:hover .category-stats {
  background: linear-gradient(135deg, #459cda25 0%, #bbdefb60 100%);
  border-color: rgba(3, 169, 244, 0.25);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.12);
}

.recruitment-list {
  display: inline-flex;
  padding: 0.25rem;
  margin: 0.25rem 0;
  max-height: 2.8em;
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.recruitment-list-scroll {
  display: inline-flex;
  gap: 16px;
  padding-left: 16px;
  animation: scrollTags 30s linear infinite;
  will-change: transform;
}

.recruitment-list:hover .recruitment-list-scroll {
  animation-play-state: paused;
}

.recruitment-list::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.2) 0%, transparent 20%, transparent 80%, rgba(255,255,255,0.2) 100%);
  pointer-events: none;
}

.recruitment-tag {
  background: #500172;
  color: white;
  padding: 4px 14px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(80, 1, 114, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.recruitment-tag:hover {
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 3px 6px rgba(80, 1, 114, 0.3);
  background: linear-gradient(45deg, #500172, #2196f3);
  z-index: 1;
}

@keyframes scrollTags {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.test-count, .subcat-count {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  font-weight: 400;
}

.test-count:hover, .subcat-count:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: translateX(5px);
}

.test-count::before {
  content: '📝';
  font-size: 1.0em;
}

.subcat-count::before {
  content: '📢';
  font-size: 1.0em;
}

.subcat-count {
  color: #500172;
  font-weight: 550;
}

.tests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.test-card {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-radius: 8px;
  padding: 0.75rem;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(3, 169, 244, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(10px);
  min-width: 220px;
}

.test-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.test-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #2196f3;
}

.test-card h3 {
  font-size: 1.2rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  text-align: center;
  line-height: 1.4;
}

.test-number {
  background: linear-gradient(45deg, #500172, #2196f3);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.attempt-test-btn {
  background: linear-gradient(45deg, #2196f3, #500172);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  content: "Start Test";
}

.attempt-test-btn:hover {
  background: linear-gradient(45deg, #500172, #2196f3);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.3);
}

.attempt-test-btn .arrow {
  transition: transform 0.3s ease;
}

.attempt-test-btn:hover .arrow {
  transform: translateX(5px);
}
.exam-category {
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.15);
  border: 1px solid rgba(3, 169, 244, 0.15);
  width: calc(50% - 10px);
  min-width: 300px;
  flex: 1;
  text-decoration: none;
  color: inherit;
  margin-bottom: 1rem;
  background-size: 90% !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  backdrop-filter: blur(5px);
}

@media (max-width: 576px) {
  .exam-category {
    padding: 1rem;
    min-width: 250px;
    font-size: 0.9em;
  }
}

.exam-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: 140%;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.2;
  z-index: 0;
  transition: all 0.3s ease;
}

/* Sky blue layer */
.exam-category::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(135, 206, 235, 0.4); /* Sky blue with 40% opacity */
  z-index: 1;
  pointer-events: none;
}

/* White overlay on top of sky blue */
.exam-category > div {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.6);
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.exam-category > * {
  position: relative;
  z-index: 3;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.3); /* Added background to content to ensure readability */
  padding: 8px;
  border-radius: 8px;
}

.exam-category::before {
  background: inherit;
  opacity: 0.2;
}

.exam-category::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.2); /* Changed to match 20% visibility */
  z-index: 1;
}

.exam-category::after {
  content: '→';
  position: absolute;
  right: 20px;
  bottom: 20px;
  font-size: 1.5rem;
  color: #d0e4f5;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  
}
.exam-category::after {
  content: '→';
  position: absolute;
  right: 20px;
  bottom: 20px;
  font-size: 1.5rem;
  color: #d0e4f5;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.exam-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(33, 150, 243, 0.25);
}

.exam-category:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.exam-category:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.exam-category:active {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(33, 150, 243, 0.2);
}

.exam-category:focus {
  transform: translateY(-2px);
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.3);
}

/* Subcategories styling */
/* Subcategory Page Styles */
.subcategory-page {
  padding: 2rem;
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.subcategories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.subcategory-card {
  background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(3, 169, 244, 0.15);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.subcategory-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #03a9f4, #00bcd4);
  animation: borderGlow 2s infinite alternate;
}

@keyframes borderGlow {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

.subcategory-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.paper-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.paper-item {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-radius: 12px;
  padding: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.12);
  transition: all 0.3s ease;
  border: 1px solid rgba(3, 169, 244, 0.15);
}

.paper-item:hover {
  background: linear-gradient(135deg, #bbdefb 0%, #90caf9 100%);
  transform: translateX(5px);
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.2);
  border-color: rgba(3, 169, 244, 0.3);
}

.paper-number {
  background: linear-gradient(45deg, #2196f3, #500172);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.start-test-btn {
  background: linear-gradient(45deg, #4caf50, #2196f3);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  content: "Start Test";
}

.start-test-btn:hover {
  background: linear-gradient(45deg, #2196f3, #4caf50);
  transform: scale(1.05);
}

.subcategory-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

.subcategory-card h3 {
  font-size: 1.1rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 600;
  background: linear-gradient(90deg, #2196f3, #500172);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  padding-bottom: 0.4rem;
}

.subcategory-card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 25%;
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, #500172, #2196f3);
  border-radius: 2px;
}

.tests-list {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 10px;
  margin-top: 1rem;
}

.tests-list::-webkit-scrollbar {
  width: 6px;
}

.tests-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.tests-list::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #500172, #2196f3);
  border-radius: 10px;
}

.test-item {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.8rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(3, 169, 244, 0.2);
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.1);
}

.test-item:hover {
  background: linear-gradient(135deg, #bbdefb 0%, #90caf9 100%);
  transform: translateX(5px) translateY(-2px);
  box-shadow: 0 8px 20px rgba(33, 150, 243, 0.2);
  border-color: rgba(3, 169, 244, 0.4);
}

.test-title {
  display: block;
  font-size: 1rem;
  color: #34495e;
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.start-test-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: linear-gradient(45deg, #4CAF50, #2196f3);
  color: white;
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.2);
  content: "Start Test";
}

.papers-group:first-child .start-test-btn,
.papers-group:last-child .start-test-btn {
  background: linear-gradient(45deg, #4CAF50, #2196F3);
}

.start-test-btn:hover {
  background: linear-gradient(45deg, #2196F3, #4CAF50);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.test-item-container:hover .test-tag {
  background: #5c0185;
  box-shadow: 0 4px 12px rgba(80, 1, 114, 0.4);
}

.start-test-btn .arrow {
  margin-left: 8px;
  transition: transform 0.2s ease;
}

.start-test-btn:hover .arrow {
  transform: translateX(5px);
}

.select-exam-btn {
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(45deg, #770696, #2196f3);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.2);
}

.select-exam-btn:hover {
  background: linear-gradient(45deg, #2196f3, #770696);
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.3);
}

.exams-list-page {
  animation: fadeIn 0.5s ease-out;
}

.breadcrumb {
  background: linear-gradient(90deg, #e3f2fd 0%, #fff3e0 100%);
  padding: 12px 20px;
  border-radius: 10px;
  color: #2196f3;
  font-weight: 500;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.1);
}

.exams-grid {
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 20px 0;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.exam-card {
  background: linear-gradient(135deg, #87CEEB 0%, #e3f2fd 100%);
  border-radius: 6px;
  padding: 12px;
  width: calc(50% - 10px);
  min-width: 300px;
  flex: 1;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.15);
  transition: all 0.3s ease;
  border: 1px solid rgba(3, 169, 244, 0.15);
  position: relative;
  overflow: hidden;
  margin-bottom: 5px;
  backdrop-filter: blur(10px);
}

.exam-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(33, 150, 243, 0.25);
  border-color: rgba(3, 169, 244, 0.4);
}

.exam-card.papers-group {
  background: #94c6f568;
}

.exam-card.papers-group h3 {
  font-size: 1.5rem;
  color: #2196f3;
  margin-bottom: 10px;
  padding-left: 30px;
  position: relative;
}

.exam-card.papers-group h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background-size: contain;
  background-repeat: no-repeat;
}

.exam-card.papers-group:first-child h3::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234CAF50'%3E%3Cpath d='M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z'/%3E%3C/svg%3E");
}

.exam-card.papers-group:last-child h3::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232196F3'%3E%3Cpath d='M14 17H4v2h10v-2zm6-8H4v2h16V9zM4 15h16v-2H4v2zM4 5v2h16V5H4z'/%3E%3C/svg%3E");
}

.papers-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
  background: #f5f5f5;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.papers-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.start-test-btn.sectional-btn {
  background: #4CAF50;  /* Keep consistent with other attempt buttons */
  padding: 12px 20px;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.start-test-btn.sectional-btn:hover {
  background: linear-gradient(45deg, #2196F3, #500172);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(33, 150, 243, 0.2);
}

.papers-group {
  margin-bottom: 30px;
}

.papers-group h3 {
  color: #2196F3;
  margin-bottom: 20px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.exam-icon {
  font-size: 1.8rem;
  margin-right: 5px;
}

.arrow {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.start-test-btn:hover .arrow {
  transform: translateX(5px);
}

.exam-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4caf50, #2196f3);
}

.exam-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.exam-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  animation: float 3s ease-in-out infinite;
}

.exam-card h3 {
  font-size: 1.2rem;
  color: #2c3e50;
  margin-bottom: 20px;
  font-weight: 600;
}

.select-exam-btn {
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(45deg, #770696, #2196f3);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.2);
}

.select-exam-btn:hover {
  background: linear-gradient(45deg, #2196f3, #770696);
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.3);
}

.select-exam-btn .arrow {
  transition: transform 0.3s ease;
}

.select-exam-btn:hover .arrow {
  transform: translateX(5px);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Teaching section specific styles */
.teaching-category {
  background: linear-gradient(135deg, #e8f5e9 0%, #f3e5f5 100%);
}

.teaching-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #4caf50;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

.teaching-card {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(33, 150, 243, 0.15);
  border: 2px solid rgba(3, 169, 244, 0.2);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.teaching-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #4caf50, #9c27b0);
}

.teaching-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(76, 175, 80, 0.2);
}

.teaching-title {
  color: #4caf50;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  text-align: center;
  background: linear-gradient(90deg, #4caf50, #9c27b0);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.teaching-stats {
  background: linear-gradient(135deg, #e8f5e9 0%, #f3e5f5 100%);
  border-radius: 15px;
  padding: 0.8rem;
  margin-top: 1rem;
  color: #4caf50;
}

/* Add responsiveness */
@media (max-width: 768px) {
  .subcategories-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  
  .subcategory-card {
    margin-bottom: 1rem;
  }
}

/* Animation for expanding/collapsing categories */
.exam-category {
  transition: all 0.3s ease;
}

.exam-category.expanded {
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(33, 150, 243, 0.15);
}
/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(15px) saturate(200%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  color: #222;
  padding: 4px 12px;
  min-height: 30IBPS PO - paper 1px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: center;
}

.site-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.title-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

header h1 {
  font-size: 1.2rem;
  margin: 0;
  padding-bottom: 2px;
  font-family: 'Segoe UI', 'Noto Sans', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  position: relative;
  color: #00bfff;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  gap: 3px;
  border-bottom: 1px solid #2196f3;
}

header h1 .india-text {
  display: flex;
  font-weight: 800;
}

header h1 .in {
  color: #ff9933;
}

header h1 .d {
  color: #000080;
}

header h1 .ia {
  color: #138808;
}

.tagline {
  font-size: 0.75rem;
  color: #333;
  margin: 2px 0 0 0;
  font-weight: bold;
  letter-spacing: 0.3px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: center;
}

.site-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.title-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tagline {
  font-size: 1.0rem;
  color: #070000;
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: sentence-case;
}

header h1 {
  font-size: 1.5rem;
  margin: 0;
  font-family: 'Segoe UI', 'Noto Sans', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  position: relative;
  color: #02a3d8; /* Sky blue for TestBook */
  text-shadow: 1px 1px 0 rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  gap: 4px;
}

header h1 .india-text {
  display: flex;
  font-weight: 700;
}

header h1 .in {
  color: #ff9933; /* Saffron */
}

header h1 .d {
  color: #000080; /* Navy blue */
}

header h1 .ia {
  color: #138808; /* India green */
}

.header-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}
header h1::after {
  content: '';
  display: block;
  width: 40%;
  height: 2px;
  margin: 4px auto 0 auto;
  background: linear-gradient(90deg, #500172, #2196f3);
  border-radius: 1px;
  opacity: 0.3;
}

.home-btn-icon {
  background: linear-gradient(135deg, #2196f3 60%, #500172 100%);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  color: #fff;
  box-shadow: 0 2px 8px rgba(33,150,243,0.18);
  margin: 0 4px;
  transition: background 0.18s, transform 0.14s;
}

.login-btn {
  background: linear-gradient(135deg, #2196f3 60%, #500172 100%);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.18rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(33,150,243,0.18);
  margin: 0 4px;
  transition: background 0.18s, transform 0.14s;
}
.login-btn:hover, .home-btn-icon:hover {
  background: linear-gradient(135deg, #500172 60%, #2196f3 100%);
  transform: scale(1.08);
}

/* Exam sections */
.exam-section { padding: 20px; }
.rajasthan-theme { background: #fff3e0; }
.india-theme { background: #fbfcfd; }
.teaching-theme { background: #e5f9e7; }
.exam-list { display: flex; flex-wrap: wrap; gap: 15px; }

.category-cards {
  display: flex;
  flex-direction: row;
  gap: 20px;
  overflow-x: auto;
  flex-wrap: nowrap;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: #2196f3 #eee;
}

/* Custom scrollbar for webkit browsers */
.category-cards::-webkit-scrollbar {
  height: 8px;
}
.category-cards::-webkit-scrollbar-thumb {
  background: #2196f3;
  border-radius: 4px;
}
.category-cards::-webkit-scrollbar-track {
  background: #eee;
}
.exam-category {
  background: linear-gradient(135deg, #fbfdfe7b 0%, #0276eb83 100%);
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(33, 150, 243, 0.2);
  padding: 2rem;
  min-width: 220px;
  max-width: 280px;
  margin-bottom: 24px;
  flex: 0 0 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  border: 2px solid rgba(3, 169, 244, 0.3);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.exam-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #03a9f4, #00bcd4);
  border-radius: 20px 20px 0 0;
  animation: borderGlow 2s infinite alternate;
}

.exam-category::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.4));
  border-radius: 19px;
  z-index: -1;
  backdrop-filter: blur(10px);
}

.exam-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.exam-category h3 {
  margin: 0 0 1rem 0;
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  color: #2c3e50;
  background: linear-gradient(90deg, #4b026a 50%, #0178da 70%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.8px;
  position: relative;
  padding-bottom: 0.5rem;
}

.exam-category h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 25%;
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, #500172, #2196f3);
  border-radius: 2px;
}

.card {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(33, 150, 243, 0.15);
  padding: 22px 18px 16px 18px;
  width: 240px;
  text-align: center;
  margin-bottom: 14px;
  border: 2px solid;
  border-image: linear-gradient(90deg, #03a9f4 10%, #00bcd4 90%) 1;
  transition: transform 0.18s, box-shadow 0.18s, border-image 0.18s;
  position: relative;
  overflow: hidden;
}
.card::after {
  content: '';
  position: absolute;
  top: 0; left: -60%; width: 220%; height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.0) 60%);
  transform: skewX(-18deg);
  pointer-events: none;
  animation: cardshine 2.8s linear infinite;
}
@keyframes cardshine {
  0% { left: -60%; }
  100% { left: 100%; }
}
.card:hover {
  transform: translateY(-8px) scale(1.06);
  box-shadow: 0 12px 40px rgba(255,152,0,0.28), 0 6px 24px rgba(103,58,183,0.22), 0 6px 24px rgba(0,0,0,0.22);
  border-image: linear-gradient(90deg, #673ab7 10%, #500172 90%) 1;
  filter: drop-shadow(0 0 12px #500172);
}
.card button {
  background: linear-gradient(90deg, #4caf50, #2196f3);
  color: white;
  border: none;
  padding: 9px 16px;
  border-radius: 8px;
  margin-top: 14px;
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(33,150,243,0.10);
  transition: background 0.18s, transform 0.15s;
}
.card button:hover {
  background: linear-gradient(90deg, #2196f3, #4caf50);
  transform: scale(1.07);
}

/* Quiz container */
.quiz-container {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
#timer {
  font-size: 1.2rem;
  font-weight: bold;
  color: red;
  text-align: right;
  margin-bottom: 10px;
  font-size: 1.25rem;
  font-weight: 600;
}

.question {
  margin-bottom: 10px;
  font-size: 1.25rem;
  font-weight: 600;
  font-family: 'Segoe UI', 'Noto Sans', Arial, sans-serif;
}
.options button {
  display: block;
  width: 100%;
  margin: 5px 0;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #f1f1f1;
  cursor: pointer;
  font-size: 1.00rem;
  font-weight: 550;
}
.options .selected { background: #90caf9; border-color: #2196f3; }

/* Navigation */
.navigation-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}
.navigation-buttons button {
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  color: #fff;
  font-weight: bold;
  transition: background 0.18s, transform 0.14s;
}
.navigation-buttons button:nth-child(1) {
  background: linear-gradient(90deg, #2196f3 60%, #1976d2 100%);
}
.navigation-buttons button.review-btn {
  background: linear-gradient(90deg, #500172 60%, #f44336 100%);
}
.navigation-buttons button:nth-child(3) {
  background: linear-gradient(90deg, #4caf50 60%, #388e3c 100%);
}
.navigation-buttons button#submit-btn {
  background: linear-gradient(90deg, #e91e63 60%, #9c27b0 100%);
}
.navigation-buttons button:hover { background: #f0f725; }

/* Palette */
.question-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 15px;
}
.q-num-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #888;
  border-radius: 4px;
  background: #f0f0f0;
  cursor: pointer;
}
.q-num-btn.answered { background: #4caf50; color: white; }
.q-num-btn.skipped { background: #500172; color: white; }
.q-num-btn.current { background: #2196f3; color: white; }

.q-num-btn.review {
  background: #8e24aa;
  color: white;
  border: 2px solid #6a1b9a;
}

/* Modern Back Button */
.back-btn {
  background: linear-gradient(90deg, #2196f3 0%, #500172 100%);
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 10px 32px;
  font-size: 1.08rem;
  font-weight: bold;
  box-shadow: 0 2px 12px rgba(33,150,243,0.12), 0 0 0 0 #500172;
  cursor: pointer;
  position: relative;
  margin: 24px auto 0 auto;
  display: block;
  outline: none;
  transition: background 0.18s, transform 0.15s, box-shadow 0.15s;
}
.back-btn:hover {
  background: linear-gradient(90deg, #500172 0%, #2196f3 100%);
  transform: scale(1.07);
  box-shadow: 0 8px 32px rgba(33,150,243,0.18);
}
.back-btn:active {
  transform: scale(0.97);
}
.back-btn .back-icon {
  display: inline-block;
  margin-right: 10px;
  font-size: 1.35em;
  animation: backiconmove 1.2s infinite alternate;
  vertical-align: middle;
}
@keyframes backiconmove {
  0% { transform: translateX(0); }
  100% { transform: translateX(-8px); }
}

/* Dashboard Panel Styles */
.dashboard-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 340px;
  max-width: 90vw;
  background: linear-gradient(120deg, #e3f2fd 60%, #fff3e0 100%);
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(33,150,243,0.13), 0 2px 12px rgba(255,152,0,0.10);
  padding: 36px 28px 28px 28px;
  z-index: 2100;
  text-align: center;
  animation: dashboardpop 0.5s cubic-bezier(.68,-0.55,.27,1.55);
}
@keyframes dashboardpop {
  0% { transform: translate(-50%, -60%) scale(0.7); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
.dashboard-panel h2 {
  font-size: 1.45rem;
  font-weight: bold;
  margin-bottom: 18px;
  color: #2196f3;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(255,152,0,0.12);
}
.dashboard-section {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(33,150,243,0.08);
  margin: 18px 0;
  padding: 18px 16px;
  text-align: left;
}
.dashboard-section h3 {
  font-size: 1.18rem;
  color: #2196f3;
  margin-bottom: 8px;
}
.dashboard-panel .close-btn {
  background: none;
  color: #2196f3;
  border: none;
  font-size: 1.2rem;
  margin-top: 18px;
  cursor: pointer;
  text-decoration: underline;
}
.dashboard-btn, .register-btn, .logout-btn {
  background: linear-gradient(135deg, #43e97b 60%, #500172 100%);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.18rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(33,150,243,0.18);
  margin: 0 4px;
  transition: background 0.18s, transform 0.14s;
}
.dashboard-btn:hover, .register-btn:hover, .logout-btn:hover {
  background: linear-gradient(135deg, #500172 60%, #43e97b 100%);
  transform: scale(1.08);
}
/* Papers list: make each paper a single horizontal row (name left, small Attempt button right) */
.papers-list {
  display: flex !important;
  flex-direction: column;
  gap: 10px !important;
  padding: 12px !important;
  background: #f8f9fa !important;
  border-radius: 10px !important;
}

.papers-list .test-item-container,
.papers-list .paper-item,
.paper-list .paper-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important; /* allow shrinking within container */
  padding: 8px 12px !important;
  background: rgba(255,255,255,0.6) !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06) !important;
}

.papers-list .test-tag,
.paper-item .paper-number {
  flex: 1 1 auto !important;
  text-align: left !important;
  background: transparent !important;
  color: #14324f !important;
  font-weight: 600 !important;
  padding: 6px 8px !important;
  border-radius: 6px !important;
  width: auto !important;
}

.papers-list .start-test-btn,
.paper-item .start-test-btn {
  flex: 0 0 auto !important;
  width: auto !important;
  padding: 6px 10px !important;
  border-radius: 18px !important;
  font-size: 0.85rem !important;
  white-space: nowrap !important;
}

/* Prevent any child from calculating overflow by using border-box and allowing flex items to shrink */
.papers-list, .papers-list * {
  box-sizing: border-box !important;
}

.papers-list .test-tag,
.papers-list .paper-number {
  min-width: 0 !important; /* ensures long names wrap instead of forcing overflow */
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.papers-list .start-test-btn {
  flex-shrink: 0 !important;
}

@media (max-width: 540px) {
  .papers-list .test-tag,
  .paper-item .paper-number {
    font-size: 0.95rem !important;
    padding-right: 8px !important;
  }
  .papers-list .start-test-btn,
  .paper-item .start-test-btn {
    padding: 6px 8px !important;
    font-size: 0.78rem !important;
  }
}

/* REET Full Papers choice grids styling */
.fullpapers-choices {
  width: 100%;
}
.fullpapers-choices .choice-grid {
  background: transparent;
  border-radius: 8px;
}
.fullpapers-choices .choice-grid h4 {
  margin: 0 0 8px 0;
  font-size: 1rem;
  color: #18385a;
  font-weight: 700;
}
.fullpapers-choices .choice-grid .papers-list {
  max-height: 420px; /* keep column scrollable if many papers */
  overflow-y: auto;
  padding: 8px;
}
.fullpapers-choices .choice-grid .papers-list .test-item-container {
  background: rgba(255,255,255,0.85) !important;
}

@media (max-width: 900px) {
  .fullpapers-choices { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .fullpapers-choices { grid-template-columns: 1fr; }
  .fullpapers-choices .choice-grid .papers-list { max-height: none; }
}

/* stacked choices: each choice becomes a vertical block with an internal responsive grid */
.fullpapers-choices.stacked-choices {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.fullpapers-choices.stacked-choices .choice-grid {
  background: linear-gradient(135deg, #f3f7fb, #ffffff);
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(3,169,244,0.06);
}
.fullpapers-choices.stacked-choices .choice-grid .grid-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  padding: 6px 0 0 0;
  max-height: 420px;
  overflow-y: auto;
}

@media (max-width: 720px) {
  .fullpapers-choices.stacked-choices .choice-grid .grid-list {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}


/* Hide per-page back buttons: keep footer Back (id #backBtn) visible */
.back-btn {
  display: none !important;
}

/* Ensure the footer Back button (id 'backBtn') is visible and active */
#backBtn {
  display: inline-flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

@media (max-width: 480px) {
  /* Keep two rows with three compact columns each on small screens */
  .footer-row.footer-row-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 10px;
    align-items: center;
    text-align: center;
  }

  /* Maintain readable sizes on small screens while keeping layout compact */
  .footer-content { padding: 8px 8px; }
  .footer-link { font-size: 0.78rem; }
  /* Ensure footer buttons stay legible on small phones */
  .footer-btn { padding: 8px 12px; font-size: 1.05rem; border-radius: 8px; min-width: 84px; height: 44px; width: 110px; }
  .footer-actions { gap: 8px; }
  .exam-count-number { font-size: 0.78rem; }
  .exam-count-text { font-size: 0.7rem; }
  .copyright { font-size: 0.78rem; }

  /* Ensure columns center their content */
  .footer-col-1, .footer-col-2, .footer-col-3 { justify-content: center !important; }
}

/* Extremely narrow screens: allow horizontal scroll instead of cramping text */
@media (max-width: 340px) {
  .footer-row.footer-row-3 {
    grid-auto-flow: column;
    grid-auto-columns: minmax(88px, 1fr);
    overflow-x: auto;
    display: grid;
  }
  .footer-content { padding: 6px 6px; }
  /* Keep buttons tappable even on very narrow devices */
  .footer-btn { padding: 8px 10px; font-size: 1rem; min-width: 76px; height: 42px; width: 96px; }
}