/* Estilos personalizados */
/* Geral */
a, a:visited, a:hover, a:active {
    color: inherit;
}
.sp-loader-with-logo {
    display: flex;
    flex-direction: column;
}

.itemid-101 #sp-main-body {
    padding: 0 !important;
}
#sp-main-body {
    padding: 60px 0 !important;
}

.sp-megamenu-parent>li:hover>a {
    color: #E00711 !important;
}

.sp-megamenu-parent>li.active>a,
.sp-megamenu-parent>li.active:hover>a {
    color: #E00711 !important;
}

.background_azul,
.background_azul .sp-module-title {
    color: #FFFFFF;
}

.speasyimagegallery-album a {
    border-radius: 0.375rem !important;
    overflow: hidden;
}

#sp-entidades-e-apoiadores .sp-module-title,
#sp-tecnologias-desenvolvidas .title-tecnologias,
#sp-galeria-de-imagens .sp-module-title,
#sp-noticias .sp-module-title,
#sp-publicacoes .sp-module-title,
#sp-formacao .sp-module-title {
    text-align: center;
    margin-bottom: 3rem;
}
span.badge.bg-danger.featured-article-badge {
    display: none;
}
.page-header {
    position: relative;
    float: left;
    width: 100%;
    overflow: hidden;
}
h1 {
    float: left;
}
h1::after {
    content: "";
    display: table;
    width: 180%;
    height: 2px;
    background: #E1E4ED;
    margin-top: 9px;
}
.article-list .article {
    border-radius: 10px !important;
}
.article-intro-image {
    overflow: hidden;
    display: block;
}

.article-intro-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    display: block;
    object-fit: cover;
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
}

#search-form {
    clear: both;
    padding-top: 30px;
    width: 100%;
    display: block;
    position: relative;
}

/* Topo */
#sp-header {
    background: url("../images/bg_topo.png") no-repeat top center #ffffff !important;
    background-size: cover !important;
}

/* Rodapé */
#sp-footer .rodape-titulo {
    text-align: start;
    margin-bottom: 30px;
    color: #353E5D;
    font-weight: 900;
    font-size: 1.4rem;
}

#sp-footer ul.menu {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
    max-height: 175px;
    flex-wrap: wrap;
    align-items: start;
    font-size: 1rem;
    font-weight: 700;
}

#sp-footer .footer-contact-list {
    display: block;
    padding: 0;
    max-height: 150px;
    align-items: start;
    font-size: 1rem;
    font-weight: 500;
}

#sp-footer {
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
        url('../images/bg_rodape.png');
    background-size: cover;
    background-position: center center;
    position: relative;
    color: #353E5D;
}

#sp-footer .custom-footer {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 30px;
    padding: 30px !important;
}

#sp-footer a,
#sp-footer li {
    color: #353E5D;
    margin-bottom: 15px;
}
#sp-footer a:hover,
#sp-footer a:active,
#sp-footer a:focus,
#sp-bottom a:hover,
#sp-bottom a:active,
#sp-bottom a:focus, 
.hover-vermelho a:hover,
.hover-vermelho a:hover i {
    color: #E00711 !important;
}

#sp_bottom ul {
    list-style-type: none;
}

#sp_bottom h3 {
    color: #353E5D;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1.1rem;
}

.footer-social-icons a i {
    background: white;
    border-radius: 30%;
    color: #1A479E;
    margin-left: 20px;
}

#sp-menu.menu-with-social .sp-megamenu-wrapper {
    justify-content: center !important;
}

/* Slide */
.camera_wrap .camera_pag .camera_pag_ul {
    text-align: center !important;
}

.camera_pag {
    position: absolute;
    width: 100%;
    margin-top: -65px;
}

.camera_wrap .camera_pag .camera_pag_ul li,
.camera_wrap .camera_pag .camera_pag_ul li:hover>span {
    background: #E0071180 !important;
}

.camera_wrap .camera_pag .camera_pag_ul li.cameracurrent>span {
    background: #E00711 !important;
}

.camera_wrap .camera_pag .camera_pag_ul li>span {
    -webkit-border-radius: 8px !important;
    -moz-border-radius: 8px !important;
    border-radius: 8px !important;
    height: 16px !important;
    width: 16px !important;
    top: 0 !important;
    left: 0 !important;
}

/* Sobre */
.sobre_ciap .sp-module-title {
    margin-bottom: 2.5rem;
}

.sobre_ciap .sp-module-title::after {
    content: "";
    display: block;
    background: #679BE8 !important;
    height: 5px;
    width: 260px;
    margin-top: 10px;
}

.fluxo_sobre_ciap {
    margin-top: 5rem;
}

.documentos_projeto {
    background: #3059A7;
    border-radius: 1rem;
    padding: 1.8rem 2.5rem;
}

.documentos_projeto .sp-module-title {
    color: #ffffff;
    margin-bottom: 0.8rem;
}

.documentos_projeto ul.menu {
    list-style: none;
    padding: 0;
}

.documentos_projeto ul.menu li a {
    color: #ffffff;
    display: block;
    border-bottom: 1px solid rgba(241, 243, 247, 0.3);
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 400;
    padding: 1rem 3rem 1rem 0;
    position: relative;
}

.documentos_projeto ul.menu li a:after {
    content: "\f061";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    right: 1.2rem;
    position: absolute;
}

.documentos_projeto ul.menu li:hover a:after {
    transform: translateX(8px);
    animation: arrow-bounce-ltr 0.8s;
}

.documentos_projeto ul.menu li a:hover {
    color: #ffffff !important;
}

.documentos_projeto ul.menu li:last-of-type a {
    border: none !important;
    padding-bottom: 0 !important;
}

/* Entidades e Apoiadores */
.entidades {
    margin-bottom: 2rem;
}

.apoiadores {
    margin-top: 2.5rem;
}


.entidades_apoiadores .mod-custom.custom div {
    display: flex;
    justify-content: center;
    /* Centraliza na horizontal */
    align-items: center;
    flex-wrap: wrap;
}

.entidades_apoiadores .mod-custom.custom  img{
    margin: 0 20px;
}

/*=================================================
=               SEÇÃO HOME TECNOLOGIAS DESENVOLVIDAS             =
==================================================*/

.title-tecnologias {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 44px;
    line-height: 36px;
    text-align: center;
    vertical-align: bottom;
    text-transform: uppercase;
    color: #FFFFFF;
}
.descricao-tecnologias {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    color: #FFFFFF;
}

/* Container geral dos cards */
#sp-tecnologias-desenvolvidas .mod-articlesnews {

    display: flex;
    flex-wrap: wrap;
    /* grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); */
    gap: 24px;
    margin-top: 40px;
    justify-content: center;
    /* Centraliza os cards horizontalmente */
    justify-items: center;
    /* Garante que cada card fique centralizado */
}



#sp-tecnologias-desenvolvidas .mod-articlesnews__item {
    background-blend-mode: overlay;
    border: 1px solid #E1E4ED;
    width: 354px;
    height: 330px;
    color: white;
    opacity: 1;
    gap: 10px;
    border-radius: 8px;
    border-width: 1px;
    padding: 24px 24px 45px 24px;
    box-shadow: 0 1px 4px 0 #19213D14;
    backdrop-filter: blur(4px);
    background: rgb(55 85 173 / 18%);
}

#sp-tecnologias-desenvolvidas .mod-articlesnews__item:hover {

    background: rgba(255, 255, 255, 0.05);
    /* leve brilho ao passar o mouse */
}

#sp-tecnologias-desenvolvidas .newsflash-title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 20px;
    line-height: 28px;
    text-align: center;
    color: #FFFFFF;
    margin-bottom: 20px;

}

#sp-tecnologias-desenvolvidas .mod-articlesnews__item p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    color: #FFFFFF;
    text-align: center;
}


.mod-articlesnews__item {
  position: relative;
}

.item-arrow {
  position: absolute;
  bottom: 0;
  right: 20px;
  font-size: 45px;
  color: white;
  text-decoration: none;
  cursor: pointer;
}
.item-arrow::after {
  content: "→";
  transition: transform 0.3s ease, color 0.3s ease;
  display: inline-block;            
  transform: translateX(0);         
}

.item-arrow:hover::after {
  transform: translateX(5px);
}


/* FIM - HOME TECNOLOGIAS DESENVOLVIDAS */

/* Notícias */
.noticias-module .category-description {
    padding: 0rem 0;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #6D758F;
    text-align: center;
    margin: 0 auto 2rem;
}

.noticias-module .category-description p {
    margin: 0;
}

.noticias-module .row {
    margin: 0;
    padding: 0;
}

.noticias-module .row::after {
    content: "";
    display: table;
    clear: both;
}

.noticias-module .col-lg-6 {
    float: left;
    width: 50%;
    padding: 0 15px;
    box-sizing: border-box;
}

.noticias-module .featured-articles {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.noticias-module .normal-articles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.noticias-module .featured-article,
.noticias-module .normal-article {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.noticias-module .normal-article {
    border-bottom: 1px solid #e0e0e0;
}

.noticias-module .normal-article:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.noticias-module .featured-article .article-content {
    height: 255px;
    overflow: hidden;
}

.noticias-module .article-content {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 100px;
    overflow: hidden;
}

.noticias-module .article-image {
    overflow: hidden;
    border-radius: 4px;
}

.noticias-module .featured-article .article-image {
    flex: 0 0 235px;
    margin-right: 0;
}

.noticias-module .normal-article .article-image {
    flex: 0 0 120px;
    margin-right: 0
}

.noticias-module .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.noticias-module .article-image img:hover {
    transform: scale(1.05);
}

.noticias-module .article-details {
    flex: 1;
    padding: 1.5rem 1rem;
}

.noticias-module .normal-article .article-details {
    padding: 0.8rem 1rem 0.8rem 0.5rem;
}

.noticias-module .article-tag {
    display: inline-block;
    background: transparent;
    color: #3E92EF;
    padding: 0.25rem 0;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.noticias-module .article-title {
    margin: 0 0 0.5rem 0;
}

.noticias-module .featured-article .article-title {
    font-size: 1.2rem;
}

.noticias-module .normal-article .article-title {
    font-size: 1rem;
}

.noticias-module .article-title a {
    color: #333;
    text-decoration: none;
}

.noticias-module .article-title a:hover {
    color: #1a479e;
}

.noticias-module .article-intro {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.noticias-module .featured-article .article-intro {
    font-size: 0.95rem;
}

.noticias-module .article-date {
    color: #999;
    font-size: 0.8rem;
}

.ver-mais-container {
    text-align: right;
    margin-top: 1.5rem;
    padding: 1rem 0;
}

.ver-mais-btn {
    display: inline-block;
    background-color: #dc3545;
    color: #FFFFFF !important;
    padding: 12px 40px 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
}

.ver-mais-btn:hover {
    background-color: #c82333;
    color: white;
    text-decoration: none;
}

.ver-mais-btn:after {
    content: "\f061";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    right: 1.1rem;
    position: absolute;
}

.ver-mais-btn:hover:after {
    transform: translateX(3px);
    animation: arrow-bounce-ltr 1.4s;
}

.ver-mais-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25);
}


.publicacoes .card-wrapper {
    display: flex;
    justify-content: center;
}

.publicacoes .card-wrapper a {
    text-decoration: none;
    color: inherit;
}

.publicacoes .publicacao-card {
    width: 20.25rem;
    height: 27.43rem;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.publicacoes .publicacao-card img {
    height: 216px;
    object-fit: cover;
}

.publicacoes .publicacao-card .card-body {
    height: calc(27.43rem - 216px);
}

.publicacoes .publicacao-card .card-title {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    max-height: 2.8em;
    margin-bottom: 0.75rem;
}

.publicacoes .publicacao-card .card-text {
    color: #353E5D;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    line-height: 1.5;
    flex: 1;
}

.publicacoes .card-tags {
    margin-top: auto;
    font-size: 0.875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Ellipsis depois de 3 linhas na galeria */
span.speasyimagegallery-album-title.truncate-text,
span.speasyimagegallery-album-meta-count.truncate-text {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal; 
}

@media (max-width: 1200px){
  .publicacoes .publicacao-card {
    width: 18.25rem;
  }
}

@media (max-width: 575px) {
  span.speasyimagegallery-album-title.truncate-text,
  span.speasyimagegallery-album-meta-count.truncate-text {
    -webkit-line-clamp: 1;
  }
  .publicacoes .card-wrapper:nth-child(n+4) {
    display: none;
  }
}

/* Página de Notícias */
.noticias.view-category #sp-component {
    width: 100%;
}
.noticias.view-category #sp-right {
    display: none;
}
.mais_noticias h5 {
    font-size: 18px;
    font-weight: 500;
}
.mais_noticias .article-date {
    font-size: 0.8rem;
}
.mais_noticias .article-image {
    float: left;
    margin-right: 0.7rem;
}
.mais_noticias img {
    width: 120px;
    border-radius: 6px;
}
.mais_noticias li {
    padding: 1rem 0;
}
.mais_noticias li:first-of-type {
    padding-top: 0;
}
.mais_noticias li:last-of-type {
    padding-bottom: 0;
}
.mais_noticias .article-details {
    padding: 0 1rem 0 0.5rem;
}
.article-list .article .readmore a {
    color: #0345bf;
}

.article-list .article .article-header h1 a, .article-list .article .article-header h2 a {
    color: inherit !important;
    font-weight: 600;
}

.published {
    font-size: 0.9rem !important;
    color: #6D758F;
    width: 100%;
    display: block;
}
.published time {
    padding-top: 2px;
    display: block;
}
.published::before {
    display: table;
    content: "\f133";
    font-family: "Font Awesome 6 Free";
    color: #6D758F;
    float: left;
    margin-right: 6px;
    font-size: 1rem !important;
}

@media (max-width: 768px) {
  .ver-mais-container{
    text-align: center;
  }
  .noticias-module .featured-article .article-title {
      font-size: 1rem;
  }
  .noticias-module .featured-article .article-intro{
      font-size: 0.8rem;
  }
  .noticias-module .article-details {
    padding: 0.8rem 0.8rem;
  }
  .noticias-module .col-lg-6 {
    float: none;
    width: 100%;
    margin-bottom: 2rem;
  }

  .noticias-module .article-content {
    min-height: 120px;
  }

  .noticias-module .featured-article .article-image {
    flex: 0 0 150px;
  }

  .noticias-module .normal-article .article-image {
    flex: 0 0 80px;
  }
}

/*=================================================
=               SEÇÃO FORMAÇÃO             =
==================================================*/

.formacao .newsflash-title{
    font-family: Inter;
    font-weight: 700;
    font-style: Bold;
    font-size: 20px;
    line-height: 150%;
    letter-spacing: 0%;
    color:#353E5D;

}
.formacao p{
  font-family: Inter;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0%;
    color:#353E5D;

}
.formacao .newsflash-image img{

    width: 397px;
    height: 216px;
    border-top-left-radius: 10px;   
    border-top-right-radius: 10px;  

}
.text-card-formacao{
    padding: 20px;
}
.formacao .readmore{
    color:#0D7EEC;
}
.description-formacao {
    text-align: center;
    padding-left: 20%;
    padding-right: 20%;
}
.description-formacao p {
    font-family: Inter;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0%;
    text-align: center;

}
/* CAROUSEL*/
.carousel-formacao {
    width: 100%;
}

.carousel-formacao .carousel-container {
    overflow: hidden;
    border-radius: 12px;
    margin: 0 10px;
    width: calc(397px * 3 + 32px); /* Largura para 3 cards visíveis */
    position: relative;
}

.carousel-trackk {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* Transição mais rápida e fluida */
}

.carousel-trackk ul.mod-list {
    display: flex;
    gap: 16px; 
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: nowrap;
    width: max-content; /* Permite que a lista se estenda conforme necessário */
}
.carousel-formacao .carousel-item {
    width: 397px;
    height: 500px;
    display: flex;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0px 4px 4px 0px #0000001A;
    display: flex;
    flex-direction: column; /* força imagem em cima, texto embaixo */
    align-items: stretch;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    flex-shrink: 0; /* Impede que os cards encolham */
    cursor: pointer; /* Indica que é clicável */
    text-decoration: none; /* Remove sublinhado se for um link */
    color: inherit; /* Mantém a cor original do texto */
}

.carousel-formacao .carousel-item:hover {
    transform: translateY(-4px);
    box-shadow: 0px 8px 16px 0px #00000020;
}

.carousel-formacao .carousel-item:active {
    transform: translateY(-2px);
    transition: transform 0.1s ease;
}

/* Efeito durante a animação do carrossel */
.carousel-trackk.animating .carousel-item {
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Efeito de escala nos cards centrais */
.carousel-formacao .carousel-item {
    transform-origin: center center;
}



/* Animação de entrada dos cards */
@keyframes slideInFromRight {
    0% {
        transform: translateX(50px);
        opacity: 0.7;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-50px);
        opacity: 0.7;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}


.carousel-formacao {
    position: relative; /* Para posicionar os botões e indicadores em relação a ele */
    padding-bottom: 40px; /* Espaço para os indicadores */
}
.carousel-content-wrapper {
    display: flex;
    align-items: center; /* Centraliza verticalmente os botões e o container */
    justify-content: center;
}

.carousel-formacao .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background-color: #E00711; 
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.carousel-formacao .carousel-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: #999;
}

.carousel-formacao .carousel-btn:hover:not(:disabled) {
    background-color: #c8060f;
    transform: translateY(-50%) scale(1.1);
}

.carousel-formacao .carousel-btn:active:not(:disabled) {
    transform: translateY(-50%) scale(0.95);
    transition: all 0.1s ease;
}

/* Animação de pulse ao clicar */
@keyframes buttonPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(224, 7, 17, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(224, 7, 17, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(224, 7, 17, 0);
    }
}

.carousel-formacao .carousel-btn.clicked {
    animation: buttonPulse 0.4s ease-out;
}
.carousel-formacao .carousel-btn.prev {
    left: 0;
    margin-left: -15px; /* Ajuste para centralizar o botão na borda do card */
}

.carousel-formacao .carousel-btn.next {
    right: 0;
    margin-right: -15px; /* Ajuste para centralizar o botão na borda do card */
}

.carousel-formacao .carousel-btn svg {
    width: 16px;
    height: 16px;
}
.carousel-formacao .carousel-indicatorss {
    position: absolute;
    bottom: 0; /* Posiciona abaixo do carousel */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px; /* Espaçamento entre o carousel e os indicadores */
    padding-bottom: 0; 
}

.carousel-indicatorss .indicatorr {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicatorss .indicatorr:hover {
    background: #bbb;
    transform: scale(1.1);
}

.carousel-indicatorss .indicatorr.active {
    background: #E00711; 
    transform: scale(1.2);
}

.carousel-formacao .carousel-indicatorss {
    margin-top: 10px !important; 
    padding-bottom: 0 !important;
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}



/* fim SEÇÃO FORMAÇÃO */

/* customização de paginação*/
.pagination .page-item .page-link {
    color: #353E5D;
    background-color: #FFFFFF;
    border: 1px solid #E1E4ED;
    border-radius: 50%;
    margin: 0 4px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 20px;
    padding: 14px 16px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination .page-item:hover .page-link,
.pagination .page-item.active .page-link {
    background-color: #19213D;
    color: #FFFFFF;
}

.pagination{
    float: right;
}

.pagination .page-item.disabled{
    display: none;
}



@media (min-width: 990px) {
    #offcanvas-toggler {
        display: none !important;
    }
}

@media (min-width: 990px) and (max-width: 1200px) {
    #sp-logo.has-border{
        padding-right: 0px;
    }
}