/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Version: 2.1.6
Text Domain: hello-elementor-child
*/

/* =========================================================
   BASE HEADER STYLES (Egyedi osztályok)
   ========================================================= */

/* A teljes fejléc befoglalója */
.custom-header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: auto !important; 
    max-width: 100vw !important; 
    z-index: 999;
    display: flex;
    justify-content: center;
    padding: 0;
    pointer-events: none; 
    box-sizing: border-box; 
    overflow: visible !important; 
}

/* ---------------------------------------------------------
   HEADER INNER - A háttér sáv (Teljes szélesség)
   --------------------------------------------------------- */
.custom-header-inner {
    pointer-events: auto; 
    display: flex;
    justify-content: center; /* A tartalom középre igazítása */
    align-items: center;
    width: 100%;
    margin: 0 !important;
    height: 100px;      
    border-radius: 0;
    padding: 0 40px; /* Külső margó, hogy ne érjen falig kis képernyőn */
    box-sizing: border-box; 
    
    /* Alap háttér */
   
    transition: all 0.3s ease;
}

/* ---------------------------------------------------------
   HEADER CONTAINER - A tartalom (Max 1300px)
   --------------------------------------------------------- */
.custom-header-container {
    width: 100%;
    max-width: 1300px; /* A kért szélesség korlát */
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* ---------------------------------------------------------
   HÁTTÉR ÉS SZÍNEK KEZELÉSE (Kivételek és Sticky)
   --------------------------------------------------------- */

/* KIVÉTELEK (FEHÉR MÓD HÁTTÉRREL) */
.page-id-12 .custom-header-inner,
.page-id-33 .custom-header-inner,
.page-id-35 .custom-header-inner,
.page-id-21 .custom-header-inner,
.page-id-266 .custom-header-inner,
.page-id-15 .custom-header-inner{
   
   
   
    background-size: cover;
    background-position: center center;
}

/* STICKY STATE */
.custom-header-inner.is-sticky {
    background: rgba(19, 19, 19, 0.95) !important;
   
    background-size: cover;
    background-position: center center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border-bottom: none;
}

/* ---------------------------------------------------------
   LOGO STYLES
   --------------------------------------------------------- */
.custom-header-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-grow: 0;
    z-index: 10;
}

.custom-header-logo img {
        height: 60px;
  
    width: auto;
    display: block;
    filter: invert(1) brightness(0);
    transition: filter 0.3s ease;
}

.custom-header-logo a {
    display: flex; 
}

/* KIVÉTELEK LOGÓ: Fehér */
.page-id-12 .custom-header-logo img,
.page-id-33 .custom-header-logo img,
.page-id-35 .custom-header-logo img,
.page-id-21 .custom-header-logo img,
.page-id-266 .custom-header-logo img,
.page-id-15 .custom-header-logo img{
    filter: none;
}

/* STICKY LOGÓ: Fehér */
.custom-header-inner.is-sticky .custom-header-logo img {
    filter: none !important;
}

/* =========================================================
   DESKTOP NAVIGATION
   ========================================================= */
.custom-header-nav-desktop {
    display: none; 
    margin-left: auto; /* Jobbra tolja a menüt a logótól */
    /* Padding right eltávolítva, mert a nyelvválasztó már flex elem */
}

/* =========================================================
   DESKTOP LANG SWITCHER (Polylang)
   ========================================================= */
.custom-header-lang-wrapper {
    /* Abszolút pozíció eltávolítva, most flex elem */
    display: flex;
    align-items: center;
    margin-left: 25px; /* Távolság a menütől */
    z-index: 1002;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.custom-header-lang-wrapper .pll-switch {
	display: inline-flex;
	align-items: center;
	align-self: center;
	gap: 6px;
	text-decoration: none;
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-radius: 999px;
	padding: 10px 14px;
	line-height: 1;
	transition: all 0.3s ease;
}

.custom-header-lang-wrapper .pll-switch img {
	display: block;
	width: 22px;
	height: 22px;
	border-radius: 999px; 
}

/* ALAP: Sötét szöveg */
.custom-header-lang-wrapper .pll-switch__code {
	line-height: 1;
	font-size: 22px;
	color: #1C191A; 
	font-weight: 400;
	font-family: "Montserrat", sans-serif;
    transition: color 0.3s ease;
}

/* KIVÉTELEK NYELV: Fehér */
.page-id-12 .custom-header-lang-wrapper .pll-switch__code,
.page-id-33 .custom-header-lang-wrapper .pll-switch__code,
.page-id-35 .custom-header-lang-wrapper .pll-switch__code,
.page-id-21 .custom-header-lang-wrapper .pll-switch__code,
.page-id-266 .custom-header-lang-wrapper .pll-switch__code.
.page-id-15 .custom-header-lang-wrapper .pll-switch__code{
    color: #ffffff;
}

/* STICKY NYELV: Fehér */
.custom-header-lang-wrapper.is-sticky .pll-switch__code {
    color: #ffffff !important;
}

.custom-header-lang-wrapper.is-sticky .pll-switch {
    background: rgba(19, 19, 19, 0.9);
}

@media(max-width:1350px) {
    .custom-header-lang-wrapper {
        display: none;
    }
}


/* =========================================================
   DESKTOP STYLES (Min-width: 1201px)
   ========================================================= */
@media (min-width: 1201px) {
    .custom-header-nav-desktop {
        display: block;
    }

    .custom-header-menu-list {
        display: flex;
        gap: 25px;
        list-style: none;
        margin: 0;
        padding: 0;
        align-items: center;
        justify-content: flex-end; 
    }
    
    .custom-header-menu-list > li {
        position: relative;
    }
    
    .custom-header-menu-list > li::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 20px;
        background: transparent;
        pointer-events: auto;
    }

    /* ALAP: Menüpontok feketék */
    .custom-header-menu-list li a {
        text-decoration: none;
        color: #1C191A; /* Sötét */
        font-weight: 400;
        font-size: 16px;
        transition: color 0.3s;
       
		        letter-spacing: 1px;
        font-family: sans-serif;
        white-space: nowrap;
		font-family: 'Poppins', Sans-serif;
    }
    
    /* KIVÉTELEK MENÜ: Fehérek */
    .page-id-12 .custom-header-menu-list li a,
    .page-id-33 .custom-header-menu-list li a,
    .page-id-35 .custom-header-menu-list li a,
	.page-id-21 .custom-header-menu-list li a,
	.page-id-266 .custom-header-menu-list li a,
	.page-id-15 .custom-header-menu-list li a{
        color: #ffffff;
    }

    /* STICKY MENÜ: Fehér */
    .custom-header-inner.is-sticky .custom-header-menu-list li a {
        color: #ffffff !important;
    }
	
	
	    .custom-header-inner.is-sticky .custom-header-menu-list li.CTA a {
        color: #000 !important;
    }

    /* HOVER FIX: Szülő elemek is zöldek legyenek */
    .custom-header-menu-list li a:hover,
    .custom-header-menu-list li:hover > a,
    .custom-header-menu-list li:focus-within > a {
        color: rgba(84, 245, 172, 1) !important; /* Zöld hover */
    }
    
    /* -----------------------------------------------------
       CTA (GOMB) MENÜPONT STÍLUS
       ----------------------------------------------------- */
    body .custom-header-wrapper ul#menu-elsodleges-menu li.CTA#menu-item-816 a {
        background-color: #54F5AC !important;
        color: #000000 !important; /* Mindig fekete szöveg a gombon */
        padding: 14px 24px !important;
        border-radius: 4px;
        display: inline-flex !important;
		font-family: 'Poppins', Sans-serif !important;
		font-size:16px;
        align-items: center;
        gap: 8px; /* Távolság az ikontól */
        font-weight: 500 !important;
        line-height: 1;
        
		border-radius:300px;
        transition: transform 0.2s ease, background 0.2s ease;
    }

  

    /* CTA Hover effekt */
    body .custom-header-wrapper ul#menu-elsodleges-menu li.CTA#menu-item-816 a:hover {
        transform: translateY(-3px); /* Kicsit megemelkedik */
        filter: brightness(1.1); /* Kicsit világosodik */
		border-radius:300px;
		 color: #000000 !important;
    }

    /* ----------------------------------------------------- */
    
    .custom-header-menu-list li .sub-menu {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        min-width: 220px;
        padding: 8px;
        margin: 0;
        list-style: none;
        background: rgba(20, 20, 20, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: none;
        border-radius: 12px;
        box-shadow: 0 20px 25px -5px rgba(19, 19, 19, 0.2);
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px) scale(0.98);
        transform-origin: top left;
        pointer-events: none;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 2000;
    }

    .custom-header-menu-list li:hover > .sub-menu,
    .custom-header-menu-list li:focus-within > .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

    .custom-header-menu-list li .sub-menu li {
        margin: 0;
        padding: 0;
    }
    
    .custom-header-menu-list li .sub-menu li::after {
        display: none;
    }

    .custom-header-menu-list li .sub-menu li + li {
        margin-top: 2px;
    }

    .custom-header-menu-list li .sub-menu a {
        display: block;
        padding: 8px 12px;
        border-radius: 8px;
		
        text-transform: none;
        font-size: 16px;
        font-weight: 400;
        color: rgba(255, 255, 255, 0.8) !important; /* Submenu elem alapból halványabb fehér */
        transition: all 0.2s ease;
        white-space: nowrap;
        background: transparent !important; /* Nincs háttér */
    }

    .custom-header-menu-list li .sub-menu a:hover,
    .custom-header-menu-list li .sub-menu a:focus {
        background: rgba(255, 255, 255, 0.1) !important;
        color: #ffffff !important;
        transform: translateX(4px);
        outline: none;
    }

    .custom-header-mobile-toggle {
        display: none;
    }
}

/* =========================================================
   MOBILE STYLES (Max-width: 1350px)
   ========================================================= */
@media (max-width: 1350px) {
    .custom-header-wrapper {
        width: 100% !important; 
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        overflow-x: hidden !important; 
    }

    .custom-header-inner {
        /* Mobilon nem kell a max-width 1300px konténer hatás, 
           hiszen kisebb a képernyő, de a szerkezet marad. */
        padding: 0 25px;
        border-radius: 0;
    }
    
    .custom-header-container {
        /* Mobilon a konténer is legyen 100% */
        width: 100%;
        justify-content: space-between;
    }

    .custom-header-logo {
        flex-grow: 0;
        order: 1;
    }
    
    .custom-header-logo img {
            height: 60px;
  
    width: auto;
    display: block;
    filter: invert(1) brightness(0);
    transition: filter 0.3s ease;
    }
    
    .custom-nav-left, .custom-nav-right {
        display: none;
    }

    .custom-header-mobile-toggle {
        order: 2;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 5px !important;
        width: 44px !important; 
        height: 44px !important;
        background-color: transparent !important; 
        border-radius: 50% !important;
        cursor: pointer !important;
        padding: 0 !important;
        margin: 0 !important;
        z-index: 1001;
        box-shadow: none !important;
        outline: none !important;
        border: none !important;
    }

    /* ALAP HAMBURGER: Sötét */
    .custom-header-mobile-toggle span {
        display: block !important;
        width: 20px !important;
        height: 2px !important;
        background-color: #1C191A !important; 
        border-radius: 2px !important;
        transition: all 0.3s ease;
        margin: 0 !important;
    }
    
    /* KIVÉTEL HAMBURGER: Fehér */
    .page-id-12 .custom-header-mobile-toggle span,
    .page-id-33 .custom-header-mobile-toggle span,
    .page-id-35 .custom-header-mobile-toggle span,
	.page-id-21 .custom-header-mobile-toggle span,
	.page-id-266 .custom-header-mobile-toggle span,
	.page-id-15 .custom-header-mobile-toggle span{
        background-color: #ffffff !important;
    }

    /* STICKY HAMBURGER: Fehér */
    .custom-header-inner.is-sticky .custom-header-mobile-toggle span {
        background-color: #ffffff !important;
    }
}

/* =========================================================
   MOBILE SIDEBAR (Off-canvas)
   ========================================================= */
.custom-header-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0; 
    width: 80vw; 
    max-width: 350px;
    height: 100vh;
    background: rgba(19, 19, 19, 0.9); 
    backdrop-filter: blur(15px);
    z-index: 9999; 
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    padding: 20px 25px;
    overflow-y: auto;
   
    background-size: cover;
    background-position: center center;
}

.custom-header-sidebar.is-open {
    transform: translateX(0);
}

.custom-header-sidebar-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.custom-header-sidebar-logo img {
    max-height: 65px;
    width:auto !important;
    filter: none !important; 
}

.custom-header-sidebar-close {
    background: transparent !important;
    border: none;
    color: #fff !important;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    width: auto;
    height: auto;
    padding: 5px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-header-mobile-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-header-mobile-list > li {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.custom-header-mobile-list li a {
    color: #fff;
    text-decoration: none;
    font-size: 17px;
    display: flex; 
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    font-weight: 500;
}

.custom-header-mobile-list li.menu-item-has-children > a::after {
    content: '' !important;
    display: block !important;
    width: 8px !important;
    height: 8px !important;
    border: 0 !important;
    border-right: 2px solid white !important;
    border-bottom: 2px solid white !important;
    transform: rotate(45deg); 
    transition: transform 0.3s;
    margin-right: 5px;
}

.custom-header-mobile-list li.menu-item-has-children > a.is-active::after {
    transform: rotate(-135deg); 
    margin-top: 5px;
}

/* =========================================================
   MOBILE SUBMENUS (Accordion)
   ========================================================= */
.custom-header-mobile-list .sub-menu {
    display: none;
    padding-left: 15px;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 10px;
    border-radius: 8px;
}

.custom-header-mobile-list .sub-menu.is-open {
    display: block;
    animation: fadeIn 0.3s ease;
}

.custom-header-mobile-list .sub-menu li {
    border: none;
    margin: 0;
}

.custom-header-mobile-list .sub-menu a {
    font-size: 15px;
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.7);
    justify-content: flex-start; 
}

.custom-header-mobile-list .sub-menu a::after {
    display: none !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   OVERLAY
   ========================================================= */
.custom-header-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(19,19,19,0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
}

.custom-header-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .custom-header-inner {
        height: 70px;
        border-radius: 0; 
    }
}