/* Navbar */
nav {
    background: #fff;
    border-bottom: 1px solid #ddd;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    border-radius: 0px;
}

/* Navigation */
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    /* color: #4842f8; */
    color: #df2919;
}

/* Dropdown menu */
.nav-dropdown {
    display: none;
    position: absolute;
    list-style: none;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    z-index: 100;
    padding: 0.5rem 0;
}

.nav-dropdown a {
    display: block;
    padding: 0.5rem 1rem;
    color: #333;
    white-space: nowrap;
    transition: background 0.3s, color 0.3s;
}

.nav-dropdown a:hover {
    background: #f4f4f4;
    color: #4842f8;
}

/* CTA Buttons */
nav .cta-button {
    background-color: #df2919;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.cta-mobile {
    display: none;
}

.cta-desktop {
    display: block;
}

/* Hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background: #333;
    transition: transform 0.3s ease, background 0.3s ease;
}

.hamburger.open .line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open .line:nth-child(2) {
    opacity: 0;
}

.hamburger.open .line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Wide screen */
@media screen and (min-width: 1100px) {
    .nav-links li:hover .nav-dropdown {
        display: block;
    }
    .cta-mobile {
        display: none;
    }
}

/* Mobile screen */
@media screen and (max-width: 1100px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        border-top: 1px solid #ddd;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        gap: 0.5rem;
    }

    .nav-links.active {
        display: flex;
        padding: 15px;
    }

    .nav-links li {
        position: relative;
        padding: 0;
    }

    .nav-links li:not(:last-child) {
        border-bottom: 1px solid #ddd; /* Dodaje linię pod elementem */
        padding-bottom: 10px; /* Odsunięcie tekstu od linii */
        margin-bottom: 10px; /* Odstęp między elementami */
    }

    .nav-links a {
        display: block;
    }
    
    

    .nav-dropdown {
        position: relative;
        display: none;
        background: #fff;
        width: 100%;
        padding: 0.5rem 0;
        box-shadow: none;
        z-index: 1000;
    }

    .nav-dropdown.active {
        display: block;
    }

    .dropdown-arrow {
        cursor: pointer;
        float: right;
        margin-left: 10px;
        transition: transform 0.3s;
    }

    .dropdown-arrow.open {
        transform: rotate(180deg);
    }

    .hamburger {
        display: flex;
    }

    .cta-desktop {
        display: none;
    }

    .cta-mobile {
        display: block;
        margin-top: 15px;
        width: 100%;
        text-align: center;
    }
}
