/* Permitir rolagem horizontal nas abas de navegação com o mouse */
.md-tabs__list {
  overflow-x: auto !important;
  white-space: nowrap;
  scrollbar-width: thin;
}
.md-tabs__item {
  display: inline-block;
  float: none;
}

/* Suporte ao scroll do mouse nas abas */
.md-tabs__list {
  -webkit-overflow-scrolling: touch;
}

/* Opcional: esconder barra de rolagem visual */
.md-tabs__list::-webkit-scrollbar {
  height: 6px;
  background: transparent;
}
.md-tabs__list::-webkit-scrollbar-thumb {
  background: #22336b;
  border-radius: 4px;
}
.social-icons .custom-icon {
  width: 1.5rem;
  height: 1.5rem;
  filter: invert(100%);
  transition: transform 0.2s ease;
}

/* ===== About Page Layout ===== */
.about-container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
  margin-top: 20px;
}

.about-text {
  flex: 1;
  min-width: 0;
}

.about-text h3 {
  color: #5fa8ff;
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.about-text h4 {
  color: #5fa8ff;
  font-size: 1.3rem;
  margin-top: 5px;
  margin-bottom: 10px;
}

.about-text hr {
  border: none;
  border-top: 1px solid #22336b;
  margin: 8px 0;
}

.about-text p {
  color: #b3c7e6;
  line-height: 1.7;
  margin-bottom: 12px;
}

.about-image {
  flex-shrink: 0;
  width: 280px;
}

.about-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive: empilhar em telas menores */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column-reverse;
    align-items: center;
  }
  
  .about-image {
    width: 200px;
    margin-bottom: 20px;
  }
  
  .about-text {
    text-align: center;
  }
}

figure {
  display: flex;
  justify-content: center;
}
figure img {
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}


body, .md-typeset {
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
  background: #10172a;
  color: #e3eafc;
}

.md-header, .md-footer {
  background: #18224a !important;
  box-shadow: 0 1px 8px rgba(0,0,0,0.18);
  border-bottom: 1px solid #22336b;
}

.md-header__option {
  float: right !important;
  margin-left: 0.5rem !important;
}


.md-typeset h1, .md-typeset h2, .md-typeset h3, .md-typeset h4 {
  font-weight: 700;
  color: #5fa8ff;
  letter-spacing: 0.01em;
}


.md-typeset code, .md-typeset pre {
  background: #1a223d;
  border-radius: 6px;
  font-size: 0.97em;
  color: #8ecaff;
}


.nt-card {
  background: #162044;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.18);
  padding: 20px;
  margin-bottom: 1.5rem;
  transition: box-shadow 0.2s, background 0.2s;
  border: 1px solid #22336b;
}
.nt-card:hover {
  box-shadow: 0 6px 24px 0 rgba(95,168,255,0.18);
  background: #1a2957;
}
.nt-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 8px 0 12px 0;
  color: #5fa8ff;
}
.nt-card-content {
  padding: .4rem .8rem .8rem .8rem;
}
.nt-card-text {
  font-size: 16px;
  color: #b3c7e6;
  padding: 0;
  margin: 0;
}
.nt-card .nt-card-image {
  text-align: center;
  border-radius: 10px;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 120px;
}
.nt-card .nt-card-image img {
  height: 105px;
  margin-top: 5px;
  border-radius: 10px;
}
.nt-card a:hover,
.nt-card a:focus {
  color: #8ecaff;
}
.nt-card h2 {
  margin: 0;
}

/* Clean up search and header buttons */
#__search ~ .md-header__button,
#__search + .md-header__button,
.md-header__button[for="__search"] {
  display: none !important;
}

@media only screen and (max-width: 600px) {
  .nt-cards.nt-grid {
    grid-template-columns: repeat(1, 1fr) !important;
  }
  .nt-card {
    padding: 12px;
  }
}

.nt-cards {
  &.nt-grid {
    display: grid;
    grid-auto-columns: 1fr;
    gap: 0.5rem;

    max-width: 100vw;
    overflow-x: auto;
    padding: 1px;

    &.cols-1 {
      grid-template-columns: repeat(1, 1fr);
    }

    &.cols-2 {
      grid-template-columns: repeat(2, 1fr);
    }

    &.cols-3 {
      grid-template-columns: repeat(3, 1fr);
    }

    &.cols-4 {
      grid-template-columns: repeat(4, 1fr);
    }

    &.cols-5 {
      grid-template-columns: repeat(5, 1fr);
    }

    &.cols-6 {
      grid-template-columns: repeat(6, 1fr);
    }
  }
}

.nt-card>a {
  color: var(--md-default-fg-color);
}

.nt-card>a>div {
  cursor: pointer;
}

.nt-card {
  padding: 5px;
  margin-bottom: .5rem;
}

.nt-card-title {
  font-size: 1rem;
  font-weight: bold;
  margin: 4px 0 8px 0;
  line-height: 22px;
}

.nt-card-content {
  padding: .4rem .8rem .8rem .8rem;
}

.nt-card-text {
  font-size: 14px;
  padding: 0;
  margin: 0;
}

.nt-card .nt-card-image {
  text-align: center;
  border-radius: 2px;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 120px;
}

.nt-card .nt-card-image.tags img {
  margin-top: 12px
}

.nt-card .nt-card-image img {
  height: 105px;
  margin-top: 5px;
}

.nt-card .nt-card-icon {
  text-align: center;
  padding-top: 12px;
  min-height: 120px;
}

.nt-card .nt-card-icon .icon {
  font-size: 95px;
  line-height: 1;
}

.nt-card a:hover,
.nt-card a:focus {
  color: var(--md-accent-fg-color);
}

.nt-card h2 {
  margin: 0;
}

.nt-card {
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.20), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
}

.nt-card:hover {
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.24), 0 3px 1px -2px rgba(0, 0, 0, 0.30), 0 1px 5px 0 rgba(0, 0, 0, 0.22);
}

@media only screen and (max-width: 400px) {
  .nt-cards.nt-grid {
    grid-template-columns: repeat(1, 1fr) !important;
  }
}

/* ===== Timeline Image Customization ===== */

/* Remover o círculo/dot da timeline quando tem imagem */
.nt-timeline-dot.bigger {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  width: 80px !important;
  height: 80px !important;
  padding: 0 !important;
  overflow: visible !important;
}

/* Estilo da imagem na timeline */
.nt-timeline-dot.bigger img {
  width: 80px !important;
  height: 80px !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
  cursor: pointer !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.nt-timeline-dot.bigger img:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 6px 20px rgba(95, 168, 255, 0.4) !important;
}

/* Ajustar posição do dot na timeline vertical left */
.nt-timeline.vertical.left .nt-timeline-dot.bigger {
  left: -10px !important;
  top: 0 !important;
}

/* Alinhar a data (sub_title) verticalmente com a imagem */
.nt-timeline.vertical.left .nt-timeline-sub-title {
  top: 25px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #5fa8ff !important;
}

/* Ajustar o conteúdo da timeline */
.nt-timeline-item {
  padding-bottom: 25px !important;
  padding-top: 5px !important;
}

/* Título alinhado com o topo da imagem */
.nt-timeline-title {
  margin-top: -5px !important;
  margin-bottom: 8px !important;
  padding-top: 0 !important;
  line-height: 1.3 !important;
}

/* Container do conteúdo */
.nt-timeline-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
  line-height: 1.8 !important;
  border-bottom: 2px dashed #22336b !important;
  padding-bottom: 15px !important;
}

/* Texto do evento em uma linha */
.nt-timeline-content b {
  display: inline !important;
}

/* Estilo dos links na timeline */
.nt-timeline-content a {
  color: #5fa8ff !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.nt-timeline-content a:hover {
  color: #8ecaff !important;
  text-decoration: underline !important;
}

/* Melhor alinhamento vertical do conteúdo com a imagem */
.nt-timeline.vertical.left .nt-timeline-item {
  padding-left: 80px !important;
}

.nt-timeline.vertical.left .nt-timeline-dot.bigger {
  left: -5px !important;
  top: 5px !important;
}

/* ===== Lightbox/Popup Styles ===== */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox-overlay.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}

.lightbox-close:hover {
  color: #5fa8ff;
}

/* Texto de instrução no lightbox */
.lightbox-hint {
  position: absolute;
  bottom: 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

/* ===== Contact Page ===== */
.contact-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}

.contact-container h2 {
  color: #5fa8ff;
  font-size: 2rem;
  margin-bottom: 10px;
}

.contact-container > p {
  color: #b3c7e6;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 25px;
  background: rgba(34, 51, 107, 0.3);
  border: 1px solid #22336b;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-card:hover {
  background: rgba(34, 51, 107, 0.5);
  border-color: #5fa8ff;
  transform: translateX(10px);
}

.contact-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 32px;
  height: 32px;
  fill: #b3c7e6;
  transition: fill 0.3s ease;
}

.contact-card:hover .contact-icon svg {
  fill: #ffffff;
}

/* Cores específicas para cada rede social no hover */
.contact-card:hover .contact-icon.youtube svg {
  fill: #ff0000;
}

.contact-card:hover .contact-icon.medium svg {
  fill: #00ab6c;
}

.contact-card:hover .contact-icon.linkedin svg {
  fill: #0077b5;
}

.contact-card:hover .contact-icon.telegram svg {
  fill: #0088cc;
}

.contact-card:hover .contact-icon.instagram svg {
  fill: #e4405f;
}

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-text strong {
  color: #ffffff;
  font-size: 1.1rem;
}

.contact-text span:last-child {
  color: #b3c7e6;
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .contact-card {
    padding: 15px 20px;
  }
  
  .contact-icon {
    width: 32px;
    height: 32px;
  }
  
  .contact-icon svg {
    width: 26px;
    height: 26px;
  }
}
/* Footer Copyright Centered */
.md-footer-meta__inner {
  justify-content: center !important;
}

.md-copyright {
  width: 100%;
  text-align: center;
}

.md-footer-meta .md-social {
  display: none;
}