/* CARDS */
.md-typeset .card-icon-img {
    height: 27px !important;
    width: auto;
	margin-left: 25px;
	float: right;
    margin-left: auto;
    display: inline-block;
}

.md-typeset .grid.cards > ul > li {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.2);    
    border-radius: 0.5rem;    
    transition: border 0.25s, box-shadow 0.25s;
}

.md-typeset .grid.cards > ul > li p:last-of-type {
    margin-top: auto;
}

.md-typeset .grid.cards > ul > li:hover {    
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.15);
}

/* LANGUAGE SELECTOR */
.md-header__option .md-select .md-header__button.md-icon svg {
  display: none; /* Hide the default icon */
}

.md-header__option .md-select .md-header__button.md-icon {
  background: url(../icons/blue-globe-white.svg) no-repeat center center;
  background-size: contain;
  width: 25px;
  height: 25px;
  display: inline-block;
  vertical-align: middle;
  margin: 0 10px 2px 0;
  transition: 0.5s ease;
  border: none;
  padding: 0;
  background-color: transparent;
}

/* SPECIAL HANDLING FOR THE CUSTOM HEADERS */
.md-logo {
  display: none !important;
}

.md-ellipsis {
  margin-left: -11px !important; /* Used to left align 'Specops Support' as logo is hidden */
}

/* HEADER */
.mh-banner {
  background-color: #e1e4ea;
  height: 2rem;
  display: flex;
  align-items: center;
}

.mh-banner .md-grid {
  width: 100%;
}

.mh-banner-message {
    float: left;
    color: #0F4A65;
    font-size: .6rem;
    font-weight: 600;
    line-height: 1.75rem;
    letter-spacing: .025em;
    padding-left: 22px;
}

.mh-banner-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.mh-banner-nav {
  padding-right: 10px;
}

.mh-banner-nav .nav-link {
  font-size: .6rem;
  font-weight: 600;
  color: #0F4A65;
  letter-spacing: 0.025em;
  text-decoration: none;
}

.mh-banner-nav .nav-link:hover {
  color: #1AC0C6;
}

.mh-banner-nav a {
  color: #0F4A65;
  font-size: .6rem;
  font-weight: 500;
  margin-left: 24px;
  text-decoration: none;
}

.mh-banner-nav a:hover {
  color: #1AC0C6;
}

.mh-banner .mh-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-right: 13px;
}

.mh-banner .mh-nav-item a {
  font-size: .6rem;
  font-weight: 400;
  color: #0F4A65;
  letter-spacing: 0.025em;
  text-decoration: none;
}

.mh-banner .mh-nav-item a:hover {
  color: #1AC0C6;
}

/* SPECOPS LOGO */
.mh-header {
  max-height: 100px;
  background-color: #fff;
  padding-left: 22px;
}

.mh-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mh-logo-block {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.mh-logo-block img {
  height: 100px;
  width: auto;
  display: block;
}

/* HEADER MENUS */
.mh-nav-container {
  display: flex;
  align-items: center;
}

.mh-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding-right: 23px;
}

.mh-nav-item {
  position: relative;
}

.nav-link {
  font-weight: 700;
  font-size: .7rem;
  color: #0F4A65;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link:hover {
  color: #1AC0C6;
}

.mh-dd-container {
  display: none;
  position: absolute;
  top: 80%;
  left: 0;
  width: 320px;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  margin-top: 4px;
  padding: 10px 0;
  list-style: none;
  z-index: 1000;
}

.mh-dd-container li a {
  display: block;
  padding: 8px 12px;
  color: #0F4A65;
  text-decoration: none;
  font-size: .6rem;
  line-height: 1.4;
}

.mh-dd-container li a:hover {
  background-color: #f2f2f2;
}

.mh-nav-item:hover .mh-dd-container {
  display: block;
}

.prod_group_title {
  font-weight: 600;
}

.prod_group_desc {
  font-size: .6rem;
  color: #555;
}

/* TABS */
.custom.md-tabs {
	overflow: visible !important; /* To override mkdocs hiding dropdown list */
    background-color: #0F4A65;
    margin-left: 0px;
    min-height: 45px;
    display: flex;
    align-items: center;
	justify-content: center;
    gap: 20px;
}

.custom.md-tabs li ul {
    display: none;
    position: absolute;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 10px;
    margin: 0;
    flex-direction: column;
}

.custom.md-tabs li:hover ul {
    display: flex;
}

.custom.md-tabs li {
    position: relative;
}

.custom.md-tabs li ul li {
    display: block;
    margin: 5px 0;
}

.custom.md-tabs__link {	
    font-weight: 700;
    font-size: .8rem;
    color: #ffffff;	
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
	margin-top: 0; /* To override mkdocs */
	opacity: 1; /* To override mkdocs */
}

.custom.md-tabs__link:hover {
  color: #1AC0C6;
}

.custom.md-tabs__item {
	height: 1.4rem;
}

.md-tabs__list {
	contain: none !important; /* To override mkdocs hiding dropdown list */
	overflow: visible !important; /* To override mkdocs hiding dropdown list */
}

.dropdown {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    padding: 10px 0;
    list-style: none;
}

.dropdown li a {
  display: block;
  padding: 2px 12px;
  color: #0F4A65;
  text-decoration: none;
  font-size: .75rem;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

.dropdown li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: transparent;
  transform: scale(1);
  z-index: -1;
}

.dropdown li a:hover::before {
  background-color: #f2f2f2;
  transform: scale(1.065, 1.3);
}

/* FOOTER */
.custom-footer {
  background: #d7dbe0;
  padding: 2em 0;
  text-align: center;
}

.footer-links {
  margin-bottom: 2em;
}

.footer-links a {
  margin: 0 1em;
  font-weight: 700;
  font-size: .65rem;
  color: #000;
  text-decoration: none;
}

.footer-social a {
  margin: 0 0.5em;
  display: inline-block;
}

.footer-social img {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  background-color: transparent;
  padding: 6px;
}

.footer-meta {
  margin-top: 2em;
  font-size: 0.9em;
  color: #000;
}

/* Hide the top banner and the logo with menu for tablets and phones */
@media (max-width: 76.2344em) {
  .mh-banner, .mh-header, #nav-tabs {
    display: none !important;
  } 
  
  label.md-nav__title {
	  background-color: #ffffff !important;
  }
  
  .md-nav__button.md-logo {
	  display: block !important;
  }
   
}	