.newsletter-footer{
    background:linear-gradient(135deg,#0040ff 0%,#00d974 100%);
}
.btn-gradient{
    background:linear-gradient(135deg,#0040ff 0%,#00d974 100%);
    color:#fff;
    border:none;
}
.nav-blur {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.navbar .nav-link {
    padding: 0.75rem 0.5rem;
    transition: all 0.3s ease;
    color: #444;
    position: relative;
}

.navbar .nav-hover .nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0.5rem;
    left: 50%;
    background-color: #007bff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar .nav-hover:hover .nav-link:after,
.navbar .nav-hover.active .nav-link:after {
    width: 80%;
}

.navbar .active .nav-link {
    color: #007bff;
    font-weight: 500;
}

.dropdown-menu {
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(0, 123, 255, 0.1);
    transform: translateX(5px);
}

.dropdown-submenu {
    position: relative;
}

.nav-submenu-toggle {
    width: 100%;
}

.submenu-chevron {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.nav-submenu-toggle[aria-expanded="true"] .submenu-chevron {
    transform: rotate(90deg);
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: calc(100% + 0.35rem);
    margin-top: -0.5rem;
}

.lang-toggle, .profile-toggle {
    border-radius: 2rem;
    padding: 0.5rem 1rem;
}

.lang-toggle:hover, .profile-toggle:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.avatar-circle {
    width: 30px;
    height: 30px;
    background-color: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    transition: all 0.3s ease;
}

.profile-toggle:hover .avatar-circle {
    background-color: #007bff;
    color: white;
}

.highlight-role {
    color: #007bff !important;
    font-weight: 500;
}

.logo-hover {
    transition: transform 0.3s ease;
}

.logo-hover:hover {
    transform: scale(1.05);
}

/* Add animate.css for animations */
.animate__animated {
    animation-duration: 0.3s;
}

/* For language flags - requires flag-icons (add to your project) */
.fi {
    width: 1.2em;
    height: 1.2em;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}


/* Footer Styles */
.footer-area {
    color: #6c757d;
    font-size: 0.95rem;
}

.footer-top {
    background: linear-gradient(135deg, #0040ff 0%, #00d974 100%);
    color: white;
}

.newsletter-input {
    border-radius: 4px;
    border: none;
}

.footer-main {
    background-color: #f8f9fa;
}

.footer-heading {
    color: #444;
    font-weight: 600;
    margin-bottom: 1.25rem;
    font-size: 1.15rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(135deg, #0040ff 0%, #00d974 100%);
}

.footer-links {
    padding-left: 0;
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: #0040ff;
    transform: translateX(5px);
}

.footer-contact {
    padding-left: 0;
    list-style: none;
}

.footer-contact li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
}

.footer-contact li i {
    color: #0040ff;
    margin-right: 10px;
    margin-top: 5px;
}

.footer-contact a {
    color: #6c757d;
    text-decoration: none;
}

.footer-contact a:hover {
    color: #0040ff;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    transition: all 0.3s;
}

.social-icon:hover {
    background: linear-gradient(135deg, #0040ff 0%, #00d974 100%);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: #f1f1f1;
}

.footer-legal {
    padding-left: 0;
    list-style: none;
    margin-bottom: 0;
}

.footer-legal li {
    display: inline-block;
    margin-left: 1.5rem;
}

.footer-legal li:first-child {
    margin-left: 0;
}

.footer-legal a {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-legal a:hover {
    color: #0040ff;
}

@media (max-width: 767.98px) {
    .footer-legal li {
        margin: 0 0.75rem;
    }
}

/* ============================================================
   Unit 3 + 4: Focus-visible styles for nav and footer elements
   ============================================================ */
.navbar .nav-link:focus-visible,
.dropdown-toggle:focus-visible,
.dropdown-item:focus-visible,
.lang-toggle:focus-visible,
.profile-toggle:focus-visible,
.footer-links a:focus-visible,
.footer-contact a:focus-visible,
.footer-legal a:focus-visible,
.social-icon:focus-visible {
    outline: 3px solid #007bff;
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* Unit 3: <button> used as nav-link dropdown toggle — reset browser defaults */
button.nav-link {
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    width: 100%;
}

button.nav-link.lang-toggle,
button.nav-link.profile-toggle {
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    width: auto;
}

/* Unit 3: Minimum touch targets for mobile nav items */
@media (max-width: 991.98px) {
    .navbar .nav-link,
    .dropdown-item {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .dropdown-submenu > .dropdown-menu {
        position: static;
        margin-top: 0.35rem;
        margin-left: 0.75rem;
        box-shadow: none !important;
        border: 1px solid rgba(0, 0, 0, 0.08);
    }
}
