/* =============================================
   ELEVATOR INDUSTRY GLOSSARY PAGE
   ============================================= */

/* ===== NAV DROPDOWN CHEVRONS =====
   This page doesn't get the visible dropdown chevron that Porto's
   theme.init.js injects elsewhere. The theme stylesheet hides the manual
   chevron <i> by default, so force it visible here. (Same fix as
   enterprise.css uses for the data-security page.) */
#header .header-column-nav-items nav#mainNavDesktop > ul > li > a .fa-chevron-down {
  display: inline-block !important;
}

.glossary-hero,
.glossary-azbar,
.glossary-terms,
.glossary-cta {
  font-family: 'Poppins', sans-serif;
}

/* ── Hero ──────────────────────────────────────── */
.glossary-hero {
  background-color: #081847;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 70px 0 60px;
  text-align: center;
}

.glossary-hero__title {
  font-family: 'Poppins', sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  margin: 0 0 16px;
}

.glossary-hero__title-accent {
  color: #f5b50a;
}

.glossary-hero__subtitle {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 auto 28px;
  max-width: 720px;
}

/* Search */
.glossary-search {
  position: relative;
  margin: 0 auto 16px;
}

.glossary-search__icon {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  font-size: 15px;
  color: #98a2b3;
  pointer-events: none;
}

.glossary-search__input {
  width: 100%;
  height: 50px;
  border: 1px solid #ffffff;
  border-radius: 10px;
  background: #ffffff;
  padding: 0 18px 0 46px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #1f2937;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  outline: none;
  transition: box-shadow 0.2s ease;
}

.glossary-search__input::placeholder {
  color: #98a2b3;
}

.glossary-search__input:focus {
  box-shadow: 0 0 0 3px rgba(245, 181, 10, 0.35);
}

.glossary-hero__helper {
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 26px;
}

/* Category chips */
.glossary-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.glossary-chip {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 30px;
  padding: 9px 20px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.glossary-chip:hover {
  background: rgba(255, 255, 255, 0.14);
}

.glossary-chip.is-active {
  background: #0a1024;
  border-color: #0a1024;
  color: #ffffff;
}

/* ── A–Z Bar ───────────────────────────────────── */
.glossary-azbar {
  background: #ffffff;
  border-bottom: 1px solid #eef0f4;
  padding: 18px 0;
  position: -webkit-sticky;
  position: sticky;
  top: 101px;
  z-index: 990;
  box-shadow: 0 4px 14px rgba(8, 24, 71, 0.06);
}

.glossary-azbar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 14px;
}

.glossary-azbar__letter {
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: #344054;
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 0.18s ease, background 0.18s ease;
}

.glossary-azbar__letter:hover {
  color: #f5b50a;
  background: #fff8e6;
  text-decoration: none;
}

.glossary-azbar__letter.is-disabled {
  color: #d0d5dd;
  pointer-events: none;
}

/* ── Terms (dynamic) ───────────────────────────── */
.glossary-terms {
  background: #ffffff;
  padding: 48px 0 60px;
}

.glossary-group {
  margin-top: 40px;
}

.glossary-group:first-child {
  margin-top: 0;
}

.glossary-group__heading {
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: #101828;
  margin: 0 0 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5e7eb;
}

.glossary-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px 22px;
  transition: box-shadow 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.glossary-card:hover {
  box-shadow: 0 6px 22px rgba(8, 24, 71, 0.08);
  border-color: #c7d2fe;
  transform: translateY(-2px);
}

.glossary-card__title {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #101828;
  margin: 0 0 8px;
}

.glossary-card__desc {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  color: #667085;
  margin: 0 0 14px;
}

/* Category badges */
.glossary-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.2px;
  border-radius: 6px;
  padding: 5px 10px;
}

.glossary-badge--service {
  background: #e7f0fd;
  color: #1d5fd1;
}

.glossary-badge--technical {
  background: #fef3c7;
  color: #b45309;
}

.glossary-badge--compliance {
  background: #fce7f3;
  color: #be185d;
}

.glossary-badge--software {
  background: #eef2ff;
  color: #4f46e5;
}

/* Empty state */
.glossary-empty {
  text-align: center;
  padding: 60px 20px;
  color: #667085;
}

.glossary-empty i {
  font-size: 30px;
  color: #cbd2dd;
  margin-bottom: 14px;
}

.glossary-empty p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.glossary-empty a {
  color: #1d5fd1;
  font-weight: 600;
  text-decoration: none;
}

.glossary-empty a:hover {
  text-decoration: none;
}

/* ── Bottom CTA ────────────────────────────────── */
.glossary-cta {
  background: #081847;
  padding: 64px 0;
  text-align: center;
}

.glossary-cta__title {
  font-family: 'Poppins', sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
  margin: 0 0 16px;
}

.glossary-cta__text {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 auto 28px;
  max-width: 680px;
}

.glossary-cta__btn {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  color: #101828;
  background: #f5b50a;
  border-radius: 8px;
  padding: 14px 30px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.glossary-cta__btn,
.glossary-cta__btn:hover,
.glossary-cta__btn:focus {
  text-decoration: none !important;
}

.glossary-cta__btn:hover,
.glossary-cta__btn:focus {
  background: #e0a407;
  color: #101828;
  transform: translateY(-2px);
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 991.98px) {
  .glossary-hero__title { font-size: 34px; }
}

@media (max-width: 767.98px) {
  .glossary-hero { padding: 54px 0 46px; }
  .glossary-hero__title { font-size: 28px; }
  .glossary-hero__subtitle { font-size: 14px; }
  .glossary-chip { font-size: 12px; padding: 8px 16px; }
  .glossary-group__heading { font-size: 22px; }
  .glossary-cta__title { font-size: 24px; }
}

@media (max-width: 575.98px) {
  .glossary-azbar__inner { gap: 4px 8px; }
  .glossary-azbar__letter { font-size: 13px; padding: 3px 4px; }
}

/* ===== SUGGEST A TERM ===== */
.glossary-suggest {
  padding: 20px 0 8px;
  text-align: center;
}
.glossary-suggest__text {
  font-size: 15px;
  color: #666;
  margin: 0;
}
.glossary-suggest__link {
  color: #0d6efd;
  font-weight: 600;
  text-decoration: none !important;
}
.glossary-suggest__link:hover {
  text-decoration: none !important;
  opacity: 0.85;
}
