/* General Styles (Adapt to your existing styles) */
body {
    font-family: sans-serif; /* Replace with your font */
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

.button {
    background-color: #6759c3; /* Purple button color */
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    display: inline-block;
    border: none; /* Remove default border */
    cursor: pointer; /* Add cursor pointer */
}

.button:hover {
    background-color: #524799; /* Darker purple on hover */
}

/* Header Styles */
.site-header {
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* For mobile menu button positioning */
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.logo img {
    margin-right: 10px;
    height: 30px; /* Adjust logo size */
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    margin-left: 40px;
}

.site-header nav {
    flex: 0 1 auto;
}

.site-header nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-header nav ul li {
    margin-left: 0;
}

.site-header nav ul li a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
}

.header-actions {
    /* Remove margin-left: auto */
}

.header-actions a {
    margin-left: 20px;
    text-decoration: none;
}

.header-actions .login {
    color: #555;
    font-weight: 500;
}

.header-actions .signup {
    padding: 0.5rem 1rem 0.5rem 1rem;
}

/* Footer Styles */
.site-footer {
    background-color: #f9f9f9;
    padding: 50px 20px;
    text-align: center;
    border-top: 1px solid #eee;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 20px;
}

.newsletter {
    margin-bottom: 30px;
}

.newsletter p {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #555;
}

.newsletter-form {
    display: flex;
    justify-content: center;
}

.newsletter-form input[type='email'] {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-right: 10px;
    width: 250px;
}

.footer-links {
    display: flex;
    justify-content: space-around;
    margin-bottom: 40px;
    text-align: left;
}

.footer-section h3 {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #333;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    text-decoration: none;
    color: #555;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8em;
    color: #777;
}

.language-selector select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
}

.copyright {
    text-align: center;
}

.copyright a {
    color: #777;
    text-decoration: none;
}

.social-links a {
    display: inline-block;
    margin-left: 10px;
}

.social-links img {
    height: 20px;
}

/* Mobile Menu Button Styles */
.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    padding: 20px 20px 20px 0px;
    cursor: pointer;
}

.hamburger-icon,
.hamburger-icon::before,
.hamburger-icon::after {
    display: block;
    width: 25px;
    height: 2px; /* Slightly thinner lines */
    background: #333;
    transition: all 0.2s ease-out;
}

.hamburger-icon {
    position: relative;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    left: 0; /* Ensure perfect alignment */
}

.hamburger-icon::before {
    top: -8px;
}

.hamburger-icon::after {
    top: 8px; /* Changed from bottom to top for consistency */
}

/* Mobile menu active states */
.mobile-menu-button.active .hamburger-icon {
    background: transparent;
}

.mobile-menu-button.active .hamburger-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-button.active .hamburger-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Mobile login button */
.mobile-login {
    display: none;
    text-decoration: none;
    color: #555;
    font-weight: 500;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .header-container {
        justify-content: center;
    }

    .mobile-menu-button {
        display: block;
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 3;
    }

    .logo {
        margin: 0;
    }

    .mobile-login {
        display: block;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.9em;
    }

    .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: white;
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        z-index: 2;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .nav-container.active {
        right: 0;
    }

    .site-header nav ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .site-header nav ul li {
        margin: 10px 0;
        width: 100%;
    }

    .site-header nav ul li a {
        display: block;
        padding: 10px 0;
        width: 100%;
    }

    /* Hide the regular header actions in mobile view */
    .nav-container .header-actions {
        display: none;
    }
}
