/* Hero Section - Projetos Hero Styles */
.editais-hero-section {
    width: 100%;
    min-height: 946px;
    height: 100%;
    top: 0;
    left: 0;
    padding: 120px 20px 40px 20px;
    display: flex;
    align-items: center;
}

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

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

.editais-hero-section .editais-hero-content .editais-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;
}

.editais-hero-section .editais-hero-content .editais-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;
    max-width: 520px;
}

.editais-hero-section .editais-hero-content .editais-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;
}

.editais-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;
}

.editais-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) {
    .editais-hero-image-container {
        width: 858px;
    }
}

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

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

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

.editais-hero-grid .editais-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;
}

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

.editais-hero-grid .editais-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;
}

.editais-hero-grid .editais-div5 .editais-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;
}

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

.editais-hero-grid .editais-div6 .editais-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;
}


/* Editais Content Section */
.editais-content-section {
    width: 100%;
    margin-top: 33px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
}

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

.editais-content-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: 0 0 64px 0;
}

.editais-content-text {
    max-width: 100%;
    margin-top: 32px;
}

.editais-content-text p {
    font-family: Inter;
    font-weight: 300;
    font-style: Regular;
    font-size: 20px;
    line-height: 160%;
    letter-spacing: 0%;
    color: #52636C;
    margin-bottom: 24px;
}

/* Editais Grid Section */
.editais-grid-section {
    width: 100%;
    margin-top: 80px;
    padding: 0 20px 120px 20px;
}

.editais-grid-container {
    max-width: 1216px;
    width: 100%;
    margin: 0 auto;
}

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

.edital-item {
    background-color: #FCFBF3;
    border-radius: 24px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.edital-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.edital-icon {
    margin-bottom: 24px;
    align-self: flex-start;
}

.edital-icon img {
    width: 48px;
    height: 48px;
}

.edital-content {
    flex-grow: 1;
    margin-bottom: 32px;
}

.edital-title {
    font-family: Londrina Solid;
    font-weight: 400;
    font-style: Regular;
    font-size: 24px;
    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;
    margin: 0 0 16px 0;
}

.edital-period {
    font-family: Londrina Solid;
    font-weight: 400;
    font-style: Light;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: 0%;
    text-transform: uppercase;
    color: #52636C;
    margin: 0 0 8px 0;
}

.edital-location {
    font-family: Londrina Solid;
    font-weight: 400;
    font-style: Light;
    font-size: 20px;
    line-height: 120%;
    letter-spacing: 0%;
    text-transform: uppercase;
    color: #52636C;
    
}

.edital-description {
    font-family: Londrina Solid;
    font-weight: 400;
    font-style: Regular;
    font-size: 20px;
    line-height: 120%;
    letter-spacing: 0%;
    text-transform: uppercase;
    color: #52636C;
}

.edital-details {
    font-family: Inter;
    font-weight: 300;
    font-style: Regular;
    font-size: 16px;
    line-height: 160%;
    letter-spacing: 0%;
    color: #52636C;
    margin: 0;
    border-top: 1px solid #EAE6CD;
    padding-top: 24px;
    margin-top: 24px;
}

.edital-download-btn {
    background-color: #F25C2D;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 16px 32px;
    font-family: Londrina Solid;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: 0%;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    align-self: flex-start;
    margin-top: auto;
}

.edital-download-btn:hover {
    background-color: #E03B40;
    transform: translateY(-2px);
}

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

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

@media (max-width: 480px) {
    .editais-hero-section {
        padding-top: 90px;
    }
    
    .editais-hero-section .editais-hero-content {
        gap: 32px;
        padding-left: 0;
        text-align: left;
    }
    
    .editais-hero-section .editais-hero-content .editais-hero-title {
        font-size: 24px;
    }
    
    .editais-hero-section .editais-hero-content .editais-subtitle {
        font-size: 40px;
    }
    
    .editais-hero-section .editais-hero-content .editais-hero-text {
        font-size: 20px;
    }
    
    .editais-grid-section {
        padding: 0 16px 120px 16px;
    }
    
    .editais-content-title {
        font-size: 36px;
    }
    
    .editais-content-text p {
        font-size: 16px;
    }
    
    .edital-item {
        padding: 24px 16px;
    }
    
    .edital-title {
        font-size: 18px;
    }
    
    .edital-description {
        font-size: 16px;
    }
    
    .edital-period,
    .edital-location {
        font-size: 14px;
    }
    
    .edital-details {
        font-size: 14px;
    }
    
    .edital-download-btn {
        font-size: 14px;
        padding: 12px 24px;
    }
}

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