@font-face {
  font-family: "HelveticaNeue";
  src: url("../fonts/HelveticaNeueRoman.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "HelveticaNeue";
  src: url("../fonts/HelveticaNeueMedium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "HelveticaNeue";
  src: url("../fonts/HelveticaNeueBold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  font-family: "HelveticaNeue", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
    sans-serif;
  background-color: #f0f0f0;
  color: #333333;

  --primary-color: #cb621e;

  --text-primary-color: #333333;
  --text-secondary-color: #747474;

  --bg-primary-color: #ffffff;
  --bg-secondary-color: #eeeeee;

  --border-primary-color: #e0e0e0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

button {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

button:hover {
  color: var(--primary-color);
}

.prevent-scroll {
  overflow: hidden;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  gap: 2rem;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  max-width: 350px;
  width: 100%;
  height: calc(100vh - 57px);
  padding: 2rem 3rem;
  background-color: #ffffff;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.gita-logo {
}
.gita-logo img {
  width: 100%;
}

.logo-welcome {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  max-width: 70px;
  max-height: 70px;
}

.logo-img img {
  display: inline-block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.welcome p {
  font-size: 1.25rem;
  font-weight: 500;
}
.welcome strong {
  font-size: 1.25rem;
}

.tab-btns {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  padding-left: 1rem;
}

.tab-btns button {
  font-size: 1.125rem;
  font-size: 1rem;
  font-weight: 500;
}

.tab-btns button.active {
  color: var(--primary-color);
}

/* ! Pages */
.page-content {
  position: relative;
  width: 100%;
  /* min-height: 100vh; */
  height: calc(100vh - 57px);
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.page {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 4rem;
  width: 100%;
  /* height: 100vh; */
  height: calc(100vh - 57px);
  background-color: #ffffff;
  overflow-y: auto;
}

.page.active {
  display: flex;
}

.page-title {
  font-feature-settings: "case";
  text-transform: uppercase;
  font-variant-caps: small-caps;
  font-size: 2.5rem;
  font-weight: 700;
}

.menu-button {
  display: none;
}

@media (max-width: 1024px) {
  .sidebar {
    gap: 3rem;
    padding: 1rem 1rem;
  }

  .page {
    gap: 1rem;
    padding: 1rem 2rem;
  }
}

@media (max-width: 768px) {
  .menu-button-wrapper {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 100;
  }

  .menu-button {
    width: 25px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-right: 1rem;
  }

  .menu-button .menu-button-line {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary-color);
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
  }

  .menu-button-line:nth-child(1) {
    transform-origin: top left;
  }
  .menu-button-line:nth-child(3) {
    transform-origin: bottom left;
  }

  .menu-button.open > .menu-button-line:nth-child(1) {
    transform: rotate(45deg);
  }

  .menu-button.open > .menu-button-line:nth-child(2) {
    opacity: 0;
  }

  .menu-button.open > .menu-button-line:nth-child(3) {
    transform: rotate(-45deg);
  }

  .container {
    gap: 1rem;
    position: relative;
  }

  .sidebar {
    gap: 3rem;
    padding: 1rem 1rem;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }
  .sidebar.open {
    transform: translateX(0);

    transition: transform 0.2s ease;
  }

  .page {
    gap: 1rem;
    padding: 1rem 2rem;
  }
}

/* ! Courses */
.courses {
  display: flex;
  flex-wrap: wrap;
}

.course {
  max-width: 300px;
  width: 100%;
  border-radius: 10px;
  margin-top: 2rem;

  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.course-img {
  border-top-right-radius: 10px;
  border-top-left-radius: 10px;
  overflow: hidden;
}

.course-img img {
  width: 100%;
  height: 100%;
  transition: transform 0.2s;
}

.course:hover .course-img img {
  object-fit: cover;
  transform: scale(1.2);
}

.course-description {
  padding: 1rem 1.5rem;
}

.course-description h3 {
  font-size: 16px;
}
.course-description p {
  color: var(--text-secondary-color);
  font-size: 15px;
  margin-top: 1rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* ! Evaluation */
.evaluation-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.evaluation-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.evaluation-card-text {
  align-self: flex-start;
  display: flex;
  gap: 1rem;
}

.evaluation-card-text h3 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary-color);
}

.evaluation-card-text p {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary-color);
}

.evaluation-circle {
  --score: 7; /* default, will be overwritten by JS */
  --progress: calc(var(--score) * 10%); /* because 10 points = 100% */
  width: 90px;
  height: 90px;
  margin-top: 1rem;
  border-radius: 50%;
  background: conic-gradient(
    var(--color, #00682f) var(--progress),
    #ddd var(--progress)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--text-color);
  position: relative;
}

.evaluation-circle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ffffff;
  width: 80%;
  height: 80%;
  border-radius: 50%;
}

.score-text {
  position: absolute;
  z-index: 5;
}

/* ! Notifications */
.notifications {
  margin-top: 2rem;
}

/* ! Account */
.admin-verification {
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  margin-top: 1rem;
}

.company-info {
  margin-top: 2rem;
}

.company-info .logo-img {
  max-width: 50px;
  max-height: 50px;
}

.company-info .logo-welcome {
  margin-top: 2rem;
}

.company-details-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.company-details-group:first-child {
  border-bottom: 2px solid var(--border-primary-color);
}

.company-detail {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.company-detail h3 {
  color: var(--text-secondary-color);
  font-size: 16px;
  font-weight: 500;
}
.company-detail p {
  font-size: 16px;
  font-weight: 500;
}

.bank-account-number {
  grid-column: 2 / 4;
}

@media (max-width: 1200px) {
  .bank-account-number {
    grid-column: auto;
  }
}

/* ! MATERIALS */
.materials {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.material {
  max-width: 210px;
  width: 100%;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  cursor: pointer;
  border-radius: 10px;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s;
}
.material:hover {
  box-shadow: rgba(99, 99, 99, 0.6) 0px 2px 8px 0px;
  transform: scale(1.05);
}

.material-highlight {
  width: 100%;
  /* height: 200px; */
}

.material-highlight-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  /* padding-inline: 1rem;
  padding-top: 1rem; */
  padding: 2rem 1rem;
}

.text-skeleton {
  width: 100%;
  height: 10px;
  background-color: #e2e2e2;
}
.text-skeleton:nth-child(even) {
  width: 70%;
}

.material-title {
  padding: 1rem;
  border-top: 1px solid var(--border-primary-color);
}

.material-title h3 {
  font-size: 16px;
  font-weight: 500;
}

/* ! FOOTER */

.footer-wrapper {
  position: relative;
  padding-block: 1.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  z-index: 9999;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.footer-wrapper p {
  font-weight: 600;
}

/* ! GLOBAL */
.doc-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  display: none;
  justify-content: center;
  align-items: center;

  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}
.doc-modal.open {
  display: flex;
}
.close-doc-modal {
  position: absolute;
  top: 0;
  right: 1rem;
  font-size: 2rem;
  color: #fff;
  z-index: 500;
}

.modal {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 5rem 6rem;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 100;
  overflow-y: auto;
}

.modal.open {
  display: flex;
}

.modal-content {
  position: relative;
  background-color: #fff;
  height: min-content;
  max-width: 100%;
  width: 100%;
  min-height: 80vh;
  border-radius: 10px;
  padding: 2rem 5rem;
  margin: 0 auto;
}

.table-wrapper {
  border: 1px solid var(--border-primary-color);
  /* border: 1px solid var(--primary-color); */
  border-radius: 10px;
  margin-top: 2rem;
}

.modal-header-desc h3 {
  text-align: center;
  font-size: 1.5rem;
}
.modal-header-desc p {
  font-size: 18px;
  margin-top: 2rem;
  line-height: 1.6;
  text-indent: 3rem;
}

.close-modal {
  position: absolute;
  top: 0;
  right: 1rem;
  font-size: 2rem;
  color: #fff;
  z-index: 500;
  /* background-color: #747474;
  width: 40px;
  height: 40px; */
  /* border-radius: 50%; */

  /* display: grid;
  place-content: center; */
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead tr th {
  text-align: left;
  padding: 0.875rem;
  color: var(--primary-color);
  background-color: #ffd3b5c4;
}

thead tr th:first-child {
  border-top-left-radius: 10px;
}
thead tr th:last-child {
  border-top-right-radius: 10px;
}

tr td {
  padding: 0.875rem;
}

tbody tr:nth-child(odd) {
  background-color: #ececec;
}

@media (max-width: 1200px) {
  .table-wrapper {
    overflow-x: auto;
  }
}

@media (max-width: 768px) {
  .modal {
    padding: 2rem 1rem;
  }

  .modal-content {
    padding: 2rem 1rem;
  }

  .modal-header-desc h3 {
    font-size: 1.25rem;
  }
  .modal-header-desc p {
    font-size: 15px;
    line-height: 1.5;
    text-indent: 1rem;
  }

  .page-title {
    text-align: center;
  }

  .sidebar .logo-welcome {
    justify-content: center;
  }

  .tab-btns {
    align-items: center;
  }
}
