/* Hero Section */
.projetos-hero-section {
    width: 100%;
    min-height: 946px;
    height: 100%;
    top: 0;
    left: 0;
    padding: 270px 20px 40px 20px;
    display: flex;
    align-items: flex-start;
}

.projetos-hero-section .projetos-hero-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    max-width: 1216px;
    margin: 0 auto;
}

.projetos-hero-text-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.projetos-hero-section .projetos-hero-content .projetos-hero-title {
    font-family: Londrina Solid;
    font-weight: 300;
    font-style: Light;
    font-size: 28px;
    leading-trim: NONE;
    line-height: 120%;
    letter-spacing: 0%;
    text-transform: uppercase;
    color: #52636C;
}

.projetos-hero-section .projetos-hero-content .projetos-subtitle {
    font-family: Londrina Solid;
    font-weight: 400;
    font-style: Regular;
    font-size: 96px;
    leading-trim: NONE;
    line-height: 90%;
    letter-spacing: 2%;
    text-transform: uppercase;
    background: linear-gradient(111.33deg, #F04247 11.06%, #782B90 73.94%);
    max-width: 555px;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    margin-top: 36px;
}

.projetos-hero-section .projetos-hero-content .projetos-hero-text {
    font-family: Londrina Solid;
    font-weight: 300;
    font-style: Light;
    font-size: 32px;
    leading-trim: NONE;
    line-height: 120%;
    letter-spacing: 1%;
    text-transform: uppercase;
    color: #52636C;
    max-width: 499px;
    margin-top: 36px;
}

.projetos-hero-image-container {
    width: 50vw;
    max-width: 858px;
    height: 946px;
    position: absolute;
    top: 0;
    right: 0;
    padding-right: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.8) 100%);
    z-index: 1;
}

.projetos-hero-image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 2;
}

@media (min-width: 1632px) {
    .projetos-hero-image-container {
        width: 858px;
    }
}

@media (max-width: 1085px) {
    .projetos-hero-image-container {
        display: none;
    }
}

.projetos-hero-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, 1fr);
    grid-gap: 21px;
    width: 100%;
    height: 100%;
}

.projetos-hero-grid .projetos-div2 { 
    grid-area: 1 / 1 / 2 / 2; 
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    background: #007DC51A;
}

.projetos-hero-grid .projetos-div3 { 
    grid-area: 2 / 1 / 5 / 2; 
    border-radius: 24px;
    background: url(../../assets/images/home/hero-grid-image.png) no-repeat center center;
    background-size: cover;
    position: relative;
}

.projetos-hero-grid .projetos-div4 { 
    grid-area: 5 / 1 / 6 / 2; 
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    background: #41AD4933;
}

.projetos-hero-grid .projetos-div5 { 
    grid-area: 1 / 2 / 3 / 3;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    background: linear-gradient(180deg, #F04544 0%, #EE1874 100%);
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.projetos-hero-grid .projetos-div5 .projetos-div5-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(../../assets/images/home/hero-gradiente-div2.png) no-repeat center center;
    background-size: cover;
}

.projetos-hero-grid .projetos-div6 { 
    grid-area: 3 / 2 / 6 / 3;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    background: #F8F4DF;
    position: relative;
    overflow: hidden;
}

.projetos-hero-grid .projetos-div6 .projetos-div6-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(../../assets/images/home/hero-grid-div-6.png) no-repeat center center;
    background-size: cover;
}

/* Projetos Info Section */
.projetos-info-section {
    width: 100%;
    margin-top: 33px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
}

.projetos-info-container {
    max-width: 1216px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 64px;
}

.projetos-info-image {
}

.projetos-info-img {
    width: 500px;
    height: 350px;
    object-fit: cover;
    border-radius: 24px;
}

.projetos-info-text {
    max-width: 562px;
} 

.projetos-info-text .projetos-info-label {
    font-family: Londrina Solid;
    font-weight: 300;
    font-style: Light;
    font-size: 28px;
    leading-trim: NONE;
    line-height: 120%;
    letter-spacing: 0%;
    text-transform: uppercase;
    background: linear-gradient(95.33deg, #F04247 5.06%, #782B90 23.94%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.projetos-info-text .projetos-info-title {
    font-family: Londrina Solid;
    font-weight: 400;
    font-style: Regular;
    font-size: 64px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: 0%;
    text-transform: uppercase;
    color: #071F2C;
    margin-top: 16px;
    max-width: 592px;
}

.projetos-info-text .projetos-info-description {
    font-family: Inter;
    font-weight: 300;
    font-style: Regular;
    font-size: 20px;
    leading-trim: NONE;
    line-height: 160%;
    letter-spacing: 0%;
    color: #52636C;
    margin-top: 32px;
}


/* Map Section */
.map-section {
    width: 100%;
    margin-top: -70px;
}

@media (max-width: 1025px) {
    .map-section {
        margin-top: 0;
        margin-top: 50px;
    }
}

.map-container {
    max-width: 1216px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.map-title {
    font-family: Londrina Solid;
    font-weight: 400;
    font-style: Regular;
    font-size: 36px;
    line-height: 100%;
    letter-spacing: 0%;
    text-transform: uppercase;
    color: #071F2C;
    margin-bottom: 64px;
    max-width: 467px;
    margin-right: auto;
}



.map-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
    object-fit: contain;
}

/* Projects Showcase Section */
.projetos-showcase-section {
    width: 100%;
    margin-top: 120px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
}

.projetos-showcase-container {
    max-width: 1216px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.projetos-showcase-header {
    margin-bottom: 64px;
    width: 100%;
}

.projetos-showcase-header .projetos-showcase-label {
    font-family: Londrina Solid;
    font-weight: 300;
    font-style: Light;
    font-size: 28px;
    leading-trim: NONE;
    line-height: 120%;
    letter-spacing: 0%;
    text-transform: uppercase;
    background: linear-gradient(168.33deg, #F04247 -2.94%, #782B90 23.94%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.projetos-showcase-header .projetos-showcase-title {
    font-family: Londrina Solid;
    font-weight: 400;
    font-style: Regular;
    font-size: 64px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: 0%;
    text-transform: uppercase;
    color: #071F2C;
    margin-top: 16px;
}

.projetos-showcase-header .projetos-showcase-description {
    font-family: Inter;
    font-weight: 300;
    font-style: Regular;
    font-size: 20px;
    leading-trim: NONE;
    line-height: 160%;
    letter-spacing: 0%;
    color: #52636C;
    max-width: 600px;
}

.bottom-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 37px;
}

@media (max-width: 600px){
    .bottom-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* Custom Select Filter */
.custom-select-filter {
    margin-left: auto;
}

@media (max-width: 600px){
    .custom-select-filter {
        margin-left: 0;
        width: 100%;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
    }
}

.custom-select {
    position: relative;
    min-width: 274px;
}

.select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: #fff;
    border: 2px solid #E5E5E5;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.select-trigger:hover {
    border-color: #52636C4D;
}

.select-trigger.active {
    border-color: #52636C4D;
    border-radius: 50px 50px 0 0;
}

.select-text {
    font-family: Londrina Solid;
    font-weight: 300;
    font-size: 28px;
    text-transform: uppercase;
    color: #F04247;
    letter-spacing: 0.5px;
    background: linear-gradient(111.33deg, #F04247 11.06%, #782B90 73.94%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
}

.select-arrow {
    transition: transform 0.3s ease;
    margin-left: 17px;
}

.select-trigger.active .select-arrow {
    transform: rotate(180deg);
}

.select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 2px solid #52636C4D;
    border-top: none;
    border-radius: 0 0 20px 20px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.select-options.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.select-option {
    padding: 12px 20px;
    font-family: Londrina Solid;
    font-weight: 300;
    font-size: 14px;
    text-transform: uppercase;
    color: #52636C;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #F5F5F5;
}

.select-option:hover {
    background-color: #F8F4DF;
    color: #F04247;
}

.select-option:last-child {
    border-bottom: none;
}

.select-option.selected {
    background-color: #F04247;
    color: #fff;
}

/* Projects Grid */
.projetos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 30px;
    row-gap: 50px;
    width: 100%;
}

.projetos-grid .project-item {
    padding: 30px 20px;
    outline: none;
    min-height: 466px;
    background-color: #67DA70;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    height: auto;
    border-radius: 24px;
    transition: transform 0.3s ease;
}

.projetos-grid .project-item:hover {
    transform: translateY(-5px);
}

.projetos-grid .project-image {
    width: 178px;
    height: 154px;
    object-fit: cover;
    border-radius: 24px;
    margin-bottom: 24px;
}

.projetos-grid .project-name {
    font-family: Londrina Solid;
    font-weight: 400;
    font-style: Regular;
    font-size: 32px;
    leading-trim: NONE;
    line-height: 120%;
    letter-spacing: 0%;
    text-transform: uppercase;
    color: #071F2C;
    margin: 0;
    margin-bottom: 24px;
    max-width: 274px;
}

.projetos-grid .project-description {
    font-family: Londrina Solid;
    font-weight: 300;
    font-style: Light;
    font-size: 20px;
    leading-trim: NONE;
    line-height: 120%;
    letter-spacing: 1%;
    text-transform: uppercase;
    color: #fff;
    max-width: 193px;
}

.projetos-grid .bottom-content, .project-card-link .bottom-content {
    margin-top: 50px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.projetos-grid .program-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    text-decoration: none;
}

/* Project Card Colors */
.projeto-card-green {
    background-color: #41AD49;
}

.projeto-card-pink {
    background-color: #FF7887;
}

.projeto-card-purple {
    background-color: #C459FF;
}

.projeto-card-magenta {
    background-color: #EE1874;
}

.projeto-card-yellow {
    background-color: #FFB800;
}

.projeto-card-blue {
    background-color: #007DC5;
}

.projeto-card-cyan {
    background-color: #00C2FF;
}

.projeto-card-coral {
    background-color: #F04544;
}

/* News Section
.section-noticias {
    width: 100%;
    margin-top: 120px;
    background-color: #F8F4DF;
    padding: 80px 0;
}

.noticias-container {
    max-width: 1216px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.noticias-header {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 64px;
}

.noticias-label {
    font-family: Londrina Solid;
    font-weight: 300;
    font-style: Light;
    font-size: 28px;
    line-height: 120%;
    letter-spacing: 0%;
    text-transform: uppercase;
    background: linear-gradient(111.33deg, #F04247 11.06%, #782B90 73.94%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.noticias-title {
    font-family: Londrina Solid;
    font-weight: 400;
    font-style: Regular;
    font-size: 64px;
    line-height: 100%;
    letter-spacing: 0%;
    text-transform: uppercase;
    color: #071F2C;
    margin-top: 16px;
}

.noticias-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    align-self: flex-end;
    font-family: Londrina Solid;
    font-weight: 400;
    font-style: Regular;
    font-size: 28px;
    line-height: 120%;
    letter-spacing: 0%;
    text-transform: uppercase;
    color: #F25D2B;
    text-decoration: none;
}

.noticias-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: flex-start;
}

.noticia-main {
    display: flex;
    flex-direction: column;
    max-width: 590px;
}

.noticia-main-image {
    width: 100%;
    height: 337px;
    object-fit: cover;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

.noticia-main-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 16px;
    min-height: 215px;
    background-color: #fff;
    padding: 47px 40px;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

.noticia-title {
    font-family: Londrina Solid;
    font-weight: 400;
    font-style: Regular;
    font-size: 32px;
    line-height: 120%;
    letter-spacing: 0%;
    text-transform: uppercase;
    color: #071F2C;
    margin: 0;
    margin-bottom: 16px;
}

.noticia-text {
    font-family: Londrina Solid;
    font-weight: 300;
    font-style: Light;
    font-size: 18px;
    line-height: 120%;
    letter-spacing: 1%;
    text-transform: uppercase;
    color: #52636C;
    margin: 0;
}

.noticia-link {
    align-self: flex-end;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.noticias-secundarias {
    display: flex;
    flex-direction: column;
    gap: 32px;
    height: 100%;
    justify-content: space-between;
}

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

.noticia-image {
    width: 262px;
    max-height: 212px;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    flex-shrink: 0;
}

.noticia-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 280px;
}

.noticia-divider {
    border: none;
    height: 1px;
    background-color: #BABABA;
    margin: 0;
}
 */

/* Responsive Design */
@media (max-width: 1024px) {
    .projetos-hero-section {
        padding: 140px 16px 40px 16px;
        min-height: auto;
    }
    
    .projetos-hero-section .projetos-hero-content {
        flex-direction: column;
        gap: 60px;
    }
    
    .projetos-hero-text-content {
        max-width: 100%;
        text-align: center;
    }
    
    .projetos-hero-section .projetos-hero-content .projetos-subtitle {
        font-size: 72px;
        max-width: 100%;
    }
    
    .projetos-hero-image-container {
        width: 50vw;
        max-width: 500px;
        height: 700px;
        position: fixed;
        top: 0;
        right: 0;
    }
    
    .projetos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projetos-info-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .projetos-info-img {
        width: 100%;
        max-width: 590px;
    }
}

@media (max-width: 768px) {
    .projetos-hero-section {
        padding: 41px 16px 40px 16px;
        min-height: auto;
    }
    
    .projetos-hero-section .projetos-hero-content {
        flex-direction: column;
        gap: 0px;
    }
    
    .projetos-hero-text-content {
        text-align: left;
    }
    
    .projetos-hero-section .projetos-hero-content .projetos-hero-title {
        font-size: 24px;
    }
    
    .projetos-hero-section .projetos-hero-content .projetos-subtitle {
        font-size: 48px;
        margin-top: 20px;
    }
    
    .projetos-hero-section .projetos-hero-content .projetos-hero-text {
        font-size: 20px;
        max-width: 100%;
    }
    
    .map-container {
        padding: 0 16px;
    }
    
    .projetos-showcase-container {
        padding: 0 16px;
    }
    
    .noticias-container {
        padding: 0 16px;
    }
    
    .projetos-hero-image-container {
        width: 50vw;
        max-width: 500px;
        height: 700px;
        position: fixed;
        top: 0;
        right: 0;
    }
    
    .projetos-grid {
        grid-template-columns: 1fr;
    }
    
    .noticias-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .projetos-hero-section {
        padding-top: 90px;
    }
    
    .projetos-hero-section .projetos-hero-content {
        padding-left: 16px;
        padding-right: 16px;
        gap: 32px;
    }
    
    .projetos-hero-section .projetos-hero-content .projetos-hero-title {
        font-size: 24px;
    }
    
    .projetos-hero-section .projetos-hero-content .projetos-subtitle {
        font-size: 40px;
    }
    
    .projetos-hero-section .projetos-hero-content .projetos-hero-text {
        font-size: 20px;
    }
    
    .map-container {
        padding: 0 16px;
    }
    
    .projetos-showcase-container {
        padding: 0 16px;
    }
    
    .noticias-container {
        padding: 0 16px;
    }
    
    .projetos-hero-section .projetos-hero-content .projetos-subtitle {
        font-size: 48px;
    }
    
    .projetos-info-text .projetos-info-title {
        font-size: 36px;
    }
    
    .projetos-showcase-header .projetos-showcase-title {
        font-size: 36px;
    }
}

/* Inline Background Color Support */
.project-item.projeto-card {
    /* Background color will be set via inline style */
    color: #fff; /* Ensure text is readable on all backgrounds */
}

.project-card-link {
    text-decoration: none;
}

.project-item.projeto-card .project-name,
.project-item.projeto-card .project-description,
.project-item.projeto-card .project-institution,
.project-item.projeto-card .project-location, .project-card-link .project-name, .project-card-link .project-description, .project-card-link .project-institution, .project-card-link .project-location {
    color: #fff;
}

/* Project Info and Status Styles */
.project-info {
    margin-bottom: 16px;
}

.project-institution {
    font-family: Londrina Solid;
    font-weight: 400;
    font-size: 14px;
    line-height: 120%;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 4px 0;
}

.project-location {
    font-family: Londrina Solid;
    font-weight: 300;
    font-size: 12px;
    line-height: 120%;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}


/* No Projects Message */
.no-projects-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background-color: #F8F4DF;
    border-radius: 12px;
    margin: 20px 0;
}

.no-projects-message p {
    font-family: Londrina Solid;
    font-weight: 400;
    font-size: 24px;
    color: #52636C;
    text-transform: uppercase;
    margin: 0;
}

.no-projects-message a {
    color: #F04247;
    text-decoration: none;
    border-bottom: 2px solid #F04247;
}

.no-projects-message a:hover {
    color: #E03B40;
    border-bottom-color: #E03B40;
}

/* Pagination Styles */
.projetos-pagination {
    margin-top: 60px;
    width: 100%;
}

.pagination-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.pagination-prev,
.pagination-next {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: #F04247;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-family: Londrina Solid;
    font-weight: 400;
    font-size: 16px;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.pagination-prev:hover,
.pagination-next:hover {
    background-color: #E03B40;
    transform: translateY(-2px);
}

.pagination-prev img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

.pagination-next img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
    transform: rotate(180deg);
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #E5E5E5;
    color: #52636C;
    text-decoration: none;
    font-family: Londrina Solid;
    font-weight: 400;
    font-size: 16px;
    transition: all 0.3s ease;
}

.pagination-number:hover {
    background-color: #F04247;
    color: #fff;
    transform: scale(1.1);
}

.pagination-number.current {
    background-color: #F04247;
    color: #fff;
}

/* Responsive pagination */
@media (max-width: 768px) {
    .pagination-container {
        gap: 12px;
    }
    
    .pagination-prev,
    .pagination-next {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .pagination-number {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* Responsive padding for containers with max-width 1216px */
@media (max-width: 1216px) {
    .projetos-hero-section .projetos-hero-content,
    .projetos-info-container,
    .map-container,
    .projetos-showcase-container,
    .noticias-container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Project Card Link Styles */
.project-card-link {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    text-decoration: none;
    color: #fff;
    flex: 1;
}

.project-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.project-card-link .project-name,
.project-card-link .project-description {
    text-decoration: none;
    color: inherit;
}

/* Adjust project-item structure for clickable cards */
.projetos-grid .project-item {
    position: relative;
}

.projetos-grid .project-item .program-button {
    position: relative;
    z-index: 2;
}