/* General styles */
.full-height-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header styles */
.header-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background-color: white;
    margin: 0;
    padding: 0;
}

.header-top-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    background-color: white;
    position: relative;
}

.header-logo-container {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    z-index: 2;
}

.header-logo {
    height: auto;
    max-height: 5rem;
    margin-right: 0.5rem;
}

.header-logo-large {
    display: block;
}

.header-logo-small {
    display: none;
}

.header-title-wrapper {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
    width: 60%;
}

.header-title {
    margin: 0;
    padding: 0;
    color: var(--black);
    line-height: 0.7;
}

.header-title-main {
    font-size: 1.6rem;
    font-weight: normal;
}

.header-title-sub {
    font-size: 1.4rem;
    font-weight: bold;
}

.lang-switch {
    display: flex;
    flex-wrap: nowrap;
    font-size: 1.5rem;
    flex: 0 0 auto;
    justify-content: flex-end;
    align-items: center;
    z-index: 2;
}

.lang-button {
    margin-left: 0.5rem;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    border: none;
    background-color: white;
    color: black;
    text-decoration: none !important;
    position: relative;
    transition: all 0.3s ease;
}

.lang-button::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--main-blue);
    bottom: -3px;
    left: 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.lang-button:hover::after,
.lang-button.active::after {
    transform: scaleX(1);
}

.lang-button:hover,
.lang-button.active {
    font-weight: bold;
    color: black; 
}

.header-image {
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.header-bg-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Navigation styles */
.header-nav {
    background-color: white;
    border-bottom: 3px solid black;
    padding: 0.1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-list::before,
.nav-list::after {
    content: '';
    display: block;
    width: 1px;
    height: 100%;
    background-color: black;
    position: absolute;
    top: 0;
}

.nav-list::before {
    left: 0; /* Adjust to align with the start of the list */
}

.nav-list::after {
    right: 0; /* Adjust to align with the end of the list */
}

.nav-item {
    font-size: 1.2rem;
    margin: 0;
    padding: 0 1rem; /* Ensure equal padding around the text */
    display: flex;
    align-items: center;
    position: relative;
}

.nav-item:not(:last-child)::after {
    content: '';
    display: block;
    width: 1px;
    height: 100%;
    background-color: black;
    position: absolute;
    right: 0;
    top: 0;
}

.nav-item a {
    text-decoration: none;
    color: black;
    padding: 0.5rem 0;
    transition: font-weight 0.3s ease;
    display: block;
    text-align: center; /* Center the text horizontally */
    width: 100%; /* Ensure the link takes the full width for centering */
}

.nav-item a:hover,
.nav-item.active a {
    font-weight: bold;
}

/* Prevent layout shift when text becomes bold */
.nav-item a::after {
    display: block;
    content: attr(title);
    font-weight: bold;
    height: 0;
    overflow: hidden;
    visibility: hidden;
}

.menu-icon {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    align-items: center;
    justify-content: center;
}

/* Footer styles */
.footer-container {
    background-color: var(--white);
    padding: 1rem 0;
    text-align: right;
    margin-top: auto;
}

.footer-container a {
    color: var(--main-blue);
    font-size: 0.9rem;
}

@media (max-width: 1300px) {
    .header-logo-large {
        display: none;
    }

    .header-logo-small {
        display: block;
        max-height: 4rem;
    }
}

@media (max-width: 1024px) {
    .header-title-wrapper {
        width: 50%;
    }
    
    .header-title-main {
        font-size: 1.4rem;
    }
    
    .header-title-sub {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .header-top-row {
        flex-wrap: wrap;
        padding: 1rem;
    }

    .header-logo-container {
        flex: 0 0 auto;
        margin-right: auto;
    }

    .header-logo {
        max-height: 4rem;
    }
    .header-logo-large {
        display: block;
        max-height: 4rem;
    }

    .header-logo-small {
        display: none;
    }
    .lang-switch {
        flex: 0 0 auto;
        margin-left: auto;
    }

    .header-title-wrapper {
        position: static;
        transform: none;
        order: 3;
        width: 100%;
        margin-top: 1rem;
    }

    .header-title-main {
        font-size: 1.8rem;
    }

    .header-title-sub {
        font-size: 1.2rem;
    }

    .lang-button {
        font-size: 1.5rem; /* Keep it consistent with larger screens */
        padding: 0.2rem 0.3rem;
    }

    .menu-icon {
        display: flex;
    }

    .nav-wrapper::before,
    .nav-wrapper::after {
        display: none;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 0;
    }

    .nav-list.show {
        display: flex;
    }

    .nav-item {
        margin: 0.5rem 0;
        text-align: center;
        width: 100%;
    }

    .nav-item:not(:last-child)::after {
        display: none;
    }

    .nav-item a {
        display: block;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header-logo-large {
        display: none;
    }
    .header-logo-small {
        display: block;
        max-height: 3rem; /* Changed to 3rem to match landing page */
    }

    .header-title-main {
        font-size: 1.4rem;
    }

    .header-title-sub {
        font-size: 1rem;
    }

    .lang-button {
        font-size: 1rem;
        padding: 0.2rem 0.3rem;
    }
}