html { outline: 10px solid lime !important; }


/* --- Base A–Z letters bar (was coming from old plugin) --- */
.az-letters,
.glossary-box .az-letters{
  white-space: initial;
}

.az-letters > ul.az-links,
.glossary-box .az-letters > ul.az-links{
  padding: 0;
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 1.2em;
}

.az-letters > ul.az-links > li,
.glossary-box .az-letters > ul.az-links > li{
  list-style: none;
  box-sizing: border-box;
  margin: 0 0.1em 0.6em;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Force A–Z bar to be horizontal even if theme styles interfere */
.glossary-box .az-letters ul.az-links{
    display:flex !important;
    flex-wrap:wrap !important;
    justify-content:center !important;
    align-items:center !important;
    padding:0 !important;
    margin:0 !important;
    list-style:none !important;
  }
  
  .glossary-box .az-letters ul.az-links > li{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:auto !important;
    margin:0 0.1em 0.6em !important;
  }
  /* Nuclear option: force the exact UL to be flex in Elementor context */
.elementor-shortcode .glossary-box ul.az-links{
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0 !important;
  }
  
  /* Make sure LIs don’t go full-width */
  .elementor-shortcode .glossary-box ul.az-links > li{
    flex: 0 0 auto !important;
    width: auto !important;
  }
  
  /* Defensive: remove any inherited list/padding */
  .elementor-shortcode .glossary-box ul.az-links{
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
  }
  
/* Links */
.az-letters > ul.az-links > li a,
.glossary-box .az-letters > ul.az-links > li a{
  text-decoration: none;
  border: 0;
  box-shadow: none;
}

/* --- Your theme-specific glossary styles (scoped) --- */
.glossary-box .az-links {
  border-bottom: 1px solid #c8c8c8;
}

.glossary-box .az-links li {
  border: none !important;
  padding: 0 10px !important;
  background: none !important;
  font-size: 18px;
  font-weight: 500;
  width: auto !important;
  margin-bottom: 0 !important;
}

.glossary-box .az-links li a {
  color: #C60202 !important;
}

.glossary-box .items-outer {
  margin-top: 30px;
}

.glossary-box .letter-section{
  position: relative;
}

.glossary-box .letter-section .back-to-top{
  position: absolute;
  top: 3px;
  right: 0;
  display: inline-block;
  width: auto;
  background: #ffffff;
  padding: 2px 6px 4px;
  border-radius: 20px;
}

.glossary-box .letter-section h2.letter-title{
  border: none;
  font-family: "Roboto", Sans-serif;
  position: relative;
  margin-bottom: 20px;
}

.glossary-box .letter-section h2.letter-title:before{
  content: '';
  display: block;
  position: absolute;
  top: 44%;
  right: 0;
  width: calc(100% - 50px);
  height: 1px;
  background: #c8c8c8;
}

.glossary-box .letter-section .az-columns {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  float: none;
  max-width: 100% !important;
  column-gap: 0 !important;
  padding: 0;
  margin: 0;
}

.glossary-box .letter-section .az-columns li{
  list-style: none;
  width: calc(33.33% - 20px);
  margin-right: 30px;
  margin-bottom: 30px;
  background: #fff;
  text-align: center;
  font-family: "Roboto", Sans-serif;
  border: 1px solid #e8e8e8;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.4s ease-in-out;
}

.glossary-box .letter-section .az-columns li:nth-of-type(3n + 3){
  margin-right: 0;
}

.glossary-box .letter-section .az-columns li a{
  display: block;
  padding: 20px 30px;
  color: #333;
  font-weight: 600;
}

.glossary-box .letter-section .az-columns li:hover{
  box-shadow: 8px 8px 30px rgba(0,0,0,0.05);
}
.glossary-box .az-links li.az-disabled span{
    color:#000 !important;
  }
  
  .glossary-box .az-links li.az-disabled{
    opacity:0.45;
    cursor:default;
    pointer-events:none;
  }

/* FINAL FIX — force horizontal A–Z filter */
.elementor-shortcode .glossary-box ul.az-links {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .elementor-shortcode .glossary-box ul.az-links > li {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 8px 10px 0 !important;
    list-style: none !important;
  }
  
  .elementor-shortcode .glossary-box ul.az-links > li::marker {
    content: none !important;
  }
  /* Mobile: force 1 column */
@media (max-width: 767px){
  .glossary-box .letter-section .az-columns{
    display: block !important;      /* overrides flex grid */
  }

  .glossary-box .letter-section .az-columns li{
    width: 100% !important;
    margin-right: 0 !important;
    margin-bottom: 16px !important;
  }

  /* neutralize the 3rd-item margin rule */
  .glossary-box .letter-section .az-columns li:nth-of-type(3n + 3){
    margin-right: 0 !important;
  }

  .glossary-box .letter-section .az-columns li a{
    padding: 18px 16px !important;  /* optional: nicer tap target */
  }
}
