/* Section 1 */

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.project-banner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 1200px;
    flex-wrap: wrap;
    margin: 120px auto 0;
    position: relative;
    padding: 40px 10%;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); 
    overflow: hidden;
}

.decoration{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
}

.text-content {
    max-width: 45%;
    padding: 20px;
}

.project-title {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(to right, #004085, #d9534f); /* Gradient albastru-roșu */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; /* Gradient text */
    margin-bottom: 15px;
}

.full-name {
    font-size: 22px;
    font-weight: 600;
    color: #004085;
    margin-bottom: 15px;
}

.project-code {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #555;
}

.info-text {
    font-size: 18px;
    font-weight: 500;
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic; /* Italic pentru un aspect elegant */
}

.info-text a {
    color: #004085;
    text-decoration: underline;
    font-weight: bold;
}

.contact-button {
    display: inline-block;
    padding: 12px 20px;
    background-color: #d9534f;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.contact-button:hover {
    background-color: #b52a2a;
}

.background-image {
    max-width: 40%; /* Dimensiunea inițială */
    height: auto;
    margin-top: 20px;
    flex-shrink: 0;
    border-radius: 0;
    box-shadow: none;
}

@media (max-width: 880px) {

    .text-content, .background-image {
        max-width: 100%;
        padding: 10px;
    }

    .project-banner {
        flex-direction: column; 
        align-items: center; 
        text-align: center; 
        margin-top: 160px;
    }
    .background-image {
        max-width: 60%; 
        margin: 0 auto;
    }
}

/* Pseudo-elemente pentru decorațiuni */
.decoration::before,
.decoration::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

/* Prima decoratiune */
.decoration::before {
    width: 150px;
    height: 150px;
    background-color: #d9534f;
    top: -40px;
    left: -40px;
    transform: rotate(15deg);
}

/* A doua decoratiune */
.decoration::after {
    width: 100px;
    height: 100px;
    background-color: #004085;
    bottom: -30px;
    right: -30px;
    transform: rotate(-15deg);
}

/* Adăugăm încă două elemente decorative */
.project-banner::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background-color: #6c757d;
    top: 10px;
    right: 10px;
    border-radius: 50%;
    opacity: 0.08;
}

.project-banner::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: #ffc107;
    bottom: 10px;
    left: 20px;
    border-radius: 50%;
    opacity: 0.15;
}

/* Section 2 */

.project-details {
    padding: 20px;
    margin: 30px auto;
    max-width: 1400px;
    text-align: center;
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    padding: 0 15px;
    box-sizing: border-box;
}

.card {
    flex: 1;
    min-width: 300px;
    max-width: 32%; 
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: left;
    transition: transform 0.3s, background-color 0.3s;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    background-color: #f0f4f8; /* Schimbă culoarea de fundal la hover */
}

.card h3 {
    font-size: 22px;
    color: #d9534f;
    margin-bottom: 10px;
}

.card p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

.card3{
    flex: 1.5;
    max-width: 48%;
}

/* Stiluri Responsive */
@media (max-width: 768px) {
    .cards-container {
        flex-direction: column;
        align-items: center;
        padding: 0 15px;
    }
    .card {
        max-width: 100%; /* Cardurile ocupă toată lățimea pe ecrane mici */
        box-sizing: border-box;
    }
}


/* Section 3 */

.counties-implementation {
    padding: 20px;
    margin: 30px auto;
    max-width: 1200px;
    text-align: center;
}

.section-title {
    font-size: 28px;
    color: #004085;
    font-weight: bold;
    margin-bottom: 30px;
}

.counties-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.county {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #333;
    background-color: #f0f0f0;
    padding: 8px 15px;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.3s;
    cursor: default;
}

.county:hover {
    background-color: #d9534f;
    color: #fff;
    transform: translateY(-3px);
}

/* Stiluri Responsive */
@media (max-width: 768px) {
    .counties-list {
        gap: 10px;
    }
    .county {
        font-size: 14px;
        padding: 6px 12px;
    }
}

/* Section 4 */

.project-objective {
    background: linear-gradient(to right, #f0f4f8, #ffffff);
    padding: 50px;
    margin: 50px auto;
    max-width: 1000px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.objective-content {
    border-left: 5px solid #d9534f;
    padding-left: 20px;
}

.objective-title {
    font-size: 26px;
    color: #004085;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: left;
    font-family: 'Poppins', sans-serif; 
}

.title-underline {
    width: 60px;
    height: 4px;
    background-color: #d9534f;
    margin-bottom: 20px;
}

.objective-text {
    font-size: 16px;
    color: #555;
    font-family: 'Lato', sans-serif; 
    line-height: 1.8;
    text-align: justify;
}

.objective-text::first-letter {
    font-size: 20px;
    font-weight: bold;
    color: #004085;
}

@media (max-width: 768px) {
    .project-objective {
        padding: 30px;
    }
    .objective-title {
        font-size: 22px;
    }
    .objective-text {
        font-size: 14px;
    }
}

/* Section 5 */

.specific-objectives {
    padding: 40px;
    margin: 50px auto;
    max-width: 1000px;
    border-left: 5px solid #0943af; /* Bordură verticală albastru deschis */
    background: linear-gradient(to right, #f3f4f5, #fffdfd);
}

.specific-objectives .section-title {
    font-size: 28px;
    color: #0840b9; /* Culoare albastru deschis */
    font-family: 'Poppins', sans-serif; /* Font modern și interesant */
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
}
    
.accordion {
    border-top: 2px solid #ccc;
}

.accordion-item {
    border-bottom: 2px solid #ccc;
}

.accordion-header {
    width: 100%;
    background-color: #97b4f1; /* Fundal albastru deschis și sobru */
    color: #2c3e50; /* Text închis pentru contrast */
    font-size: 18px;
    text-align: left;
    padding: 15px 20px;
    border: none;
    outline: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Poppins', sans-serif; /* Font modern */
}

.accordion-header:hover {
    background-color: #638ce4; /* Schimbare subtilă la hover */
}

.accordion-header::after {
    content: '+';
    font-size: 18px;
    transition: transform 0.3s;
}

.accordion-header.active::after {
    content: '-';
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background-color: #eaf3fa; /* Fundal foarte deschis pentru conținut */
    padding: 0 20px;
    border-left: 4px solid #0d2aca; 
    text-align: justify;
}

.accordion-content.active {
    max-height: 500px; /* Ajustează pentru a se potrivi cu conținutul */
    padding: 15px 20px;
}

.accordion-content p {
    font-size: 16px;
    color: #2c3e50; /* Culoare sobru-albastră pentru text */
    font-family: 'Poppins', sans-serif; /* Font modern */
    line-height: 1.8;
}

/* Stiluri Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 24px;
    }
    .accordion-header {
        font-size: 16px;
        padding: 12px 15px;
    }
    .accordion-content p {
        font-size: 14px;
    }
}

/* Section 6 */

.results-section {
    padding: 50px;
    max-width: 1000px;
    margin: 50px auto;
    text-align: center;
}

.section-title {
    font-size: 28px;
    color: #004085;; 
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    margin-bottom: 30px;
}

.results-list {
    position: relative;
    padding-left: 20px;
    border-left: 4px solid #d9534f; /* Linie verticală roșie */
}

.result-item {
    display: flex;
    align-items: center; /* Aliniere pe orizontală a punctului și textului */
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.result-icon {
    font-size: 24px;
    color: #004085; 
    margin-right: 10px;
    font-weight: bold;
}


.result-item p {
    font-size: 16px;
    color: #333;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    text-align: left;
    margin: 0;
}

/* Stiluri Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 24px;
    }
    .result-item p {
        font-size: 14px;
    }
}

/* Newsletter */

.newsletter-section {
    padding: 60px 20px;
    background-color: #f0f4f8;
    text-align: center;
    max-width: 800px;
    margin: 40px auto; /* Adăugăm spațiu deasupra și dedesubt */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-family: 'Poppins', sans-serif;
}

.newsletter-section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #2e3d49;
}

#newsletter-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

#newsletter-form input[type="email"] {
    padding: 15px;
    font-size: 1.1em;
    border: 2px solid #004085;
    border-radius: 5px;
    flex: 1;
    max-width: 300px;
}

#newsletter-form button {
    padding: 15px 30px;
    font-size: 1.1em;
    background-color: #004085;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#newsletter-form button:hover {
    background-color: #0056b3;
}

/* Stil pentru pop-up */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    max-width: 400px;
    width: 100%;
    animation: popup-fade-in 0.3s ease-in-out; /* Animație pentru apariția pop-up-ului */
}

.popup-content p {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #004085;
    font-weight: 600;
}

.popup-content .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5em;
    cursor: pointer;
    color: #333;
    transition: color 0.3s ease;
}

.popup-content .close-btn:hover {
    color: #007BFF;
}

/* Animație pentru pop-up */
@keyframes popup-fade-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
