@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;700&amp;display=swap");

* {
  font-family: "Barlow", sans-serif;
}

/* Other styles go here */

:root {
  --base-900-text: #2a394e;
  --base-600: #5d6775;
  --background-base-light1: #e8ebfa;
  --background-base: #3f5bd9;
  --accent-primary: #3f5bd9;
  --base-base-300-seperator: #e0e0ec;
  --background-background_secondary: #f4f6fb;
  --background-white: #fff;
  --basetext-subheading: #777d87;
  --base-400-placeholder: #bbbdbf;
  --base-base-100-bg: #f9fbfe;
  --content-content_primary: #181f29;
}

.financial-wiki-main {
  background: var(--base-base-100-bg);
  width: 100%;
}

.financial-wiki-container {
  display: flex;
  flex-direction: column;
  width: 95%;
  margin: auto auto;
}

.header-section {
  border-radius: 4px;
  display: flex;
  gap: 2px;
  margin-top: 2rem;
}
.header-section a {
  text-decoration: none;
}

.home-link,
.wiki-link {
  color: var(--accent-primary);
  align-self: center;
  white-space: nowrap;
  margin: auto 0;
  font: 400 14px/140% "Barlow";
}

.wiki-link {
  color: var(--basetext-subheading);
  flex-grow: 1;
  white-space: nowrap;
}

.wiki-title {
  color: var(--base-900-text);
  align-self: start;
  margin-top: 24px;
  font: 600 32px/140% "Barlow";
}

.search-in-wiki {
  border-radius: var(--corner-radius-shape-corner_sm, 8px);
  border: 1px solid var(--base-base-300-seperator);
  background-color: #fff;
  display: flex;
  margin-top: 24px;
  flex-direction: column;
  justify-content: center;
  padding: 12px;
  position: relative;
}

.search-in-wiki-row {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 20px;
}

.search-item {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.item-description {
  overflow: hidden;
  color: var(--base-400-placeholder);
  text-overflow: ellipsis;
  white-space: nowrap;
  align-self: center;
  flex-grow: 1;
  margin: auto 0;
  font: 500 14px/140% "Barlow";
  text-align: center;
}

.tending-terms-title {
  color: var(--base-900-text);
  margin-top: 24px;
  width: 100%;
  font: 500 16px/140% "Barlow";
}

.category-section {
  display: flex;
  margin-top: 24px;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
}

.category-item {
  color: var(--basetext-subheading);
  text-align: center;
  white-space: nowrap;
  justify-content: center;
  border-radius: 4px;
  /*   border: 1px solid #e0e0ec;
 */
  background-color: #fff;
  padding: 6px 20px;
  font: 600 14px/140% "Barlow";
  text-decoration: none;
  cursor: pointer;
}

.category-item.cat-active,
.category-item.cat-active .more-link,
.category-item.cat-active .more-arrow {
  background-color: var(--accent-primary) !important;
  color: var(--background-background_secondary) !important;
  text-align: center;
  stroke-width: 1.5px;
  stroke: #fff;
}

.category-item .more-arrow {
  stroke: var(--basetext-subheading);
}

.more-section {
  justify-content: space-between;
  border-radius: 4px;
  display: flex;
  gap: 16px;
  padding: 6px 22px;
  text-align: center;
  white-space: nowrap;
  justify-content: center;
  border-radius: 4px;
  border: 1px solid #e0e0ec;
  background-color: var(--background-white);
  flex-grow: 1;
  padding: 6px 20px;
  font: 600 14px/140% "Barlow";
  align-items: center;
  position: relative;
  flex: 0 0 auto;
  color: var(--basetext-subheading);
}

.more-link {
  text-align: center;
  font: 600 14px/140% "Barlow";
}

.category-item:hover,
.more-section:hover .more-link,
.more-section:hover .more-arrow {
  background-color: var(--accent-primary);
  color: var(--background-background_secondary);
  text-align: center;
  stroke-width: 1.5px;
  stroke: var(--background-white);
  transition: background-color 0.3s ease;
}

/*indexing section*/
.index-section {
  display: flex;
  margin-top: 24px;
  /* padding: 0 6px 50px; */
  gap: 18px 18px;
  flex-wrap: wrap;
  width: 100%;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: wrap;
  justify-content: center;
}

.index-item {
  color: var(--basetext-subheading);
  align-self: start;
  font: 400 18px/150% "Barlow";
}

.alpha-active-container {
  height: 37px;
  width: 14px;
  box-sizing: border-box;
  text-align: center;
  cursor: pointer;
}

.selected-underline {
  background-color: #3f5bd9;
  margin-top: 10px;
  height: 3px;
  display: none;
}

.alpha-active-container a,
.more-categories a {
  text-decoration: none;
}

.alpha-active-container:hover,
.alpha-active-container.active {
  border-bottom: 5px solid #3f5bd9;
}

.alpha-active-container.active .index-item,
.alpha-active-container.active .selected-underline {
  display: block;
  color: var(--accent-primary);
  white-space: nowrap;
  font-weight: 600;
  /*   font: 600 18px/150% "Barlow"; */
  transition: background-color 0.3s ease;
}

.alpha-active-container:active .selected-underline {
  display: block !important;
  color: var(--accent-primary);
  white-space: nowrap;
  font: 600 18px/150% "Barlow";
}

@media (min-width: 992px) {
  .financial-wiki-container {
    align-items: flex-start;
    max-width: 1140px;
  }

  .header-section {
    justify-content: center;
    align-self: start;
  }

  .wiki-title {
    font: 600 48px/150% "Barlow";
    margin-top: 10px;
  }

  .search-in-wiki {
    border-radius: 4px;
    align-self: start;
    display: flex;
    margin-top: 30px;
    width: 558px;
    max-width: 100%;
    padding: 16px 17px;
  }

  .search-item {
    gap: 8px;
  }

  .category-section {
    align-self: stretch;
    margin-top: 30px;
    gap: 16px;
    flex: 0 0 auto !important;
  }

  .category-item {
    padding: 10px 20px;
    flex-grow: 1;
    flex: 0 0 auto;
  }
  .more-categories .category-item {
    text-align: left;
  }
  .more-categories .category-item:hover,
  .more-categories .category-item:active {
    background-color: #e8ebfa !important;
    color: var(--basetext-subheading);
    text-align: left;
  }
  .more-categories .category-item:active {
    text-align: left;
  }
  .category-section:nth-child(1) {
    aspect-ratio: 1.75;
    flex-grow: unset !important;
  }

  .index-section {
    margin-top: 30px;
    gap: 18px;
    padding: 0 20px;
    justify-content: unset;
  }
}
/*search dropdown css*/

.search-dropdown {
  scrollbar-width: thin;
  scrollbar-color: #acb2bd var(--background-primary_primary, #fff);
  overflow-y: unset;
}

.search-dropdown::-webkit-scrollbar,
.more-categories::-webkit-scrollbar {
  width: 4px;
  height: 52px;
}

.search-dropdown::-webkit-scrollbar-thumb,
.more-categories::-webkit-scrollbar-thumb {
  background-color: #acb2bd;
  border-radius: 12px;
}

.search-dropdown::-webkit-scrollbar-track,
.more-categories::-webkit-scrollbar-track {
  background-color: var(--background-primary_primary, #fff);
}
.search-dropdown {
  align-items: start;
  border-radius: var(--corner-radius-shape-corner_sm, 8px);
  box-shadow: 0px 4px 16px 0px rgba(24, 31, 41, 0.12);
  background-color: var(--background-white);
  display: flex;
  width: 100%;
  flex-direction: column;
  padding: 16px;
  position: absolute;
  box-sizing: border-box;
  left: 0;
  top: 100%;
  z-index: 100;
  display: none;
}

.search-items {
  color: var(--content-content_primary);
  letter-spacing: 0.1px;
  white-space: nowrap;
  font: 400 14px/114% "Barlow";
  /*   margin-top: 24px;
 */
  padding: 8px 12px;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}

.search-items > a{
  color: initial;
  text-decoration: none;
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
}

.search-items:hover {
  background-color: #e8ebfa;
}

.search-close {
  display: none;
}

.search-input {
  outline: none;
  width: 100%;
  border: none !important;
  margin: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  height: unset !important;
  outline: none !important;
}
.category-more-main {
  position: relative;
  z-index: 5;
}

.more-tags {
  position: fixed;
  width: 100%;
  margin: auto;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 20px 20px 0px 0px;
  background-color: var(--background-white);
  display: flex;
  overflow-y: unset;
  display: none;
}

.more-header {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 24px;
  box-sizing: border-box;
}

.more-divider {
  display: flex;
  width: 360px;
  height: 1px;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  background-color: #e8ebf1;
}

.more-text {
  color: var(--accent-primary);
  text-align: center;
  font: 600 18px/150% "Barlow";
}

.more-categories {
  overflow-y: scroll;
  max-height: 266px;
  width: 100%;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
}

.category-list-search {
  color: var(--basetext-subheading);
  white-space: nowrap;
  font: 600 14px/140% "Barlow";
  padding: 12px;
  box-sizing: border-box;
  text-align: left;
}

.category-list-search.active,
.category-list-search:hover {
  color: var(--basetext-subheading);
  background-color: #e8ebfa;
  align-self: stretch;
  box-sizing: border-box;
  cursor: pointer;
}
/*.download-app-container .banner-section{
	width: 250px;
	height: 100%;
}
.download-app-container .banner-section img{
width: 100%;
height: 100%;
object-fit: contain;
}*/

@media (min-width: 992px) {
  .more-tags {
    align-items: flex-start;
    border-radius: var(--corner-radius-shape-corner_sm, 8px);
    box-shadow: 0px 4px 16px 0px rgba(24, 31, 41, 0.12);
    background-color: var(--background-primary_primary, #fff);
    display: flex;
    max-width: 207px;
    min-width: 207px;
    flex-direction: column;
    padding: 16px;
    box-sizing: border-box;
    max-height: 308px;
    position: absolute;
    bottom: unset;
    left: unset;
    transform: translate(-50%, 2%);
    display: none;
  }

  .more-categories .category-list-search {
    text-align: unset;
  }

  .overlay {
    display: none;
  }
}
@media screen and (max-width: 600px){
  .category-section{
    flex-wrap: nowrap;
    overflow-y: hidden;
    overflow-x: auto;
  }
  .index-section{
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-y: hidden;
    overflow-x: auto;
  }

}
@media (min-width: 992px) {
  .mobile-only {
    display: none;
  }

  .desktop-only {
  }
}

@media (max-width: 991px) {
  .desktop-only {
    display: none;
  }

  .mobile-only {
  }
}
@media (max-width: 991px) {
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1;
  }
}
