/* Glossary Hero CSS Styles */

.c-glossary-hero {
  width: 100%;
  padding: 64px 0 48px;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  font-family: var(--font-family, sans-serif);
  border-bottom: 1px solid #edf2f7;
}

.c-glossary-hero__container {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Left & Right Character Illustrations */
.c-glossary-hero__illus {
  flex: 0 0 312px;
  display: flex;
  align-items: flex-end;
  position: relative;
  z-index: 1;
}

.c-glossary-hero__illus img {
  width: 100%;
  height: auto;
  max-height: 312px;
  object-fit: contain;
}

.c-glossary-hero__illus--left {
  margin-right: -20px;
}

.c-glossary-hero__illus--right {
  margin-left: -20px;
}

/* Center Content */
.c-glossary-hero__content {
  flex: 1;
  max-width: 680px;
  text-align: center;
  margin: 0 auto 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.c-glossary-hero__title {
  font-family: var(--font-family-mmc-bold);
  font-size: 40px;
  line-height: 54px;
  text-align: center;
  color: #012c52;
  margin: 0;
  padding: 0;
}

.c-glossary-hero__title-green {
  background: linear-gradient(86deg, #008cd0 0%, #00ac41 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.c-glossary-hero__subtitle {
  margin: 0;
  color: #012c52;
  font-size: 18px;
  line-height: 30px;
  text-align: center;
  letter-spacing: 0px;
  text-transform: capitalize;
  opacity: 1;
  padding: 20px 0 40px;
  font-weight: 500;
}

/* Search Box Styling */
.c-glossary-hero__search {
  position: relative;
  width: 100%;
  max-width: 730px;
  margin-bottom: 40px;
  box-sizing: border-box;
}

.c-glossary-hero__search-input {
  background-image: url('https://mettl.com/glossary/wp-content/themes/mettl-glossary/images/icons/searchNew.svg');
  background-position: 12px center;
  background-repeat: no-repeat;
  padding: 10px 10px 10px 40px;
  background-color: #fff;
  font-weight: 600;
  color: #2C3E50;
  width: 100%;
  box-shadow: 0px 2px 6px #00000029;
  border: 1px solid #CBD0D9;
  border-radius: 6px;
  font-size: 15px;
  outline: none;
  box-sizing: border-box;
  font-family: inherit;
  transition: all 0.3s;
}

.c-glossary-hero__search-input::placeholder {
  font-weight: 600;
  color: #1a1818;
}

.c-glossary-hero__search-input:focus {
  border-color: #009be3;
  box-shadow: 0 0 0 3px rgba(0, 155, 227, 0.12);
}

/* Alphabet Nav Grid */
.c-glossary-hero__alphabets {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
}

.c-glossary-hero__alphabet-btn {
  display: flex;
  justify-content: center;
  transition: all 0.3s;
  position: relative;
  margin: 10px;
  background: #f7f7f7 0% 0% no-repeat padding-box;
  box-shadow: 0px 1px 2px #00000029;
  border-radius: 6px;
  font-size: 15px;
  line-height: 18px;
  font-family: var(--font-family);
  border: unset;
  font-weight: bolder;
  width: 42px;
  height: 42px;
  align-items: center;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.c-glossary-hero__alphabet-btn:hover {
  background: #009be3;
  color: #ffffff;
  border-color: #009be3;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 155, 227, 0.15);
}

/* ---- Responsive Breakpoints ---- */
@media (max-width: 1024px) {
  .c-glossary-hero__illus {
    flex: 0 0 170px;
  }
}

@media (max-width: 850px) {
  .c-glossary-hero__illus {
    display: none;
  }
  .c-glossary-hero__container {
    justify-content: center;
  }
  .c-glossary-hero__title {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .c-glossary-hero__alphabets {
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
  }
}
