/* ===== ALAP NAVBAR STÍLUSOK – ZÖLD/SZÜRKE VÁLTOZAT ===== */
#main-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #0F2F1F;          /* Sötétzöld */
    padding: 0;
    font-family: Arial, sans-serif;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 60px;
}

.nav-container { 
    width: 100%;
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    position: relative;
    box-sizing: border-box;
}

.nav-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: space-between;
    align-items: center;
}

.nav-section {
    display: flex;
    height: 100%;
    align-items: center;
}

.nav-section.left-section {
    justify-content: flex-start;
}

.nav-section.right-section {
    justify-content: flex-end;
}

/* NAVBAR LISTA */
.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    height: 100%;
    align-items: center;
}

/* MENÜ ELEM */
.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-item a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 18px;
    text-decoration: none;
    color: #F5F5F5;                    /* Világosszürke */
    transition: all 0.3s ease;
    font-weight: 500;
    line-height: 1;
    min-height: 60px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* Aláhúzás minden linkhez – világoszöld */
.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 2px;
    background-color: #8FBC8F;          /* Világoszöld */
    transition: transform 0.3s ease;
    transform: scaleX(0);
    transform-origin: left;
    border-radius: 1px;
}

.nav-item a:hover::after {
    transform: scaleX(1);
}

/* AKTÍV OLDAL */
.nav-item a.active {
    background-color: #1F4F3F;          /* Sötétzöld (maradhat) */
}

.nav-item a.active::after {
    transform: scaleX(1);
    height: 3px;
    background-color: #8FBC8F;          /* Világoszöld */
}

/* HOVER EFFEKT – középzöld */
.nav-item a:hover {
    background-color: #6B8E23;          /* Középzöld */
    color: #F5F5F5;
}

.nav-item a.active:hover {
    background-color: #6B8E23;
    color: #F5F5F5;
}

/* ===== DROPDOWN JAVÍTÁS ===== */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1F4F3F;          /* Sötétzöld */
    min-width: 220px;
    max-height: 0;
    overflow: hidden;
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
    border: 1px solid rgba(245, 245, 245, 0.1);
    border-top: none;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: max-height 0.3s ease;
}

.dropdown-menu li a {
    padding: 12px 16px;
    color: #F5F5F5;                    /* Világosszürke */
    white-space: nowrap;
    background-color: #1F4F3F;          /* Sötétzöld */
    transition: all 0.2s ease;
    height: auto;
    min-height: auto;
    position: relative;
    display: block;
}

.dropdown-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 1px;
    background-color: #8FBC8F;          /* Világoszöld */
    transition: transform 0.3s ease;
    transform: scaleX(0);
    transform-origin: left;
}

.dropdown-menu li a:hover::after {
    transform: scaleX(1);
}

.dropdown-menu li a:hover {
    background-color: #6B8E23;          /* Középzöld */
    color: #F5F5F5;
    padding-left: 20px;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    max-height: 500px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== CSS-ONLY MOBIL MENÜ ===== */
#menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10001;
    height: 30px;
    width: 30px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #F5F5F5;          /* Világosszürke */
    margin: 5px 0;
    transition: 0.3s;
}

.hamburger:hover span {
    background-color: #8FBC8F;          /* Világoszöld */
}

#menu-toggle:checked ~ .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background-color: #8FBC8F;          /* Világoszöld */
}

#menu-toggle:checked ~ .hamburger span:nth-child(2) {
    opacity: 0;
}

#menu-toggle:checked ~ .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background-color: #8FBC8F;          /* Világoszöld */
}

#menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

/* ===== RESZPONZÍV STÍLUSOK ===== */
@media screen and (max-width: 1024px) {
    .nav-item a {
        padding: 0 15px;
        font-size: 14px;
    }
}

@media screen and (max-width: 768px) {
    #main-navbar {
        height: 50px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .hamburger {
        display: block;
    }
    


        /* #1e3b25;
        #1a1b1a; */
    

    .nav-wrapper {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: linear-gradient(45deg, #1e3b25, #1a1b1a, #1e3b25);          /* Sötétzöld */
        flex-direction: column;
        padding: 60px 0 0;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
        z-index: 9999;
        justify-content: flex-start;
        align-items: stretch;
    }
    
    #menu-toggle:checked ~ .nav-wrapper {
        left: 0;
    }
    
    #menu-toggle:checked ~ #menu-overlay {
        display: block;
    }
    
    #menu-overlay {
        cursor: pointer;
    }
    
    .nav-section {
        flex-direction: column;
        width: 100%;
        height: auto;
        justify-content: flex-start;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
        height: auto;
    }
    
    .nav-item {
        width: 100%;
        height: auto;
    }
    
    .nav-item a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(245, 245, 245, 0.1); /* Világosszürke átlátszó */
        color: #F5F5F5;                    /* Világosszürke */
        font-size: 15px;
        height: auto;
        min-height: 50px;
        justify-content: flex-start;
        width: 100%;
        box-sizing: border-box;
    }
    
    .nav-item a::after {
        left: 20px;
        right: 20px;
        background-color: #8FBC8F;          /* Világoszöld */
    }
    
    .nav-item a.active::after {
        transform: scaleX(1);
        height: 3px;
    }
    
    .nav-item a:hover {
        background-color: #6B8E23;          /* Középzöld */
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border: none;
        background-color: #1F4F3F;          /* Sötétzöld */
        display: block;
        box-shadow: none;
        animation: none;
        padding: 0;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 500px;
    }
    
    .dropdown-menu li a {
        padding: 12px 20px 12px 40px;
        background-color: #1F4F3F;          /* Sötétzöld */
    }
    
    .dropdown-menu li a::after {
        left: 40px;
        right: 20px;
    }
    
    .dropdown-menu li a:hover {
        padding-left: 45px;
        background-color: #6B8E23;          /* Középzöld */
    }
}

@media screen and (max-width: 480px) {
    .nav-wrapper {
        width: 100%;
        max-width: 100%;
    }
    
    .nav-item a {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .nav-item a::after {
        left: 15px;
        right: 15px;
    }
    
    .dropdown-menu li a {
        padding-left: 30px;
    }
    
    .dropdown-menu li a::after {
        left: 30px;
        right: 15px;
    }
    
    .hamburger {
        right: 15px;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .nav-item a {
        padding: 0 10px;
        font-size: 13px;
    }
}

.hero-section {
    top: 60px;
    height: calc(100vh - 60px);
}

@media screen and (max-width: 768px) {
    .hero-section {
        top: 50px;
        height: calc(100vh - 50px);
    }
}

#main-navbar.transparent-navbar {
    background-color: transparent !important;
    box-shadow: none !important;
}

#main-navbar.transparent-navbar .nav-item a {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

#main-navbar.transparent-navbar .hamburger span {
    background-color: #f5f5f5;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

@media screen and (min-width: 769px) {
    .dropdown:hover .dropdown-menu {
        max-height: 500px;
    }
}