.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{
  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;        /* spacing around text */
  color:#6b7280;         /* soft gray */
  text-decoration:none;
  font-size:18px;
  line-height:1;
  font-weight:500;
  transition:color .2s ease;
}

.mini-nav__link::after{
  content:"";
  position:absolute;
  left:14px;              /* matches horizontal padding */
  right:14px;
  bottom:-10px;           /* adjust to sit below text */
  height:2px;
  background: #22b1d1;
  opacity:0;
  transform: scaleX(0.3);
  transform-origin: center;
  transition: opacity .22s ease, transform .22s ease;
}

/* the vertical bar between items */
.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,.25);
}

/* hover + active */
.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);
}

body.page-template-glossary-latest {
  background: #fff;
}
body.page-template-glossary-latest.page-id-46486,
body.page-template-glossary-latest.page-id-46482 {
  background: #fff;
}
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 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;
}
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%;
}

#main-content.container {
  min-height: unset;
  padding: 60px 0;
}

.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;
  /* Firefox */
}

.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;
  /* Adjust the border style and color as needed */
  padding: 2px;
  /* Add padding for spacing */
}

.checkbox-options {
  border: 1px solid #ccc;
  display: block;
  position: absolute;
  left: 0px;
  background: rgb(255, 255, 255);
  transition: all 0.5s ease-in;
  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;
}

.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: 0px 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;
}

/* Style for the dropdown icon */
.dropdown-icon::after {
  content: "\25BC";
  /* Unicode for a downward-pointing triangle */
  margin-left: 5px;
  /* Add some spacing */
}

/* Hide the checkbox options by default */
.checkbox-options {
  display: none;
}

/* Style the main menu container */
.glossary-nav {
  display: flex;
  justify-content: flex-end;
}

.glossary-nav > ul {
  display: flex;
  margin-right: 40px;
  align-items: center;
  list-style: none;
  grid-gap: 40px;
}

.glossary-nav > ul > li {
  color: rgba(32, 88, 103);
  border: 2px solid #81bdcc;
  padding: 10px 20px;
}

.glossary-menu {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  /* Center align menu items horizontally */
}

/* Style each menu item */
.glossary-menu li {
  margin: 0;
  text-align: center;
  list-style: none;
}

.glossary-menu > li {
  padding: 10px;
}

/* Style the menu item links */
.glossary-menu a {
  display: block;
  padding: 10px 10px;
  /* Adjust padding to your preference */
  text-decoration: none;
  color: #f1f0ec;
  /* Text color */
  text-transform: uppercase;
  transition: color 0.3s ease;
  font-size: 16px;
  /* Smooth color transition */
}

/* Change link color on hover */
.glossary-menu a:hover {
  color: #fff;
  background: #899691;
  /* Change to your desired hover color */
}

/* Style sub-menus (dropdown menus) */
.glossary-menu li ul {
  display: none;
  /* Hide sub-menu by default */
  position: absolute;
  background-color: #fff;
  /* Background color of sub-menu */
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  /* Shadow for sub-menu */
  z-index: 1;
  margin-left: 0;
}

/* Style sub-menu items */
.glossary-menu li:hover ul {
  display: block;
  /* Show sub-menu on hover */
  width: 200px;
  /* Adjust the width as needed */
}

.glossary-menu li ul li {
  width: 100%;
  /* Set sub-menu item width to 100% */
  text-align: left;
}

/* Style sub-menu item links */
.glossary-menu li ul a {
  padding: 10px 15px;
  /* Adjust padding to your preference */
  color: #333;
  /* Text color */
  text-decoration: none;
  display: block;
  transition: color 0.3s ease;
  /* Smooth color transition */
}

#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;
}

.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-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;
}

.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-container {
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
  flex-wrap: wrap;
  margin: 0px 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;
}

.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;
}

.table-bordered {
  background: #fff;
  border-radius: 0;
  box-shadow: 0px 0px 35px 0px rgba(0, 0, 0, 0.07);
  width: 100%;
  margin: 0 auto;
  word-wrap: break-word;
}

.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 td,
    .table th {
        border-top: 1px solid #000000;
    } */

/* Styling for the three-dot menu */
.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;
}

/* Styling for tooltips */
.dot::before {
  content: "Action";
  position: absolute;
  bottom: -20px;
  /* Adjust the distance from the dots */
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
  opacity: 0;
  /* Hide the tooltip by default */
  transition: opacity 0.3s ease-in-out;
}

.dot:hover::before {
  opacity: 1;
  /* Show the tooltip on hover */
}

/* Styling for the custom popover */
.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);
  /* Adjust the positioning */
  left: auto;
  right: -210px;
  top: 40px;
  /* Add z-index if necessary */
  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;
}

.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;
}

/* body.page-child section.banner {
        height: 230px;
    } */

body.page-child section.banner:before {
  background: rgba(9, 43, 64, 0.5);
}

.arabic-input {
  direction: rtl;
}

.clear-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer !important;
  right: -5px;
  color: #22b1d1;
}

.ui-menu .ui-menu-item {
  background: #fff;
  border: 1px solid #f8f8f8;
}

.ui-menu .ui-menu-item:hover {
  background: #f8f8f8;
}

.ui-menu .ui-menu-item-wrapper {
  background: #f8f8f8;
}

.result-card {
  background: rgba(9, 43, 64, 1);
  padding: 40px 0;
  display: none;
}

.result-card ul {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 20px;
  max-width: 700px;
  margin: 0 auto;
  list-style: none;
}

.result-card ul li {
  border-radius: 12px;
  overflow: hidden;
}

/* .result-card ul li figure {
        position: relative;
        background: url(/docs/IIIT-Square.jpg);
        height: 235px;
        background-size: contain;
        background-repeat: no-repeat;
        border-radius: 8px;
        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);
  /* Replace with your image path */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;

  /* Rotate the background image by 45 degrees */
}

.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;
}

.ui-menu .ui-menu-item-wrapper:hover {
  background: #667486 !important;
  color: #fff !important;
  border: none;
  border-top: 1px solid #b1bfd1 !important;
}

.ui-menu .ui-menu-item:hover {
  background: #667486 !important;
}

.ui-widget.ui-widget-content {
  margin-top: 35px !important;
  border: 1px solid #b1bfd1 !important;
}

.ui-menu .ui-menu-item-wrapper {
  border-bottom: 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;
}

.table-bordered td,
.table-bordered th {
  padding: 15px 20px !important;
  /* border-left: 2px solid #17365d; */
  /* border-right: 2px solid #17365d; */
}

.table td,
.table th {
  border-top: 1px solid #000 !important;
}

/* .table-bordered tr th:first-child,
    .table-bordered td:first-child {
        border-right: 2px solid #4bb3ff;
    } */
.table-bordered {
  border: 2px solid #17365d;
  /* overflow: hidden; */
}

.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;
}

p.translation-text,
p.definition-text {
  color: #000;
  /* font-weight: 600; */
  margin-bottom: 5px;
}

p.translation-text + span.more {
  font-weight: 700;
  color: #22b1d1;
}
p.translation-text + span.more:hover {
  cursor: pointer;
}
#searchDetails span.more {
  font-weight: 700;
  color: #22b1d1;
}
#searchDetails span.more:hover {
  cursor: pointer;
}
.about-menu {
  list-style-type: none;
  padding: 0;
}

.about-menu li {
  margin-left: 10px;
}

.about-menu ul {
  list-style-type: disc;
  margin-left: 20px;
}

/* #searchDetails:not(:empty) {
    flex: 1;
    margin-top: 24px;
    max-width: 90%;
} */

.searchDetailsResult {
  border: 2px solid #17365d;
  /* padding: 10px; */
  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;
  /* border-bottom: 1px solid; */
  padding-bottom: 10px;
  /* margin-bottom: 15px; */
  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;
}

#itemDetails {
  flex: 3;
}

#search-container {
  display: flex;
  gap: 30px;
}

.more-results,
.previous-results {
  text-align: center;
  font-weight: bold;
}

li.has-submenu ul.submenu {
  list-style: none;
}

.table thead th {
  background: unset;
}

h6.search-result-text {
  font-weight: 600;
  margin-bottom: 20px;
}

.english-info {
  margin-top: 20px;
}

.translation-text-wrapper {
  display: flex;
  gap: 40px;
}

.source {
  position: relative;
}

.text-primary {
  color: #22b1d1;
}

.definition-text {
  margin-bottom: 0;
}

#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;
}

/* Updated CSS */
.two-column-wrapper {
  display: flex;
}

.column:first-child {
  flex: 1 0 40%;
  /* 25% width for the first column */
}

.column:last-child {
  flex: 1 0 60%;
  /* 75% width for the second column */
}

.column {
  padding: 0 20px;
  /* Adjust spacing between columns */
}
/*#main-content.container {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*}*/
/* End Updated CSS */

.chip-wrap {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* change 4 to 3/5 */
  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; /* allow wrap if needed */
  line-height: 1.2;
  border-radius: 999px;
  border: 1px solid #22b1d1;
  background: #fff;
  font-weight: 500;
  box-shadow: 0px 5px 20px rgba(94, 122, 193, 0.14);
}

@media (max-width: 480px) {
  header .logo h2 a {
    font-size: 16px;
  }
  .cards ul {
    margin: 20px;
  }
  footer .copyright {
    text-align: center;
  }
  #main-content.container {
    padding-top: 10px !important;
  }
  #search-container {
    margin-top: 0px !important;
  }
}
@media (max-width: 768px) {
  #search-container {
    gap: 0;
    margin-top: 40px;
  }
}
@media only screen and (max-width: 964px) and (min-width: 768px) {
  #search-container {
    gap: 0;
    margin: 40px;
  }
}
@media (max-width: 1800px) {
  .custom-popover {
    right: 0;
  }
}

@media screen and (max-width: 965px) {
  #main-content.container {
    padding-top: 40px !important;
  }
}


/* New Glossary Styles */
.cards-wrapper {
    display: flex;
    gap: 30px;
    align-items: stretch;
    width: 100%;
}

/* LEFT SIDE */
.cards-wrapper .cards {
    width: 40%;
}

.cards-wrapper .cards > ul {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cards ul li.caption img {
    height: 140px !important;
    object-position: center !important;
    width: 100%;
}

.cards-wrapper .cards > ul > li.caption {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    float: none !important;
    flex: none !important;
}


/* RIGHT SIDE - VIDEO */
.cards-wrapper .video-wrapper {
    width: 60%;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.cards-wrapper .video-wrapper video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    
}

@media (max-width: 991px) {

    .cards-wrapper {
        flex-direction: column;
    }

    .cards-wrapper .cards,
    .cards-wrapper .video-wrapper {
        width: 100%;
    }

    .cards-wrapper .video-wrapper {
        aspect-ratio: 16 / 9;
    }

    .cards-wrapper .video-wrapper video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 767px) {

    .cards-wrapper .cards > ul {
        grid-template-columns: 1fr;
    }
}
