.bar{
    letter-spacing: 2px;
    height: 80px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    color: #2c5d33;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    box-sizing: border-box;
    font-family:'Segoe UI', sans-serif;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}


.search-form{
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.search-input{
    width: 200px;
    height: 34px;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.search-btn{
    height: 34px;
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    background: #2c5d33;
    color: white;
    cursor: pointer;
}

.search-btn:hover{
    background: #244827;
}


.topnav{
    display:flex;
    gap: 0.5rem;
    align-items: center;
    background-color: #dff5e5;
}

.topnav a{
    color: #555;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    transition: 0.3s;
}

.topnav a:hover{
    background-color: #f0f7f0;
    color: #2c5d33;
}

.topnav a.active{
    background-color: #2c5d33;
    color: white;
}


.groupone,
.grouptwo,
.groupthree,
.groupfour{
    display: flex;
    align-items: stretch;
    gap: 24px;
    margin: 48px 24px;
    font-family:'Trebuchet MS', sans-serif;
}


.image1,
.image2,
.image3,
.image4{
    width: 100%;
    max-width: 420px;
    border: 5px solid #2c5d33;
    object-fit: cover;
}


.text-board{
    flex: 1;
    background: rgb(215,236,204);
    padding: 1.5rem;
    box-sizing: border-box;
    border-radius: 8px;
    box-shadow: 12px 12px 32px rgba(33,33,33,.7);
    display: flex;
    align-items: center;
    color: black;
}

.text-board:hover{
    transform: rotate(2deg);
    transition: 0.3s;
}

@media (max-width: 800px){

    .bar{
        flex-direction: column;
        height: auto;
        padding: 1rem;
        gap: 1rem;
    }

    .topnav{
        flex-wrap: wrap;
        justify-content: center;
    }

    .groupone,
    .grouptwo,
    .groupthree,
    .groupfour{
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin: 20px 10px;
    }

    .image1,
    .image2,
    .image3,
    .image4{
        width: 90%;
    }

    .text-board{
        width: 90%;
    }

    .search-input{
        width: 140px;
    }

    .search-btn{
        display: none;
    }
}