/*
=============================================
 1. Alap stílusok
=============================================
*/
:root {
    --red: #e30613;
    --black: #000;
    --white: #fff;
    --bg-dark: var(--black);
    --bg-light: var(--white);
    --text-dark: var(--white);
    --text-light: var(--black);
    --accent: var(--red);
    --font-sans: 'Barlow', sans-serif;
    --font-alt: 'Raleway', sans-serif;
    --font-condensed: 'Roboto Condensed', sans-serif;
    --black-100: #333;
    /* Példa: egy nagyon sötét árnyalat */
    --black-300: #0f0f0f;
    /* Példa: egy még sötétebb árnyalat a footernek */

    --box-bg-light: #f0f1f3;
    /* fő kártya világos módhoz */
    --box-bg-light-alt: #e8eaee;
    /* sidebar, vagy váltakozó */
    --box-border-light: #ddd;
    --box-bg-dark: #18191a;
    /* sötét doboz dark mode-ban */
    --box-bg-dark-alt: #202124;
    /* alternatíva sötét dobozhoz */


}

body {
    margin: 0;
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-dark);
    transition: background-color 0.3s, color 0.3s;
}

body.light-mode {
    background-color: var(--bg-light);
    color: var(--text-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

img {
    max-width: 100%;
    height: auto;
}

/*
=============================================
 2. Header
=============================================
*/
.site-header {
    background-color: var(--bg-dark);
    color: var(--text-dark);
    padding: 1rem 0;
    border-bottom: 1px solid var(--black-100);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-box {
    flex-shrink: 0;
}

.logo {
    height: 75px;
    /* Példa méret */
    width: auto;
    transition: opacity 0.3s ease;
}



/* Eszközök jobb oldalon (kereső, téma, nyelv) */
.header-tools {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-toggle-group {
    display: flex;
    align-items: center;
    gap: 10px;
    /* Hozzáadva vagy módosítva a space-khez */
    flex-wrap: nowrap;
    /* Megakadályozza, hogy új sorba törjön */
}

.search-form {
    display: flex;
    position: relative;
    align-items: center;
    /* Vertikálisan középre igazítja a keresőmezőt */
}

.search-form input[type="text"] {
    padding: 8px 15px;
    border: 1px solid var(--black-100);
    border-radius: 20px;
    background-color: var(--black-300);
    color: var(--white);
    font-size: 0.9rem;
    width: 150px;
    /* Alapértelmezett szélesség */
    transition: width 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.search-form input[type="text"]:focus {
    width: 200px;
    /* Szélesebb fókuszban */
    border-color: var(--accent);
    outline: none;
    background-color: var(--black);
}

/* Téma váltó gomb */
#theme-toggle {
    background-color: var(--black-100);
    color: var(--white);
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#theme-toggle:hover {
    background-color: var(--accent);
}

body.light-mode #theme-toggle {
    background-color: var(--black-100);
    color: var(--white);
}

body.light-mode #theme-toggle:hover {
    background-color: var(--accent);
}


/* Lang buttons */
.lang-buttons {
    display: flex;
    gap: 5px;
}

.lang-btn {
    background-color: var(--black-100);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
    cursor: pointer;
    /* Általános gomb kurzor */
}

.lang-btn:hover:not(.active) {
    background-color: var(--accent);
}

.lang-btn.active {
    background-color: var(--accent);
    cursor: pointer;
    /* Ezt módosítottam default-ról pointerre */
}

@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 0.5rem;
    }

    .header-tools {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .search-toggle-group {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
    }

    .lang-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }

    .lang-btn {
        padding: 3px 8px;
        font-size: 0.75rem;
        font-weight: 300;
        /* Light font – Roboto Condensed 300 vagy Roboto 300 */
    }
}


/*
=============================================
 3. Navigáció
=============================================
*/
nav {
    background-color: var(--black-300);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--black-100);
}

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

.nav-list {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    /* Ne törjön sorba */
    align-items: center;
    overflow-x: auto;
    /* Ha túlcsordul, legyen vízszintes görgetés */
}

.nav-list li {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Elválasztó vonal középre a linkek között */
.nav-list li:not(:last-child)::after {
    content: "|";
    color: var(--white);
    margin: 0 0.75rem;
    opacity: 0.6;
    font-weight: 400;
}

.nav-list li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    /* Vékonyabb betűtípus */
    font-size: 0.90rem;
    /* Kisebb betűméret */
    padding: 5px 0;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-list li a:hover {
    color: var(--accent);
}

.nav-toggle {
    display: none;
    /* Alapértelmezetten rejtett asztali nézetben */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 1.5rem;
    color: var(--white);
}

.nav-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
}

/* Mobil nézetben (hamburger menü) */
@media (max-width: 768px) {
    .nav-list {
        display: none;
        /* Alapértelmezetten rejtett mobil nézetben */
        flex-direction: column;
        width: 100%;
        background-color: var(--black-300);
        position: absolute;
        top: 100px;
        /* Fejléc alatti pozíció */
        left: 0;
        z-index: 10;
        padding: 1rem;
        border-top: 1px solid var(--black-100);
    }

    .nav-list.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
        /* Megjelenik mobil nézetben */
    }

    .nav-list li {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .nav-list li a {
        display: block;
        padding: 10px;
        border-bottom: 1px solid var(--black-100);
    }

    /* Mobil nézetben töröljük a nav linkek közti vonalat */
    .nav-list li:not(:last-child)::after {
        content: none;
        margin: 0;
    }
}

/*
=============================================
 4. Fő tartalom blokkok
=============================================
*/
.main-content {
    padding: 0 0 1rem;
}



/* Featured szekció */
.featured {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--black-100);
    margin-bottom: 1rem;
}

.featured-header {
    text-align: left;
    margin-bottom: 2rem;
}

.featured-header h2 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.featured-category-date {
    font-size: 0.9rem;
    color: #888;
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* Fő cikk 2/3, oldalsáv 1/3 */
    gap: 2rem;
}

@media (max-width: 992px) {
    .featured-grid {
        grid-template-columns: 1fr;
        /* Egy oszlop mobil nézetben */
    }
}

.featured-main-article {
    background-color: var(--black-300);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: transform 0.3s ease;
}

.featured-main-article:hover {
    transform: translateY(-5px);
}

.featured-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.featured-image {
    width: 100%;
    height: 400px;
    /* Állítható magasság */
    object-fit: cover;
    display: block;
}

@media (max-width: 600px) {
    .featured-image {
        height: auto;
        aspect-ratio: 16 / 9;
        max-height: 200px;
        /* vagy törölhető, csak arányt tartson */
    }
}

@media (max-width: 768px) {
    .featured-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        max-height: 220px;
        display: block;
    }
}

.category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 2;
}

.featured-text-content {
    background-color: var(--accent);
    /* 🔴 PIROS háttér */
    padding: 1.5rem;
    color: var(--white);
}


.featured-text-content h3 {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.featured-subtitle {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.featured-excerpt {
    font-size: 1.0rem;
    line-height: 1.6;
    color: #f0f0f0;
    /* világos szürke, olvasható */
    margin-bottom: 1.5rem;
}

.read-more-btn {
    display: inline-block;
    background-color: var(--accent);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.read-more-btn:hover {
    background-color: #c40510;
}

.featured-sidebar-articles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.small-featured-article {
    background-color: var(--accent);
    /* 🔴 PIROS */
    color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: transform 0.2s ease;
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem;
}


.small-featured-article:hover {
    transform: translateY(-3px);
}

.small-featured-link {
    display: flex;
    /* Flexbox a kép és szöveg rendezéséhez */
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    width: 100%;
    /* A link töltse ki a konténert */
}

.small-featured-image {
    width: 120px;
    /* Fix szélesség a kis képnek */
    height: 70px;
    /* Fix magasság a kis képnek */
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
    /* Ne zsugorodjon */
}

.small-category-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background-color: rgba(var(--accent), 0.8);
    color: var(--white);
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 2;
}

.small-featured-text {
    flex-grow: 1;
}

.small-featured-text h4 {
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 0.3rem;
    color: var(--white);
}

.small-featured-excerpt {
    font-size: 0.85rem;
    color: #aaa;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Max 2 sor */
    line-clamp: 2;
    /* Standard property for compatibility */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


body.light-mode .featured-main-article {
    background-color: var(--white);
    color: var(--text-light);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

body.light-mode .featured-text-content {
    background-color: var(--accent);
    /* 🔴 PIROS háttér */
    color: var(--white);
}

body.light-mode .featured-excerpt {
    color: #fff;
}

body.light-mode .featured-sidebar-articles {
    color: var(--text-light);
}

body.light-mode .small-featured-article {
    background-color: var(--accent);
    /* 🔴 PIROS háttér light módban is */
    color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

body.light-mode .featured-text-content h3 {
    color: var(--white);
}

body.light-mode .small-featured-text h4 {
    color: var(--white);
}

body.light-mode .small-featured-excerpt {
    color: #f0f0f0;
}




/* Latest News szekció */
.latest-news {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--black-100);
    margin-bottom: 2rem;
    margin-top: 0;
    padding-top: 0;
}

.latest-news-header {
    text-align: left;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.latest-news-header h2 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.latest-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 992px) {
    .latest-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .latest-news-grid {
        grid-template-columns: 1fr;
    }
}

.latest-news-article {
    background-color: var(--black-300);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.latest-news-article:hover {
    transform: translateY(-5px);
}

.latest-news-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.latest-news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.latest-news-category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--accent);
    color: var(--white);
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
    z-index: 2;
}

.latest-news-image-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    /* 1️⃣ hozzáadva */
    overflow: hidden;
    background-color: #000;
}

.latest-news-text-content {
    padding: 1rem 1.5rem 1.5rem;
}

.latest-news-text-content h3 {
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.latest-news-excerpt {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #bbb;
    margin-bottom: 1rem;
}

.latest-news-date {
    font-size: 0.8rem;
    color: #888;
    display: block;
}

/* Bal és Jobb oldali blokkok */
.main-content-blocks {
    padding-bottom: 2rem;
    /* Hasonlóan a többi szekcióhoz */
}

.content-blocks-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* Bal oldal 2/3, jobb oldal 1/3 */
    gap: 2rem;
}

@media (max-width: 992px) {
    .content-blocks-grid {
        grid-template-columns: 1fr;
        /* Egy oszlop mobil nézetben */
    }
}

.left-block {
    background-color: var(--black-300);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.left-block-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Jobb blokk (Sidebar) */
.right-block {
    background-color: var(--black-300);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.right-block-item {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--black-100);
    padding-bottom: 1.5rem;
}

.right-block-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.right-block-item h3 {
    color: var(--accent);
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.right-block-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.right-block-item ul li a {
    color: var(--text-dark);
    text-decoration: none;
    padding: 8px 0;
    display: block;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease;
}

.right-block-item ul li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.right-block-item ul li:last-child a {
    border-bottom: none;
}



/* =============================================
   🔲 More News szekció (3x3 rács + sidebar)
================================================ */
.more-news {
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 2rem;
}

.more-news-header h2 {
    font-size: 2.5rem;
    color: var(--accent);
    margin: 0 0 1.5rem;
}

.more-news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.more-news-left {
    background-color: var(--black-300);
    border-radius: 8px;
    padding: 1.5rem;
}

.more-news-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .more-news-grid {
        grid-template-columns: 1fr;
    }

    .more-news-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .more-news-articles-grid {
        grid-template-columns: 1fr;
    }
}

.more-news-article {
    background-color: var(--black);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.more-news-article:hover {
    transform: translateY(-3px);
}

.more-news-link {
    color: inherit;
    text-decoration: none;
    display: block;
}

.more-news-image-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    /* ➕ 16:9 arány beállítása */
    background-color: #000;
    overflow: hidden;
}

.more-news-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--accent);
    color: var(--white);
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
    z-index: 2;
}

.more-news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.more-news-text {
    padding: 1rem 1.25rem;
}

.more-news-text h3 {
    font-size: 1.2rem;
    margin: 0 0 0.5rem;
    color: var(--white);
}

.more-news-text p {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.5;
}




.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 1rem;
}

.social-icon {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-icon:hover {
    transform: translateY(-2px);
}

.social-icon.facebook:hover {
    color: #3b5998;
}

.social-icon.twitter:hover {
    color: #1da1f2;
}

.social-icon.instagram:hover {
    color: #E1306C;
}

.social-icon.linkedin:hover {
    color: #0077b5;
}

/*
=============================================
 5. Footer
=============================================
*/
.main-footer {
    background-color: var(--black-300);
    color: var(--white);
    padding: 2rem 0 1rem;
    border-top: 1px solid var(--black-100);
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3 {
    color: var(--accent);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-col p {
    line-height: 1.6;
    color: #ccc;
}

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

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    padding: 5px 0;
    display: block;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1rem;
}

.newsletter-form input[type="email"] {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid var(--black-100);
    border-radius: 5px;
    background-color: var(--black);
    color: var(--white);
}

.newsletter-form button {
    background-color: var(--accent);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #c40510;
}

.footer-bottom {
    border-top: 1px solid var(--black-100);
    padding-top: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-legal-links {
    display: flex;
    gap: 10px;
}

.footer-legal-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: var(--accent);
}

.footer-legal-links .separator {
    color: #888;
}


/* Scroll to Top gomb */
#scrollToTopBtn {
    /* Alapértelmezett elrejtve */
    display: none;
    position: fixed;
    /* Fix pozíció az ablakhoz képest */
    bottom: 30px;
    /* Az aljától 30px */
    right: 30px;
    /* A jobb szélétől 30px */
    z-index: 99;
    /* Legyen felül más elemekhez képest */
    border: none;
    /* Nincs szegély */
    outline: none;
    /* Nincs fókusz körvonal */
    background-color: var(--accent);
    /* Háttérszín (piros) */
    color: var(--white);
    /* Szövegszín (fehér) */
    cursor: pointer;
    /* Egérkurzor mutatóra vált */
    padding: 15px;
    /* Belső térköz */
    border-radius: 50%;
    /* Kerek gomb */
    font-size: 1.2rem;
    /* Ikon mérete */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    /* Ármenetek */
    transition: background-color 0.3s ease, transform 0.2s ease, opacity 0.3s ease;
}

#scrollToTopBtn:hover {
    background-color: #c40510;
    /* Sötétebb piros hoverre */
    transform: translateY(-2px);
    /* Enyhe felugrás */
}

/* Világos mód specifikus stílusok */
body.light-mode .site-header {
    background-color: var(--bg-light);
    border-color: var(--text-light);
}

body.light-mode nav {
    background-color: var(--black-300);
    /* Sötét háttér világos módban is */
    border-color: #eee;
}

body.light-mode .nav-list li a {
    color: var(--white);
    /* Fehér betűk világos módban a navban */
}

body.light-mode .nav-list li a:hover {
    color: var(--accent);
    /* Hover szín marad az accent */
}

body.light-mode .nav-toggle .bar {
    background-color: var(--white);
    /* Hamburger ikon is fehér */
}

body.light-mode .search-form input[type="text"] {
    background-color: #f0f0f0;
    color: var(--text-light);
    border-color: #ccc;
}

body.light-mode .search-form input[type="text"]:focus {
    background-color: var(--white);
    border-color: var(--accent);
}

body.light-mode .lang-btn {
    background-color: #ddd;
    color: var(--text-light);
}

body.light-mode .lang-btn:hover:not(.active) {
    background-color: var(--accent);
    color: var(--white);
}

body.light-mode .lang-btn.active {
    background-color: var(--accent);
    color: var(--white);
}

body.light-mode .left-block,
body.light-mode .right-block {
    background-color: var(--bg-light);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

body.light-mode .latest-news-article {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

body.light-mode .latest-news-text-content h3,
body.light-mode .right-block-item ul li a {
    color: var(--text-light);
}

body.light-mode .latest-news-excerpt {
    color: #666;
}

body.light-mode .latest-news-date {
    color: #999;
}


body.light-mode .more-news-left {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

body.light-mode .more-news-article {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}


body.light-mode .more-news-text p {
    color: var(--text-light);
}

body.light-mode .more-news-text {
    background-color: var(--bg-light);
}

body.light-mode .more-news-text h3 {
    color: var(--text-light);
}


body.light-mode .right-block-item {
    border-bottom-color: #eee;
}

body.light-mode .right-block-item ul li a {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .main-footer {
    background-color: var(--bg-light);
    color: var(--text-light);
    border-top-color: #eee;
}

body.light-mode .footer-col p,
body.light-mode .footer-col ul li a,
body.light-mode .footer-legal-links a {
    color: var(--text-light);
}

body.light-mode .newsletter-form input[type="email"] {
    background-color: #f0f0f0;
    color: var(--text-light);
    border-color: #ccc;
}




/* ########################### */
/* ####### ARTICLE.PHP ####### */
/* ########################### */

.article-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
}

@media (max-width: 992px) {
    .article-grid {
        grid-template-columns: 1fr;
    }
}

.article-left {
    background-color: var(--black-300);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* === Breadcrumb (article.php) === */
.article-breadcrumb {
    font-size: 1rem;
    font-weight: bold;
    background-color: var(--black);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 1rem;
}

.article-breadcrumb a {
    color: var(--accent);
    text-decoration: none;
    font-size: 1.05rem;
    margin-right: 0.25rem;
}

.article-breadcrumb a:hover {
    text-decoration: underline;
}

/* Light mode: negatív (fekete háttér, világos szöveg) */
body.light-mode .article-breadcrumb {
    background-color: var(--white);
    color: var(--white);
}

body.light-mode .article-breadcrumb a {
    color: var(--accent);
}

.article-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.article-meta {
    font-size: 0.9rem;
    color: #bbb;
    margin-bottom: 1rem;
}

.article-image-wrapper {
    margin: 1.5rem 0;
}

.article-image {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

.article-caption {
    font-size: 0.85rem;
    color: #ccc;
    margin-top: 0.5rem;
    text-align: center;
}

.article-body {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--white);
}

.article-body p {
    margin-bottom: 1rem;
}

.article-video {
    margin-top: 2rem;
}

/* Light mode kiegészítések */
body.light-mode .article-left {
    background-color: var(--white);
}

body.light-mode .article-title,
body.light-mode .article-body {
    color: var(--text-light);
}

body.light-mode .article-caption {
    color: #444;
}

.video-responsive-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 arány */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background-color: #000;
    margin-top: 1.5rem;
}

.video-responsive-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.article-tags {
    margin-top: 2rem;
}

.article-tags h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.article-tags ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.article-tags ul li a {
    background-color: var(--black-100);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background-color 0.2s;
}

.article-tags ul li a:hover {
    background-color: var(--accent);
    color: var(--white);
}

body.light-mode .article-tags ul li a {
    background-color: #eee;
    color: var(--text-light);
}

body.light-mode .article-tags ul li a:hover {
    background-color: var(--accent);
    color: var(--white);
}




/* ##################################################
   📄 LISTING – listing_all.php CSS (article-listing)
##################################################### */

/* Konténer, fő rács */
.article-listing {
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 2rem;
}

.article-listing-header h2 {
    font-size: 2.5rem;
    color: var(--accent);
    margin: 0 0 1.5rem;
}

.article-listing-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.article-listing-left {
    background-color: var(--black-300);
    border-radius: 8px;
    padding: 1.5rem;
    min-width: 0;
}

/* Hír-rács */
.article-listing-articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* 4–6. indexű elemek: 3 oszlopra feszítve, mindig új sorban */
.article-listing-article.full-row {
    grid-column: span 3;
}

/* Mobil/Tablet: grid váltások */
@media (max-width: 1200px) {
    .article-listing-articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .article-listing-article.full-row {
        grid-column: span 3;
    }
}

@media (max-width: 992px) {
    .article-listing-grid {
        grid-template-columns: 1fr;
    }

    .article-listing-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-listing-article.full-row {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .article-listing-articles-grid {
        grid-template-columns: 1fr;
    }

    .article-listing-article.full-row {
        grid-column: span 1;
    }
}

/* Hírkártyák */
.article-listing-article {
    background-color: var(--black);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.13);
    transition: transform 0.18s cubic-bezier(.42, 0, .58, 1);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.article-listing-article:hover {
    transform: translateY(-2px) scale(1.015);
}

/* Link */
.article-listing-link {
    color: inherit;
    text-decoration: none;
    display: block;
    height: 100%;
}

/* Képkeret */
.article-listing-image-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #222;
    overflow: hidden;
}

.article-listing-category {
    background-color: var(--accent);
    color: var(--white);
    font-size: 0.72rem;
    padding: 3px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.article-listing-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

/* Szöveges rész */
.article-listing-text {
    padding: 1rem 1.2rem 1.2rem 1.2rem;
    flex: 1 1 auto;
    min-width: 0;
}

.article-listing-text h3 {
    font-size: 1.15rem;
    margin: 0 0 0.4rem;
    color: var(--white);
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.article-listing-text p {
    font-size: 0.97rem;
    color: #bbb;
    line-height: 1.5;
    margin: 0;
    min-height: 2.5em;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Light Mode */
body.light-mode .article-listing-left {
    background-color: var(--white);
}

body.light-mode .article-listing-article {
    background-color: var(--white);
    box-shadow: 0 2px 9px rgba(0, 0, 0, 0.07);
}

body.light-mode .article-listing-text h3 {
    color: var(--black);
}

body.light-mode .article-listing-text p {
    color: #333;
}

body.light-mode .article-listing-category {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 2px 9px rgba(0, 0, 0, 0.05);
}

/* Videó ikon igazítása */
.video-icon {
    vertical-align: middle;
    margin-left: 7px;
    margin-bottom: 3px;
}

.article-listing-row {
    display: grid;
    gap: 1.2rem;
    margin-bottom: 1.6rem;
}

.row-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.row-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}


/* Mobilra automatikusan egy oszlop */
@media (max-width: 900px) {

    .row-cols-4,
    .row-cols-3 {
        grid-template-columns: 1fr;
    }
}


/* Kategória badge kisebb, video ikon mellé */
.article-listing-category-row {
    display: flex;
    align-items: center;
    gap: 0.3em;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.video-icon-badge {
    display: inline-block;
    vertical-align: middle;
}

/* 3 oszlopos sor: piros háttér a teljes sor mögött */
.article-listing-row.row-bg-accent {
    background: var(--accent, #e30613);
    border-radius: 12px;
    padding: 1.5rem 1.5rem 1.3rem 1.5rem;
    margin-bottom: 2rem;
    /* Sötét módban picit halványabb piros is lehet */
}

/* 3 oszlopos soron belül: a cikkek kicsit árnyékot is kaphatnak, ha szeretnéd */
.row-bg-accent .article-listing-article {
    background: var(--white, #fff);
    color: var(--black, #111);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body.dark-mode .row-bg-accent {
    background: #af1212;
}

body.dark-mode .row-bg-accent .article-listing-article {
    background: #18191a;
    color: #fff;
}

.infinite-loader {
    text-align: center;
    padding: 1.5em 0;
    color: var(--accent);
    font-weight: bold;
    background: transparent;
    font-size: 1.1em;
}



/* ##################################################
   🔍 SEARCH LISTING – search.php CSS
################################################## */
.search-listing {
    margin-top: 0;
    padding-bottom: 2rem;
}

.search-listing-header h2 {
    font-size: 2.5rem;
    color: var(--accent);
    margin: 0 0 1.5rem;
}

.search-listing-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.search-listing-left {
    background-color: var(--black-300);
    border-radius: 8px;
    padding: 1.5rem;
    min-width: 0;
}

.search-listing-articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1200px) {
    .search-listing-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .search-listing-articles-grid {
        grid-template-columns: 1fr;
    }
}

.search-listing-article {
    background-color: var(--black);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.13);
    transition: transform 0.18s cubic-bezier(.42, 0, .58, 1);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.search-listing-article:hover {
    transform: translateY(-2px) scale(1.015);
}

.search-listing-link {
    color: inherit;
    text-decoration: none;
    display: block;
    height: 100%;
}

.search-listing-image-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #222;
    overflow: hidden;
}

.search-listing-category-row {
    display: flex;
    align-items: center;
    gap: 0.3em;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.search-listing-category {
    background-color: var(--accent);
    color: var(--white);
    font-size: 0.72rem;
    padding: 3px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.search-listing-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.search-listing-text {
    padding: 1rem 1.2rem 1.2rem 1.2rem;
    flex: 1 1 auto;
    min-width: 0;
}

.search-listing-text h3 {
    font-size: 1.15rem;
    margin: 0 0 0.4rem;
    color: var(--white);
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.search-listing-text p {
    font-size: 0.97rem;
    color: #bbb;
    line-height: 1.5;
    margin: 0;
    min-height: 2.5em;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.light-mode .search-listing-left {
    background-color: var(--white);
}

body.light-mode .search-listing-article {
    background-color: var(--white);
    box-shadow: 0 2px 9px rgba(0, 0, 0, 0.07);
}

body.light-mode .search-listing-text h3 {
    color: var(--black);
}

body.light-mode .search-listing-text p {
    color: #333;
}

body.light-mode .search-listing-category {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 2px 9px rgba(0, 0, 0, 0.05);
}


/* ===== FOOTER – Mobil-first, dark/light, prefixelt ===== */
.footer-main {
    background: var(--black-300);
    color: var(--white);
    padding: 2.5rem 0 1.2rem;
    border-top: 1px solid var(--black-100);
    font-size: 0.97rem;
    margin-top: 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.2rem;
}

.footer-col h3 {
    color: var(--accent);
    font-size: 1.14rem;
    margin: 0 0 1rem 0;
    letter-spacing: 0.5px;
}

.footer-col p {
    color: #bdbdbd;
    margin: 0 0 1.3rem 0;
    font-weight: 400;
    line-height: 1.6;
    font-family: var(--font-sans);
}

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

.footer-col ul li a {
    color: #e2e2e2;
    text-decoration: none;
    padding: 6px 0;
    display: block;
    transition: color 0.25s;
    font-weight: 500;
    font-size: 0.98em;
}

.footer-col ul li a:hover {
    color: var(--accent);
    padding-left: 7px;
}

.footer-social-icons {
    display: flex;
    gap: 1.4rem;
    margin-bottom: 0.7rem;
    margin-top: 0.4rem;
}

.footer-social-icon {
    color: #e2e2e2;
    font-size: 1.65rem;
    transition: color 0.18s, transform 0.17s;
    display: inline-flex;
    align-items: center;
}

.footer-social-icon:hover {
    color: var(--accent);
    transform: translateY(-3px) scale(1.18);
}

.footer-social-handles {
    margin-top: 0.2rem;
    font-size: 0.95em;
}

.footer-social-handle {
    color: #b0b0b0;
    text-decoration: none;
    margin-right: 1rem;
    font-family: var(--font-alt);
}

.footer-social-handle:hover {
    color: var(--accent);
    text-decoration: underline;
}

.footer-newsletter-form {
    pointer-events: none;
    opacity: 0.5;
}

.footer-newsletter-form input,
.footer-newsletter-form button {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}

.footer-bottom {
    border-top: 1px solid var(--black-100);
    padding-top: 1.2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.footer-legal-links {
    display: flex;
    gap: 13px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.93em;
}

.footer-legal-links a {
    color: #bdbdbd;
    text-decoration: none;
    transition: color 0.22s;
}

.footer-legal-links a:hover {
    color: var(--accent);
}

.footer-separator {
    color: #666;
}

/* --- GRID desktopra --- */
@media (min-width: 700px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.7rem;
        margin-bottom: 2.5rem;
    }

    .footer-social-handles {
        font-size: 1em;
    }
}

@media (max-width: 499px) {
    .footer-col.footer-social {
        align-items: flex-start;
    }

    .footer-newsletter-form {
        flex-direction: column;
        gap: 7px;
    }
}

/* --- LIGHT MODE! --- */
body.light-mode .footer-main {
    background: var(--bg-light);
    color: var(--text-light);
    border-top: 1px solid #eee;
}

body.light-mode .footer-col p,
body.light-mode .footer-col ul li a,
body.light-mode .footer-legal-links a {
    color: var(--text-light);
}

body.light-mode .footer-social-icon {
    color: var(--black-100);
}

body.light-mode .footer-social-icon:hover {
    color: var(--accent);
}

body.light-mode .footer-social-handle {
    color: #555;
}

body.light-mode .footer-social-handle:hover {
    color: var(--accent);
}

body.light-mode .footer-newsletter-form input[type="email"] {
    background: #f2f2f2;
    color: var(--black);
    border-color: #ccc;
}

body.light-mode .footer-bottom {
    border-top: 1px solid #eee;
}

body.light-mode .footer-separator {
    color: #bbb;
}


body.light-mode .latest-news-article,
body.light-mode .article-listing-article,
body.light-mode .more-news-article,
body.light-mode .search-listing-article,
body.light-mode .featured-main-article {
    background-color: var(--box-bg-light);
    border: 1px solid var(--box-border-light);
    box-shadow: 0 3px 16px 0 rgba(120, 120, 120, 0.09), 0 1.5px 2.5px 0 rgba(0, 0, 0, 0.07);
}

body.light-mode .right-block,
body.light-mode .left-block,
body.light-mode .more-news-left,
body.light-mode .article-listing-left,
body.light-mode .search-listing-left {
    background-color: var(--box-bg-light-alt);
    border: 1px solid var(--box-border-light);
}

body.light-mode .latest-news-article:nth-child(even),
body.light-mode .article-listing-article:nth-child(even) {
    background-color: #e8eaee;
}


.latest-news-article,
.article-listing-article,
.more-news-article,
.right-block,
.left-block,
.featured-main-article,
.search-listing-article {
    background-color: var(--box-bg-dark);
    box-shadow: 0 3px 16px 0 rgba(0, 0, 0, 0.13), 0 1.5px 2.5px 0 rgba(0, 0, 0, 0.11);
    border: 1px solid #222;
}

.right-block,
.left-block,
.more-news-left,
.article-listing-left,
.search-listing-left {
    background-color: var(--box-bg-dark-alt);
}


.latest-news-article,
.article-listing-article,
.more-news-article,
.right-block,
.left-block,
.featured-main-article,
.search-listing-article {
    background-color: var(--box-bg-dark);
    box-shadow: 0 3px 16px 0 rgba(0, 0, 0, 0.13), 0 1.5px 2.5px 0 rgba(0, 0, 0, 0.11);
    border: 1px solid #222;
}

.right-block,
.left-block,
.more-news-left,
.article-listing-left,
.search-listing-left {
    background-color: var(--box-bg-dark-alt);
}