@import url('https://fonts.googleapis.com/css?family=Source+Code+Pro');

body{
    /* background: rgb(37,155,233);
    background: linear-gradient(90deg, rgba(37,155,233,1) 0%, rgba(0,30,255,1) 35%, rgba(37,155,233,1) 100%); */
}

.animation-escape{
    display:inline-block;
    overflow:hidden;
    white-space:nowrap;
    /* font-size: 20px; */
}
.animation-escape:first-of-type { 
    animation: showup 7s alternate;
}

.animation-escape:last-of-type {
    width:0px;
    animation: reveal 7s alternate;
}

.animation-escape:last-of-type span {
    margin-left:-355px;
    animation: slidein 7s alternate;
}

@keyframes showup {
0% {opacity:0;}
20% {opacity:1;}
80% {opacity:1;}
100% {opacity:0;}
}

@keyframes slidein {
0% { margin-left:-800px; }
20% { margin-left:-800px; }
35% { margin-left:0px; }
100% { margin-left:0px; }
}

@keyframes reveal {
0% {opacity:0;width:0px;}
20% {opacity:1;width:0px;}
30% {width:355px;}
80% {opacity:1;}
100% {opacity:0;width:355px;}
}

section {
    min-height: 30vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.gradiente {
    background: linear-gradient(to right, #662D91, #0D6EFD);
}
.institution {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center; /* Centraliza horizontalmente */
    align-items: center;    /* Centraliza verticalmente */
    transition: all 0.3s ease;
    width: 180px;
    height: 100px;
    border: 1px solid none;
    border-radius: 28px;
    
}

.institution img {
    max-width: 100%; /* Para garantir que a imagem não ultrapasse o contêiner */

    max-height: 100%; /* Ajusta o tamanho da imagem ao contêiner */
}

.institution:hover {
    cursor: pointer;
    border: 1px solid black;
}
.institution:hover::after {
    display: block;
    content: ' ';
    position: absolute; /* Para sobrepor o elemento pai */
    top: 0;
    left: 0;
    width: 100%; /* Preenche a largura do elemento pai */
    height: 100%; /* Preenche a altura do elemento pai */
    transition: all 0.3s;
    background: linear-gradient(to right, #662d915a, #0d6dfd58);
  }


/* lista  */

.olcards,
.olcards * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.olcards {
  list-style: none;
  counter-reset: cardCount;
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
  --cardsGap: 1rem;
  gap: var(--cardsGap);
  padding-bottom: var(--cardsGap);
}
.olcards li {
  counter-increment: cardCount;
  display: flex;
  color: white;
  --labelOffset: 1rem;
  --arrowClipSize: 1.5rem;
  margin-top: var(--labelOffset);
}

.olcards li::before {
  content: counter(cardCount, decimal-leading-zero);
  background: white;
  color: var(--cardColor);
  font-size: 2em;
  font-weight: 700;
  transform: translateY(calc(-1 * var(--labelOffset)));
  margin-right: calc(-1 * var(--labelOffset));
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-inline: 0.5em;
}

.olcards li .content {
  background-color: var(--cardColor);
  --inlinePadding: 1em;
  --boxPadding: 0.5em;
  display: grid;
  padding: var(--boxPadding) calc(var(--inlinePadding) + var(--arrowClipSize))
    var(--boxPadding) calc(var(--inlinePadding) + var(--labelOffset));
  grid-template-areas:
    "icon title"
    "icon text";
  gap: 0.25em 1em;
  clip-path: polygon(
    0 0,
    calc(100% - var(--arrowClipSize)) 0,
    100% 50%,
    calc(100% - var(--arrowClipSize)) 100%,
    calc(100% - var(--arrowClipSize)) calc(100% + var(--cardsGap)),
    0 calc(100% + var(--cardsGap))
  );
  position: relative;
}
.olcards li .content::before {
  content: "";
  position: absolute;
  width: var(--labelOffset);
  height: var(--labelOffset);
  background: var(--cardColor);
  left: 0;
  bottom: 0;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  filter: brightness(0.75);
}
.olcards li .content::after {
  content: "";
  position: absolute;
  height: var(--cardsGap);
  width: var(--cardsGap);
  background: linear-gradient(to right, rgba(0, 0, 0, 0.25), transparent 50%);
  left: 0;
  top: 100%;
}
.olcards li .icon {
  grid-area: icon;
  align-self: center;
  font-size: 2em;
}
.olcards li .content .title {
  grid-area: title;
  font-size: 1.25em;
  /* font-weight: 700; */
}
.olcards li .content .text {
  grid-area: text;
}

/* banner seção da novidades */
.banner {
    background: linear-gradient(to top, #662D91, #0D6EFD);
    padding: 20px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    margin: 0 auto;
    color: white;
    text-align: center;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.logo-text img {
    width: 200px;
    height: auto;
}

.logo-text p {
    color: white;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    max-width: 500px;
    margin: 0;
    text-align: center;
}

.banner span {
    display: block;
    margin-top: 35px;
    margin-bottom: 35px;
    font-size: 32px;
    color: white;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.button {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.button a {
    padding: 12px 32px;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: 600;
    backdrop-filter: blur(4px);
    font-size: 15px;
}

.button a:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}
