/* =========================

   CORES DO TEMA
   ========================= */

:root,
[data-md-color-scheme="default"],
[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #000000;
  --md-primary-fg-color--light: #000000;
  --md-primary-fg-color--dark: #000000;
}

/* =========================
   CABEÇALHO
   ========================= */

.md-header {
  background: #000000 !important;
  background-color: #000000 !important;
  background-image: none !important;
}

.md-header__inner {
  min-height: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  background: #000000 !important;
}

/* Barra das abas */
.md-tabs {
  background: #000000 !important;
  background-color: #000000 !important;
}

/* =========================
   LOGO WH
   ========================= */

.md-header__button.md-logo {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0.25rem 0.5rem;
}

.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  width: auto;
  height: 50px;
  max-height: 50px;
}

/* =========================
   TÍTULO EM IMAGEM
   ========================= */

.md-header__title {
  position: relative;
  display: block !important;

  flex: 1 1 auto;
  min-width: 0;
  height: 54px;
  margin: 0 0.8rem;

  overflow: hidden;
}

/* Esconde o título original do MkDocs */
.md-header__title .md-header__topic,
.md-header__title .md-ellipsis {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Coloca a imagem no lugar do título */
.md-header__title::before {
  content: "";
  position: absolute;

  top: 50%;
  left: 0;
  transform: translateY(-50%);

  width: min(420px, 100%);
  height: 48px;

  background-image: url("/cybersecurity-do-zero/assets/header-title.png");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;

  pointer-events: none;
}

/* Mantém controles e pesquisa à direita */
.md-header__option {
  flex-shrink: 0;
}

/* =========================
   ABAS DE NAVEGAÇÃO
   ========================= */

.md-tabs__link {
  color: #ffffff !important;
  font-weight: 500;
}

.md-tabs__link:hover,
.md-tabs__link--active {
  color: #d4af37 !important;
}

/* =========================
   RESPONSIVIDADE
   ========================= */

@media screen and (max-width: 900px) {
  .md-header__title {
    height: 48px;
    margin: 0 0.4rem;
  }

  .md-header__title::before {
    width: min(280px, 100%);
    height: 38px;
  }

  .md-header__button.md-logo img,
  .md-header__button.md-logo svg {
    height: 44px;
    max-height: 44px;
  }
}

@media screen and (max-width: 600px) {
  .md-header__inner {
    min-height: 58px;
    height: 58px;
  }

  .md-header__button.md-logo img,
  .md-header__button.md-logo svg {
    height: 40px;
    max-height: 40px;
  }

  .md-header__title {
    height: 42px;
    margin: 0 0.2rem;
  }

  .md-header__title::before {
    width: min(190px, 100%);
    height: 30px;
  }
}

@media screen and (max-width: 420px) {
  .md-header__title {
    display: none !important;
  }
}

/* =========================
   CONTEÚDO DO SITE
   ========================= */

.md-typeset img {
  border-radius: 12px;
}

.grid.cards > ul > li {
  border-radius: 14px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.grid.cards > ul > li:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);

}

/* Barra das abas */
.md-tabs {
  background: #000000 !important;
  background-color: #000000 !important;
}

/* =========================
   LOGO WH
   ========================= */

.md-header__button.md-logo {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0.25rem 0.5rem;
}

.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  width: auto;
  height: 50px;
  max-height: 50px;
}

/* =========================
   TÍTULO EM IMAGEM
   ========================= */

.md-header__title {
  position: relative;
  display: block !important;

  flex: 1 1 auto;
  min-width: 0;
  height: 54px;
  margin: 0 0.8rem;

  overflow: hidden;
}

/* Esconde o título original do MkDocs */
.md-header__title .md-header__topic,
.md-header__title .md-ellipsis {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Coloca a imagem no lugar do título */
.md-header__title::before {
  content: "";
  position: absolute;

  top: 50%;
  left: 0;
  transform: translateY(-50%);

  width: min(420px, 100%);
  height: 48px;

  background-image: url("/cybersecurity-do-zero/assets/header-title.png");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;

  pointer-events: none;
}

/* Mantém controles e pesquisa à direita */
.md-header__option {
  flex-shrink: 0;
}

/* =========================
   ABAS DE NAVEGAÇÃO
   ========================= */

.md-tabs__link {
  color: #ffffff !important;
  font-weight: 500;
}

.md-tabs__link:hover,
.md-tabs__link--active {
  color: #d4af37 !important;
}

/* =========================
   RESPONSIVIDADE
   ========================= */

@media screen and (max-width: 900px) {
  .md-header__title {
    height: 48px;
    margin: 0 0.4rem;
  }

  .md-header__title::before {
    width: min(280px, 100%);
    height: 38px;
  }

  .md-header__button.md-logo img,
  .md-header__button.md-logo svg {
    height: 44px;
    max-height: 44px;
  }
}

@media screen and (max-width: 600px) {
  .md-header__inner {
    min-height: 58px;
    height: 58px;
  }

  .md-header__button.md-logo img,
  .md-header__button.md-logo svg {
    height: 40px;
    max-height: 40px;
  }

  .md-header__title {
    height: 42px;
    margin: 0 0.2rem;
  }

  .md-header__title::before {
    width: min(190px, 100%);
    height: 30px;
  }
}

@media screen and (max-width: 420px) {
  .md-header__title {
    display: none !important;
  }
}

/* =========================
   CONTEÚDO DO SITE
   ========================= */

.md-typeset img {
  border-radius: 12px;
}

.grid.cards > ul > li {
  border-radius: 14px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.grid.cards > ul > li:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}