/* Previous Questions Section */
.previous-questions {
    padding: 80px 0;
    background: white;
    text-align: center;
  }
  
  .previous-questions h2 {
    font-size: 36px;
    margin-bottom: 40px;
  }
  
  .previous-questions .category {
    margin-bottom: 60px;
  }
  
  .previous-questions .category h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #4CAF50;
  }
  
  .previous-questions .question-list {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .previous-questions .question-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex: 1 1 calc(33.333% - 40px);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .previous-questions .question-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  }
  
  .previous-questions .question-card i {
    font-size: 50px;
    color: #4CAF50;
    margin-bottom: 20px;
  }
  
  .previous-questions .question-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
  }
  
  .previous-questions .question-card p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
  }
  
  .previous-questions .question-card .btn {
    background: #4CAF50;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s ease;
  }
  
  .previous-questions .question-card .btn:hover {
    background: #45a049;
  }
  

/* Jump-to-Category Section */
.jump-to-category {
  background: #ffffff;
  padding: 40px 0;
  text-align: center;
}

.jump-to-category h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #4CAF50;
}

.jump-to-category .category-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.jump-to-category .category-links .btn {
  background: #4CAF50;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.jump-to-category .category-links .btn:hover {
  background: #45a049;
}

.category-top{
  padding-top: 5%;
}

 /* Full-Screen PDF Viewer Modal */
 .modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  overflow: auto;
}

.modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  padding: 20px;
  box-sizing: border-box;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: rgb(131, 0, 0);
  cursor: pointer;
  z-index: 1001;
}

.close:hover {
  color: #f80000;
}

#pdfViewer {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
  max-height: 90vh;
}

#pdfViewer canvas {
  display: block;
  margin: 10px auto;
  border: 1px solid #ccc;
  width: 100%; /* Ensure canvas fits the container width */
  height: auto; /* Maintain aspect ratio */
}