
@font-face {
    font-family: 'SfPro';
    src: url('fonts/sf-pro-text_regular.woff2') format('woff2'),
    url('fonts/sf-pro-text_bold.woff2') format('woff2'),
    url('fonts/sf-pro-text_light.woff2') format('woff2'),
    url('fonts/sf-pro-text_semibold.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
  }

@font-face {
    font-family: 'Axiforma'; /* Custom font name */
    src: url('fonts/Axiforma-Bold.woff2') format('woff2'),
    url('fonts/Axiforma-Regular.woff2') format('woff2');
}

/* Layout */
body {
  margin: 0;
  font-family: "Raleway", sans-serif;
  background-color: #f5f7fa;
  color: #0f2635;
}

.layout {
  display: flex;
  height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 180px;
  background: #fff;
  padding: 20px;
  border-right: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  text-align: center;
  font-size: 0.95rem;
}

.logo img {
  width: 60px;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-links .tab-button {
  padding: 10px 15px;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s;
  font-family: 'Roboto', sans-serif;
  color: #0f2635;
}

.nav-links .tab-button:hover,
.nav-links .tab-button.active {
  background: rgb(144 198 221 / 50%);
 
}

/* Main content */
.main {
  flex: 1;
  overflow-y: auto;
}

.tab-content {
  padding: 20px;
}


.topbar {
    background-color: white;
    padding: 12px 24px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 60px;
    width: calc(100% - 224px);
    box-sizing: border-box;
    position: fixed;
    z-index: 100;
}

.user-bar-content {
  display: flex;
  align-items: center;
  gap: 0px;
}

.topbar #user-role {
  font-size: 0.8rem;
  color: #333;
}

.topbar #logoutBtn, #homeBtn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #0f2635;
}


#logoutBtn {
  background-color: transparent;
  color: #0f2635;
  border: none;
  padding: 8px 14px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.5rem;
  font-family: "Raleway", sans-serif;
}

/* Tab content logic */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  margin-top: 50px;
}

.course-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

.course-card img{
  width: 100%;
}


.courses-grid {
    display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  align-items: start;
}

#start-btn {
  background: #90C6DD;
  font-family: "Raleway", sans-serif;
  color: white;
  border: none;
  padding: 8px 15px;
  margin-top: 15px;
  border-radius: 4px;
  width: 100%;
  cursor: pointer;
}

#start-btn-collector {
  background: #90C6DD;
  font-family: "Raleway", sans-serif;
  color: white;
  border: none;
  padding: 8px 15px;
  margin-top: 15px;
  border-radius: 4px;
  width: 100%;
  cursor: pointer;
}

#start-btn-aml {
  background: #90C6DD;
  font-family: "Raleway", sans-serif;
  color: white;
  border: none;
  padding: 8px 15px;
  margin-top: 15px;
  border-radius: 4px;
  width: 100%;
  cursor: pointer;
}

#start-btn-complaints {
  background: #90C6DD;
  font-family: "Raleway", sans-serif;
  color: white;
  border: none;
  padding: 8px 15px;
  margin-top: 15px;
  border-radius: 4px;
  width: 100%;
  cursor: pointer;
}

#start-btn-forbearance {
  background: #90C6DD;
  font-family: "Raleway", sans-serif;
  color: white;
  border: none;
  padding: 8px 15px;
  margin-top: 15px;
  border-radius: 4px;
  width: 100%;
  cursor: pointer;
}

#start-btn-vulnerability {
  background: #90C6DD;
  font-family: "Raleway", sans-serif;
  color: white;
  border: none;
  padding: 8px 15px;
  margin-top: 15px;
  border-radius: 4px;
  width: 100%;
  cursor: pointer;
}

#start-btn-gdpr {
  background: #90C6DD;
  font-family: "Raleway", sans-serif;
  color: white;
  border: none;
  padding: 8px 15px;
  margin-top: 15px;
  border-radius: 4px;
  width: 100%;
  cursor: pointer;
}

#start-btn-smcr3 {
  background: #90C6DD;
  font-family: "Raleway", sans-serif;
  color: white;
  border: none;
  padding: 8px 15px;
  margin-top: 15px;
  border-radius: 4px;
  width: 100%;
  cursor: pointer;
}

#start-btn-smcr123 {
  background: #90C6DD;
  font-family: "Raleway", sans-serif;
  color: white;
  border: none;
  padding: 8px 15px;
  margin-top: 15px;
  border-radius: 4px;
  width: 100%;
  cursor: pointer;
}

#start-btn-dlc {
  background: #90C6DD;
  font-family: "Raleway", sans-serif;
  color: white;
  border: none;
  padding: 8px 15px;
  margin-top: 15px;
  border-radius: 4px;
  width: 100%;
  cursor: pointer;
}

.logo {
  font-weight: bold;
  font-size: 1.4rem;
}

.logo img{
  width: 150px;
}


.icon-label {
  display: flex;
  align-items: center;
}

.course-overview {
  margin-bottom: 30px;
}

.course-summary {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.summary-card {
  background: white;
  border-radius: 12px;
  padding: 16px 24px;
  box-shadow: 0 0 4px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.summary-card i {
  font-size: 24px;
  color: #3b82f6;
  background: #eef4ff;
  padding: 12px;
  border-radius: 50%;
}

.course-filters {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 4px rgba(0,0,0,0.05);
}

.course-filters h2 {
  font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-controls input,
.filter-controls select {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  flex: 1;
  min-width: 200px;
  background: #f5f7fa;
  font-family: "Raleway", sans-serif;
}

.reset-filters {
  background: #f3f4f6;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  min-width: 120px;
}

/********************************
*********MY LEARNING*************
********************************/

.learning-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 25px;
}

.profile-card, .stats-card {
  background: white;
  padding: 24px;
  border-radius:5px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  font-size: 12px;
}

.profile-card {
  flex: 1;
  max-width: 341px;
  text-align: center;
}

.profile-avatar i {
  font-size: 60px;
  color: #4A6CF7;
  margin-bottom: 12px;
}

.profile-card h2 {
  margin-bottom: 4px;
}

.profile-card .role {
  font-weight: 500;
  color: #666;
}

.profile-card .department {
  font-size: 14px;
  color: #aaa;
}

.profile-card hr {
  margin: 20px 0;
  border: none;
  border-top: 1px solid #eee;
}

.contact-info p {
  font-size: 14px;
  color: #555;
  margin: 6px 0;
}

.edit-profile-btn {
  margin-top: 16px;
  background-color: #f0f0f0;
  border: none;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}

.edit-profile-btn i {
  margin-right: 6px;
}

.stats-card {
  flex: 2;
}

.stat-boxes {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.stat-box {
  background: #f9f9f9;
  flex: 1;
  padding: 16px;
  border-radius: 8px;
  min-width: 80px;
  text-align: center;
}

.stat-icon {
  font-size: 20px;
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  margin: 0 auto 8px;
  color: white;
}

.stat-icon.blue { background: #4A6CF7; }
.stat-icon.green { background: #28c76f; }
.stat-icon.purple { background: #9c27b0; }
.stat-icon.orange { background: #f79e1b; }

.progress-container {
  margin-top: 24px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 6px;
}

.progress-bar {
  width: 100%; /* Ensure it has a defined width */
  height: 8px;
  background: #eee;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  margin-top: 5px;
}

.progress-fill {
  height: 100%;
  width: 0%; /* default, to be updated with JS */
  background: linear-gradient(to right, #28c76f, #4A6CF7);
  transition: width 0.4s ease; /* adds smooth animation */
}

.progress-bar-myLearning {
  width: 100%; /* Ensure it has a defined width */
  height: 8px;
  background: #eee;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  margin-top: 5px;
}

.progress-fill-myLearning {
  height: 100%;
  width: 0%; /* default, to be updated with JS */
  background: linear-gradient(to right, #28c76f, #4A6CF7);
  transition: width 0.4s ease; /* adds smooth animation */
}



.learning-tabs {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  background: white;
  padding: 5px 5px 7px 5px;
  border-radius: 5px;
  
}

.learning-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 5px 20px;
  border-radius: 4px;
  color: #0f2635;
  cursor: pointer;
  transition: 0.2s ease;
  font-size: 10px;
  font-family: "Raleway", sans-serif;
  font-weight: bold;
}

.learning-tab.active {
  background: #f5f7fa;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  color: #111827;
}

.learning-content {
  margin-top: 20px;
}

.learning-section {
  display: none;
  background: white;
  padding: 20px;
  border-radius: 8px;
}

.learning-section.active {
  display: block;
}


/********************************
*********course page*************
********************************/




body {
  font-family: "Raleway", sans-serif;
  background-color: #f8f9fb;
  margin: 0;
  padding: 0;
}


.course-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.back-button {
  background: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.course-body {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.course-main {
  flex: 2;
  min-width: 600px;
}

.video-placeholder {
  background: linear-gradient(to right, #cdd5e0, #c9d9d5);
  height: 260px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-and-steps {
  display: flex;
  margin-top: 20px;
  gap: 20px;
  flex-wrap: wrap;
}

.about-course,
.course-steps {
  flex: 1;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
  min-width: 280px;
}

.about-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 14px;
  color: #555;
}

.about-meta i {
  margin-right: 5px;
}

.course-sidebar {
  flex: 1;
  min-width: 240px;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  height: fit-content;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
}


.startCourseBtn {
  width: 100%;
  padding: 10px;
  background: royalblue;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  font-family: "Raleway", sans-serif;
}

.markDoneBtn {
  width: 100%;
  padding: 10px;
  background: royalblue;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: "Raleway", sans-serif;
  font-weight: bold;
  margin-top: 10px;
  display: none;
}

.resetBtn {
  width: 100%;
  padding: 10px;
  background: royalblue;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: "Raleway", sans-serif;
  font-weight: bold;
  margin-top: 10px;
  display: none;
}

.nextVideoBtn {
  width: 100%;
  padding: 10px;
  background: royalblue;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: "Raleway", sans-serif;
  font-weight: bold;
  margin-top: 10px;
  display: none;
}

.nextVideoBtn2 {
  width: 100%;
  padding: 10px;
  background: royalblue;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: "Raleway", sans-serif;
  font-weight: bold;
  margin-top: 10px;
  display: none;
}

.nextVideoBtn3 {
  width: 100%;
  padding: 10px;
  background: royalblue;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: "Raleway", sans-serif;
  font-weight: bold;
  margin-top: 10px;
  display: none;
}

.markDoneBtn.show {
  display: block; /* or 'block' depending on layout */
}

.nextVideoBtn.show {
  display: block; /* or 'block' depending on layout */
}

.nextVideoBtn2.show {
  display: block; /* or 'block' depending on layout */
}

.nextVideoBtn3.show {
  display: block; /* or 'block' depending on layout */
}

.step-section {
  margin-top: 10px;
}

.step-header {
  font-weight: bold;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 5px;
  border-top: 1px solid #eee;
  font-size: 14px;
  cursor: pointer;
}

.step:hover{
  background-color: #f5f7fa;
}

.step i {
  margin-right: 10px;
  color: #555;
}

.duration {
  margin-left: auto;
  margin-right: 10px;
  font-size: 12px;
  color: #777;
}

.course-container h1{
  margin: 0;
}

.course-sidebar h3{
  margin: 0;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: auto;
}

.video-thumbnail {
  position: relative;
  cursor: pointer;
}

.video-thumbnail img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 35px;
  color: white;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 51.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.step.completed {
  background-color: #67c184; /* Green */
  color: white;
}

.in-progress {
  background-color: #ffb432 !important; /* Green */
  color: white;
  cursor: not-allowed;
}

.completed{
  background-color: #67c184 !important; /* Green */
  color: white;
  cursor: not-allowed;
}

.completed-course{
  background-color: #67c184 !important; /* Green */
  color: white;
}


#assessmentContainer {
  background: #fff;
  border-radius: 10px;
  padding: 20px 30px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  margin: 20px auto;
}

.assessment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #2c3e50;
}

.question-indicators {
  display: flex;
  gap: 10px;
  margin: 25px 0 20px;
    justify-content: center;
}

.question-indicators .indicator {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #eee;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  cursor: pointer;
  border: 2px solid transparent;
}

.question-indicators .indicator.active {
  background-color: #fff;
  color: #000;
  border: 2px solid #333;
}

.indicator-btn {
  background: white;
  color: #1b2a37;
  border: 2px solid #1b2a37;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  margin: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease;
}

.indicator-btn.active {
  background: #90C6DD;
  color: white;
}

.indicator-btn.attempted {
  border-style: solid;
  border-width: 2px;
  background: #fce4e4;
}


.assessment-actions {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
}

#submitNextBtn {
  padding: 10px 20px;
  font-weight: 500;
  border: 1px solid #333;
  background: #fff;
  cursor: pointer;
  border-radius: 4px;
}

#skipBtn {
  color: #555;
  text-decoration: underline;
  cursor: pointer;
}


.option-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.option-block {
  flex: 1 1 calc(50% - 15px);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: #fff;
}

.option-block:hover {
  border-color: #888;
  background-color: #f9f9f9;
}

.option-block input[type="radio"] {
  margin-top: 4px;
  accent-color: #0d6efd;
}

.option-block input[type="checkbox"] {
  margin-top: 4px;
  accent-color: #0d6efd;
}

.option-block input[type="radio"]:checked + span {
  font-weight: bold;
  color: #0d6efd; /* or your brand color */
  
}


.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.fade-in.show {
  opacity: 1;
}

#resultsWrapper, #results-title {
  display: none;
}

#resultsWrapper.show, #results-title.show {
  display: block;
}

#resultsWrapper{
  padding: 20px;
    margin-top: -20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}

.show {
  display: block !important;
}

#resultsTableContainer table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-family: "Raleway", sans-serif;
}

#resultsTableContainer th,
#resultsTableContainer td {
  border: 1px solid rgb(231, 231, 231);
  padding: 10px;
  text-align: center;
}

#resultsTableContainer th {
  background-color: #f8f9fb;
  color: #1B2A37;
}

.modal {
  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 {
  background-color: #fff;
  padding: 25px 40px;
  border-radius: 8px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.modal-content h2 {
  margin-top: 0;
  font-size: 24px;
}

.modal-content p {
  font-size: 18px;
}

.modal-content .close {
  position: absolute;
  top: 15px; right: 20px;
  font-size: 28px;
  cursor: pointer;
}

#modalContinueBtn {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #007bff;
  border: none;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

.details-btn {
  background-color: #1B2A37;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.view-certificate-btn{
  background-color: #1B2A37;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.details-btn:hover {
  background-color: #2b445a;
}

.result-pass {
  color: #67c184;
  font-weight: bold;
}

.result-fail {
  color: rgb(245, 79, 79);
  font-weight: bold;
}



#assessmentBreakdownWrapper{
  background: white;
    padding: 20px;
    margin-top: 25px;
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}

.answer-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 30px;
  padding: 15px 0;
  border-bottom: 1px solid #ddd;
  align-items: start;
}

.answer-row div {
  word-break: break-word;
}

.answer-row .badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
}

.badge.correct {
  background: #d4f7df;
  color: #2e7d32;
}

.badge.incorrect {
  background: #fddede;
  color: #c62828;
}


/*AML COURSE*/

#amlCourse .step {
  cursor: pointer;
}

/* Overlay hidden by default */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: none;
  z-index: 999;
}

/* Show overlay when sidebar is open */
.sidebar.open ~ .overlay {
  display: block;
}

.hamburger {
    background: none;
    border: none;
    color: #1b2a37;
    font-size: 24px;
    cursor: pointer;
    margin-left: 10px;
    display: none;
  }


  .continue-btn {
  background-color: #007bff;
  color: white;
  padding: 6px 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
}

.continue-btn:hover {
  background-color: #0056b3;
}

.learning-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.learning-card:hover {
  transform: translateY(-3px);
}

.learning-card .course-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.learning-card .course-status {
  font-size: 14px;
  color: #555;
}

.status-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 500;
  text-transform: capitalize;
}

.status-badge.in_progress {
  background-color: #fce18b;
  color: #856404;
}

.status-badge.completed {
  background-color: #afffc1;
  color: #155724;
}

.learning-card.myLearningInProgress {
  background-color: #fff8e3; /* light orange (like Bootstrap's alert-warning) */
    color: #152534;
}

.learning-card.myLearningCompleted {
  background-color: #d4edda !important; /* light green (like Bootstrap's alert-success) */
  color: #152534 !important;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background: white;
  padding: 20px 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.modal-buttons {
  margin-top: 20px;
}

.modal-buttons button {
  margin: 0 10px;
  padding: 10px 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.yesBtn {
  background-color: #28a745;
      color: white;
    padding: 5px 15px;
    border-radius: 5px;
    border: none;
    font-size: 1rem;
  
}

.noBtn {
  background-color: #dc3545;
      color: white;
    padding: 5px 15px;
    border-radius: 5px;
    border: none;
    font-size: 1rem;
}

.hidden {
  display: none;
}







/* Hide sidebar by default on mobile */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
        left: -260px;
        top: 0;
        width: 220px;
        height: 100vh;
        background: white;
        color: white;
        padding: 20px;
        transition: left 0.3s ease;
        z-index: 1000;
  }

  .sidebar.open {
    left: 0;
  }

  .hamburger {
    display: block;
  }

  .topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    width: 100% !important;
  }

  .main {
    margin-left: 0;
  }

  .course-summary {
    display: fle;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.course-main {
    min-width: unset !important;
    width: 100%;
}

#resultsTableContainer table {
 font-size: 10px !important;
}

#resultsTableContainer th,
#resultsTableContainer td{
  padding: 5px !important;
}

.details-btn{
  font-size: 10px;
  padding: 6px 5px;
}

.view-certificate-btn {
    padding: 6px 6px;
    font-size: 10px;
}

.answer-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#assessmentWrapper{
  margin: 0 0px 40px !important;
}

#assessmentContainer {
    padding: 20px 20px;
    margin: 0;
}

.assessment-header {
    font-size: 12px;
    margin-left: 20px;
}

.question-indicators{
    gap: 0px;
}

.indicator-btn {
    width: 30px;
    height: 29px;
}

.stats-card {
    flex: 2;
    width: 100% !important;
}

#welcome-heading{
  text-align: center;
}

}


/*CERTIFICATE CCS*/

.cca-cert-certificate {
  position: relative;
  width: 1000px;
  height: 700px;
  padding: 40px;
  background: transparent;
  font-family: 'Montserrat', sans-serif;
  color: #111;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  margin: 0 auto;
  box-sizing: border-box;
}

.cca-cert-certificate .logo {
  position: absolute;
  top: 40px;
  left: 40px;
  width: 120px;
}

.cca-cert-certificate .ribbon {
  position: absolute;
  top: 0px;
  right: 60px;
  width: 80px;
}

.cca-cert-certificate h1 {
  text-align: center;
  font-size: 48px;
  margin: 0;
  font-weight: 700;
  letter-spacing: 2px;
}

.cca-cert-certificate h2 {
  text-align: center;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 3px;
  margin: 10px 0 30px;
}

.cca-cert-certificate .presented {
  text-align: center;
  font-size: 16px;
  margin: 0;
}

.cca-cert-certificate .name {
  text-align: center;
  font-size: 36px;
  font-weight: 600;
  margin: 10px 0;
}

.cca-cert-certificate .line {
  width: 60%;
  margin: 10px auto;
  border: none;
  border-top: 2px solid #111;
}

.cca-cert-certificate .subtext {
  text-align: center;
  font-size: 16px;
  margin: 10px 0;
}

.cca-cert-certificate .course {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
}

.cca-cert-certificate .date {
  text-align: center;
  font-size: 16px;
  font-style: italic;
}

.cca-cert-certificate .signatures {
  display: flex;
  justify-content: space-around;
  margin-top: 50px;
}

.cca-cert-certificate .sig-name {
  font-family: "Alex Brush", cursive;
  font-size: 28px;
  text-align: center;
}

.cca-cert-certificate .sig-title {
  font-size: 14px;
  text-align: center;
  margin-top: 5px;
}

.cca-cert-certificate .footer {
  position: absolute;
  bottom: 30px;
  text-align: center;
  width: 100%;
  font-size: 12px;
  color: #666;
  line-height: 1.5;
}

.certificate-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.certificate {
  padding: 80px 0px;
  position: relative;
  z-index: 1;
  border: 10px solid #1d2a36;
}


.cert-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.cert-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.cert-modal-content {
  background: #fff;
  padding: 30px 50px;
  border-radius: 10px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
}

.cert-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 20px;
  border: 4px solid #ccc;
  border-top: 4px solid #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hidden {
  display: none;
}

.stepDownload span{
     margin-left: 9px;
    font-size: 0.9rem;
    background-color: #67c184;
    padding: 5px 10px;
    border-radius: 15px;
    color: white;
    cursor: pointer;
}

.stepDownload{
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.stepDownload i{
  color: #555;
}





