/* =========================================================
   IIIT Glossary – Global Styles
========================================================= */
:root {
  --gh-bg: #1b1725;
  --gh-ink: #f1f0ec;
  --gh-ink-dark: #111827;
  --gh-accent: #22b1d1;
  --page-bg: #fff;
  --shadow-soft: 0 7px 15px rgba(0, 9, 128, 0.05), 0 12px 28px rgba(0, 9, 128, 0.075);
  --shadow-hover: 0 1px 30px rgba(0, 0, 0, 0.25);
  --gh-h: 100px;
  --gh-h-m: 78px;
}

/* =========================
   Base
========================= */
body {
  font-family: 'Lora', serif !important;
  font-weight: 400;
}

body.page-template-glossary-update,
body.page-template-glossary-latest {
  background: var(--page-bg);
  padding-top: var(--gh-h);
}

body.page-template-glossary-update #main-content a,
body.page-template-glossary-latest #main-content a {
  color: var(--gh-accent);
  transition: opacity 0.2s ease;
}

body.page-template-glossary-update #main-content a:hover,
body.page-template-glossary-latest #main-content a:hover {
  opacity: 0.85;
}

/* =========================
   Banner
========================= */
section.banner {
  min-height: 150px;
  margin-top: 0;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: cover !important;
  background-position: center center !important;
  border-top: 2px solid #fff;
}

section.banner:before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(9, 43, 64, 0.5);
}

body.page-child section.banner:before {
  background: rgba(9, 43, 64, 0.5);
}

/* =========================
   Page title
========================= */
.page-title { padding: 20px 0; }

.page-title h1 {
  color: #fff;
  position: relative;
  max-width: 790px;
  text-align: center;
}

.page-title h1:before {
  content: "";
  background: #22b1d1;
  width: 50px;
  height: 5px;
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
}

.page-title h3 {
  color: #fff;
  position: relative;
  text-align: center;
  font-size: 20px;
  margin-top: 35px;
}

/* =========================
   Cards
========================= */
.cards ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin: 0;
}

.cards ul li {
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.35s ease;
}

.cards ul li:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.cards ul li:hover h6 { background: var(--gh-accent); color: #fff; }

.cards ul li.caption figure { position: relative; }
.cards ul li.caption figure:hover p { display: block; }
.cards ul li.caption figure:hover:before { display: block; }

.cards ul li.caption figure p {
  position: absolute;
  top: 0; bottom: 0;
  margin: 0;
  color: #fff;
  padding: 20px;
  font-size: 12px;
  display: none;
}

.cards ul li.caption figure:before {
  background: rgba(9, 43, 64, 0.75);
  content: '';
  inset: 0;
  position: absolute;
  display: none;
  transition: all 0.2s ease;
}

.cards ul li.caption img {
  height: 252px;
  object-fit: cover;
  object-position: right;
}

.cards ul li h6 {
  text-align: center;
  padding: 15px 10px;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 0;
}

/* =========================
   Footer
========================= */
footer { background: var(--gh-bg); padding: 20px 0; }

footer .copyright {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

footer img { width: 80px; }
footer .copyright p { margin-top: 20px; color: #fff; margin-bottom: 0; }

/* =========================
   Preloader
========================= */
.preloader {
  position: fixed !important;
  inset: 0 !important;
  z-index: 200000 !important;
  display: grid !important;
  place-items: center !important;
  background: rgba(255, 255, 255, 0.9) !important;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.preloader.hide-preloader { opacity: 0; visibility: hidden; }

.loader {
  width: 54px;
  height: 54px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--gh-accent);
  border-radius: 50%;
  box-sizing: border-box;
  animation: spin 1.2s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* =========================
   Heading
========================= */
.heading {
  position: relative;
  font-size: 32px;
  padding-bottom: 5px;
  margin-bottom: 20px;
}

.heading:after {
  content: "";
  border-bottom: 5px solid #22b1d1;
  width: 40px;
  display: block;
  margin-top: 10px;
}

.heading-wrap {
  text-align: center;
  background: #5f7468;
  padding: 10px 0;
  border-top: 1px solid #fff;
}

.heading-wrap .heading-title { color: #fff; }

/* =========================
   Mini Nav
========================= */
.mini-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0;
  padding: 18px 0;
}

.mini-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: #6b7280;
  text-decoration: none;
  font-size: 18px;
  line-height: 1;
  font-weight: 500;
  transition: color 0.2s ease;
}

.mini-nav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -10px;
  height: 2px;
  background: #22b1d1;
  opacity: 0;
  transform: scaleX(0.3);
  transform-origin: center;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.mini-nav__link + .mini-nav__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 20px;
  background: rgba(0, 0, 0, 0.25);
}

.mini-nav__link:hover { color: #111827; }
.mini-nav__link.is-active { color: #6b7280; }
.mini-nav__link:hover::after,
.mini-nav__link.is-active::after { opacity: 1; transform: scaleX(1); }

/* =========================
   Language list
========================= */
ul#language-list {
  display: flex;
  justify-content: end;
  color: #fff;
  position: relative;
  z-index: 9;
  list-style: none;
  gap: 30px;
  margin-bottom: 10px;
}

ul#language-list li { cursor: pointer; text-transform: uppercase; }
ul#language-list li.active { position: relative; }

ul#language-list li.active:after {
  content: "";
  display: block;
  background: #22b1d1;
  height: 3px;
  width: 100%;
}

/* =========================
   Search
========================= */
.search-wrapper { display: flex; align-items: flex-end; }

.advance-search {
  color: #fff;
  z-index: 9;
  margin-left: 20px;
  position: relative;
  cursor: pointer;
}

.advance-search ul li { text-transform: capitalize !important; font-size: 13px !important; }
.advance-search #language-list { margin-bottom: 0; }
.search-container { position: relative; z-index: 9; }

.search-input-container {
  display: flex;
  background: #fff;
  border-radius: 8px;
  align-items: center;
  padding: 5px 15px;
  gap: 20px;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 3px -2px,
    rgba(0, 0, 0, 0.14) 0px 3px 4px 0px,
    rgba(0, 0, 0, 0.12) 0px 1px 8px 0px;
  min-width: 625px;
}

.search-input input::placeholder { color: #ccc; opacity: 1; }
.search-input { position: relative; width: 100%; }
.search-icon i { color: #22b1d1; }
.disciplines { font-size: 18px; }
.discipline-container { margin-right: 20px; }
input[type="checkbox"] { border: 1px solid #999; padding: 2px; }

.checkbox-options {
  display: none;
  position: absolute;
  left: 0;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.17);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  margin-top: 20px;
  transition: all 0.5s ease-in;
}

.checkbox-options:before {
  content: "";
  width: 0;
  height: 0;
  position: absolute;
  bottom: 100%;
  right: 13px;
  border-width: 0 8px 8px 8px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.1) transparent;
}

.checkbox-options p.select-text,
.error-message { padding: 0 20px; margin: 0; }

.checkbox-options .options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 20px;
  column-gap: 30px;
}

.checkbox-options .options label { margin-bottom: 20px; }

.discipline-container .buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
  box-shadow: none;
}

.dropdown-icon:hover { cursor: pointer; }
.dropdown-icon::after { content: "\25BC"; margin-left: 5px; }
#headline h1 { color: rgba(32, 88, 103); }

button#check-all,
button#clear-all { color: unset; background: none; margin: 0; padding: 0; }
button#check-all:hover,
button#clear-all:hover { box-shadow: none; }

button#okay {
  margin: 0 auto 20px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #22b1d1;
  padding: 15px 40px;
}

#search {
  border-radius: 4px;
  border: none;
  padding: 10px;
  margin: 0;
  width: 400px;
  font-size: 18px;
}

#search:focus { box-shadow: none; }
.search-results h6 { font-size: 18px; padding-bottom: 15px; font-weight: 500; }
p.search-text { font-size: 18px; padding-bottom: 0; font-weight: 500; margin-bottom: 10px; }

/* =========================
   Tables
========================= */
.table-bordered {
  background: #fff;
  border-radius: 0;
  box-shadow: 0 0 35px 0 rgba(0, 0, 0, 0.07);
  width: 100%;
  margin: 0 auto;
  word-wrap: break-word;
  border: 2px solid #17365d;
}

.table-bordered tr td:last-child p:first-child { margin-bottom: 0; }
.table-bordered tbody > tr:first-child td { border-top: none !important; }
.table-bordered tr td .source p { color: #000 !important; font-size: 12px; margin-bottom: 0; }
.table-bordered tr td .source p strong { color: #22b1d1 !important; }
table.table.table-bordered.table-striped tr:hover { background: #eee; }
.table-bordered td, .table-bordered th { padding: 15px 20px !important; }
.table td, .table th { border-top: 1px solid #000 !important; }

.table-bordered thead th.no_of_result {
  background: #17365d;
  color: #fff;
  border-left: 2px solid #17365d;
}

.table-bordered thead th:nth-child(2),
.table-bordered thead th:last-child { border-bottom: 1px solid #17365d; }
.table-bordered thead th:last-child,
.table-bordered tr td:last-child { border-right: none; }
.table thead th { background: unset; }

/* =========================
   Search results
========================= */
.wpb_raw_html {
  position: relative;
  height: 100%;
  display: block;
  padding-bottom: 40px;
}

#itemDetails { margin: 0 auto; border-radius: 4px; }
#itemDetails .no-results { padding: 40px; background: #fff; width: 1000px; }
#itemDetails .no-results p { margin-bottom: 5px; }
#search-container { display: flex; gap: 30px; }
#itemDetails { flex: 3; }
.more-results, .previous-results { text-align: center; font-weight: bold; }
h6.search-result-text { font-weight: 600; margin-bottom: 20px; }
p.translation-text, p.definition-text { color: #000; margin-bottom: 5px; }
p.translation-text + span.more, #searchDetails span.more { font-weight: 700; color: #22b1d1; cursor: pointer; }
.english-info { margin-top: 20px; }
.translation-text-wrapper { display: flex; gap: 40px; }
.source { position: relative; }
.text-primary { color: #22b1d1; }
.definition-text { margin-bottom: 0; }
.searchDetailsResult { border: 2px solid #17365d; background: #fff; }
.searchDetailsResult ul li .wrap { padding: 10px; }

#searchDetails .searchDetailsResult > ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: none;
  margin: 0;
}

#searchDetails .bottom-info {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 10px;
}

#searchDetails .bottom-info b { font-weight: 700; }

#searchDetails .top-info {
  display: flex;
  gap: 20px;
  padding-bottom: 10px;
  font-weight: 700;
  font-size: 16px;
}

#searchDetails .top-info strong { color: #22b1d1; }
#searchDetails .mid-info strong { background: #22b1d1; }
#searchDetails .english-info > strong { color: #22b1d1; }

#searchDetails .searchDetailsResult > ul > li {
  border-bottom: 1px solid;
  padding-bottom: 20px;
  position: relative;
}

#searchDetails ul li:last-child { border-bottom: none; }

/* =========================
   Popovers & menus
========================= */
.menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: absolute;
  right: 10px;
  top: 10px;
}

.dot { background-color: #22b1d1; width: 4px; height: 4px; border-radius: 50%; margin: 2px 0; }

.dot::before {
  content: "Action";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.dot:hover::before { opacity: 1; }

.custom-popover {
  display: none;
  position: absolute;
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  left: auto;
  right: -210px;
  top: 40px;
  z-index: 1;
}

#close-popup {
  background-color: #333;
  color: #fff;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 5px;
  margin-top: 10px;
}

td.td-definition-col { position: relative; padding: 20px 30px; }
.popover-content ul { margin-left: 0; margin-bottom: 0; }
.popover-content ul li { list-style: none; padding-bottom: 10px; }
.popover-content ul li:last-child { padding-bottom: 0; }
.popover-content ul li a { color: #333 !important; }
.popover-content ul li a:hover { color: #22b1d1 !important; }

#customPopover {
  display: none;
  position: absolute;
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  color: #333;
  font-weight: 700;
  width: 180px;
  text-transform: initial;
  cursor: pointer;
}

/* =========================
   Lang tabs
========================= */
.lang { display: flex; align-items: center; gap: 40px; margin-bottom: 20px; }
.lang p { margin-bottom: 0; color: #81bdcc; font-weight: bold; }
.lang ul { display: flex; list-style: none; gap: 40px; align-items: center; margin: 0; }

.lang ul li {
  padding: 10px 30px;
  color: rgba(32, 88, 103);
  border: 2px solid #81bdcc;
  cursor: pointer;
  border-radius: 4px;
}

.lang ul li.active { background: #22b1d1; color: #fff; border-color: #22b1d1; }

/* =========================
   Transliteration
========================= */
.transliteration-container {
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
  flex-wrap: wrap;
  margin: 0 auto 10px auto;
  gap: 1em;
  font-size: 26px;
}

.transliteration-descrip { font-weight: bold; margin-bottom: 10px; }

.transliteration-container .en {
  font-size: 26px;
  font-family: "Gentium Plus", "Lora", serif;
}

/* =========================
   jQuery UI autocomplete
========================= */
.ui-autocomplete-loading {
  background-image: url("https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/images/ui-anim_basic_16x16.gif");
  background-repeat: no-repeat;
  background-position: right center;
  padding-right: 20px;
}

.ui-menu .ui-menu-item { background: #fff; border: 1px solid #f8f8f8; }
.ui-menu .ui-menu-item:hover { background: #667486 !important; }
.ui-menu .ui-menu-item-wrapper { background: #f8f8f8; border-bottom: 1px solid #b1bfd1 !important; }
.ui-menu .ui-menu-item-wrapper:hover { background: #667486 !important; color: #fff !important; border: none; border-top: 1px solid #b1bfd1 !important; }
.ui-widget.ui-widget-content { margin-top: 35px !important; border: 1px solid #b1bfd1 !important; }
li.ui-menu-item:last-child .ui-menu-item-wrapper { border-bottom: none !important; }
li.ui-menu-item { border: none !important; }

/* =========================
   Result card
========================= */
.result-card { background: rgba(9, 43, 64, 1); padding: 40px 0; display: none; }

.result-card ul {
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 20px;
  max-width: 700px;
  list-style: none;
}

.result-card ul li { border-radius: 12px; overflow: hidden; }
.result-card ul li figure { position: relative; height: 220px; border-radius: 12px; }

.result-card ul li figure::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: url(/docs/IIIT-Square.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

.result-card ul li:nth-child(2) figure:before { transform: rotate(180deg); }
.result-card ul li:nth-child(3) figure:before { transform: rotate(270deg); }
.result-card ul li img { border-radius: 8px; overflow: hidden; }

.result-card ul li h3 {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: #c5c9ce;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 24px;
}

.result-card ul li h3:after {
  content: "";
  display: flex;
  background: #22b1d1;
  width: 60px; height: 5px;
  justify-content: center;
  align-items: center;
  margin: 10px auto 0 auto;
}

/* =========================
   Chips
========================= */
.chip-wrap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.chip-wrap br { display: none; }

.chip-wrap .chip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  text-align: center;
  white-space: normal;
  line-height: 1.2;
  border-radius: 999px;
  border: 1px solid #22b1d1;
  background: #fff;
  font-weight: 500;
  box-shadow: 0 5px 20px rgba(94, 122, 193, 0.14);
}

/* =========================
   Misc
========================= */
.arabic-input { direction: rtl; }

.clear-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer !important;
  right: -5px;
  color: #22b1d1;
}

/* =========================
   Two-column wrapper fix
========================= */
#main-content .two-column-wrapper { display: block !important; }
#main-content .two-column-wrapper .column { padding: 0 !important; flex: unset !important; }

body.page-template-glossary-latest #main-content a { color: #22b1d1; transition: all 0.5s; }
body.page-template-glossary-latest .wpb_text_column p { color: #333; font-size: 18px; text-align: justify; }
body.page-template-glossary-latest .wpb_text_column p:has(+ ul) { margin-bottom: 0; }
body.page-template-glossary-latest .wpb_text_column ul { padding-left: 20px; margin: 40px 0; }
body.page-template-glossary-latest .wpb_text_column ul.flex { padding-left: 0; }
body.page-template-glossary-latest .wpb_text_column ul li { font-size: 18px; color: #333; margin-bottom: 20px; }
body.page-template-glossary-latest .wpb_text_column p + ul { margin-top: 40px; margin-bottom: 40px; }
body.page-template-glossary-latest .wpb_text_column ul + h4 { margin-top: 40px; }
body.page-template-glossary-latest .wpb_text_column p + h4 { margin-top: 40px; }
body.page-template-glossary-latest .wpb_text_column h4 { margin-bottom: 40px; }

/* =========================
   Pages with sidebar — flush container
========================= */
body.page-template-glossary-update #main-content.container,
body.page-template-glossary-latest #main-content.container {
  padding: 60px 0 !important;
  min-height: unset !important;
}

/* =========================================================
   STICKY SIDEBAR — overflow:visible on every ancestor
========================================================= */
#main-content.container,
#search-container,
#itemDetails,
#searchDetails,
.two-column-wrapper,
.column,
#searchDetails section.wpb_row,
#searchDetails section.wpb_row > .wpb_column.vc_col-sm-12,
#searchDetails section.wpb_row > .wpb_column.vc_col-sm-12 > .vc_column-inner,
#searchDetails section.wpb_row > .wpb_column.vc_col-sm-12 > .vc_column-inner > .wpb_wrapper,
#searchDetails .vc_row.vc_inner {
  overflow: visible !important;
}

/* Neutralise outer sm-12 wrapper (variant A) */
#searchDetails section.wpb_row > .wpb_column.vc_col-sm-12 {
  padding: 0 !important;
  width: 100% !important;
}

#searchDetails section.wpb_row > .wpb_column.vc_col-sm-12 > .vc_column-inner {
  padding: 0 !important;
}

/* =========================================================
   Flex row — both variants
   Variant A: section.wpb_row > vc_col-sm-12 > vc_row.vc_inner
   Variant B: section.wpb_row > vc_col-sm-3 + vc_col-sm-9 (direct)
========================================================= */
#searchDetails .vc_row.vc_inner,
#searchDetails section.wpb_row {
  display: flex !important;
  align-items: flex-start !important;
  flex-wrap: nowrap !important;
  margin: 0 !important;
  width: 100% !important;
}

/* =========================================================
   Sticky sidebar columns — all variants
========================================================= */
#searchDetails .vc_row.vc_inner > .wpb_column.vc_col-sm-4,
#searchDetails .vc_row.vc_inner > .wpb_column.vc_col-sm-3,
#searchDetails section.wpb_row > .wpb_column.vc_col-sm-4,
#searchDetails section.wpb_row > .wpb_column.vc_col-sm-3 {
  flex: 0 0 280px !important;
  width: 280px !important;
  max-width: 280px !important;
  padding: 0 !important;
  position: sticky !important;
  top: var(--gh-h) !important;
  height: calc(100vh - var(--gh-h)) !important;
  align-self: flex-start !important;
  overflow-y: auto !important;
  scrollbar-width: none !important;
  background: #faf9f6 !important;
}

#searchDetails .vc_row.vc_inner > .wpb_column.vc_col-sm-4::-webkit-scrollbar,
#searchDetails .vc_row.vc_inner > .wpb_column.vc_col-sm-3::-webkit-scrollbar,
#searchDetails section.wpb_row > .wpb_column.vc_col-sm-4::-webkit-scrollbar,
#searchDetails section.wpb_row > .wpb_column.vc_col-sm-3::-webkit-scrollbar { display: none; }

#searchDetails .vc_row.vc_inner > .wpb_column.vc_col-sm-4 .vc_column-inner,
#searchDetails .vc_row.vc_inner > .wpb_column.vc_col-sm-3 .vc_column-inner,
#searchDetails section.wpb_row > .wpb_column.vc_col-sm-4 .vc_column-inner,
#searchDetails section.wpb_row > .wpb_column.vc_col-sm-3 .vc_column-inner {
  padding: 0 !important;
  background: #faf9f6 !important;
  min-height: 100% !important;
}

#searchDetails .vc_row.vc_inner > .wpb_column.vc_col-sm-4 .wpb_wrapper,
#searchDetails .vc_row.vc_inner > .wpb_column.vc_col-sm-3 .wpb_wrapper,
#searchDetails section.wpb_row > .wpb_column.vc_col-sm-4 .wpb_wrapper,
#searchDetails section.wpb_row > .wpb_column.vc_col-sm-3 .wpb_wrapper {
  padding: 0 !important;
  background: #faf9f6 !important;
  min-height: 100% !important;
}

/* =========================================================
   Content columns — all variants
========================================================= */
#searchDetails .vc_row.vc_inner > .wpb_column.vc_col-sm-8,
#searchDetails .vc_row.vc_inner > .wpb_column.vc_col-sm-9,
#searchDetails section.wpb_row > .wpb_column.vc_col-sm-8,
#searchDetails section.wpb_row > .wpb_column.vc_col-sm-9 {
  flex: 1 !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  padding: 0 !important;
}

#searchDetails .vc_row.vc_inner > .wpb_column.vc_col-sm-8 .vc_column-inner,
#searchDetails .vc_row.vc_inner > .wpb_column.vc_col-sm-9 .vc_column-inner,
#searchDetails section.wpb_row > .wpb_column.vc_col-sm-8 .vc_column-inner,
#searchDetails section.wpb_row > .wpb_column.vc_col-sm-9 .vc_column-inner { padding: 0 !important; }

#searchDetails .vc_row.vc_inner > .wpb_column.vc_col-sm-8 .wpb_text_column,
#searchDetails .vc_row.vc_inner > .wpb_column.vc_col-sm-9 .wpb_text_column,
#searchDetails section.wpb_row > .wpb_column.vc_col-sm-8 .wpb_text_column,
#searchDetails section.wpb_row > .wpb_column.vc_col-sm-9 .wpb_text_column { padding: 0 48px; }

/* =========================================================
   Sidebar — Premium Nav
========================================================= */
.about-menu-container {
  width: 100% !important;
  min-height: 100%;
  background: #faf9f6;
  border-right: 1px solid #e2ddd4;
}

.about-menu-sticky {
  position: relative !important;
  top: auto !important;
  padding: 0;
}

.about-menu-container .wpb_raw_html {
  padding-bottom: 0 !important;
  height: auto !important;
}

/* Parent heading */
.about-menu-parent {
  padding: 20px 20px 16px;
  border-bottom: 1px solid #e2ddd4;
  background: #f5f2ec;
}

.about-menu-parent__eyebrow { display: none !important; }

.about-menu-parent__link {
  display: block;
  font-family: 'Lora', serif;
  font-size: 18px;
  font-weight: 700;
  color: #1a1714 !important;
  text-decoration: none !important;
  line-height: 1.2;
  transition: color 0.15s ease;
}

.about-menu-parent__link:hover { color: #22b1d1 !important; }

/* Guide Nav */
.imes-about-nav { background: transparent; border: none; box-shadow: none; padding: 0; }
.imes-about-nav .about-title { display: none !important; }

.imes-about-nav .about-menu {
  list-style: none !important;
  margin: 4px 0 8px !important;
  padding: 0 !important;
}

.imes-about-nav .about-menu > li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  position: relative;
}

.imes-about-nav .about-menu > li + li {
  border-top: 1px solid rgba(226, 221, 212, 0.5);
}

.imes-about-nav .about-menu > li > a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  color: #7a7570 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  font-family: 'Lora', serif !important;
  padding: 7px 18px !important;
  text-decoration: none !important;
  line-height: 1.3;
  border-left: 2px solid transparent;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.imes-about-nav .about-menu > li > a::before {
  content: "" !important;
  width: 3px !important;
  height: 3px !important;
  min-width: 3px !important;
  border-radius: 50%;
  background: #c8c3bc;
  flex-shrink: 0;
  transition: background 0.15s ease, transform 0.15s ease;
  display: inline-block !important;
}

.imes-about-nav .about-menu > li > a::after { display: none !important; }

.imes-about-nav .about-menu > li > a:hover {
  color: #1a1714 !important;
  background: #f0ede8;
  border-left-color: #c8e8ef;
}

.imes-about-nav .about-menu > li > a:hover::before {
  background: #22b1d1;
  transform: scale(1.5);
}

.imes-about-nav .about-menu > li > a.active {
  color: #0d6e82 !important;
  font-weight: 600 !important;
  background: #eaf6f9;
  border-left-color: #22b1d1;
}

.imes-about-nav .about-menu > li > a.active::before {
  background: #22b1d1;
  width: 4px !important;
  height: 4px !important;
  min-width: 4px !important;
  transform: scale(1.2);
}

/* Submenu */
.imes-about-nav .about-menu .submenu {
  list-style: none !important;
  margin: 0 0 2px 0 !important;
  padding: 0 0 4px 0 !important;
  background: #f0ede8;
  border-top: 1px solid #e8e4dc;
  border-bottom: 1px solid #e8e4dc;
}

.imes-about-nav .about-menu .submenu li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.imes-about-nav .about-menu .submenu li a {
  display: flex !important;
  align-items: center;
  gap: 8px;
  color: #a09a93 !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  font-family: sans-serif !important;
  padding: 5px 18px 5px 34px !important;
  text-decoration: none !important;
  line-height: 1.4;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}

.imes-about-nav .about-menu .submenu li a::before {
  content: "" !important;
  display: inline-block !important;
  width: 10px;
  min-width: 10px;
  height: 1px;
  background: #d4cfc8;
  flex-shrink: 0;
  transition: background 0.15s ease, width 0.15s ease, min-width 0.15s ease;
}

.imes-about-nav .about-menu .submenu li a::after { display: none !important; }
.imes-about-nav .about-menu .submenu li a:hover { color: #555 !important; }
.imes-about-nav .about-menu .submenu li a:hover::before { background: #22b1d1; width: 14px; min-width: 14px; }
.imes-about-nav .about-menu .submenu li a.active { color: #22b1d1 !important; font-weight: 600 !important; }
.imes-about-nav .about-menu .submenu li a.active::before { background: #22b1d1; width: 14px; min-width: 14px; }

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 965px) {

  body.page-template-glossary-update,
  body.page-template-glossary-latest { padding-top: var(--gh-h-m); overflow-x: hidden; }

  body.page-template-glossary-latest #main-content.container { padding: 0 !important; }

  .cards ul {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, 1fr);
    margin: 10px;
  }

  #search-container { gap: 0; margin-top: 40px; flex-direction: column; }
  .search-input-container { min-width: unset; width: 100%; }
  #search { width: 100%; }

  /* Stack all row variants vertically */
  #searchDetails .vc_row.vc_inner,
  #searchDetails section.wpb_row {
    flex-direction: column !important;
  }

  /* Sidebar — all variants — full width static */
  #searchDetails .vc_row.vc_inner > .wpb_column.vc_col-sm-4,
  #searchDetails .vc_row.vc_inner > .wpb_column.vc_col-sm-3,
  #searchDetails section.wpb_row > .wpb_column.vc_col-sm-4,
  #searchDetails section.wpb_row > .wpb_column.vc_col-sm-3 {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: unset !important;
    height: auto !important;
    overflow-y: visible !important;
    border-right: none !important;
    border-bottom: 1px solid #e2ddd4;
    background: #f5f2ec !important;
  }

  #searchDetails .vc_row.vc_inner > .wpb_column.vc_col-sm-4 .vc_column-inner,
  #searchDetails .vc_row.vc_inner > .wpb_column.vc_col-sm-3 .vc_column-inner,
  #searchDetails section.wpb_row > .wpb_column.vc_col-sm-4 .vc_column-inner,
  #searchDetails section.wpb_row > .wpb_column.vc_col-sm-3 .vc_column-inner,
  #searchDetails .vc_row.vc_inner > .wpb_column.vc_col-sm-4 .wpb_wrapper,
  #searchDetails .vc_row.vc_inner > .wpb_column.vc_col-sm-3 .wpb_wrapper,
  #searchDetails section.wpb_row > .wpb_column.vc_col-sm-4 .wpb_wrapper,
  #searchDetails section.wpb_row > .wpb_column.vc_col-sm-3 .wpb_wrapper {
    background: #f5f2ec !important;
    min-height: unset !important;
  }

  /* Content — all variants — full width */
  #searchDetails .vc_row.vc_inner > .wpb_column.vc_col-sm-8,
  #searchDetails .vc_row.vc_inner > .wpb_column.vc_col-sm-9,
  #searchDetails section.wpb_row > .wpb_column.vc_col-sm-8,
  #searchDetails section.wpb_row > .wpb_column.vc_col-sm-9 {
    width: 100% !important;
    max-width: 100% !important;
    flex: unset !important;
  }

  #searchDetails .vc_row.vc_inner > .wpb_column.vc_col-sm-8 .wpb_text_column,
  #searchDetails .vc_row.vc_inner > .wpb_column.vc_col-sm-9 .wpb_text_column,
  #searchDetails section.wpb_row > .wpb_column.vc_col-sm-8 .wpb_text_column,
  #searchDetails section.wpb_row > .wpb_column.vc_col-sm-9 .wpb_text_column { padding: 24px 18px; }

  /* Parent heading compact */
  .about-menu-parent { padding: 14px 16px 12px; }

  /* Nav becomes horizontal pill chips */
  .imes-about-nav .about-menu {
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 14px 14px !important;
    margin: 0 !important;
  }

  .imes-about-nav .about-menu > li { border-top: none !important; }

  .imes-about-nav .about-menu > li > a {
    display: inline-flex !important;
    padding: 5px 13px !important;
    border-radius: 20px;
    font-size: 12.5px !important;
    border: 1px solid rgba(34, 177, 209, 0.2) !important;
    border-left: 1px solid rgba(34, 177, 209, 0.2) !important;
    background: transparent;
    color: #6b7280 !important;
  }

  .imes-about-nav .about-menu > li > a::before { display: none !important; }
  .imes-about-nav .about-menu > li > a::after  { display: none !important; }

  .imes-about-nav .about-menu > li > a:hover,
  .imes-about-nav .about-menu > li > a.active {
    background: rgba(34, 177, 209, 0.07) !important;
    border-color: #22b1d1 !important;
    color: #22b1d1 !important;
    font-weight: 500 !important;
  }

  .imes-about-nav .about-menu .submenu { display: none !important; }
}

@media only screen and (max-width: 964px) and (min-width: 768px) {
  #search-container { gap: 0; margin: 40px; }
  #searchDetails .vc_row.vc_inner > .wpb_column.vc_col-sm-8 .wpb_text_column,
  #searchDetails .vc_row.vc_inner > .wpb_column.vc_col-sm-9 .wpb_text_column,
  #searchDetails section.wpb_row > .wpb_column.vc_col-sm-8 .wpb_text_column,
  #searchDetails section.wpb_row > .wpb_column.vc_col-sm-9 .wpb_text_column { padding: 32px 28px; }
}

@media (max-width: 480px) {
  header .logo h2 a { font-size: 14px; }
  .cards ul { margin: 20px; }
  footer .copyright { text-align: center; }
}

@media (max-width: 1800px) {
  .custom-popover { right: 0; }
}