/* =========================
   GRID LAYOUT
========================= */

.e-con.e-con>.e-con-inner>.elementor-widget, .elementor.elementor .e-con>.elementor-widget {
    max-width: 85%;
}

.ige-grid{
  display:grid;
  gap:15px;
}

@media(max-width:768px){
  .ige-grid{grid-template-columns:repeat(2,1fr)}
}

@media(max-width:480px){
  .ige-grid{grid-template-columns:1fr}
}


/* =========================
   SEARCH HIGHLIGHT
========================= */

mark {
  background: #fff3a0;
  padding: 0 2px;
  border-radius: 2px;
  transition: background 0.2s ease;
}


/* =========================
   A–Z BAR (CLEAN + STICKY)
========================= */

.ige-az {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:12px 0;
  background:#ffffff;
  padding:10px 8px;
  border-radius:6px;

  position:sticky;
  top:0;
  z-index:50;

  border-bottom:1px solid #eee;
  box-shadow:0 2px 6px rgba(0,0,0,0.05);
}

.ige-az span {
  padding: 2px 14px;
  font-size: 14px;
  border-radius: 50px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.ige-az span:hover,
.ige-az span:active {
  background:#0073aa;
  color:#fff;
}

.ige-az .disabled{
  opacity:.3;
  pointer-events:none;
}

.ige-az .selected{
  background:#123f52;
  color:#fff;
  font-weight:bold;
}


/* =========================
   MOBILE A–Z SCROLL
========================= */

@media (max-width:768px){

  .ige-az{
    flex-wrap:nowrap;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }

  .ige-az span{
    flex:0 0 auto;
    font-size:13px;
  }

}


/* =========================
   SEARCH INPUT
========================= */

input#ige-search{
  background-color:rgb(247,247,247);
  border:1px solid #0073aa;
  padding:10px;
  width:100%;
  border-radius:6px;
  margin-bottom:10px;
}


/* =========================
   GLOSSARY ITEMS
========================= */

.ige-item {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    display: block;
    transition: all 0.2s ease;
    background-color: white;
    border: 1px solid #eee;
    border-radius: 7px;
    position: relative;
}


.ige-item:hover{
  background:white;
}

.ige-item.active {
  background: white;
-webkit-box-shadow: 1px 6px 10px 1px rgba(0,0,0,0.19); 
box-shadow: 1px 6px 10px 1px rgba(0,0,0,0.19);
}

.ige-term{
  border-bottom:1px dotted #dbbe5f;
  cursor:pointer;
  font-size:18px;
  font-weight:600;
  transition:color 0.2s ease;
}

.ige-item:hover .ige-term {
  color: #0073aa;
}

.ige-term::first-letter {
  font-weight: 800;
  font-size: 1.2em;
}

/* =========================
   INLINE DROPDOWN (GLOSSARY PAGE)
========================= */
.ige-dropdown {
  font-family: 'Noto Sans', sans-serif;
}

.ige-dropdown::-webkit-scrollbar {
  width: 6px;
}

.ige-dropdown::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 6px;
}

.ige-dropdown::-webkit-scrollbar-thumb:hover {
  background: #999;
}

.ige-dropdown {
  scroll-behavior: smooth;

}

.ige-dropdown.inline {
  position: relative;        /* breaks out of the grid column */
  left: 0;
  right: 0;                  /* stretches full grid width */
  z-index: 100;

  background: #f3f5f4;
  padding: 14px;
  margin-top: 8px;
  border-radius: 8px;
  border: 1px solid #e2e4e9;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);

  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.ige-dropdown.inline.show {
  opacity: 1;
  pointer-events: auto;
}

/* =========================
   POPUP (AUTO-LINK)
========================= */

.ige-dropdown.popup {
  position: absolute;
  background: #fff;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);

  max-width: 420px;
  max-height: 300px;          /* 👈 control height */
  overflow-y: auto;           /* 👈 enable scroll */
  overflow-x: hidden;

  z-index: 99999;

  opacity: 0;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.ige-dropdown.popup.show {
  opacity: 1;
  transform: translateY(0);
}


/* =========================
   DROPDOWN CONTENT
========================= */

.ige-dd-section {
    font-size: initial;
    line-height: 1.5em;
    color: #1d1d1f;
    margin-bottom:12px;
  	display:block;

}

.ige-dd-title{
  font-size:18px;
  font-weight:bold;
  margin-bottom:10px;
  display: none;
}


.ige-dd-section strong {
  display:block;
  margin-bottom:4px;
  color:#333;
  text-transform: capitalize;
}


/* =========================
   PREVENT OVERFLOW ISSUES
========================= */

.ige-az,
.ige-grid{
  max-width:100%;
  box-sizing:border-box;
}


/* =========================
   MOBILE FIXES
========================= */

@media (max-width: 380px) {

  .ige-grid {
    padding: 0 15px 20px;
  }

  .ige-az {
    margin-left: 15px;
    margin-right: 15px;
  }

  #ige-search {
    margin-left: 15px;
    margin-right: 15px;
    width: calc(100% - 30px);
  }

  .ige-dropdown.popup{
    max-width:250px;
  }

}


/* =========================
   MICROCOPY
========================= */

.ige-hint {
  font-size: small;
  color: #a3a0a0;
}