.register-exam-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  /* display: flex; */
  justify-content: center;
  align-items: center;
}

/* Modal content */
.register-exam-modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 500px;
  text-align: center;
  animation: fadeIn 0.5s;
  max-height: 90vh; /* Max height to ensure it fits on screen */
  overflow-y: auto; /* Scroll if content exceeds max height */
}

  
  /* Close button */
  .register-exam-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    margin-top: -10px;
    margin-right: -10px;
  }
  
  .register-exam-close:hover,
  .register-exam-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
  }
  
  /* Headings */
  .register-exam-modal-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
  }
  
  /* Paragraph text */
  .register-exam-modal-content p {
    font-size: 18px;
    margin-bottom: 5px;
    color: #666;
  }
  
  /* Exam date styling */
  .exam-date {
    font-weight: bold;
    color: #e91e63;
  }
  
  /* Button styling */
  /* #registerNow {
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
  }
  
  #registerNow:hover {
    background-color: #45a049;
    transform: scale(1.05);
  } */
  
  .registerButton {
    background-color: #4caf50; /* Green background */
    color: white; /* White text */
    border: none; /* No border */
    padding: 10px 20px; /* Padding for the button */
    font-size: 16px; /* Font size */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s, transform 0.3s; /* Transition effects */
    margin-bottom: 15px; /* Spacing above button */
}

.registerButton:hover {
    background-color: #45a049; /* Darker green on hover */
    transform: scale(1.05); /* Slightly grow button on hover */
}

.registerButton:focus {
    outline: none; /* Remove outline */
}
/* Container for exam items */
.exam-list {
  display: flex;
  flex-direction: column; /* Stack items vertically for mobile view */
  align-items: stretch; /* Allow items to take full width */
  width: 100%; /* Full width of modal */
}

/* Individual exam item styling */
.exam-item {
  background-color: #f9f9f9; /* Light background for contrast */
  border: 1px solid #ddd; /* Light border */
  border-radius: 5px; /* Rounded corners */
  padding: 15px; /* Padding around content */
  margin: 10px 0; /* Vertical margin to separate items */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  text-align: center; /* Center text */
  flex-grow: 1; /* Allow items to grow and fill space */
}

/* Responsive styling */
@media (min-width: 768px) {
  .exam-list {
      flex-direction: row; /* Change to row layout for desktop */
      flex-wrap: wrap; /* Allow wrapping */
      justify-content: space-between; /* Evenly space items */
  }

  .exam-item {
      width: calc(48% - 20px); /* Adjust width for desktop, minus margin */
      margin: 10px; /* Maintain margin */
      box-sizing: border-box; /* Include padding and border in the element's total width and height */
      min-height: 150px; /* Minimum height for consistency */
  }
}

/* Modal styling to ensure content fits */
.register-exam-modal-content {
  max-height: 90vh; /* Max height to ensure it fits on screen */
  overflow-y: auto; /* Scroll if content exceeds max height */
}


  /* Fade-in animation */
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  