﻿.hamburger {
    display: none;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 998;
}

    .overlay.active {
        display: block;
        opacity: 1;
    }

.close-btn {
    display: none;
}

.logged-in-top-wrapper {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        font-size: 28px;
        cursor: pointer;
        justify-content: center;
        align-content: center;
    }

    .overlay {
        display: none;
    }

        .overlay.active {
            display: block;
        }

    .top-nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100%;
        width: 75%;
        max-width: 320px;
        background: #fff;
        box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 20px 20px;
        transition: right 0.3s ease-in-out;
        overflow-y: auto;
        z-index: 999;
    }

        .top-nav.active {
            right: 0;
        }

    .top-nav-link {
        text-align: center;
    }

    .close-btn {
        position: absolute;
        top: 24px;
        right: 24px;
        background: none;
        border: none;
        font-size: 28px;
        cursor: pointer;
        display: block;
        line-height: 1;
        width: 24px;
        height: 24px;
        border: none;
    }

    .top-nav ul {
        flex-direction: column;
        gap: 16px;
        margin-top: 40px;
    }

        .top-nav ul li:last-child {
            margin-top: 2rem;
        }

    .top-nav a {
        font-size: 1rem;
        font-weight: 500;
        transition: color 0.2s;
        width: 100%;
    }

        .top-nav a:hover {
            color: #3B622C;
        }

    .primary-btn {
        display: inline-block;
        color: white !important;
        padding: 12px 24px;
        border-radius: 30px;
        font-weight: 600;
        text-align: center;
        text-decoration-line: underline;
        transition: background 0.2s ease;
    }

        .primary-btn:hover {
            background-color: #218838;
        }

    .header-section {
        padding-top: 0 !important;
    }

    main {
        gap: 3rem !important;
    }

    .logged-in-top-wrapper {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
        justify-content: center;
        align-items: center;
    }
}
