body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Add this to push the main content down by the header height */
}

.header-main {
    background-color: hsl(166, 100%, 65%);
    color: #fff;
    padding: 0;
    border: none;
    border-radius: 0%;
    width: 100vw;
    box-sizing: border-box;
    margin: 0;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center; /* Center logo vertically */
    z-index: 1000;
    height: 3.5rem; /* 56px ≈ 3.5rem (assuming 16px base) */
    transition:
        height 0.7s cubic-bezier(0.77,0,0.175,1),
        padding 0.7s cubic-bezier(0.77,0,0.175,1), /* Add padding to transition */
        background 0.3s,
        box-shadow 0.3s;
    /* Ensures smooth open and close */
}

.header-main:hover,
.header-main:focus-within {
    height: 7.5rem; /* 120px ≈ 7.5rem */
    padding: 1.25rem 0; /* 20px ≈ 1.25rem */
    top: 0;
    /* transition is inherited from .header-main */
}

/* Optionally, you can remove the hover/focus-within rules for sliding */
.header-main:hover .header-logo,
.header-main:focus-within .header-logo {
    height: 4.375rem; /* 70px ≈ 4.375rem */
}

/* Ensure header-content fills header and centers children */
.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Vertically center */
    width: 100%;
    max-width: 56.25rem; /* 900px ≈ 56.25rem */
    height: 100%; /* Fill header height */
    padding: 0;   /* Remove extra padding */
    margin: 0;    /* Remove extra margin */
}

.header-content h1 {
    font-size: 3rem;
    color: #fff;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    margin: 0 auto;
    padding: 0;
    text-align: center;
    flex: 0 1 auto;
    width: 100%;
}

.header-list {
    list-style: none;
    display: flex;
    gap: 1.25rem; /* 20px ≈ 1.25rem */
    margin: 0; /* 3rem padding on the right */
    align-items: center;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-family: "new-zen", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 1.5rem; /* Make the list items bigger */
}

.header-list-right {
    right: 0;
    left: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 3rem 0 0; /* 3rem padding on the right */
    font-size: 1.5rem;
}

.header-list-left {
    left: 0;
    right: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 0 0 3rem; /* 3rem padding on the left */
    font-size: 1.5rem;
    gap: 2rem;
}

.header-list li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem; /* 8px 16px ≈ 0.5rem 1rem */
    border-radius: 0.25rem; /* 4px ≈ 0.25rem */
    transition: background 0.2s;
}

.header-list li a:hover {
    background: #444;
}

.header-main ul {
    list-style-type: none;
    padding: 3rem;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "new-zen", sans-serif;
}

h1, h2, h3 {
    color: #ffffff;
}

p {
    line-height: 1.6;
    color: #666;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

.footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 0.625rem 0; /* 10px ≈ 0.625rem */
    width: 100vw;
    box-sizing: border-box;
    margin: 0;
    border: 0.25rem solid #444; /* 4px ≈ 0.25rem */
    border-radius: 0.5rem; /* 8px ≈ 0.5rem */
    margin-top: auto; /* Pushes footer to the bottom */
    position: relative;
    bottom: 0;
}

main, header.header-main, footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

main {
    margin-top: 3.5rem; /* 56px ≈ 3.5rem, matches closed header */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: margin-top 0.7s cubic-bezier(0.77,0,0.175,1);
}

.header-main:hover ~ main,
.header-main:focus-within ~ main,
body.header-open main {
    margin-top: 10rem; /* 160px ≈ 10rem, matches open header */
    transition: margin-top 0.7s cubic-bezier(0.77,0,0.175,1);
}

/* Hide the header title and remove its margin when header is closed */
.header-title {
    margin-top: 0; /* 5px ≈ 0.3125rem */
    text-align: center;
    font-size: 1rem;
    color: #fff;
    font-weight: bold;
    font-family: "new-zen", sans-serif;
    opacity: 1;
    transition: 
        opacity 0.3s cubic-bezier(0.77,0,0.175,1),
        margin-top 0.3s cubic-bezier(0.77,0,0.175,1),
        max-height 0.3s cubic-bezier(0.77,0,0.175,1);
    max-height: 6.25rem; /* 100px ≈ 6.25rem */
    pointer-events: auto;
}

.header-main:not(:hover):not(:focus-within) .header-title {
    margin-top: 0;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

.main-title {
    text-align: center;
    font-size: 4rem;
    color: #222;
    margin-bottom: 1.875rem; /* 30px ≈ 1.875rem */
    margin-top: 7rem; /* 20px ≈ 1.25rem */
    font-weight: 700;
    font-family: "new-zen", sans-serif;
    font-style: normal;
}

/* Logo fits header and is centered */
.header-logo {
    padding: 0.7rem;
    height: 2.25rem;      /* 36px ≈ 2.25rem */
    max-height: 100%;
    width: auto;
    display: block;
    margin: 0;
    align-self: center;
    transition:
        height 0.7s cubic-bezier(0.77,0,0.175,1),
        padding 0.7s cubic-bezier(0.77,0,0.175,1); /* Smooth out padding transition */
}
/* Hide all except logo when not hovered */
.header-content > *:not(.header-logo) {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.77,0,0.175,1);
}

/* Show all on hover */
.header-main:hover {
    padding: 1.25rem 0;
    height: 10rem !important;
    /* transition is inherited from .header-main */
}
.header-main:hover .header-content > *:not(.header-logo),
.header-main:focus-within .header-content > *:not(.header-logo) {
    opacity: 1;
    pointer-events: auto;
}

.header-main:hover .header-logo,
.header-main:focus-within .header-logo {
    height: 4.375rem; /* Reduce the logo size when the header is open */
    padding: 0.2rem;
}

.header-text-title {
    display: block; 
    opacity: 0;
    pointer-events: none;
    font-family: "new-zen", sans-serif;
    font-size: 2rem;
    color: #fff;
    text-align: center;
    margin-top: 0.625rem; /* 10px ≈ 0.625rem */
    letter-spacing: 2px;
    font-weight: 700;
    transition: opacity 0.3s;
}

.header-main:hover .header-text-title,
.header-main:focus-within .header-text-title {
    opacity: 1;
    pointer-events: auto;
}

/* Open header when .header-open is on body */
body.header-open .header-main {
    height: 10rem !important;
    padding: 1.25rem 0 !important;
}
body.header-open .header-content > *:not(.header-logo) {
    opacity: 1 !important;
    pointer-events: auto !important;
}
body.header-open .header-logo {
    height: 4.375rem !important;
    padding: 0.2rem !important;
}
body.header-open .header-text-title {
    opacity: 1 !important;
    pointer-events: auto !important;
}
body.header-open main {
    margin-top: 10rem !important;
}

/* Responsive: Hide header lists and show mobile menu on small screens */
@media (max-width: 900px) {
    .header-list {
        display: none !important;
    }
    .header-main {
        height: 10rem !important;
        padding: 1.25rem 0 !important;
    }
    .header-content > *:not(.header-logo) {
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    .header-logo {
        height: 4.375rem !important;
        padding: 0.2rem !important;
        pointer-events: none !important;
        cursor: default !important;
    }
    .header-text-title {
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    main {
        margin-top: 10rem !important;
    }

    .header-content {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100vw;
        max-width: 100vw;
        height: 100%;
        padding: 0;
        margin: 0;
    }
    .header-logo {
        display: block;
        margin: 0 auto 0.5rem auto;
        height: 3.5rem !important;
        max-width: 80vw;
        width: auto;
        padding: 0.2rem !important;
    }
    .header-text-title {
        font-size: 1.5rem;
        max-width: 90vw;
        margin: 0 auto;
        padding: 0.2rem 0;
        text-align: center;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }
}

@media (max-width: 600px) {
    .header-logo {
        height: 2.5rem !important;
        max-width: 70vw;
    }
    .header-text-title {
        font-size: 1.1rem;
        max-width: 90vw;
        padding: 0.2rem 0;
    }
}

/* Mobile menu overlay styles */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: hsl(166, 100%, 65%); /* or any color you prefer */
    z-index: 9999;
    display: none; /* or flex if you want to show it by default */
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-menu-overlay.active {
    display: flex;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
}

.mobile-menu-list li a {
    font-size: 2.5rem;
    color: #222;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

.mobile-menu-list li a:hover {
    color: #fff;
}

.mobile-menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 3rem;
    color: #222;
    cursor: pointer;
    z-index: 2100;
    transition: color 0.2s;
}
.mobile-menu-close:hover {
    color: #fff;
}

/* Prevent logo interaction during curtain animation */
body.curtain-anim .header-logo,
body.curtain-anim-end .header-logo {
    pointer-events: none !important;
    cursor: default !important;
}

/* Restore logo interaction after animation */
body:not(.curtain-anim):not(.curtain-anim-end) .header-logo {
    pointer-events: auto;
    cursor: pointer;
}

/* Prevent header interaction during curtain animation */
body.curtain-anim .header-main,
body.curtain-anim-end .header-main {
    pointer-events: none !important;
    user-select: none !important;
    cursor: default !important;
}

/* Restore header interaction after animation */
body:not(.curtain-anim):not(.curtain-anim-end) .header-main {
    pointer-events: auto;
    user-select: auto;
    cursor: pointer;
}

/* Hide header lists during opening animation */
body.curtain-anim .header-list,
body.curtain-anim .header-text-title {
    display: none !important;
}

@media (max-width: 900px) {
    .header-logo {
        height: 4.375rem !important; /* Same as hover/open state */
        padding: 0.2rem !important;
        transition: none !important; /* Remove transition for instant size */
    }
    /* Disable hover/focus animation for logo on mobile */
    .header-main:hover .header-logo,
    .header-main:focus-within .header-logo {
        height: 4.375rem !important;
        padding: 0.2rem !important;
        transition: none !important;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-seq {
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.77,0,0.175,1) forwards;
    animation-play-state: paused;
}

.video-container {
    padding: 2rem;
    padding-bottom: 20rem;
}

.background-video-stack {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    opacity: 1; /* Adjust as needed */
    pointer-events: none;
}
footer, .wpulike {
	display:none;
}