:root {
    --primary-color: #1a73e8;
    --primary-color-dark: #0056b3;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --card-bg: #ffffff;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --card-hover-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    --border-color: #e2e8f0;
}

/* Footer */
.main-footer {
    padding: 60px 40px;
    text-align: center;
    background-color: var(--card-bg);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-bottom {
 	margin-top: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.footer-socials a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.footer-socials a:hover {
    color: var(--primary-color);
}

/* Lang Selector Dropdown - Minimalist Version */
.lang-selector-dropdown {
    position: relative;
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: -10px;
}

.lang-selector-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 4px 8px;
    background-color: transparent;
    border: 1px solid var(--border-color); /* Added border for all screens */
    border-radius: 6px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.lang-selector-dropdown-toggle:hover {
    color: var(--primary-color);
    background-color: #f6f9fc;
}

.lang-selector-dropdown-toggle .lang-code {
    font-weight: 500;
}

.lang-selector-dropdown-toggle .material-symbols-outlined {
    display: none;
}

.lang-selector-dropdown-menu {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: var(--card-bg);
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.lang-selector-dropdown.show .lang-selector-dropdown-menu {
    display: flex;
}

.lang-selector-dropdown-menu li {
    width: 100%;
}

.lang-selector-dropdown-menu a {
    display: block;
    padding: 6px 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.lang-selector-dropdown-menu a:hover {
    background-color: #f6f9fc;
    color: var(--primary-color);
}

/* Back to top button */
.back-to-top-button {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 1000;
    box-shadow: var(--card-shadow);
}

.back-to-top-button.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-button:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    /* Footer on mobile */
	.back-to-top-button {
	 bottom: 180px;
	}
	
    .main-footer {
        padding: 20px;
    }

    .footer-links {
        margin-bottom: 10px;
        gap: 10px;
    }
    
    .footer-content {
        gap: 10px;
    }

    /* Lang Selector Dropdown on mobile */
    .lang-selector-dropdown {
        position: relative;
        margin: 0;
    }

    .lang-selector-dropdown-toggle {
        padding: 8px 12px;
    }

    .lang-selector-dropdown-menu {
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
}