/* 🏆 HEADER STYLING */
header {
    background: #fff;
    padding: 12px 40px;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.1);
    z-index: 200;
}

nav {
    display: flex;
    gap: 40px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
}

.logo img {
    height: 80px;
}

/* Hide mobile logo by default */
.mobile-logo {
    display: none;
}

/* Desktop navigation stays unchanged */
.desktop-nav ul {
    list-style: none;
    display: flex;
    gap: 38px;
}

/* 🎯 TOP-LEVEL MENU */
nav ul li {
    position: relative;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    transition: color 0.3s ease;
}

/* 🛑 DISABLE CLICK FOR DROPDOWN HEADERS */
.dropdown-toggle {
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    transition: color 0.3s ease;
    pointer-events: none;
}



/* 🔽 DROPDOWN MENU */
.dropdown-menu {
    position: absolute;
    top: 200%;
    left: 0;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    min-width: 200px;
    padding: 0;
    display: flex;
    flex-direction: column;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    font-family: 'Montserrat', sans-serif;

    z-index: 4;
    gap: 0px !important; 

}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

/* 🌟 DROPDOWN MENU ITEMS */
.dropdown-menu li {
    list-style: none;
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 18px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
    color: #d40000;
}

/* 🔗 Regular menu links (Publikacje & Kontakt) */
.nav-link {
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: red;
}

/* 🔽 ICON STYLE */
.dropdown-icon {
    font-size: 12px;
    color: #d40000;
    margin-left: 5px;
}

/* 📢 SOCIAL ICONS */
.social-icons a {
    font-size: 18px;
    color: red;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.social-icons a:hover {
    opacity: 0.8;
}

/* 🍔 HAMBURGER MENU (Hidden on Desktop) */
.hamburger {
    cursor: pointer;
    display: none;
}

.hamburger img {
    height: 32px;
    width: 32px;
}

/* 🛠️ MOBILE MENU */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    z-index: 200;
    overflow: scroll;
    gap: 0;
}

/* When the menu is open */
.mobile-nav.active {
    right: 0;
}

/* Close Button */
.close-menu {
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
}

/* 🔗 MOBILE NAVIGATION LINKS */
.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 16px;
}

/* Apply styling only to the top-level menu items in mobile nav */
.mobile-nav > ul > li {
    padding: 20px 0;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 1px solid rgba(153, 153, 153, 0.1);
}


/* 🔽 EXPANDED DROPDOWN IN MOBILE MENU */
.mobile-dropdown {
    list-style: none;
    padding-left: 20px;
    margin-top: 8px;
    display: block;
}

.mobile-dropdown li {
    padding: 16px 0;
    color: #000;    
}

.mobile-dropdown li a {
    padding: 8px 0;
    font-size: 16px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #000;
}

.nav-mobile-link-custom {
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    transition: color 0.3s ease;
}

/* 🌟 SOCIAL ICONS IN MOBILE MENU */
.mobile-social-icons {
    margin-top: 20px;
}

.mobile-social-icons a {
    font-size: 22px;
    color: red;
    text-decoration: none;
}

/* 📌 MOBILE-ONLY STYLES */
@media (max-width: 1024px) {
    /* Hide desktop menu */
    .desktop-nav, .social-icons {
        display: none;
    }

    /* Show hamburger */
    .hamburger {
        display: block;
    }

    /* Switch to mobile logo */
    .desktop-logo {
        display: none;
    }

    .mobile-logo {
        display: block;
        height: 48px;
    }
}
