body{
    background-color: #2F5249;
    margin: 0px;
}


.navigation{
    background-color: #E3DE61;
    display: flex;
    justify-content: space-around;
    height: auto;
    text-align: center;
    align-items: center;
}

.phone-menu {
    display: none;
    position: relative;
    z-index: 1000;
}

.nav{
    margin-left:-7em;
    display: flex;
    align-items: center;
    font-size: 0.65em;
    background-color: rgba(128, 128, 128, 0.3);
    border-radius: 50px;

    & .position{
        display: flex;
        align-items: center;
    }

    & a{
        text-decoration: none;
        color: black;
        font-weight: 600;
        padding-left: 2em;
        padding-right: 2em;
    }

    & a:hover{
        background-color: #2F5249;
        border-radius: 50px;
        color: #E3DE61;
    }
}

.logo {

    margin-right: 12.5%;

    & img{
    width: 6em;
    }
}

.search {

    display: flex;
    gap: 1em;
    margin-right: -3em;

    & img{
        width: 2.5em;
    }
}
.section1 {
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    font-size: 2em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    background:
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)),
        url(/photo/ph1.jpeg) center center / cover no-repeat;
    
    & h1{
        font-size: 3em;
        margin-bottom: 0em;
    }

    & p{
        font-size: 1.2em;
        margin-bottom: 3em;
    }
}

.first-text {
    z-index: 1;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    opacity: 0; /* Hide initially for animation */
    animation: fadeInSlideUp 1.5s ease-out forwards;
}



@keyframes fadeInSlideUp {
    0% {
        opacity: 0;
        transform: translateY(2em);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.section1 h2 {
    margin: 0;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}
/* ------------------------------section2 */

.section2 {

    height: auto;
    justify-content: center;
    margin-bottom: 0.2%;

}



.title{
    margin-left: 4.4em;
    font-size: 2em;
    margin-bottom: 1.8em;
}

.box{
    display: flex;
    background-color: #E3DE61;
    margin-bottom: 2em;
    margin-top: 2em;
    width: 95%;
    margin-left: 2.5em;
    border-radius: 15px;
}

.event {
    background: #abd262;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.event-toggle {
    display: none;
    margin-bottom: 2em;
}

.event-title {
    display: block;
    padding: 15px 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #222;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s;
    text-align: center;
}

.event-title:hover {
    background-color: #f0f0f0;
}

.event-title::after {
    position: absolute;
    transition: transform 0.3s;
}


.event-details {
    text-align:left !important;
    max-height: 0;
    overflow: hidden;
    padding: 0em 0em;
    transition: max-height 0.4s ease-out, padding 0.3s ease;
}


.event-toggle:checked ~ .event-details {
    max-height: 100%; 
    padding: 0 2em 1.5em 0em;
}



.event-info {
    margin-top: 10px;
    font-size: 1em;
    color: #000;
    line-height: 1.5;

    & img{
        width: 40%;
        margin-left: 32%;
    }
}

.box1{
    background-color: #97B067;
    font-size: 1.2em;
    display: flex;
    flex-direction: column;
    width: 40em;
    height: auto;
    margin: 1em;
    padding: 1em;
    border-radius: 10px;
}

.box1 .ph1 {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 1.2em;

    & h1{
        color:#E3DE61
    }

    & h2{
        margin-left: 1em;
    }
}

.reson{

    margin-bottom: 2em ;
    & p{
        margin-left: 3.8em;
        margin-top: 0em;
    }
}

.box2 {
    margin-left: 6em;
    margin-top: 10%;

    & img{
        width: 25em;
    }

    & img:hover{
        transform: scale(1.1);
        transition:0.3s;
    }
}

/* ------------------------------section3 */

.box3{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 15px;
    margin-bottom: 2em;
    background-color: #E3DE61;
    width: 95%;
    margin-left: 2.5em;

    & .logo1{
        width: 6em;
        margin-top: 4em;
    }

    & h1{
        font-size: 3.6em;
        margin-top: 1em;
    }

    & .leguma{
        width: 25em;
    }

    & div{
        width: 70%;
        display: flex;
        text-align: center;
        margin-bottom: 3em;
        font-size: 1.3em;
    }

    & img{
        width: 23em;
    }
}

.box4{

    text-align: center ;
    margin-top: 1.3em;
    margin-bottom: 2em;
    background-color: #E3DE61;
    width: 95%;
    margin-left: 2.5em;
    margin-bottom: 2em;
    height: auto;
    border-radius: 15px;
    text-decoration: none;


    & h1{
        font-size: 3.6em;
        padding-top: 1em;
    }


}

.cards {
      display: flex;
      justify-content: center;
      gap: 30px;
      flex-wrap: wrap;
      padding-bottom: 2em;
    }

    .card {
      margin-top: 3em;
      width: 11em;
      padding: 20px;
      background: #F5EC6C;
      border-radius: 20px;
      cursor: pointer;
      transition: transform 0.2s;
      text-align: center;
      text-decoration: none;
      color: black;
    }

    .card:hover {
      transform: scale(1.05);
      box-shadow: 0 0 15px rgba(0,0,0,0.2);

      & p{
        color: #456882;
      }


    }

    .card img {
      width: 100%;
      height: auto;
    }

    .card h3 {
      margin: 1em 0 1em;
      font-size: 1.8em;
    }

    .card p {
      margin: 0;
      font-size: 14px;
    }

    /* Popup overlay */
    .popup {
      display: none;
      position: fixed;
      top: 0; left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(0,0,0,0.4);
      backdrop-filter: blur(6px);
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }

    .popup:target {
      display: flex;
    }

    .popup-content {
      background: white;
      padding: 3em;
      border-radius: 15px;
      width: 30em;
      text-align: center;
      position: relative;
    }

    .popup-content img {
      width: 50%;
      height: auto;
      margin-bottom: 15px;
    }

    .popup-content h2 {
      margin: 0 0 1.3em;
      font-size: 2em;
    }

    .popup-content p {
      font-size: 1.2em;
    }

    .close-btn {
      position: absolute;
      top: 5px;
      right: 15px;
      text-decoration: none;
      font-size: 3em;
      color: #900;
    }

    .close-btn:hover {
      color: red;
    }






footer {
    background-color: rgba(255, 255, 255, 0.2); /* Fundal semi-transparent (alb în acest caz) */
    backdrop-filter: blur(10px); /* Aplică efectul de blur */
    -webkit-backdrop-filter: blur(10px);
    padding-top: 2em;
    
}

.footer-text{
    width: 20em;
}

.footer-content{
    gap: 1em 5em;
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.footer-content a{
    text-decoration: none;
    color: #fff;
}

.social-media{
    padding-top: 1em;
    border-top: #fff solid 1px;
    margin-top: 1.6em;
    display: flex;
    justify-content: center;
    gap: 1em 15em;
}

.social-links{
    display: flex;
    justify-content: center;
    gap: 1em;
}

.social-media img{
    width: 1.7em;
}

/*-----------------------------------------Despre noi style*/

.bg-photo {
    height: 40vh;
    overflow: hidden;


    & .photo{


        height: 40vh;
        z-index: -1;
        position: relative;
        display: flex;
    }

    & h1{
        position: absolute;
        top: 30%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: #abd262;
        font-size: 5em;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    }

    & img{
        width: 100em;
        object-fit: cover;
        filter: brightness(0.7);
        display: block;
        z-index: -2;
        position: relative;
        

    }
}

.photo {
    z-index: 1;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    opacity: 0; /* Hide initially for animation */
    animation: fadeInSlideUp 1.5s ease-out forwards;
}



/*----------------------------------------Contact style*/

.box-contact{
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    margin-bottom: 2em;
    background-color: #E3DE61;
    width: 80%;
    margin-left: 9em;
    margin-top: 3em;
    height: 70vh;



    & .contact-info{
        width: 60%;
        margin-bottom: 3em;
        font-size: 1.1em;
        margin-left: 10em;
    }

    & h1{
        font-size: 2.5em;
        margin-bottom: 1em;
    }

    & p,a{
        margin-top: 0.5em;
        color: #2F5249;
        text-decoration: none;
        font-size: 1.1em;
    }


    & iframe{
        width: 30em;
        border-radius: 15px;
        margin-top: 2em;
        flex: 1;
        margin-left: 3em;
    }
}

/*----------------------------------------for mobile*/
@media (min-width: 310px) and (max-width: 767px) {



    .section1{
        background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)),
        url(/photo/ph1.jpeg) center center/ cover no-repeat;

        & img {
            width: 100%;
        }

        & h1{
            font-size: 210%;
        }

        & p{
            font-size: 90%;
        }
    }

    .section2{
        
        .box{
            display: flex;
            flex-direction: column;
            margin-left: 0.8em;
            align-items: center;
            text-align: center;
        }

        .box1{
            width: 85%;
            margin-top: 1em;

        }

        .event-details{
            max-height: 0em;
        }

        .event-toggle:checked ~ .event-details {
        max-height: 80em;
        padding: 0 1em 0em 0em;
        }

        .event-info{
            width: 90%;

            & p{
                margin-left: 1.3em;
            }
        }

        .title{
            margin: 0em;
            font-size: 2em;
            margin-bottom: 1.5em;
        }

        .ph1{
            font-size: 0.8em;
        }

        .event-title {
            font-size: 1em;
            padding: 0.5em 0.3em; 
        }

        .event{
             
            & img{
                width: 90%;
                margin-left: 14%;
                margin-bottom: 10%;
            }
        }

        .box2 {
            margin-left: 0em;
            margin-top: 5%;
            margin-bottom: 7%;
            overflow: hidden;
            
            & img{
                width: 80%;
            }
    
        }

    }

    .box3{
        display: flex;
        flex-direction: column;
        margin-left: 0.8em;
        align-items: center;
        text-align: center;

        & .logo1{
            width: 20%;
            margin-top: 2em;
        }

        & h1{
            font-size: 2.5em;
            margin-top: 1em;
            padding-left: 1em;
            padding-right: 1em;
        }

        & .leguma{
            width: 60%;
        }

        & div{
            width: 90%;
            display: flex;
            text-align: center;
            margin-bottom: 3em;
            font-size: 110%;
        }
    }

    .box4{
        overflow: visible;
        height: auto;
        margin-left: 0.8em;
        align-items: center;
        text-align: center;

        .cards{
            display: flex;
            flex-direction: row;
            width: 95%;
            margin-left: 0.7em;
            padding-bottom: 3em;
        }

        .card {
            width: 34%;

            & h3 {
                font-size: 1.5em;
            }

        }
    }


    .popup-content {
        width: 70%;
        padding: 2em;
        margin-bottom: 7%;
        height: 60vh;
        overflow-y: auto;
    }

    .social-media{

        & p{
            display: none;
        }
    }

    .social-links{
        padding-bottom: 3em;
        gap: 3em 4em;

        & img{
            width: 2em;
        }
    }

    /*----------------------------------------*/

    .bg-photo {


        & h1{
            font-size: 350%;
            top: 40%;
            right: -25%;
        }

        & img{
            width: 100%;
        }
    }

    .box2{

        & img{
            width: 80% !important;
        }
    }

    
    .box1{
        margin-left: 0.9em !important;
    }

    /*----------------------------------------Contact style*/

    .contact{
        width: 100%;
    }
    .box-contact{
        flex-direction: column;
        width: 95%;
        margin-left: 0.7em;
        margin-top: 3em;
        height: auto;

        & .contact-info{
            width: 100%;
            margin-left: 0em;
            text-align: center;

            & h1{
                margin-top: 2em;
            }

            & p,a{
                font-size:125%;
            }
        }

        & iframe{
            padding-top: 15%;
            width: 95%;
            margin-left:3%;
            height: 40vh;
            margin-top: 2em;
        }

    }

    

    /*----------------------------------------header */

    .navigation{
        display: flex;
    }

    .phone-icon {
        cursor: pointer;
    }

    #menu-toggle {
        display: none;
    }

    .box-nav {
        display: none;
    }

    #menu-toggle:checked ~ .box-nav {
        display: flex;
        flex-direction: column;
        background-color: #f0f0f0;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 2000;
        animation: slideIn 0.3s ease-in-out;
    }


    .start{

        & img {
            width: 2em;
            margin-top: 0.6em;
        }
    }

    @keyframes slideIn {
        from {
            transform: translateX(-100%);
        }
        to {
            transform: translateX(0);
        }
        
    }


    #menu-remove:checked ~ .box-nav {
        display: none;
        animation: slideOut 0.3s ease-in-out;
    }

    


    .move{
        display: flex;
        flex-direction: column;
        margin-top: 3.6em;
        margin-bottom: 50%;

        & a{
            margin-top: 0.6em;
            font-size: 2em;
            color: #2F5249;
            text-decoration: none;
            padding: 0.5em 0em;
        }

    }

    .logo{
        margin-right: 0em;
        
        & img{
            width: 5em;
            margin-top: 1em;
        }
    }

    .phone-menu{
        display: flex;
    }

    .nav{
        display: none;
    }

    .search{
        display: none;
    }


    .back{
        margin-left: 20em;

        & img{
            width: 2em;
            margin-top:2em;
        }
    }

    .social-icons{
        gap: 1em 2em;
        display: flex;
        justify-content: center;
        border-top: #000 solid 1px;
        padding: 0.1em;
        & img{
            width: 2.5em;
            margin-top: 1em;

        }
    }

    #contact{

        & contact-info{
            width: 90%;
        }

        & p{
            font-size: 1.3em !important;
        }
    }

    #adress{
        padding-left: 13%;
    }

    .footer-content{

        & h1{
            font-size: 250% !important;
        }

        & p{
            font-size: 120% !important;
        }
    }

}




@media (max-width: 400px){


    .event{
             
        & img{
            width: 80%;
            margin-left: 20%;
            margin-bottom: 10%;
        }
    }


    .first-text h1 {
        font-size: 200% !important;
    }

    .first-text p {
        font-size: 80%;
    }

    .box3 h1 {
        font-size: 2.2em;
    }

    .box4 h1 {
        font-size: 2.5em;
    }

    .card {
        width: 32% !important;
    }

    .box{
        margin-left: 0.6em !important;
    }

    .box3{
        margin-left: 0.6em !important;

        & p{
            font-size: 0.8em !important;
        }
    }

    .box4{
        margin-left: 0.6em !important;
    }

    .footer-content{

        & h1{
            font-size: 1.9em !important;
        }

        & p{
            font-size: 1em !important;
        }
    }

    #contact{

        & h1{
            font-size: 2em !important;
        }

        & p,a{
            font-size: 1em !important;
        }
    }

    #adress{
        padding-left: 6%;
    }


}

@media (min-width: 1600px) and (max-width: 3000px){
    .section1 h1 {
        font-size: 6em;
    }

    .section1 p {
        font-size: 2em;
    }

    .box3 h1 {
        font-size: 3.5em;
    }

    .box4 h1 {
        font-size: 4em;
    }

    .card h3 {
        font-size: 2.5em;
    }

    .position{

        & a{
            font-size: 2em;
        }
    }

    .nav{
        margin-bottom: 1%;
        margin-top: 1%;
        margin-left: -2%;
    }

    .navigation{
        height: auto;
    }

    .logo{
        margin-right: 9%;

        & img{
            width: 40%;
        }
    }

    .search{
        margin-right: 3%;
        gap: 3em;

        & img{
            width:4.6em;
        }
    }

    .footer-content{
        & h1{
            font-size: 450%;
        }

        .footer-text{
            width: 30%;
        }

        #adress{
            width: 30%;
        }

        & p{
            font-size: 250%;
        }

        & img{
            width: 3.8em;
            margin-top: 40%;
        }
    }

    .box2{
        & img{
            width: 30em;
            margin-left: -3% !important;
            margin-bottom: 30%;
        }
    }

    .box{
        margin-left: 2.5%;
    }

    .box1{
        width: 50%;
        height: auto;

        .title{
            font-size: 400%;
            margin-left: 17%;
        }

        .ph1{
            font-size: 2.5em;
        }

        .event-title {
            font-size: 250%;
        }

        .event-info {
            font-size: 110%;

            & img{
                width: 30em;
            }

        }

        .event-toggle:checked ~ .event-details {
            max-height: 100%; 
            padding: 0 2em 1.5em 0em;
        }


    }


    .box3{
        height: auto;
        margin-left: 2.5%;

        & .logo1{
            width: 8%;
            margin-top: 3%;
        }

        & h1{
            font-size: 450%;
            margin-top: 1em;
            padding-left: 1em;
            padding-right: 1em;
        }

        & .leguma{
            width: 35em;
        }


        & div{
            width: 70%;
            display: flex;
            text-align: center;
            margin-bottom: 3em;
            font-size: 150%;
        }

        & P{
            font-size: 170%;
        }
    }

    .box4{
        height: auto;
        margin-left: 2.5%;
        align-items: center;
        text-align: center;

        & h1{
            font-size: 450%;

        }

        .cards{
            display: flex;
            flex-direction: row;
            width: 95%;
            margin-left: 0.7em;
            padding-bottom: 3em;
        }

        .card {
            width: 15%;

            & h3 {
                font-size: 300%;
            }

            & p {
                font-size: 150%;
            }

        }


    }

    .popup-content {
        width: 45%;
        padding: 3em;
        
        & img {
            width: 37%;
            height: auto;
        }

        & h2 {
            font-size: 450%;
        }

        & p {
            font-size: 250%;
        }

        .close-btn {
            font-size: 700%;
            right: 30px;
        }
    }

    .photo{
        
        & img{
            width: 100%;
            height: 40vh;
            object-fit: cover;
            filter: brightness(0.7);
            display: block;
            z-index: -2;
        }

        & h1{
            font-size: 8em;
        }
    }

    .box2 img{
        width: 50em !important;
        margin-top: 22%;
        margin-left: -1em;
    }

    .box {
        


        .box1{
            margin-left: 4% !important;
            width: 65%;
        }

        & p{
            font-size: 200%;
        }
    }

    .map{

        margin-right: 37em;
        iframe{
            width: 400%;
            height: 50vh;
 
        }  
    }

    .contact-info{
        width: 100%;
        margin-left: 20em !important;


        & h1{
            font-size: 500%;
        }

        & a{
            font-size: 110% !important;
            text-decoration: none;
        }

        & p{
            font-size: 250% !important;
        }
    }

    .contact{
        margin-bottom: 8em;
        margin-left: 6%;
    }

    footer{
        margin: 0em;
    }

}

