/* General Header Styles */
.header {
    width: auto;
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5% 5%;
    padding-bottom: 0px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.header-logo img {
    margin-left: 30%;
    height: 120px; /* Set the height of the Agora logo */
    width: auto;
}

.header-logo-home {
    position: absolute; /* Position the logo absolutely */
    left: 50%;          /* Move it to the center horizontally */
    transform: translateX(-50%); /* Adjust for the logo's width */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px; /* Set the height of the Agora logo */
}

.header-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    text-align: right;
}

.header-text-home {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: flex-end;
    text-align: right;
    margin-left: auto;
    height: 120px;
}

.header-title {
    color: black;
    font-size: 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 400; 
    line-height: 0;
    padding-bottom: 0px;
    margin-bottom: 0;
}

/* Header Links */
.header-links {
    display: flex;
    flex-direction: column; /* Stack the flags and text vertically */
    gap: 10px; /* Add spacing between each flag and text */
    align-items: flex-end; /* Align the flags and text to the right */
}

.header-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: black;
    gap: 10px; /* Add spacing between the flag and the text */
}

.header-link img {
    height: auto; /* Set a consistent height for all flags */
    width: 30px;
}

.header-link span {
    font-size: 20px; /* Match the font size of "National Agoras" */
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    text-align: right; /* Align the text to the right */
}

/* Ensure the total height of the text and flags matches the logo height */
.header-text {
    height: 120px; /* Match the height of the Agora logo */
    justify-content: space-between; /* Distribute the text and flags evenly */
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .header-text {
        align-items: center;
    }

    .header-link img {
        height: 20px; /* Adjust flag size for smaller screens */
    }

    .header-link span {
        font-size: 20px; /* Adjust font size for smaller screens */
    }
}

/* Main Navigation Menu */
.header-nav {
    margin-top: 40px;
    width: 100%;
}

.header-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.header-nav li {
    margin: 0 15px;
}

.header-nav a {
    color: black;
    font-size: 22px;
    font-family: Inter, sans-serif;
    font-weight: 400;
    text-decoration: none;
    padding: 10px 5px;
    display: block;
    transition: color 0.3s;
}

.header-nav a:hover {
    color: #0056b3;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #000;
    margin: 5px 0;
    transition: all 0.3s;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .header {
        flex-direction: column;
        padding: 15px;
    }
    
    .header-text {
        width: 100%;
    }
    
    .header-links {
        justify-content: center;
    }
    
    .hamburger-menu {
        display: block;
    }
    
    .header-nav {
        display: none;
        width: 100%;
    }
    
    .header-nav.active {
        display: block;
    }
    
    .header-nav ul {
        flex-direction: column;
        text-align: center;
    }
    
    .header-nav li {
        margin: 10px 0;
    }
    
    /* Animation for hamburger menu */
    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
}

/* For very small screens */
@media screen and (max-width: 480px) {
    .header-title {
        font-size: 18px;
    }
    
    .header-link span {
        font-size: 12px;
    }
    
    .header-link img {
        height: 20px;
    }
}

/* General Footer Styles */
.footer {
    background-color: #ffffff;
    padding: 20px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    margin-top: auto;
    position: relative;
    bottom: 0;
    z-index: 1000;
}

.footer .top-section {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.footer .top-section img {
    margin-left: 5%;;
    height: 120px; /* Set the height of the Democrat logo */
    width: auto;
}

/* Align the Europe flag and funding text side by side */
.funding-container {
    display: flex;
    align-items: center;
    gap: 10px; /* Add spacing between the flag and the text */
}

.funding-container .funding-text {
    color: #003399;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    text-align: justify;
    word-wrap: break-word;
    max-width: 400px;
}

.footer .bottom-section {
    text-align: center;
    margin-top: 10px;
    color: #1E1E1E;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}


.footer .bottom-section a {
    color: #1E1E1E;
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 768px) {

    .footer .top-section {
        flex-direction: column;
        align-items: center;
    }

    .funding-container {
        flex-direction: column; /* Stack the flag and text vertically on smaller screens */
        align-items: center;
    }

    .funding-container .funding-text {
        text-align: center;
    }
}
