:root {
  /* Cores */
  --primary-color: #9100fe;
  --secondary-color: #006699;
  --accent-color: #014c72;
  --link-color: #069;
  --link-hover: #09C;
  --yellow: #FFFF00;
  --orange: #F96;
  --white: #FFF;
  --light-gray: #f0f0f0;
  --medium-gray: #CCC;
  --dark-gray: #666;
  --black: #000;
  --success: #4CAF50;
  --success-hover: #45a049;
  --linkedin: #0077B5;
  --facebook: #3B5998;
  --instagram: #C13584;
  --youtube: #FF0000;
  --heart: #e63946;
  --table-header: #2c3e50;
  --current-lot: #e3f2fd;
  --lot-value: #2e7d32;
}

/* Reset e Base */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  background-color: var(--primary-color);
  padding-bottom: 40px;
}

a {
  text-decoration: none;
  color: var(--link-color);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--link-hover);
}

/* Componentes */
.barra {
  height: 10px;
  width: 100%;
  background-color: var(--secondary-color);
}

.barra_topo {
  width: 100%;
  background-color: var(--yellow);
  padding: 10px 0;
  color: var(--black);
}

.barra_topo a {
  font-size: small;
  font-weight: 200;
  color: var(--black);
}

.btn-link {
  display: inline-block;
  padding: 5px 10px;
  border: none;
  background-color: var(--dark-gray);
  color: var(--white);
  transition: background-color 0.3s ease;
}

.btn-link:hover {
  background-color: var(--secondary-color);
}

.btn-topo {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  background-color: var(--secondary-color);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 24px;
  cursor: pointer;
  z-index: 1000;
  transition: opacity 0.2s ease-in-out;
}

.btn-topo:hover {
  opacity: 0.8;
}

.btn_redondo {
  border-radius: 25px;
  background-color: var(--white);
  border: 1px solid var(--accent-color);
  font-size: 1.2em;
  text-align: center;
  padding: 5px;
  font-weight: 800;
  margin-bottom: 20px;
}

button {
  background-color: var(--success);
  color: var(--white);
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  margin: 5px;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: var(--success-hover);
}

/* Layout */
.site {
  display: grid;
  grid-template-columns: 1fr;
  width: 1200px;
  grid-gap: 10px;
  margin: 0 auto;
}

.grade_cabecalho {
  display: grid;
  grid-template-columns: 5fr 1fr;
  grid-gap: 10px;
}

.redes_sociais {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 4px;
  text-align: left;
  width: 98%;
}

.conteudo {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 10px;
}

.cursos {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 10px;
  border: 1px dashed var(--orange);
  border-radius: 25px;
  margin: 10px;
  padding: 10px;
  background: linear-gradient(90deg, var(--white) 0%, #f0f0f0 100%);
}

.grid-container1 {
  display: grid;
  grid-template-columns: 4fr 2fr 2fr;
  grid-gap: 10px;
}

.grid-container2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 10px;
}

.grid-container3 {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 10px;
}

.colunas2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 10px;
  grid-gap: 10px;
}

.colunas3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 10px;
}

.colunas24 {
  display: grid;
  grid-template-columns: 2fr 4fr;
  grid-gap: 10px;
}

.colunas42 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 10px;
}

.colunas51 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-gap: 10px;
}

.colunas6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-gap: 10px;
}

.grid-rodape {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 10px;
}

.lista_documentos {
  display: grid;
  grid-template-columns: 1fr 7fr;
  grid-gap: 5px;
}

/* Elementos */
.icone {
  border: 1px dashed var(--medium-gray);
  padding: 10px;
  text-align: center;
}

.documento {
  border: 1px dashed var(--medium-gray);
  padding: 10px;
}

.box {
  padding: 10px;
  box-shadow: 0 6px 15px rgba(36, 37, 38, 0.08);
  background-color: var(--white);
  border-radius: 0 20px 20px 20px;
  background-image: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
}

.box:hover {
  background-color: #f7f7f7;
}

.slide-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.slide-item {
  flex-shrink: 0;
  scroll-snap-align: start;
  margin-right: 10px;
}

.slider {
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

.slide {
  display: none;
  width: 100%;
  height: auto;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  display: block;
}

.resultados {
  border-radius: 10px;
  border: 1px solid var(--black);
  text-align: center;
  padding: 0 5px;
}

.contador {
  padding: 5px;
  border-radius: 10px;
  border: 1px solid var(--medium-gray);
  float: left;
  text-align: center;
  margin: 5px;
  box-shadow: 0 6px 15px rgba(36, 37, 38, 0.08);
}

/* Tipografia */
h1 {
  color: var(--accent-color);
  position: relative;
}

h1::before {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 20%;
  height: 10px;
  background: var(--light-gray);
  border-radius: 5px;
}

h3 {
  color: var(--black);
  position: relative;
}

h3::before {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 20%;
  height: 3px;
  background: var(--light-gray);
  border-radius: 5px;
}

.thin {
  font-weight: 200;
  line-height: 1.5em;
}

.numeros {
  font-size: 1.8em;
  font-weight: 900;
}

/* Imagens */
.conteudo img {
  max-width: 50%;
  float: left;
  padding: 10px;
}

.box img {
  max-width: 100%;
}

.logo {
  padding-top: 10px;
  max-width: 50%;
}

/* Cores de redes sociais */
.linkedin {
  color: var(--linkedin);
}

.facebook {
  color: var(--facebook);
}

.instagram {
  color: var(--instagram);
}

.youtube {
  color: var(--youtube);
}

/* Backgrounds */
.neve {
  background-image: linear-gradient(to top, #e6e9f0 0%, #eef1f5 100%);
}

.blue {
  background-image: linear-gradient(to top, #09203f 0%, #537895 100%);
  color: var(--white);
}

footer {
  background-image: linear-gradient(to top, #e6e9f0 0%, #eef1f5 100%);
  background-attachment: cover;
  color: var(--black);
  width: 100%;
  left: 0;
  bottom: 0;
}

/* Tabelas */
.tabela-lotes {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  overflow: auto;
}

.tabela-lotes thead {
  background-color: var(--table-header);
  color: var(--white);
}

.tabela-lotes th,
.tabela-lotes td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.tabela-lotes tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.tabela-lotes tbody tr:nth-child(odd) {
  background-color: var(--white);
}

.tabela-lotes tbody tr:hover {
  background-color: #f5f5f5;
}

.lote-vigente {
  background-color: var(--current-lot) !important;
  font-weight: bold;
  position: relative;
}

.lote-vigente::after {
  content: "VIGENTE";
  position: absolute;
  top: 2px;
  right: 5px;
  background-color: #2196F3;
  color: var(--white);
  font-size: 8px;
  padding: 2px 5px;
  border-radius: 3px;
}

.valor-lote {
  font-weight: bold;
  color: var(--lot-value);
}

.periodo-lote {
  font-size: 0.9em;
  color: var(--dark-gray);
}

.curso-titulo {
  font-weight: bold;
  color: var(--table-header);
}

/* Animações */
.colibri {
  position: absolute;
  width: 75px;
  height: 75px;
  background-image: url('../colibri.gif');
  background-size: cover;
  animation: fly 10s infinite;
}

.heart-icon {
  font-size: 2.8rem;
  color: var(--heart);
  animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.2); }
  50% { transform: scale(0.8); }
  75% { transform: scale(1.2); }
}

/* Utilitários */
.centralizar {
  display: flex;
  justify-content: center;
  align-items: center;
}

.desktop {
  display: block;
}

.mobile {
  display: none;
}

.medicos {
  border-radius: 25px;
}

#regressivo {
  margin: 0 auto;
}

hr {
  width: 80%;
  color: var(--medium-gray);
}

.links_rodape a {
  display: block;
  margin: 2px;
}
.medconecta{
display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 5px;
}
/* Responsivo */
@media screen and (max-width: 768px) {
  .site {
    width: 96%;
  }
  
  .desktop {
    display: none;
  }
  
  .mobile {
    display: block;
  }
  
  .slide {
    height: auto;
  }
  
  .logo {
    text-align: center;
    max-width: 50%;
  }
  
  .grade_cabecalho,
  .grid-container1,
  .grid-container2,
  .grid-container3,
  .colunas24,
  .colunas3,
  .colunas6,
  .grid-rodape,
  .colunas2,
  .conteudo {
    grid-template-columns: 1fr;
  }
  
  .colunas42,
  .colunas51 {
    grid-template-columns: repeat(2, 1fr);
  }  
  .rodape {
    width: 100%;
  }
  
  .redes_sociais,
  .webmail,
  .contatos {
    display: none;
  }
  
  .conteudo img {
    max-width: 100%;
    float: none;
    padding: 2px;
  }
  
  #slideshow {
    width: 100%;
  }
}