.custom-header {
    display: flex;
    padding: 5px 10px;
    justify-content: center;
    position: relative; /* Relative positioning for child absolute elements */
    top: 0;
    z-index: 30;
}

.header-container {
    display: flex;
    justify-content: space-between;
    width: 85%;
    align-items: center;
}

.header-container .logo {
    flex: 1;
}

.header-container .custom-logo-link {
    display: flex;
    width: fit-content;
}

.header-container .header-nav-menu {
    display: flex;
    justify-content: center;
}

.header-container .header-button {
    flex: 1;
    text-align: right;
}

/* Button Styling */
.header-container .header-button .btn {
    padding: 6px 10px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
}

.header-container ul {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
}

.header-container li {
    margin: 5px 20px;
}

.header-container .header-nav-menu a {
    display: block;
    position: relative;
    padding: 0.2em 0;
    overflow: hidden;
}

.header-container .header-nav-menu a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.15em;
    transition: opacity 300ms, transform 300ms;
    opacity: 1;
    transform: translate3d(-110%, 0, 0);
}

.header-container .header-nav-menu a:hover::after,
.header-container .header-nav-menu a:focus::after {
    transform: translate3d(0, 0, 0);
}

/* Burger Menu Styling */
.menu-icon {
    display: none;
    cursor: pointer;
}

.menu-icon .navicon {
    display: inline-block;
    height: 3px;
    width: 25px;
    position: relative;
    transition: all 0.3s ease-in-out;
}

.menu-icon .navicon:before,
.menu-icon .navicon:after {
    content: "";
    display: block;
    height: 3px;
    width: 25px;
    position: absolute;
    transition: all 0.3s ease-in-out;
}

.menu-icon .navicon:before {
    top: -8px;
}

.menu-icon .navicon:after {
    top: 8px;
}

.menu-btn {
    display: none;
}

@keyframes slideDown {
    0% {
        clip-path: inset(0 0 100% 0);
    }
    100% {
        clip-path: inset(0 0 0 0);
    }
}

@keyframes slideUp {
    0% {
        clip-path: inset(0 0 0 0);
    }
    100% {
        clip-path: inset(0 0 100% 0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .custom-header {
        display: flex;
        padding: 10px 20px;
        position: relative; /* Relative positioning for child absolute elements */
        z-index: 30; /* Ensure this is higher than .header-nav-menu */
    }

    .header-container img {
        width: 40px;
        height: auto;
    }

    .menu-icon {
        display: inline-block;
        cursor: pointer;
        position: absolute;
        right: 20px; /* Adjust as needed */
        transform: translateY(-30%);
    }

    .header-nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        padding: 10px 0;
        animation: none; /* No animation on page load */
    }

    .header-container .header-button .btn {
        display: none;
    }

    .header-container ul {
        display: flex;
        flex-direction: column;
        list-style: none;
        text-align: center;
        padding: 0;
    }

    .menu-btn:checked ~ .menu-icon .navicon {
        background: transparent;
    }

    .menu-btn:checked ~ .menu-icon .navicon:before {
        transform: rotate(-45deg);
        top: 0;
    }

    .menu-btn:checked ~ .menu-icon .navicon:after {
        transform: rotate(45deg);
        top: 0;
    }
}
