.glossary {
  background: #f3ebeb69;
}

.glossaryContent {
  max-width: 1200px;
  margin: 0 auto;
  height: auto;
  padding: 80px 30px;
}

.ul-breadcrumb {
   width: 100%;
  position: relative;
}

.ul-breadcrumb .ul-container {
  width: 100%;
  max-width: none;
  position: relative;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.ul-2-banner-video2 {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center;
  margin: 0;
}

.ul-breadcrumb-title {
  position: absolute;
  top: 75%;
  left: 20%;
  transform: translate(-50%, -50%);
  margin: 0;
  color: black;
  font-size: 70px;
  font-weight: 700;
  line-height: 1;
  z-index: 3;
}

.ul-breadcrumb .ul-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  pointer-events: none;
  z-index: 1;
}

.glossaryContent a {
  text-decoration: none;
  color: #303030;
  transition: color 0.25s ease;
}

.glossaryContent a:hover {
  color: #000;
  text-decoration: underline;
}

.letterBookmarks {
  font-size: 30px;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 45px;
  color: #303030;
}

.letterBookmarks a {
  color: #303030;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.letterBookmarks a:hover {
  color: #a5a207;
  transform: translateY(-3px);
  text-decoration: underline;
}

.glossaryGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 20px;
}

.glossaryGrid div {
  margin: 2px 1px;
}

.glossaryBookmarks {
  display: flex;
  justify-content: center;
  margin-top: 15px;
  padding-top: 45px;
  color: #303030;
  font-size: 18px;
  font-weight: 600;
}

.glossaryToTop {
  position: fixed;
  right: 18px;
  bottom: 35px !important;
  z-index: 50;
}

.glossaryToTop a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #111;
  background: #eff50b;
  padding: 11px 14px;
  border: 1px solid #838080a8;
  border-radius: 5px;
  font-size: 14px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.glossaryToTop a:hover {
  color: #111;
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.15);
}

.term {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #b7b7b7;
  color: #111;
  padding: 14px 16px;
  margin: 12px 0;
  cursor: pointer;
  border-radius: 0;
  font-weight: 600;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.term:hover {
  border-color: #111;
  transform: translateY(-2px);
  box-shadow:
    0 7px 16px rgba(0, 0, 0, 0.07);
}

.term.active {
  background: #eff50b;
  border: none;
  color: #111;
}

.definition {
  display: none;
  padding: 18px;
  background: #ccc7c79c;
  color: #111;
  margin-bottom: 10px;
  border-left: 5px solid #eff50b;
  border-radius: 0;
  font-size: 15px;
  line-height: 1.5;
}

@media (min-width: 751px) and (max-width: 1100px) {
  .glossaryContent {
    width: 100%;
    max-width: 100%;
    padding: 70px 35px;
    box-sizing: border-box;
  }
  .ul-2-banner-video2 {
    height: 270px;
    object-fit: cover;
    object-position: center;
  }
  .ul-breadcrumb-title {
    font-size: 56px;
  }
  .letterBookmarks {
    width: 100%;
    max-width: 750px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 7px 14px;
    margin: 0 auto 30px;
    font-size: 0;
  }
  .letterBookmarks a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    min-width: 30px;
    height: 35px;
    color: #303030;
  }
  .glossaryGrid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 0;
    align-items: start;
  }
  .glossaryGrid > div:empty {
    display: none;
  }
  .glossaryGrid > div {
    min-width: 0;
    margin: 0;
  }
  .glossaryBookmarks {
    grid-column: 1 / -1;
    width: 100%;
    margin: 35px 0 15px;
    padding-top: 20px;
    font-size: 18px;
  }
  .term {
    width: 100%;
    margin: 8px 0;
    padding: 14px 16px;
    box-sizing: border-box;
    font-size: 14px;
  }
  .term span {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .term img {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    margin-left: 12px;
  }
  .definition {
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    font-size: 13px;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }
  .glossaryToTop {
    right: 18px;
    bottom: 20px !important;
  }
}

@media (max-width: 750px) {
  .glossary {
    width: 100%;
    overflow-x: hidden;
  }
  .glossaryContent {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 45px 16px 70px;
    box-sizing: border-box;
  }
  .ul-breadcrumb {
    width: 100%;
  }
  .ul-breadcrumb .ul-container {
    width: 100%;
  }
  .ul-2-banner-video2 {
    width: 100%;
    height: 210px;
    object-fit: cover;
    object-position: center;
  }
  .ul-breadcrumb-title {
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 40px);
    font-size: 44px;
    text-align: center;
    white-space: normal;
  }
  .letterBookmarks {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin: 0 0 30px;
    font-size: 0;
    box-sizing: border-box;
  }
  .letterBookmarks a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    height: 38px;
    font-size: 18px;
    font-weight: 500;
    color: #303030;
    border: 1px solid rgba(48, 48, 48, 0.13);
    box-sizing: border-box;
    text-decoration: none;
  }
  .letterBookmarks a:hover {
    background: #eff50b;
    color: #111;
    text-decoration: none;
    transform: none;
  }
  .glossaryGrid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    gap: 0;
    box-sizing: border-box;
  }
  .glossaryGrid > div:empty {
    display: none;
  }
  .glossaryGrid > div {
    width: 100%;
    min-width: 0;
    margin: 0;
    box-sizing: border-box;
  }
  .glossaryBookmarks {
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 35px 0 12px;
    padding: 18px 0 8px;
    color: #303030;
    font-size: 18px;
    font-weight: 700;
    border-bottom: none;
    box-sizing: border-box;
  }
  .glossaryBookmarks:first-of-type {
    margin-top: 20px;
  }
  .term {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0;
    padding: 15px 14px;
    box-sizing: border-box;
    font-size: 14px;
    background: #fff;
    overflow: hidden;
  }
  .term span {
    min-width: 0;
    padding-right: 12px;
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  .term img {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    margin: 0;
  }
  .definition {
    width: 100%;
    margin: 0 0 8px;
    padding: 15px;
    box-sizing: border-box;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  .glossaryToTop {
    right: 10px;
    bottom: 15px !important;
    z-index: 100;
  }
  .glossaryToTop a {
    padding: 9px 10px;
    font-size: 11px;
  }
}