:root {
  --purple: #564592;
  --gray: #57616a;
  --white: #ffffff;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Poppins", sans-serif;
}

/* hero */

.jumbotron {
  background: url("assets/images/hero.svg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
  height: 350px;
  padding: 0;
  position: relative;
  display: grid;
  place-items: center;
}
.jumbotron-cover {
  background-color: var(--purple);
  opacity: 0.8;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
.jumbotron-content {
  position: relative;
  z-index: 9;
  color: white;
}
.jumbotron-content h1 {
  font-size: 82px;
  font-weight: bold;
  margin: 0;
}

.jumbotron-content p {
  font-size: 16px;
  opacity: 0.7;
}

.main-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9;
}

.main-links div {
  background-color: white;
  box-shadow: 0 0 10px 1px #56459288;
  height: 50px;
  width: 200px;
  border-radius: 5px;
  transition: all 0.2s ease-in-out;
}

.main-links div:hover {
  box-shadow: 0 0 10px 1px #564592;
}

.main-links div a {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  height: 100%;
  color: var(--gray);
  font-weight: 600;
  text-decoration: none;
}

.main-links img {
  width: 10px;
}

/* features */
.features-container {
  margin-top: 150px;
}
.feedbacks-container {
  margin-top: 125px;
}
.features-content {
  color: var(--gray);
  text-align: center;
  margin-bottom: 50px;
}
.features-content h2 {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 5px;
}
.features-content p {
  font-size: 14px;
  opacity: 0.7;
}
.features-items {
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
  width: 100%;
  height: 100%;
  position: relative;
}
.features-items-child {
  width: 100%;
  height: 230px;
}
.features-cover {
  background-color: var(--purple);
  opacity: 0.8;
  width: 100%;
  height: 230px;
  border-radius: 10px;
  position: absolute;
  top: 0;
  left: 0;
}
.image-holder {
  background-color: white;
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  border-radius: 100%;
  position: relative;
  top: -50px;
  left: -20px;
}
.firstItem .image-holder img {
  width: 100px;
  height: 100px;
}

.secondItem .image-holder img {
  width: 110px;
  height: 110px;
}

.thirdItem .image-holder img {
  width: 105px;
  height: 105px;
}
.features-items-content {
  position: relative;
  z-index: 9;
  color: white;
}

.features-items-content h4 {
  color: white;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  position: relative;
  z-index: 9;
  margin-top: -40px;
  padding: 0 15px;
}
.features-items-content p {
  color: white;
  font-size: 14px;
  font-weight: 300;
  opacity: 0.7;
  text-align: justify;
  padding: 0 30px;
}

/* feedbacks */
.feedbacks-content {
  position: relative;
  color: white;
}

.feedbacks-cover {
  background-color: var(--purple);
  opacity: 0.8;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.feedback-body {
  position: relative;
  z-index: 9;
  max-width: 700px;
  margin: auto;
  padding: 0 15px;
}

.feedback-body p {
  font-size: 20px;
  margin: 0;
}

/* cta */
.cta-content h3 {
  font-size: 28px;
  font-weight: bold;
  color: var(--gray);
}
.cta-content p {
  font-size: 16px;
  color: var(--gray);
  opacity: 0.7;
  font-style: italic;
}
.contactBtn {
  color: white;
  background-color: rgba(86, 69, 146, 0.8);
  border-radius: 10px;
  padding: 10px 20px;
  margin-top: 5px;
  display: inline-block;
  transition: all 0.2s ease-in-out;
}

.contactBtn:hover {
  color: white;
  text-decoration: none;
  box-shadow: 0 0 10px 1px rgba(86, 69, 146, 0.445);
}

.addExamBtn {
  color: white;
  background-color: rgba(86, 69, 146, 0.8);
  border-radius: 5px;
  padding: 7px 15px;
  margin-top: 5px;
  display: inline-block;
  transition: all 0.2s ease-in-out;
  font-size: 14px;
}

.addExamBtn:hover {
  color: white;
  text-decoration: none;
  box-shadow: 0 0 5px 0 rgba(86, 69, 146, 0.445);
}

/* Login */
.jumbotron-mini {
  background: url("assets/images/hero.svg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
  height: 200px;
  padding: 0;
  position: relative;
  display: grid;
  place-items: center;
}
.jumbotron-mini-cover {
  background-color: var(--purple);
  opacity: 0.8;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
.jumbotron-mini-content {
  position: relative;
  z-index: 9;
  color: white;
}
.jumbotron-mini-content h1 {
  font-size: 62px;
  font-weight: bold;
  margin: 0;
}

.jumbotron-mini-content p {
  font-size: 13px;
  opacity: 0.7;
  margin: 0;
}

.login-content h3 {
  font-size: 38px;
  font-weight: bold;
  color: var(--gray);
  margin: 0;
}

.login-content h4 {
  font-size: 24px;
  font-weight: 500;
  color: var(--gray);
  margin: 0;
}

.login-content p {
  font-size: 14px;
  color: var(--gray);
  opacity: 0.7;
}

.form-content {
  max-width: 600px;
  margin: auto;
  margin-top: 30px;
}

.form-max-content {
  max-width: 800px;
  margin: auto;
  margin-top: 30px;
}

.input-style label {
  color: var(--gray);
}

.input-style input,
.input-style select,
.input-style textarea {
  border: 2px solid rgba(86, 69, 146, 0.4);
  border-radius: 5px;
  background-color: transparent;
}

.form-group {
  margin-bottom: 25px;
}

.input-style input::placeholder,
.input-style textarea::placeholder {
  color: var(--gray);
  opacity: 0.5;
}

.input-style input:focus,
.input-style select:focus,
.input-style textarea:focus {
  box-shadow: 0 0 5px 0 rgba(86, 69, 146, 0.445);
  border: 2px solid rgba(86, 69, 146, 0.4);
  border-radius: 5px;
  background-color: transparent;
}

.form-content p {
  font-size: 14px;
  color: var(--gray);
}

.form-content p a {
  font-size: 14px;
  color: var(--purple);
  text-decoration: underline;
}

.submitBtn {
  color: white;
  background-color: rgba(86, 69, 146, 0.8);
  border-radius: 5px;
  padding: 10px;
  margin-top: 5px;
  display: inline-block;
  transition: all 0.2s ease-in-out;
  border: none !important;
  width: 100%;
  margin-top: 30px;
}

.submitBtn:hover {
  color: white;
  text-decoration: none;
  box-shadow: 0 0 10px 1px rgba(86, 69, 146, 0.445);
}

.submitBtn:focus,
.addQuestionBtn:focus {
  outline: none;
}

.addQuestionBtn {
  color: rgba(86, 69, 146, 1);
  background-color: rgba(86, 69, 146, 0.05);
  border-radius: 5px;
  padding: 10px;
  margin-top: 5px;
  display: inline-block;
  transition: all 0.2s ease-in-out;
  border: none !important;
  width: 100%;
  font-weight: 500;
}

.addQuestionBtn:hover {
  color: rgba(86, 69, 146, 0.8);
  text-decoration: none;
  box-shadow: 0 0 5px 0 rgba(86, 69, 146, 0.445);
}

.grouped-inputs {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.grouped-inputs div {
  flex-grow: 1;
}

/* dashboard exam */
.examList-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 30px;
}

.examsGrid {
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(250px, 1fr)
  ); /* Adjust minmax() values as needed */
  gap: 30px;
}

.grid-card {
  background-color: white;
  box-shadow: 0 0 10px 1px rgba(86, 69, 146, 0.445);
  border-radius: 10px;
  position: relative;
  padding: 15px;
  width: 100%;
}

.courseCard {
  background-color: rgba(86, 69, 146, 0.4);
  color: white;
  border-radius: 5px;
  padding: 2px 6px;
  display: inline-block;
  font-size: 12px;
}
.gradeCard {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: rgba(86, 69, 146, 0.1);
  border-radius: 100% 0 10px 0;
  height: 40px;
  width: 50px;
  padding: 10px 0 0 10px;
  display: grid;
  place-items: center;
  font-size: 14px;
}
.cardHeader h4 {
  font-size: 18px;
  font-weight: 600;
  width: calc(100% + 100px);
}
.cardTitle p {
  font-weight: 500;
}
.cardBody p {
  color: rgba(87, 97, 106, 0.7);
  font-size: 14px;
}
.ellipsisText {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* dropdown style */
.dropdown {
  min-width: 125px;
  position: absolute;
  top: 20px;
  right: 15px;
}
.select {
  width: 4px;
  margin-left: auto;
  margin-right: 0;
  /* background: #2a2f3b; */
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* border: 2px #2a2f3b solid; */
  border-radius: 0.5em;
  cursor: pointer;
  transition: 0.3s;
}
/* .select-clicked {
  border: 2px #26489a solid;
  box-shadow: 0 0 0.8em #26489a;
} */
/* .select:hover {
  background: #323741;
} */
.caret {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #fff;
  transition: 0.3s;
}
.caret-rotate {
  transform: rotate(180deg);
}
.menu {
  list-style: none;
  padding: 0.2em;
  background: white;
  /* border: 1px #363a43 solid; */
  box-shadow: 0 0.5em 1em rgba(0, 0, 0, 0.2);
  border-radius: 0.5em;
  color: var(--gray);
  position: absolute;
  top: 2em;
  left: 0;
  width: 100%;
  /* transform: translateX(-50%); */
  opacity: 0;
  display: none;
  transition: 0.2s;
  z-index: 1;
}

.menu li a {
  padding: 0.7em 0.5em;
  margin: 0.3em 0;
  border-radius: 0.5em;
  cursor: pointer;
  font-size: 14px;
  color: var(--gray);
  text-decoration: none;
  width: 100%;
  display: inline-block;
}

.menu li button {
  padding: 0.7em 0.5em;
  margin: 0.3em 0;
  border-radius: 0.5em;
  cursor: pointer;
  font-size: 14px;
  color: var(--gray);
  text-decoration: none;
  width: 100%;
  display: inline-block;
  border: none;
  background-color: transparent;
}

.menu li button:focus {
  border: none;
}

.menu li a:hover {
  background: var(--purple);
  opacity: 0.8;
  color: white;
}

.menu li button:hover {
  background: var(--purple);
  opacity: 0.8;
  color: white;
}
.active {
  background: #23242a;
}
.menu-open {
  display: block;
  opacity: 1;
}

/* others */

table {
  font-family: "Lato", "Roboto", sans-serif;
  margin-top: 20px;
}

.navbar {
  margin-bottom: 50px;
}

.nav-item .dropdown-menu .dropdown-item {
  font-size: 14px; /* match this with your body font-size */
}

.navbarStyle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  margin: auto;
  margin-top: 30px;
  max-width: 600px;
}

.navbarStyle a {
  color: #57616a;
  text-decoration: none;
}

.activeLink {
  color: var(--purple) !important;
  border-bottom: 2px solid var(--purple);
}

.logoutColor {
  color: #dc4747 !important;
}

.feedbackBoxContainer {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-bottom: 10px;
}

.feedbackBox {
  background-color: rgba(86, 69, 146, 0.05);
  border-radius: 10px;
  padding: 15px;
  width: 100%;
}

.feedbackGrade {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.feedbackGrade span:last-of-type {
  padding: 2px 6px;
  font-weight: 500;
  background-color: rgba(86, 69, 146, 0.8);
  color: white;
  border-radius: 5px;
  font-size: 12px;
  display: inline-block;
}

.feedbackText span {
  display: inline-block;
  margin-bottom: 12px;
  margin-top: 16px;
}

.feedbackText p {
  font-weight: normal;
  line-height: 28px;
  color: black !important;
}

/* media queries */

@media screen and (max-width: 500px) {
  .jumbotron-content h1 {
    font-size: 58px;
  }

  .jumbotron-content p {
    font-size: 12px;
  }

  .main-links {
    gap: 30px;
  }

  .main-links div {
    width: 150px;
  }

  .features-content h2 {
    font-size: 32px;
  }
  .features-content p {
    font-size: 12px;
  }
  .image-holder {
    top: -45px;
  }
  .jumbotron-mini-content h1 {
    font-size: 54px;
  }

  .jumbotron-mini-content p {
    font-size: 11px;
  }

  .feedbackBoxContainer {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
  }
}
