@font-face {
  font-family: lato;
  src: url("font/Lato-Bold.ttf") format("truetype");
  font-weight: bold;
}
@font-face {
  font-family: lato;
  src: url("font/LATO-LIGHT.TTF") format("truetype");
  font-weight: 300;
}
@font-face {
  font-family: lato;
  src: url("font/LATO-REGULAR.TTF") format("truetype");
  font-weight: 400;
}
@font-face {
  font-family: ava;
  src: url("font/LINH\ AVANTGARDE\ BOLD.TTF") format("truetype");
  font-weight: bold;
}
@font-face {
  font-family: ava;
  src: url("font/LINH\ AVANTGARDE\ LIGHT.TTF") format("truetype");
  font-weight: 300;
}
@font-face {
  font-family: ava;
  src: url("font/LINH\ AVANTGARDE\ REGULAR.TTF") format("truetype");
  font-weight: 400;
}
* {
  font-family: ava;
}
a {
  color: inherit;
  text-decoration: inherit;
}
h4 {
  text-decoration: underline solid gray;
  font-size: x-large;
}
body {
  margin: 0;
}
#navbar {
  background-color: rgb(192, 33, 53);
  color: white;
}
#navbar-top {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 0.5% 10%;
}
#navbar .navbar-list {
  padding: 0.5% 10% !important;
}
#navbar .navbar-list ul li {
  float: left;
  border: 0 !important;
  margin: 0 !important;
  box-shadow: 0 !important;
}
.card .navbar-list {
  padding: 1vw !important;
}
.card .navbar-list ul li {
  border: 0.002vw solid rgb(228, 231, 237);
}
.navbar-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  overflow-x: hidden;
}
.navbar-list ul li {
  float: left;
}
.navbar-list ul li a {
  display: block;
  text-align: center;
  padding: 0.8vw 1.5vw;
}
.navbar-list ul li a:hover {
  color: rgb(64, 158, 255);
}
.navbar-list ul li a.active {
  color: rgb(64, 158, 255);
}
#navbar-current-path {
  /* display: flex; */
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  background-color: white;
  color: rgb(192, 33, 53);
  padding: 0.8% 10%;
  font-size: medium;
}
.box,
.box-small {
  display: grid;
  column-gap: 1vw;
  row-gap: 0.5vw;
}
.box-small {
  /* width: 15vw; */
  height: 7vw;
}
.box-icon-container {
  grid-row: 1 / span 2;
  grid-column: 1;
  height: 60%;
  align-self: center;
}
.box-icon-container img {
  max-height: 100%;
  max-width: 100%;
}
.box-title {
  grid-column: 2;
  white-space: nowrap;
  font-size: 1.8vw;
  align-self: end;
  font-family: ava;
  text-transform: uppercase;
}
.box-des {
  grid-row: 2;
  grid-column: 2;
  font-size: 1.2vw;
  align-self: start;
  font-family: lato;
  font-weight: 400;
  /* text-align-last: justify; */
}
.card {
  box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.2);
  transition: 0.3s;
  border-radius: 8px;
  margin: 1vw;
}
.card-body {
  /* overflow-x: scroll; */
  white-space: nowrap;
  padding: 1vw 1vw;
}
.card-body ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
.card-body ul li {
  margin-top: 0.65vw;
}
.card:hover {
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}
.card-background-container {
  height: 50%;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
.card-background-container img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.web-body {
  display: flex;
  flex-direction: row;
  align-items: start;
  padding: 0.8% 10%;
}
#card-user-info {
  grid-column: 1;
  grid-row: 1;
  width: 25vw;
}
#card-more-info {
  grid-column: 1;
  grid-row: 2;
  width: 25vw;
}
#card-management-info {
  grid-column: 2 / span 1;
  grid-row: 1 / span 2;
  width: 50vw;
}
.text-block-body {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 0vw 0.5vw;
  margin: 0 0;
}
.text-block-body div p {
  margin: 0;
  margin-bottom: 0.5vw;
}
.text-bold {
  font-weight: bold;
}
.text-block div {
  white-space: nowrap;
}
#footer {
  background-image: url("img/footer.jpeg");
  background-size: 100%;
  background-position: bottom;
  height: 35vh;
}

/* Consistent sizing and responsive layout */
* { box-sizing: border-box; }
body { min-width: 320px; color: #232735; background: #f5f6f9; line-height: 1.55; }
img { max-width: 100%; display: block; }
#navbar { background: #b91f35; }
#navbar-top { max-width: 1240px; min-height: 138px; margin: auto; padding: 24px; align-items: center; gap: 32px; }
.box-small { height: auto; display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 16px; align-items: center; min-width: 0; }
.box-icon-container { grid-column: 1; grid-row: 1 / 3; width: 64px; height: 64px; display: grid; place-items: center; }
.box-icon-container img { max-width: 100%; max-height: 100%; object-fit: contain; }
.box-title { grid-column: 2; font-size: clamp(18px, 1.6vw, 25px); line-height: 1.3; font-weight: 700; white-space: normal; }
.box-des { grid-column: 2; font-size: 14px; line-height: 1.5; }
.navbar-list ul { display: flex; flex-wrap: wrap; align-items: center; white-space: normal; overflow: visible; }
.navbar-list ul li, #navbar .navbar-list ul li { float: none; }
#navbar > .navbar-list { border-top: 1px solid rgba(255,255,255,.18); padding: 0 !important; }
#navbar > .navbar-list ul { max-width: 1240px; margin: auto; padding: 0 12px; }
#navbar > .navbar-list ul li a { padding: 13px 12px; font-size: 14px; font-weight: 700; white-space: nowrap; border-bottom: 3px solid transparent; }
#navbar > .navbar-list a:hover { background: rgba(255,255,255,.12); border-bottom-color: white; color: white; }
#navbar-current-path { min-height: 48px; padding: 12px max(24px, calc((100% - 1192px)/2)); font-size: 14px; font-weight: 700; }
.web-body { max-width: 1240px; padding: 30px 24px 38px; margin: auto; display: grid; grid-template-columns: minmax(290px, 350px) minmax(0, 1fr); gap: 24px; align-items: start; }
.web-body > div:first-child { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.card { background: white; border: 1px solid #e7e9ee; box-shadow: 0 4px 18px rgba(23,31,49,.07); border-radius: 12px; overflow: hidden; min-width: 0; margin: 0; }
.card-background-container { height: 190px; overflow: hidden; }
.card-background-container img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 24px; min-width: 0; white-space: normal; }
.card-body ul li { padding: 6px 0; margin: 0; overflow-wrap: anywhere; }
#card-user-info, #card-more-info, #card-management-info { width: auto; }
#card-user-info .card-body { padding-top: 72px; margin-top: 0 !important; }
#card-user-info > div:nth-child(2) { top: 145px !important; left: 24px !important; width: 100px !important; height: 100px !important; border: 5px solid white !important; box-shadow: 0 3px 10px rgba(0,0,0,.14); background: white; }
#card-user-info > div:nth-child(2) img { width: 100%; height: 100%; object-fit: contain; }
.card .navbar-list { border-bottom: 1px solid #e7e9ee; padding: 12px 16px 0 !important; }
.card .navbar-list ul { gap: 6px; }
.card .navbar-list ul li { border: 0; }
.card .navbar-list a { padding: 10px 13px; border-radius: 8px 8px 0 0; font-size: 14px; white-space: nowrap; cursor: pointer; }
.card .navbar-list a.active { color: #94162a; font-weight: 700; background: #fff1f3; }
h4 { margin: 18px 0 16px; padding-bottom: 10px; font-size: 19px; line-height: 1.35; border-bottom: 1px solid #e7e9ee; text-decoration: none; }
h4:first-child { margin-top: 0; }
.text-block-body { flex-wrap: wrap; gap: 0 24px; padding: 0; }
.text-block-body > div { flex: 1 1 170px; min-width: 0; }
.text-block-body p, .text-block-body div p { margin: 0 0 10px; overflow-wrap: anywhere; }
#card-management-info .card-body { min-height: 500px; }
#my-chart { max-width: 1240px; padding: 0 24px 42px !important; margin: auto; display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
#chart-learning, #chart-training { width: auto !important; min-width: 0; margin: 0 !important; padding: 12px; border: 1px solid #e7e9ee; border-radius: 12px; background: white; }
#footer { min-height: 190px; height: auto; background: url("img/footer.jpeg") center bottom / cover no-repeat; }
@media (max-width: 850px) {
  #navbar-top { min-height: 116px; }
  #navbar-top-item-right { display: none; }
  .web-body { grid-template-columns: 1fr; }
  #card-management-info .card-body { min-height: 0; }
}
@media (max-width: 600px) {
  #navbar-top { padding: 18px 16px; min-height: 96px; }
  .box-small { grid-template-columns: 48px minmax(0, 1fr); column-gap: 12px; }
  .box-icon-container { width: 48px; height: 48px; }
  .box-title { font-size: 17px; }
  .box-des { font-size: 12px; }
  #navbar > .navbar-list ul { flex-wrap: nowrap; overflow-x: auto; padding: 0 8px; scrollbar-width: thin; }
  #navbar > .navbar-list ul li a { padding: 11px 10px; font-size: 13px; }
  #navbar-current-path { padding: 10px 16px; min-height: 42px; }
  .web-body { padding: 16px; gap: 16px; }
  .web-body > div:first-child { gap: 16px; }
  .card-body { padding: 18px; }
  .card-background-container { height: 170px; }
  #card-user-info > div:nth-child(2) { top: 130px !important; left: 18px !important; width: 88px !important; height: 88px !important; }
  #card-user-info .card-body { padding-top: 60px; }
  #my-chart { grid-template-columns: 1fr; padding: 0 16px 28px !important; gap: 16px; }
}
