:root {
    /* Paleta Primária - Identidade Visual */
    --primary-01: #F9A10E;
    --primary-02: #17CEE6;
    --primary-03: #422556;
    --primary-04: #CF2B6B;
    --primary-05: #5C348B;
    --primary-06: #F26F1C;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #ffffff;
    color: #000000;
}


/* Collaborate Section */
.collaborate-section {
    padding: 100px 0;
    background: #FFFFFF;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.collaborate-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}


.collaborate-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.collaborate-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.3;
    color: #000000;
    text-align: left;
}

.collaborate-title .title-word-1 {
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 8px;
    text-decoration-color: var(--primary-05);
}

.collaborate-title .title-word-2 {
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 8px;
    text-decoration-color: var(--primary-01);
}

.collaborate-title .title-word-3 {
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 8px;
    text-decoration-color: var(--primary-02);
}

.collaborate-items {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.collaborate-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.item-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.item-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: #000000;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 8px;
}

.collaborate-item:nth-child(1) .item-title {
    text-decoration-color: var(--primary-05);
}

.collaborate-item:nth-child(2) .item-title {
    text-decoration-color: var(--primary-01);
}

.collaborate-item:nth-child(3) .item-title {
    text-decoration-color: var(--primary-02);
}

.item-text {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #000000;
}

/* Responsive Collaborate Section */
@media (max-width: 992px) {
    .collaborate-section {
        padding: 80px 0;
    }
    
    .collaborate-content {
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .collaborate-section {
        padding: 60px 20px;
    }

    .collaborate-title {
        font-size: 36px;
        text-align: center;
    }

    .collaborate-item {
        flex-direction: column;
        gap: 15px;
    }
}

/* Projects Section */
.projects-section {
    padding: 100px 0;
    background: #F7F7F7;
}


.projects-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #000000;
    text-align: left;
    margin-bottom: 60px;
}

.projects-carousel-wrapper {
    width: 100%;
    position: relative;
    padding: 0 0 40px;
}

.projects-carousel {
    width: 100%;
}

.swiper-slide {
    height: auto;
}

/* Project Card Front */
.project-card-front {
    width: 100%;
    height: 600px;
    display: flex;
    flex-direction: column;
    background-color: var(--primary-03);
    border-radius: 4px;
    overflow: hidden;
    color: #ffffff;
}

/* Mantém compatibilidade com cards antigos */
.project-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--primary-03);
    border-radius: 4px;
    overflow: hidden;
    height: 600px;
    box-shadow: none;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.project-image-placeholder {
    width: 100%;
    flex: 0.6;
    min-height: 200px;
    background: #ffffff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.project-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.project-text-logo {
    font-size: 48px;
    font-weight: 700;
    color: #333333;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.projects-carousel-wrapper .swiper-button-prev,
.projects-carousel-wrapper .swiper-button-next {
    color: var(--primary-01);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.projects-carousel-wrapper .swiper-button-prev {
    left: -60px;
}

.projects-carousel-wrapper .swiper-button-next {
    right: -60px;
}

.projects-carousel-wrapper .swiper-button-prev::after,
.projects-carousel-wrapper .swiper-button-next::after {
    font-size: 24px;
    font-weight: bold;
}

.projects-carousel-wrapper {
    position: relative;
}

.projects-carousel-wrapper .swiper-pagination {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.projects-carousel-wrapper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: rgba(249, 161, 14, 0.4); /* var(--primary-01) com transparência */
    opacity: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.projects-carousel-wrapper .swiper-pagination-bullet-active {
    background-color: var(--primary-01);
    width: 12px;
    height: 12px;
}

.project-content {
    flex: 1.4;
    padding: 30px;
    background-color: var(--primary-03);
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: flex-start;
    color: #ffffff;
    min-height: 0;
}

.project-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin: 0;
}

.project-description {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #ffffff;
    margin: 0 0 10px 0;
}

.project-financing {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 10px 0;
}

.project-financing strong {
    font-weight: 600;
    color: #ffffff;
}

.project-link {
    display: inline;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    margin-top: auto;
    padding-top: 10px;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
    width: fit-content;
}

.project-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Responsive Projects Section */
@media (max-width: 768px) {
    .projects-carousel-wrapper {
        padding: 0 50px 40px;
    }
    
    .projects-carousel-wrapper .swiper-button-prev {
        left: -50px;
    }
    
    .projects-carousel-wrapper .swiper-button-next {
        right: -50px;
    }
    
    .projects-carousel-wrapper .swiper-button-prev,
    .projects-carousel-wrapper .swiper-button-next {
        width: 40px;
        height: 40px;
    }
    
    .projects-carousel-wrapper .swiper-button-prev::after,
    .projects-carousel-wrapper .swiper-button-next::after {
        font-size: 20px;
    }
    .projects-section {
        padding: 60px 0;
    }

    .projects-title {
        font-size: 36px;
        text-align: center;
    }

    .project-card {
        height: 450px;
    }

    .swiper-button-prev,
    .swiper-button-next {
        display: none !important;
    }

    .swiper-pagination {
        margin: 2em 0;
    }
}

/* Training Section */
.training-section {
    padding: 100px 0;
    background: #FFFFFF;
}

.training-section .row:first-child {
    margin-bottom: 40px;
}

.training-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #000000;
    text-align: left;
    margin-bottom: 40px;
}

.training-description {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #000000;
    text-align: left;
    max-width: 800px;
}

.training-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    border: 2px solid var(--primary-02);
    transition: transform 0.3s ease;
    height: 100%;
}

.training-row-custom {
    margin: 0;
}

.training-row-custom .col-md-6 {
    margin-bottom: 30px;
}

.training-row-custom .col-md-6:nth-child(odd) {
    padding-right: 30px;
    padding-left: 0;
}

.training-row-custom .col-md-6:nth-child(even) {
    padding-left: 30px;
    padding-right: 0;
}

.training-row-custom .col-md-6:last-child,
.training-row-custom .col-md-6:nth-last-child(2) {
    margin-bottom: 0;
}

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

.training-image-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-01), var(--primary-04));
    flex-shrink: 0;
}

.training-card-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-05);
    margin: 0;
    text-align: left;
    width: 100%;
}

.training-card-description {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #000000;
    margin: 0;
    text-align: left;
    width: 100%;
}

/* Responsive Training Section */
@media (max-width: 768px) {
    .training-section {
        padding: 60px 20px;
    }

    .training-title {
        font-size: 36px;
        margin-bottom: 40px;
        text-align: center;
    }

    .training-row-custom {
        margin: 0;
    }
    
    .training-row-custom .col-md-6 {
        margin-bottom: 25px;
        padding-left: 0;
        padding-right: 0;
    }
    
    .training-row-custom .col-md-6:nth-child(odd) {
        padding-right: 0;
        padding-left: 0;
    }
    
    .training-row-custom .col-md-6:nth-child(even) {
        padding-left: 0;
        padding-right: 0;
    }
    
    .training-row-custom .col-md-6:last-child {
        margin-bottom: 0;
    }

    .training-card {
        padding: 25px;
    }

    .training-card-title {
        font-size: 20px;
    }

    .training-card-description {
        font-size: 15px;
    }
}

.training-section .training-card {
    background-color: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
}

.training-section .training-card:hover {
    transform: none;
}

.training-section .training-card-description {
    display: block;
}

.training-section .training-card-title {
    color: #000000;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 8px;
}

.training-section .training-row-custom > div:nth-child(3n + 1) .training-card-title {
    text-decoration-color: var(--primary-05);
}

.training-section .training-row-custom > div:nth-child(3n + 2) .training-card-title {
    text-decoration-color: var(--primary-01);
}

.training-section .training-row-custom > div:nth-child(3n) .training-card-title {
    text-decoration-color: var(--primary-02);
}


.gsoc-section {
    padding: 100px 0;
    background: #FFFFFF;
}

.gsoc-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #000000;
    text-align: left;
    margin-bottom: 30px;
}

.gsoc-title strong {
    font-weight: 700;
}

.gsoc-description {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #000000;
    text-align: left;
    margin-bottom: 60px;
    max-width: 800px;
}

.gsoc-features {
    margin-bottom: 50px;
}

.gsoc-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.gsoc-icon-circle {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.gsoc-icon-circle svg {
    width: 100%;
    height: 100%;
}

.gsoc-icon-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gsoc-feature-text {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.5;
    color: #000000;
    margin: 0;
}

.gsoc-button {
    display: inline-block;
    padding: 12px 32px;
    background-color: #E5E5E5;
    color: #333333;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: 20px;
}

.gsoc-button:hover {
    background-color: #D0D0D0;
    color: #000000;
    text-decoration: none;
}

/* Responsive GSOC Section (na home) */
@media (max-width: 768px) {
    .gsoc-section {
        padding: 60px 20px;
    }

    .gsoc-title {
        font-size: 36px;
        text-align: center;
    }

    .gsoc-description {
        text-align: center;
        margin-bottom: 40px;
    }

    .gsoc-feature-item {
        margin-bottom: 30px;
    }
}



.capacitacao-section {
    padding: 100px 0;
    background: #F7F7F7;
}

.capacitacao-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #000000;
    text-align: left;
    margin-bottom: 60px;
}


.capacitacao-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 0 30px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    border: 0;
    height: 100%;
    transition: transform 0.3s ease;
}

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

.capacitacao-logo-wrapper {
    padding: 0;
    height: 250px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    overflow: hidden;
    border-radius: 4px;
}

.capacitacao-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.capacitacao-logo-contain {
    object-fit: contain;
    padding: 20px;
}

.capacitacao-card-body {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.capacitacao-card-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-05);
    margin: 0 0 15px 0;
    text-align: left;
    width: 100%;
}

.capacitacao-card-description {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #333333;
    margin: 0 0 20px 0;
    text-align: left;
    width: 100%;
}

.capacitacao-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.capacitacao-link {
    display: inline;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-05);
    text-decoration: none;
    transition: opacity 0.3s ease;
    width: fit-content;
}

.capacitacao-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.capacitacao-financing {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #333333;
    margin: 0 0 15px 0;
}

.capacitacao-financing strong {
    font-weight: 600;
    color: #000000;
}

/* Responsive Capacitação Section */
@media (max-width: 768px) {
    .capacitacao-section {
        padding: 60px 20px;
    }

    .capacitacao-title {
        font-size: 36px;
        text-align: center;
    }
}

/* News Section */
.news-section {
    padding: 100px 0;
    background: #F7F7F7;
}


.news-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #000000;
    text-align: left;
    margin-bottom: 60px;
}

.news-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.news-card-link:hover {
    text-decoration: none;
}

.news-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card-link:hover .news-card {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.news-card-header {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, var(--primary-05) 0%, var(--primary-06) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

.news-card-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-05);
    padding: 0;
    z-index: 1;
}

.news-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Primeira publicação (book.png) - dois livros sobrepostos */
.news-card-icon-book {
    padding: 20px;
    position: relative;
}

.news-card-icon-book .book-image {
    position: absolute;
    max-width: 150px;
    max-height: 150px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.book-image-1 {
    left: 50%;
    top: 50%;
    transform: translate(-70%, -50%) rotate(-8deg);
    z-index: 1;
}

.book-image-2 {
    left: 50%;
    top: 50%;
    transform: translate(-30%, -50%) rotate(18deg);
    z-index: 2;
}

/* Animação ao passar o mouse */
.news-card:hover .book-image-1 {
    transform: translate(-70%, -60%) rotate(-8deg);
}

.news-card:hover .book-image-2 {
    transform: translate(-30%, -40%) rotate(18deg);
}

.news-card-body {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f5f5f5;
    position: relative;
}

.news-card-date {
    font-size: 14px;
    color: #666666;
    margin: 0 0 12px 0;
    font-weight: 400;
}

.news-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--primary-05);
    margin: 0 0 12px 0;
    flex: 1;
}


.news-card-description {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: #666666;
    margin: 0 0 20px 0;
}

.news-card-arrow {
    align-self: flex-end;
    color: var(--primary-05);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

.news-card-arrow {
    pointer-events: none;
}

.news-card-link:hover .news-card-arrow {
    transform: translateX(5px);
}

.news-view-more-btn {
    margin-top: 40px;
    padding: 14px 40px;
    background: var(--primary-01);
    color: #000000;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.news-view-more-btn:hover {
    transform: translateY(-3px);
}

/* Responsive News Section */
@media (max-width: 768px) {
    .news-section {
        padding: 60px 20px;
    }

    .news-title {
        font-size: 36px;
        text-align: center;
    }

    .news-card-header {
        height: 150px;
    }

    .news-card-icon {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
    }

    .news-card-icon img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .news-card-icon-book {
        padding: 15px;
    }

    .news-card-icon-book .book-image {
        max-width: 100px;
        max-height: 100px;
    }

    .news-card-body {
        padding: 20px;
    }
}

/* Publicações Cards - Estilo similar à Capacitação, mas menor */
.publicacao-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    border: 2px solid var(--primary-04);
    transition: transform 0.3s ease;
    height: 100%;
}

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

.publicacao-logo-wrapper {
    padding: 0;
    height: 150px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-01);
    overflow: hidden;
    border-radius: 4px;
}

.publicacao-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.publicacao-logo-contain {
    object-fit: contain;
    padding: 15px;
}

.publicacao-card-body {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.publicacao-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-05);
    margin: 0 0 12px 0;
    text-align: left;
    width: 100%;
}

.publicacao-card-description {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: #333333;
    margin: 0 0 15px 0;
    text-align: left;
    width: 100%;
}

.publicacao-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-05);
    text-decoration: none;
    transition: opacity 0.3s ease;
    align-self: flex-start;
}

.publicacao-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Esconder cards extras inicialmente */
.publicacao-card-hidden {
    display: none;
}

/* Restaurar display do Bootstrap quando mostrar */
.publicacao-card-hidden.show {
    display: block !important;
    animation: fadeIn 0.3s ease-in;
}

@media (min-width: 576px) {
    .publicacao-card-hidden.show {
        display: block !important;
    }
}

@media (min-width: 768px) {
    .publicacao-card-hidden.show {
        display: block !important;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Publicações Section */
@media (max-width: 768px) {
    .publicacao-card {
        padding: 15px;
    }

    .publicacao-logo-wrapper {
        height: 120px;
    }

    .publicacao-card-title {
        font-size: 16px;
    }

    .publicacao-card-description {
        font-size: 13px;
    }
}

/* Wave Divider */
.wave-divider {
    width: 100%;
    height: 120px;
    display: block;
    line-height: 0;
    margin: 0;
    padding: 0;
    background-color: transparent;
    overflow: hidden;
    position: relative;
}

.wave-1 {
    background-color: #FFFFFF; /* cor da seção anterior (GSOC) */
}

.wave-2 {
    background-color: #FFFFFF; /* cor da seção anterior (Linhas de Pesquisa) */
}

.wave-divider svg {
    width: 120%;
    height: 100%;
    display: block;
    position: absolute;
    left: -10%;
    animation: wave-animation 6s ease-in-out infinite;
}

@keyframes wave-animation {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-5%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Responsive Wave Divider */
@media (max-width: 768px) {
    .wave-divider {
        height: 80px;
    }
}

