/* ============================================================
    FINOMÍTOTT FOOTER STÍLUS
   ============================================================ */
.main-footer {
    background-color: var(--color-deep-dark);
    width: 100% !important;
    max-width: none !important; /* Felülírjuk az Elementor korlátját */
    padding: 80px 0 0 0;
    margin: 0 !important;
    left: 0;
    right: 0;
}

.footer-container {
    max-width: 1200px; /* Itt állítod be, milyen szélesen legyen a szöveg középen */
    margin: 0 auto !important; /* Ez tartja középen a tartalmat */
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 20px;
}

.footer-bottom {
    width: 100% !important;
    max-width: none !important;
    background-color: rgba(0, 0, 0, 0.2); /* Sötétebb sáv */
    margin-top: 60px;
    padding: 25px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobilon is érdemes ellenőrizni, hogy ne maradjon 4 oszlopos */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 0 20px;
    }
}

/* Alcímek szépítése */
.footer-column h4 {
    color: var(--color-light-green);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
    position: relative;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-accent-green);
}



/* A lábléc oszlopainak szövegei */
.main-footer .footer-column,
.main-footer .footer-bottom p,
.main-footer .footer-column p,
.main-footer .footer-column span,
.main-footer .footer-column li {
    color: var(--color-sand-light) !important;
}

/* A linkek alapállapota */
.main-footer .footer-column a {
    color: var(--color-sand-light) !important;
    transition: color 0.3s ease;
}

/* A linkek színe, ha ráviszed az egeret (ZÖLD) */
.main-footer .footer-column a:hover {
    color: var(--color-accent-green) !important;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 15px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.85;
    transition: var(--transition-smooth);
}

.footer-column ul li a {
    color: var(--color-sand-light);
    text-decoration: none;
}

.footer-column ul li:hover {
    opacity: 1;
    color: var(--color-accent-green);
    transform: translateX(5px);
}

.footer-column i {
    color: var(--color-accent-green);
    font-size: 1rem;
}

/* Közösségi szekció */
.social-icons {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.social-icon {
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--color-white);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon:hover {
    background-color: var(--color-sand-light);
    border-color: var(--color-accent-green);
    transform: translateY(-5px) scale(1.1);
}

.footer-tagline {
    font-size: 0.85rem;
    line-height: 1.6;
    opacity: 0.6;
    font-style: italic;
}

/* Footer alsó sáv - Javított középre igazítás */
.footer-bottom {
    position: relative;
    width: 100vw !important;
    left: 50% !important;
    transform: translateX(-50%) !important; /* Margók helyett ez a legbiztosabb módszer */
    margin: 60px 0 0 0 !important;
    
    padding: 25px 0;
    background-color: rgba(0, 0, 0, 0.4) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    box-sizing: border-box;
    
    /* Középre igazítás kényszerítése */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}

.footer-bottom p {
    margin: 0 !important; /* Az Elementor p-tegei gyakran kapnak alap margót, ami elnyomja a közepet */
    width: 100%;
}

/* MOBIL NÉZET JAVÍTÁSA */
@media (max-width: 992px) {
    .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
	body {
        overflow-x: hidden; /* Megakadályozza az esetleges kilógást */
    }
    .footer-bottom {
        width: 100vw !important;
        margin-top: 40px;
		text-align: center;
    }
    .main-footer { padding-top: 50px; }
    .footer-column h4::after { left: 50%; transform: translateX(-50%); }
    .footer-column ul li { justify-content: center; }
    .social-icons { justify-content: center; }
	.footer-tagline { text-align: center !important; }
}

@media (max-width: 768px) {
    /* 1. A rács kényszerítése egy oszlopba */
    .footer-container {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 40px; /* Nagyobb távolság az oszlopok között mobilon */
    }

    /* 2. Címsorok alatti vonal középre igazítása */
    .footer-column h4::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    /* 3. Listaelemek (elérhetőség, linkek) középre rendezése */
    .footer-column ul li {
        justify-content: center !important;
        transform: none !important; /* Mobilon ne mozogjon el oldalra hoverkor */
    }

    /* 4. Az ikonok és szövegek közötti fix távolság megtartása */
    .footer-column ul li i {
        margin-right: 5px;
    }

    /* 5. A közösségi ikonok tárolójának igazítása */
    .social-icons {
        justify-content: center !important;
        margin-top: 15px;
    }

    /* 6. A tagline (szlogen) szépítése */
    .footer-tagline {
        max-width: 280px; /* Ne legyen túl széles a szöveg */
        margin: 10px auto 0 !important;
        display: block;
    }
}