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

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

.topnav a {
    color: #555;
    text-align: center;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    transition: 0.3s;
}

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

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

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

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

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

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

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

.text-board p {
    margin: 0 0 1rem 0;
}

.text-board p:last-child {
    margin-bottom: 0;
}

@media (max-width: 800px) {

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

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

    .topnav a {
        padding: 8px 12px;
        font-size: 14px;
    }

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

    .grouptwo img,
    .groupfour img {
        order: -1;
    }

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

    .text-board {
        width: 90%;
        box-sizing: border-box;
    }

    .search-input {
        width: 140px;
    }

    .search-btn {
        display: none;
    }
}