/* Estilo global */
body {
  font-family: 'Itim', cursive !important;
  scroll-behavior: smooth;
  font-size: 1rem;
}

html {
  font-size: 100%; /* valor base */
}

/* Reset básico */
:root {
  font-size: 100%;
}

body {
  font-size: 1rem;
}

/* Estilização dos card dos concursos */
.card {
  background-color: #f8f9fa;
  border: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
  border-radius: 12px;
}

.card:hover {
  transform: translateY(-5px);
}

.card-img-top {
  height: 180px;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

/* Estilização dos anúncios */
.nome-instituicao {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 0;
}

.anuncio-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
  border-radius: 10px;
  overflow: hidden;
}

.anuncio-card:hover {
  transform: scale(1.02);
}

.anuncio-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Estilização da setinha para poder ver o vídeo do Nathan */
.rotate-icon {
  display: inline-block;
  transition: transform 0.3s ease-in-out;
}

.collapsing + .rotate-icon,
.collapse.show + .rotate-icon {
  transform: rotate(180deg);
}

/* Estilizando a barra de rolagem horizontal (compatível com WebKit) */
.scrollable-element {
  overflow-x: auto;
  white-space: nowrap;
}

/* Barra de rolagem personalizada para Chrome, Edge e Safari */
.scrollable-element::-webkit-scrollbar {
  height: 8px; /* altura para barra horizontal */
}

.scrollable-element::-webkit-scrollbar-track {
  background: #f0f0f0; /* cor de fundo */
}

.scrollable-element::-webkit-scrollbar-thumb {
  background-color: #aaa; /* cor da “alça” */
  border-radius: 4px;
}

/* Firefox vai usar a barra padrão, sem erro */

/* Responsividade cards*/
@media (max-width: 576px) {
  .card-img-top,
  .anuncio-card img {
    height: 140px;
  }

  .card {
    margin-bottom: 1rem;
  }
}