@layer components {
    /* HEADER STYLING */
    .site-header {
        width: 100%;
        height: 100px;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
    }

    .header-container {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
    }

    .header-menu-ico {
        display: none; /* Hide by default */
        width: 50px;
        display: flex;
        align-items: center; /* Vertically center the icon */
        justify-content: center; /* Horizontally center the icon */
        border: 0px solid white;
        margin: 20px;
    }

    .header-menu-ico img {
        cursor: pointer;
    }


    /* HORIZONTAL MENU */
    .header-menu-horizontal {
        top: 14px;
        left: 100px;
        width: 100%;
        height: 100px;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        flex-wrap: nowrap;
        border: 0 solid white;
        list-style: none; /* Removes the bullet points */
        padding: 0; /* Removes any default padding */
        transition: transform 0.5s ease-in-out;
        transform: translateX(-120%); /* Menu is initially not visible */
    }

    .header-menu-horizontal > li {
        margin-right: 30px; /* Adjust this value to control the space between menu items */
        margin-top: 20px;
        padding-bottom: 20px;
    }

    .header-menu-horizontal a {
        text-decoration: none;
        color: white;
        font-size: 16px;
        position: relative; /* Needed for the underline */
    }

    .header-menu-horizontal a::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -2px; /* Adjust to position the underline */
        width: 100%;
        height: 1px; /* Thickness of the underline */
        background-color: white;
        transform: scaleX(0);
        transform-origin: bottom right;
        transition: transform 0.3s ease-out;
    }

    .header-menu-horizontal a:hover::after {
        transform: scaleX(1);
        transform-origin: bottom left;
    }

    .header-menu-horizontal.show {
        transform: translateX(0%); /* Slide into view */
    }

    .no-transition {
        transition: none !important;
    }


    /* FULLSCREEN MENU */
    .header-menu-fullscreen {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        background-color: rgba(0, 0, 0, 0.9);
        color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: transform 0.5s ease-in-out;
        transform: translateY(-100%); /* Menu is initially not visible */
        z-index: 999; /* Ensure it is above all other content */
        padding: 0;
    }

    .header-menu-fullscreen.show {
        transform: translateY(0%);
    }


    .header-menu-fullscreen li {
        margin-bottom: 20px;
        list-style: none; /* Remove the bullet points */
    }

    .header-menu-fullscreen a {
        text-decoration: none;
        color: white;
        font-size: 35px;
    }

    /* LOGO */
    .header-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        justify-content: center;
        border: 0px solid white;
        margin-top: 10px;
    }

    .header-logo img {
        max-width: 100%;
        height: auto;
        width: 150px;
    }

    .logo-container {
        flex: 1; /* Allow the container to take up full width */
        display: flex;
        justify-content: center; /* Horizontally center the logo */
    }

    /* Hover submenu */
    .header-menu-horizontal .header-submenu {
        display: none;
        min-width: 200px;
        background: rgba(0, 0, 0, 0.2); /* semi-transparent ~20% */
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 8px;
        padding: 8px;
        z-index: 1100;
        position: absolute;
        top: 70px;      /* under the parent link */
        left: 0;
    }

    /* Submenu <ul> */
    .header-menu-horizontal .header-submenu > ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .header-menu-horizontal .header-submenu li a {
        white-space: nowrap;
        display: block;
        padding: 8px 10px;
        color: #fff;
        text-decoration: none;
        border-radius: 6px;
    }

    .header-menu-horizontal .header-submenu li:hover a {
        background: rgba(255, 255, 255, 0.12);
    }

    .header-menu-horizontal .header-submenu li:hover a::after {
        display: none;
    }

    /* Show submenu on hover / focus */
    .header-menu-horizontal li:hover > .header-submenu,
    .header-menu-horizontal li:focus-within > .header-submenu {
        display: block;
    }



    /* Mobile fullscreen: submenu */

    .header-menu-fullscreen .header-submenu {
        list-style: none;
        margin: 6px 0 0 0;
        padding: 0 0 10px 0;
        text-align: center;
    }

    .header-menu-fullscreen .header-submenu ul {
        padding: 0;
    }

    .header-menu-fullscreen .header-submenu li {
        margin: 0;
    }

    .header-menu-fullscreen .header-submenu a {
        display: block;
        padding: 6px 0 6px 20px;
        color: #fff;
        text-decoration: none;
        font-size: 20px;
        opacity: 0.9;
    }

    .header-menu-fullscreen .header-submenu a:hover {
        color: #ddd;
    }
}
