.p-100 {
  padding: 73px 0;
}

@media screen and (max-width: 1560px) {
  header .e-con.e-flex > .e-con-inner {
    padding: 12px;
  }
}

.container {
  max-width: 1440px;
  margin: auto;
  padding: 16px;
}

/* knowledge-contest-banner */

.flex-butoon {
  width: 100%;
  display: flex;
  gap: 20px;
  align-items: center;
}

.knowledge-contest-banner {
  width: 100%;
  position: relative;
}

.knowledge-contest-banner-img {
  width: 100%;
  height: 100%;
}

.knowledge-contest-banner-img img {
  width: 100%;
  aspect-ratio: 1560/668.371;
  object-fit: cover;
  border-radius: 10px;
  filter: brightness(0.5);
}

.knowledge-contest-banner-content {
  padding: 40px 60px;
  position: absolute;
  bottom: 0;

  display: flex;
  flex-direction: column;
  gap: 32px;
}

.knowledge-contest-banner-content h3 {
  max-width: 750px;
  color: #fff;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  font-family: Nunito;
  font-size: 64px;
  font-style: normal;
  font-weight: 900;
  line-height: normal;
  margin: 0;
}

.knowledge-contest-banner-content p {
  max-width: 750px;
  width: 100%;
  color: #fff;
  font-family: Nunito;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin: 0;
}

.knowledge-contest-banner-content .knowledge-contest-banner-button {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.knowledge-contest-banner-content .knowledge-contest-banner-button button {
  padding: 15px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  border: none;

  color: var(--Black, #000);
  font-family: Nunito;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

.knowledge-contest-banner-content
  .knowledge-contest-banner-button
  button.butoon-active {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 15px 32px;
  border-radius: 99px;
  border: 1px solid #ffd840;
  background: var(
    --yellow,
    linear-gradient(90deg, #eaae14 9.99%, #ffd840 100%)
  );

  color: var(--Black, #000);
  font-family: Nunito;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 18px;
}

@media screen and (max-width: 769px) {
  #knowledgeContestExam > div > div:nth-child(4) {
    display: none;
  }
  
  .knowledge-contest-banner-content {
    gap: 16px;
  }

  .knowledge-contest-banner-content h3 {
    max-width: 375px;
    font-size: 32px;
  }

  .knowledge-contest-banner-content p {
    font-size: 14px;
  }

  .knowledge-contest-banner-content .knowledge-contest-banner-button button {
    padding: 5px 10px;
    font-size: 14px;
  }

  .knowledge-contest-banner-content
    .knowledge-contest-banner-button
    button.butoon-active {
    padding: 5px 10px;
    font-size: 14px;
  }

  .knowledge-contest-banner-content .knowledge-contest-banner-button {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
}

@media screen and (max-width: 545px) {
  .knowledge-contest-banner-content {
    padding: 40px 20px;
  }

  .knowledge-contest-banner-img img {
    width: 100%;
    aspect-ratio: 1560 / 1568.371;
    object-fit: cover;
    border-radius: 10px;
  }
}

/* knowledge-contest-banner-end */

/* knowledge-contest-exam */
.knowledge-contest-exam {
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.knowledge-contest-exam h3 {
  text-align: center;
  font-family: Nunito;
  font-size: 32px;
  font-style: normal;
  font-weight: 900;
  line-height: normal;

  background: var(--blue, linear-gradient(180deg, #1daeed 0%, #0082ba 100%));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.knowledge-contest-exam h4 {
  display: flex;
  padding: 6px 26px;
  justify-content: center;
  align-items: center;
  gap: 10px;

  border-radius: 99px;

  color: #fff;
  text-align: justify;
  font-family: Nunito;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin: 0;
}

.knowledge-contest-exam p {
  color: #000;
  text-align: center;
  font-family: Nunito;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin: 0;
}

.knowledge-contest-exam .countdown {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.knowledge-contest-exam .countdown .timer {
  display: flex;
  height: 100px;
  padding: 16px 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;

  border-radius: 10px;
  background: rgba(0, 130, 186, 0.2);
}

.knowledge-contest-exam .countdown .timer p {
  color: #0082ba;
  font-family: Nunito;
  font-size: 32px;
  font-style: normal;
  font-weight: 900;
  line-height: normal;
}

.knowledge-contest-exam .countdown .timer samp {
  color: #000;
  font-family: Nunito;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.knowledge-contest-exam .countdown .dots {
  color: #000;
  font-family: Nunito;
  font-size: 32px;
  font-style: normal;
  font-weight: 900;
  line-height: normal;
}

.knowledge-contest-exam .button-exam {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.button-exam-click {
  display: flex;
  padding: 20px 64px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  background: #f55050;
  border: none;

  color: #fff;
  text-align: center;
  font-family: Nunito;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.knowledge-contest-exam .button-exam .button-exam-bot {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

/* knowledge-contest-exam-end */

/* knowledge-contest-exam-modal  */

.modal {
  display: none;
  /* Ẩn modal */
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  border-radius: 10px;
  box-shadow: 10px 10px 40px 20px rgb(0 0 0 / 34%);
}

.modal-content {
  background: #fff;
  border-radius: 10px;
  max-width: 720px;
  width: 100%;
}

.modal-content .modal-header-img {
  position: relative;
  width: 100%;
  height: 100%;
}

.modal-content .modal-header-img img {
  max-width: 720px;
  width: 100%;
  aspect-ratio: 720/308.479;
  border-radius: 10px 10px 0 0;
}

.modal-content .modal-header-img button {
  position: absolute;
  top: 0;
  right: 0;
  background: transparent;
  border: none;
  padding: 15px;
  cursor: pointer;
}

.modal-content .modal-content {
  width: 100%;
  display: flex;
  padding: 20px 40px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
}

.modal-content .modal-content .modal-header h2 {
  color: #000;
  font-family: Nunito;
  font-size: 24px;
  font-style: normal;
  font-weight: 900;
  line-height: normal;
  margin: 0;
}

.modal-content .modal-content .modal-header h4 {
  color: #0082ba;
  font-family: Nunito;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin: 0;
}

.modal-content .modal-content .modal-body,
.modal-content .modal-content .modal-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.modal-content .modal-content .modal-body-1 {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-content: center;
  justify-content: space-between;
  align-items: center;
}

.modal-content .modal-content .modal-body-1 .time {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-content: center;
  align-items: center;
  gap: 20px;
}

.modal-content .modal-content .modal-body-1 .time .question {
  font-family: Nunito;
  font-size: 24px;
  font-style: normal;
  font-weight: 900;
  line-height: normal;
  background: var(--blue, linear-gradient(180deg, #1daeed 0%, #0082ba 100%));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-content .modal-content .modal-body-1 .time .point {
  font-family: Nunito;
  font-size: 24px;
  font-style: normal;
  font-weight: 900;
  line-height: normal;
  background: var(
    --yellow,
    linear-gradient(90deg, #eaae14 9.99%, #ffd840 100%)
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-content .modal-content .modal-body p {
  color: #000;
  font-family: Nunito;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin: 0;
}

.modal-content .modal-content .modal-body .time {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.modal-content .modal-content .modal-body .time p:nth-child(2) {
  text-transform: capitalize;
}

.modal.show {
  display: flex;
  /* Hiển thị modal khi có lớp 'show' */
}

.title-page {
  display: block;
  padding: 4px 0;
  border-bottom: 1px solid #d9d9d9;
  background: #f6f6f6;
  margin-bottom: 60px;
}

.title-page-card {
  display: flex;
  align-items: center;
  gap: 15px;
}

.title-page h2 {
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin: 0;
}

.title-page h2.home {
  color: #0082ba;
}

.title-page h2.page {
  color: #000;
}

/* Màu nền cho các trạng thái */
.staust.pending {
  background: #e1a200;
}

.staust.in-progress {
  background: #008317;
}

.staust.completed {
  background: var(
    --Red-gradient,
    linear-gradient(90deg, #f55050 9.99%, #c00 100%)
  );
  /* Gradient đỏ */
}

.staust {
  color: #fff;
  display: flex;
  padding: 6px 26px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 99px;
  background: #f55050;
}

/* knowledge-contest-exam-modal-end  */

@media only screen and (max-width: 1440px) {
  .p-100 {
    padding: 73px 16px;
  }
}

@media screen and (max-width: 898px) {
  .title-page {
    display: none;
  }

  .knowledge-contest-banner {
    padding-top: 73px;
  }
}
