/* =====================================================
   🔷 1. Alapbeállítások és változók
====================================================== */
:root {
    --main-bg-color: rgb(8, 52, 100);
    --main-text-color: #ffffff;
    --accent-color: red;
    --nav-link-color: rgb(8, 52, 100);
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--main-bg-color);
    color: var(--main-text-color);
    line-height: 1.6;
}

/* Általános hír- és tartalmi linkek – impresszumon kívül */
a,
h2 a,
h3 a,
h4 a,
.mini-text a,
.main1-left-title a,
.main1-left-miniblock a,
.feature-link {
    color: inherit;
    /* mindenkor örökli a szülő színét */
    text-decoration: none;
    /* alapból nincs aláhúzás */
    transition: color 0.13s, text-decoration-color 0.13s;
}

a:hover,
h2 a:hover,
h3 a:hover,
h4 a:hover,
.mini-text a:hover,
.main1-left-title a:hover,
.main1-left-miniblock a:hover,
.feature-link:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    text-decoration-color: currentColor;
    /* az aktuális színű aláhúzás */
}

body.light-mode a:hover,
body.light-mode h2 a:hover,
body.light-mode h3 a:hover,
body.light-mode h4 a:hover {
    color: #000;
    text-decoration-color: #000;
}

body:not(.light-mode) a:hover,
body:not(.light-mode) h2 a:hover,
body:not(.light-mode) h3 a:hover,
body:not(.light-mode) h4 a:hover {
    color: #fff;
    text-decoration-color: #fff;
}


/* =====================================================
   🔷 2. Layout: konténer, grid
====================================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 10px;
}

.main-content {
    margin: 0 auto;
    margin-top: 20px;
    padding: 0 10px;
    background-color: var(--main-bg-color);
    color: var(--main-text-color);
    max-width: var(--max-width);
}

.main-grid,
.inner-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.main-left {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-right {
    flex: 1;
}

.inner-left {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.inner-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* =====================================================
   🔷 3. Fejléc
====================================================== */
.header-wrap {
    background-color: var(--main-bg-color);
    padding: 10px 0;
    border-bottom: 1px solid #ffffff;
}

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

.header-left,
.header-right {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-left {
    justify-content: flex-start;
}

.header-right {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.lang-toggle,
.mode-toggle {
    border: none;
    padding: 6px 10px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
}

.lang-toggle {
    background: red;
    color: white;
}

.mode-toggle {
    background: #fff;
    color: #000;
}

.search-input {
    padding: 5px;
    width: 180px;
    border: none;
    border-radius: 4px;
    background: #fff;
    color: #000;
    max-width: 100%;
}

/* =====================================================
   🔷 4. Navigáció
====================================================== */
.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

.nav-toggle {
    font-size: 1.8rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: none;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 0;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.nav-list li {
    display: inline-block;
    padding: 0 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    white-space: nowrap;
    line-height: 1;
    font-size: 0.95rem;
}

.nav-list li:first-child {
    border-left: none;
}

.nav-list a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.95rem;
}

.main-nav {
    background-color: var(--main-bg-color);
    text-align: center;
    padding: 10px 0;
    margin-bottom: 10px;
}

.main-nav a:hover {
    color: #aad4ff;
}

/* =====================================================
   🔷 4.1. Navigáció - Badge stílus (Desktop)
====================================================== */

/* Csak azokon az eszközökön, ahol a hamburger menü nem aktív (desktop) */
@media (min-width: 1121px) {

    /* 1. Eltávolítjuk a régi elválasztó vonalakat és a felesleges paddinget a listaelemről. */
    .nav-list li {
        border-left: none;
        padding: 0;
    }

    /* 2. Beállítjuk a távolságot a badge-ek (gombok) között.
       ⬇️ MÓDOSÍTÁS: A térköz 8px-ről 2px-re csökkentve. */
    .nav-list {
        gap: 2px;
    }

    /* 3. A linkek (badge-ek) alap stílusa.
       ⬇️ MÓDOSÍTÁS: Alap háttérszínt kapnak a linkek. */
    .nav-list a {
        display: block;
        padding: 8px 16px;
        border-radius: 6px;
        background-color: rgba(255, 255, 255, 0.05);
        /* Sötét mód alap háttér */
        transition: background-color 0.2s, box-shadow 0.2s, color 0.2s;
        box-shadow: none;
    }

    /* 4. Alap háttérszín VILÁGOS MÓDBAN.
       ⬇️ ÚJ SZABÁLY: Világos módban is kapnak egy finom alap hátteret. */
    body.light-mode .nav-list a {
        background-color: #f1f1f1;
    }

    /* 5. Hover állapot (amikor az egér fölötte van) - SÖTÉT MÓD */
    .nav-list a:hover {
        background-color: rgba(255, 255, 255, 0.15);
        /* A hover háttér kicsit erősebb */
        color: #ffffff;
        text-decoration: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    /* 6. Hover állapot - VILÁGOS MÓD */
    body.light-mode .nav-list a:hover {
        background-color: #e9ecef;
        /* A hover háttér kicsit sötétebb, mint az alap */
        color: #000000;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
}

/* =====================================================
   🔷 5. Kiemelt hírek
====================================================== */
.main-top {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0;
}

.section-heading {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.main-top-inner {
    display: flex;
    align-items: stretch;
    /* <-- ez kiegyenlíti a magasságokat */
    flex-wrap: nowrap;
    width: 100%;
}

.left-feature-wrapper {
    width: 70%;
    padding-right: 20px;
}

/* Alap: overlay cím a képen */
.image-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    width: 100%;
    overflow: hidden;
}

.feature-title-link {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 52, 100, 0.72);
    color: #fff;
    padding: 0.7em 1em;
    border-radius: 0 0 14px 0;
    margin: 0;
    text-align: left;
}

@media (min-width: 900px) {

    /* Desktop: Cím a kép alatt */
    .feature-title-link {
        position: static;
        background: none;
        color: #fff;
        border-radius: 0;
        padding: 0.7em 0 0.3em 0;
        margin: 0;
        text-align: left;
        box-shadow: none;
        /* Aláhúzás, ha szeretnéd */
    }

    .image-wrapper {
        aspect-ratio: 16/9;
        width: 100%;
    }
}

.mobile-feature-title-link {
    display: none;
}

@media (max-width: 700px) {
    .mobile-feature-title-link {
        display: block !important;
        font-size: 1.11rem;
        font-weight: bold;
        margin: 12px 0 6px 0;
        color: #fff;
        background: none !important;
        padding: 0 2px 0 2px;
        text-shadow: none;
        text-align: left;
        text-decoration: none;
        border-radius: 0;
    }

    body.light-mode .mobile-feature-title-link {
        color: #111;
    }

    .desktop-only {
        display: none !important;
    }
}

/* Hover effekt, ha kell */
@media (max-width: 700px) {
    .mobile-feature-title-link:hover {
        text-decoration: underline;
        color: #aad4ff;
    }

    body.light-mode .mobile-feature-title-link:hover {
        color: #0067bb;
    }
}


.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feature-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    font-size: 2.4rem;
    font-weight: 700;
    color: #ffffff;
    background: none;
    padding: 0;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    /* csak enyhe árnyék */
    z-index: 2;
    box-sizing: border-box;
}

.right-feature {
    width: 30%;
    background-color: transparent;
    color: white;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}


.right-feature-title {
    font-weight: bold;
    font-size: 0.9rem;
    color: white;
    border-left: 4px solid red;
    padding-left: 10px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.right-feature .small-news a {
    color: white;
    text-decoration: none;
    display: inline-block;
}

.right-feature .small-news a:hover {
    color: #aad4ff;
    text-decoration: underline;
}


.small-news h4 {
    margin-bottom: 8px;
    font-size: 1rem;
    color: white;
}

.right-feature .small-news {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.right-feature .small-news:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}


.right-feature .news-category {
    font-size: 0.75rem;
    color: #ff4444;
    text-transform: uppercase;
    margin-bottom: 2px;
    display: block;
}

.news-card {
    background: #0c305a;
    padding: 10px;
    border-radius: 6px;
}

.news-card img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 10px;
    object-fit: cover;
}

.news-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: white;
}

.news-card p {
    font-size: 0.95rem;
    color: #ccc;
}

.highlight-box {
    background-color: #132c4f;
    padding: 10px;
    border-left: 4px solid red;
    border-radius: 4px;
    color: white;
}

.widget-box {
    background: #102b4d;
    padding: 10px;
    border-radius: 6px;
    color: white;
}

/* =====================================================
   🔷 6. Lábléc
====================================================== */
.footer-wrap {
    background-color: var(--main-bg-color);
    color: #ffffff;
    text-align: center;
    padding: 20px 10px;
}

.footer-content p {
    margin: 5px 0;
}

/* =====================================================
   🔷 7. Reszponzivitás
====================================================== */
@media (max-width: 1120px) {

    .main-grid,
    .inner-grid {
        flex-direction: column;
    }



    /* Navigációs konténer: oszlopba, balra */
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Hamburger ikon: balra igazítva */
    .nav-toggle {
        display: block;
        background: none;
        color: white;
        font-size: 1.8rem;
        border: none;
        cursor: pointer;
        margin-bottom: 10px;
    }

    /* Menü lista: rejtett, ha nincs open osztály */
    .nav-list {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        /* ⬅️ Ez fontos */
        width: 100%;
        padding-left: 0;
    }

    /* Menü megjelenítése ha .open van */
    .nav-list.open {
        display: flex;
    }

    .nav-list li {
        width: 100%;
        padding: 12px 0;
        /* 🔁 tágabb érintési zóna: összesen 24px */
        border-left: none;
        /* nincs elválasztó vonal */
        text-align: left;
        /* ⬅️ Ez is */
    }

    .nav-list a {
        font-size: 1.15rem;
        /* nagyobb betű */
        color: white;
        font-weight: bold;
        text-decoration: none;
        text-align: left;
        padding-left: 5px;
        /* kis bal behúzás */
        display: block;
        /* teljes sort kattinthatóvá tesz */
    }
}

@media (max-width: 1024px) {
    .header-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }

    .header-left,
    .header-right {
        flex: none;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .search-input {
        width: 100%;
    }

    .feature-title {
        font-size: 1.5rem;
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    /*
    .right-feature {
        display: none;
    }
        */

    .left-feature-wrapper {
        width: 100%;
        padding-right: 0;
    }
}

/* =====================================================
   🔷 8. Light mód
====================================================== */
body.light-mode {
    background-color: #ffffff;
    color: #000000;
}

body.light-mode .main-content {
    background-color: #ffffff;
    color: #000000;
}

body.light-mode .right-feature {
    background-color: #e6e6e6;
    color: #000000;
    padding: 10px;
    /* volt: 10px 10px 0; → módosítsuk */
    padding-bottom: 0;
}

body.light-mode .right-feature .small-news {
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    /* jól látszódó szürke */
    padding-bottom: 10px;
    margin-bottom: 10px;
}

body.light-mode .right-feature .small-news:last-child {
    border-bottom: 0;
    /* utolsó elemnél ne legyen alsó szegély */
    margin-bottom: 0;
    padding-bottom: 0;
}


body.light-mode .right-feature-title,
body.light-mode .right-feature .news-category,
body.light-mode .right-feature .small-news h4 {
    color: #000000;
}

body.light-mode .right-feature .small-news:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

body.light-mode .footer-wrap {
    background-color: #f2f2f2;
    color: #000000;
}

/* Light mode stílusok */
body.light-mode .header-wrap {
    background-color: #f9f9f9;
    /* Világos háttér */
    color: #333;
    /* Sötét szöveg */
    border-bottom: 1px solid #000;
}


body.light-mode .nav-toggle {
    color: var(--nav-link-color);
}

body.light-mode .nav-list a {
    color: #333;
}

body.light-mode .nav-list a:hover {
    color: #555;
}

body.light-mode .main-nav {
    background-color: #ffffff;
    /* Világos háttér */
    color: #333;
    /* Sötét szöveg */
}

body.light-mode .nav-list a {
    color: #333;
    /* Linkek színe */
}

body.light-mode .nav-list a:hover {
    color: #555;
    /* Hover szín */
}

body.light-mode .right-feature .news-category {
    color: #c40000;
    /* élénkebb piros, jobb kontraszt */
}

body.light-mode .main1-left-title {
    color: #000000;
}

body.light-mode .main-section-heading {
    background-color: #ffffff;
}

body.light-mode .main-section-heading h2 {
    color: #000000;
}

/* =====================================================
   🔷 main.php <!-- 📄 MAIN 1 TARTALOM -->
====================================================== */

/* Mobil alap (mobil-first) */
.main1-wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    /* border: 2px dashed blue; */
    padding: 0;
    box-sizing: border-box;
}

.main1-left-wrapper {
    display: flex;
    gap: 20px;
    padding: 0;
    width: 100%;
    /* vagy maradhat, ha már így volt */
    box-sizing: border-box;
}


.main1-left-miniblock {
    flex: 3;
    min-height: 200px;
    padding: 0;
    box-sizing: border-box;
}

.main1-right-miniblock {
    flex: 2;
    min-height: 200px;
    padding: 0;
    box-sizing: border-box;
}

.main1-right-wrapper {
    width: 31%;
    min-height: 200px;
    padding: 0;
    box-sizing: border-box;
}

.main1-left-title {
    margin-top: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    line-height: 1.4;
}

.main1-section-heading {
    width: 100%;
    border-top: 1px solid red;
    border-left: 1px solid red;
    padding: 10px 15px;
    margin-bottom: 20px;
    background-color: var(--main-bg-color);
}



.main1-section-heading h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--main-text-color);
    margin: 0;
}

.zoom-wrapper {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    width: 100%;
    position: relative;
}

.face-focus-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    object-position: center top;
    transition: object-position 0.3s ease;
}

.section-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin: 10px 0;
}

body.light-mode .section-divider {
    border-top: 1px solid rgba(0, 0, 0, 0.15);
}

body.light-mode .main1-section-heading {
    background: none;
}

body.light-mode .main1-section-heading h2 {
    color: #000;
}


.mini-article {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}


/* Mindig 4:3 legyen, mobilon is! */
.mini-thumb-wrapper {
    width: 120px;
    aspect-ratio: 4 / 3;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 4px;
    background: #223a55;
    display: block;
    min-width: 80px;
    max-width: 160px;
    /* Magasságot NEM kell megadni, az aspect-ratio miatt automatikus */
}

.mini-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    border-radius: 4px;
    background: #223a55;
    display: block;
}

.mini-text h4 {
    margin: 0 0 5px;
    font-size: 1rem;
    font-weight: bold;
}

.mini-text p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--main-text-color);
}

body.light-mode .mini-text p {
    color: #000000;
}


.right-mini-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.right-mini-title {
    font-size: 1rem;
    margin: 8px 0 0;
    /* nagyobb felső margó */
    color: var(--main-text-color);
}


body.light-mode .right-mini-title {
    color: #000;
}

.newspaper-title-box {
    background-color: var(--main-bg-color);
    text-align: center;
    margin-bottom: 10px;
}

.newspaper-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--main-text-color);
    margin: 0;
    line-height: 1.5;
}

.newspaper-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.newspaper-cover {
    flex: 1 1 45%;
    max-width: 180px;
}

.newspaper-cover img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.weather-header {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--main-text-color);
    background-color: var(--main-bg-color);
    padding: 10px;
    text-align: center;
    margin: 20px 0 10px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.weather-box {
    width: 100%;
    height: auto;
    text-align: center;
}

.weather-box img {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 10px;
}


.widget-title {
    margin: 0;
    padding: 6px 0;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    border-top: 2px solid rgba(255, 255, 255, 0.5);
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    background: none;
    color: var(--main-text-color);
}

/* Light módhoz külön szín */
body.light-mode .widget-title {
    color: #000000;
    border-top: 2px solid rgba(0, 0, 0, 0.4);
    border-bottom: 2px solid rgba(0, 0, 0, 0.4);
}

/* Újság címsor – első .widget-title */
.main1-right-wrapper .widget-title:first-of-type {
    margin-top: 0;
    /* teljesen felragad a box tetejére */
    margin-bottom: 12px;
    /* kis tér a képek előtt */
}

/* Időjárás címsor – második (vagy bármi utáni) .widget-title */
.main1-right-wrapper .widget-title:not(:first-of-type) {
    margin-top: 20px;
    /* kis tér az előző szekció után */
    margin-bottom: 10px;
}

/*
.facebook-box {
    margin-top: 15px;
}
    */

.facebook-box {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}


.facebook-box,
.fb-page,
.fb_iframe_widget,
.fb_iframe_widget span,
.fb_iframe_widget iframe {
    width: 100% !important;
    min-width: 220px;
    box-sizing: border-box;
    max-width: 500px;
    /* vagy amekkora a max kívánt szélességed */
}


.main1-left-mainblock {
    width: 69%;
    display: flex;
    flex-direction: column;
    /* Ha szükséges, tegyél rá paddinget vagy gap-et is */
}

@media (max-width: 900px) {
    .main1-left-mainblock {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .main1-left-mainblock {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .main1-right-wrapper {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 600px) {
    .main1-right-wrapper {
        width: 100%;
        min-width: 0;
        margin-top: 18px;
    }
}



/* ==========================
   🔷 MAIN 1: Mobil reszponzivitás
========================== */
@media (max-width: 600px) {

    .mini-thumb-wrapper {
        width: 80px;
        aspect-ratio: 4 / 3;
        min-width: 60px;
        max-width: 100px;
    }

    .mini-thumb {
        width: 100%;
        height: 100%;
        object-fit: cover;
        aspect-ratio: 4 / 3;
    }




    .main1-wrapper {
        flex-direction: column;
        gap: 16px;
    }

    .main1-left-wrapper {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        padding: 0;
    }

    .main1-left-miniblock,
    .main1-right-miniblock {
        width: 100%;
        min-width: 0;
        min-height: unset;
        padding: 0;
        box-sizing: border-box;
        /* Egymás alá, ne egymás mellé */
    }

    .main1-left-title,
    .right-mini-title {
        font-size: 1.1rem;
    }

    .zoom-wrapper {
        aspect-ratio: 16/9;
        min-height: 160px;
    }

    .mini-thumb,
    .right-mini-image {
        width: 80px;
        min-width: 80px;
        height: auto;
        aspect-ratio: 16/9;
    }

    .mini-thumb {
        width: 80px;
        min-width: 60px;
        max-width: 100px;
        aspect-ratio: 16 / 9;
    }

    .mini-article {
        gap: 8px;
    }

    .main1-section-heading {
        padding: 8px 10px;
        margin-bottom: 10px;
    }
}

@media (max-width: 900px) {
    .main1-wrapper {
        flex-direction: column;
        gap: 18px;
    }

    .main1-left-wrapper {
        flex-direction: column;
        width: 100%;
    }

    .main1-left-miniblock,
    .main1-right-miniblock {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 900px) {
    .main1-wrapper {
        flex-direction: column;
        gap: 18px;
    }

    .main1-left-wrapper {
        flex-direction: column;
        width: 100%;
    }

    .main1-left-miniblock,
    .main1-right-miniblock {
        width: 100%;
        min-width: 0;
        min-height: unset;
        padding: 0;
        box-sizing: border-box;
    }
}

@media (max-width: 600px) {
    .main1-wrapper {
        flex-direction: column;
        gap: 16px;
    }

    .main1-left-wrapper {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        padding: 0;
    }

    .main1-left-miniblock,
    .main1-right-miniblock {
        width: 100%;
        min-width: 0;
        min-height: unset;
        padding: 0;
        box-sizing: border-box;
    }
}


.main1-left-miniblock .mini-article:last-of-type+.section-divider {
    display: none;
}

.main1-right-miniblock .right-mini-block:last-of-type+.section-divider {
    display: none;
}

@media (max-width: 600px) {
    .main-top-inner {
        flex-direction: column;
        gap: 12px;
    }

    .left-feature-wrapper,
    .right-feature {
        width: 100%;
        padding-right: 0;
    }

    .right-feature {
        display: block;
        margin-top: 10px;
    }

    .feature-title {
        font-size: 1.3rem;
        padding: 12px 15px;
    }
}

@media (max-width: 1020px) {
    .main-top-inner {
        flex-direction: column;
        gap: 16px;
    }

    .left-feature-wrapper,
    .right-feature {
        width: 100%;
        padding-right: 0;
    }

    .right-feature {
        display: block;
        margin-top: 10px;
    }
}

@media (max-width: 900px) {
    .main-top-inner {
        flex-direction: column;
        gap: 16px;
    }

    .left-feature-wrapper,
    .right-feature {
        width: 100%;
        padding-right: 0;
    }

    .right-feature {
        display: block;
        margin-top: 10px;
    }
}


/* =====================================================
   🔷 KATEGÓRIA BLOKK – 3 oszlopos hírlapozó
====================================================== */
.category-block {
    margin: 40px 0 0 0;
    padding: 0;
    background: none;
}

.category-columns {
    display: flex;
    gap: 24px;
    width: 100%;
}

.category-column {
    flex: 1 1 0;
    background: rgba(18, 44, 79, 0.85);
    border-radius: 8px;
    padding: 18px 16px 12px 16px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    box-sizing: border-box;
}

.category-title {
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
    margin-bottom: 16px;
    border-left: 4px solid var(--accent-color);
    padding-left: 10px;
    color: #fff;
    letter-spacing: 0.02em;
}

.category-news-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 8px;
}

.category-news-image {
    width: 80px;
    height: 60px;
    min-width: 80px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
    background: #223a55;
    border: 1px solid #112133;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.category-news-title {
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    line-height: 1.3;
    margin-top: 2px;
}

.category-news-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.category-news-title a:hover {
    color: #aad4ff;
    text-decoration: underline;
}

.category-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    margin: 12px 0;
}

/* Light mód */
body.light-mode .category-column {
    background: #f9f9f9;
}

body.light-mode .category-title {
    color: #111;
    border-left: 4px solid var(--accent-color);
}

body.light-mode .category-news-title,
body.light-mode .category-news-title a {
    color: #111;
}

body.light-mode .category-news-title a:hover {
    color: #0067bb;
}

body.light-mode .category-divider {
    border-top: 1px solid rgba(0, 0, 0, 0.11);
}

body.light-mode .category-news-image {
    background: #eee;
    border-color: #ccc;
}

/* --- Reszponzív: tablet/mobil --- */
@media (max-width: 1024px) {
    .category-columns {
        flex-direction: column;
        gap: 20px;
    }

    .category-column {
        min-width: 0;
    }
}

@media (max-width: 600px) {
    .category-block {
        margin: 28px 0 0 0;
        padding: 0;
    }

    .category-columns {
        flex-direction: column;
        gap: 12px;
    }

    .category-column {
        padding: 12px 8px 8px 10px;
    }

    .category-title {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .category-news-title {
        font-size: 0.97rem;
    }

    .category-news-image {
        width: 65px;
        height: 49px;
    }
}


/* =====================================================
   🔷 MEDIA GROUP REKLÁMBANNER – profi, rugalmas grid
====================================================== */

/* Banner stílus */
.mediagroup-banner {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    padding: 36px 0 36px 0;
    flex-wrap: wrap;
    border-radius: 14px;
    background: var(--main-bg-color);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.mediagroup-mainlogo {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* KÖZÉPRE igazít mindent */
    justify-content: flex-start;
    text-align: center;
    /* Szöveg is középre */
    gap: 12px;
    margin-bottom: 0;
    margin-top: 0;
    width: 100%;
}

.mg-gyujto-logo {
    width: 320px;
    /* DESKTOPON nagyobb */
    max-width: 95vw;
    height: auto;
    display: block;
    margin: 0 auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    object-fit: contain;
    padding: 10px;
}

.mediagroup-address {
    font-size: 1.25rem;
    color: #223355;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.01em;
    margin: 0 auto;
    text-align: center;
}

body:not(.light-mode) .mediagroup-address {
    color: #fff;
}


/* GRID: 4 oszlop, 3. sor középső kettő */
.mediagroup-logos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 50px;
    width: 100%;
    justify-items: center;
    align-items: center;
    margin-top: 0;
    margin-bottom: 0;
}

.mediagroup-logo-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 16px;
    padding: 18px 22px 13px 22px;
    min-width: 130px;
    min-height: 112px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.13);
    transition: box-shadow 0.2s, transform 0.19s, background 0.19s;
    text-align: center;
}

.mediagroup-logo-link:hover {
    background: #f6f6f9;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.19);
    transform: translateY(-3px) scale(1.04);
}

.mediagroup-logo-link img {
    max-height: 80px;
    max-width: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    background: transparent;
}

/* Helykitöltő cella (harmadik sor bal/jobb) */
.mediagroup-logo-placeholder {
    display: block;
    min-width: 130px;
    min-height: 112px;
    background: transparent;
    border: none;
}

.mediagroup-banner-wrap {
    margin-top: 20px;

}

/* Light mode finomítások */
body.light-mode .mediagroup-banner-wrap,
body.light-mode .mediagroup-banner {
    background: #eaf2fa;
}

body.light-mode .mediagroup-logo-link {
    background: #fff;
}

body.light-mode .mediagroup-logo-link:hover {
    background: #ececec;
}

body.light-mode .mediagroup-address {
    color: #223355;
}

/* Tablet grid */
@media (max-width: 1100px) {
    .mediagroup-mainlogo {
        align-items: center !important;
        text-align: center !important;
    }

    .mg-gyujto-logo {
        width: 270px;
        min-width: 0;
        max-width: 95vw;
        padding: 10px;
    }

    .mediagroup-address {
        font-size: 1.11rem;
    }

    .mediagroup-logos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px 22px;
    }

    .mediagroup-logo-placeholder {
        display: none;
    }
}

/* Mobil: 2 oszlop */
@media (max-width: 700px) {
    .mediagroup-banner {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 10px 0 7px 0;
        border-radius: 9px;
    }

    .mediagroup-mainlogo {
        align-items: center;
        flex-direction: column;
        gap: 5px;
        margin-bottom: 2px;
        min-width: unset;
        width: 100%;

    }

    .mg-gyujto-logo {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        border-radius: 8px;
        padding: 10px;
    }

    .mediagroup-address {
        font-size: 0.97rem;
    }

    .mediagroup-logos {
        width: 100%;
        margin-top: 0;
        /* hogy ne legyen felesleges hely */
        padding-top: 0;
    }

    .mediagroup-logos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px 8px;
        width: 100%;
    }

    .mediagroup-logo-link {
        min-width: 0;
        width: 100%;
        min-height: 70px;
        padding: 12px 2vw 10px 2vw;
        border-radius: 9px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        /* eltávolítjuk a felesleges külső margót */
    }

    .mediagroup-logo-link img {
        width: 100%;
        max-width: 95%;
        max-height: 60px;
        object-fit: contain;
    }

    .mediagroup-logo-placeholder {
        display: none;
    }
}

@media (max-width: 320px) {
    .mediagroup-logos-grid {
        grid-template-columns: 1fr;
        gap: 7px 0;
    }
}







.impresszum-underbanner {
    max-width: var(--max-width);
    margin: 10px auto 0 auto;
    font-size: 0.81rem;
    color: #666e8c;
    opacity: 0.78;
    text-align: left;
    padding: 2px 4px 8px 4px;
    letter-spacing: 0.01em;
    line-height: 1.6;
    border: none;
    box-shadow: none;
    background: none;
    font-family: inherit;
    border-radius: 0;
    /* Nincs kiemelés, nincs háttér! */
}

.impresszum-underbanner strong {
    color: #384661;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.impresszum-underbanner a {
    color: #4678c1;
    text-decoration: underline dotted;
    word-break: break-all;
    font-size: 0.98em;
    transition: color 0.13s;
    opacity: 0.92;
}

.impresszum-underbanner a:hover {
    color: #be3636;
    opacity: 1;
}

body:not(.light-mode) .impresszum-underbanner {
    color: #a4b3ca;
    opacity: 0.69;
}

body:not(.light-mode) .impresszum-underbanner strong {
    color: #c6d7eb;
}

body:not(.light-mode) .impresszum-underbanner a {
    color: #b1dbff;
}

body:not(.light-mode) .impresszum-underbanner a:hover {
    color: #ffe48b;
}

@media (max-width: 700px) {
    .impresszum-underbanner {
        font-size: 0.72rem;
        padding-left: 2vw;
        padding-right: 2vw;
    }
}

.news-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.13s, text-decoration-color 0.13s;
}

.news-link:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    text-decoration-color: currentColor;
}

body.light-mode .news-link:hover {
    color: #000;
    text-decoration-color: #000;
}

body:not(.light-mode) .news-link:hover {
    color: #fff;
    text-decoration-color: #fff;
}

/* Kiemelt badge */

/* BADGE SOR (kategória + video) */
.featured-badges-row {
    position: absolute;
    top: 14px;
    left: 18px;
    z-index: 3;
    display: flex;
    flex-direction: row;
    gap: 7px;
}

/* Kategória badge és video badge – egységes design */
.featured-badge {
    display: flex;
    align-items: center;
    background: red;
    color: #fff;
    font-weight: 600;
    font-size: 1.01rem;
    border-radius: 8px;
    padding: 3px 13px 3px 11px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.17);
    letter-spacing: 0.02em;
    min-height: 32px;
    line-height: 1;
}

.featured-badge.video-badge {
    padding: 3px 11px 3px 8px;
    /* video ikonhoz kicsit más, szimmetrikusabb */
    min-width: 32px;
    min-height: 32px;
    border-radius: 8px;
    justify-content: center;
}

.featured-badge.video-badge svg {
    display: block;
    margin: 0 auto;
}

.featured-video-icon {
    position: absolute;
    top: 14px;
    left: calc(18px + 105px);
    /* igazítsd a badge szélességéhez vagy használj flexboxot */
    z-index: 4;
    display: inline-block;
    margin-left: 7px;
    /* A fill a svg-ben már red, de ha nem látszik elég jól, tedd rá: */
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.20));
}

.badge-video-icon svg {
    vertical-align: middle;
    /* width/height-t a HTML-ben is beállíthatod */
}

.fancy-title,
.feature-title {
    display: inline-block;
    padding: 10px 20px 12px 22px;
    background: rgba(8, 52, 100, 0.72) !important;
    /* MINDIG kék overlay */
    border-radius: 0 0 14px 0;
    color: #fff !important;
    line-height: 1.25;
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 0;
    margin-top: 0;
    width: auto;
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.15);
}

body.light-mode .fancy-title,
body.light-mode .feature-title {
    background: rgba(8, 52, 100, 0.72) !important;
    color: #fff !important;
}

.news-link:hover .fancy-title,
.news-link:hover .feature-title {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    text-decoration-color: #fff;
}

/* Light mode-ra fekete szöveg, fekete aláhúzás */
body.light-mode .news-link .fancy-title,
body.light-mode .feature-title {
    color: #000;
    background: rgba(8, 52, 100, 0.07);
    /* világos áttetsző háttér */
}

body.light-mode .news-link:hover .fancy-title,
body.light-mode .news-link:hover .feature-title {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    text-decoration-color: #000;
}

/* Responsive: mobilon legyen kisebb */
@media (max-width: 700px) {
    .fancy-title {
        font-size: 1.11rem;
        padding: 8px 10px 9px 12px;
    }

    .featured-badge {
        font-size: 0.93rem;
        padding: 2px 8px 2px 7px;
        min-height: 24px;
        top: 7px;
        left: 8px;
    }

    .featured-video-icon {
        top: 7px;
        left: calc(8px + 74px);
        /* kicsi badge esetén */
        margin-left: 4px;
    }

    .featured-badges-row {
        top: 7px;
        left: 8px;
        gap: 4px;
    }

    .featured-badge,
    .featured-badge.video-badge {
        font-size: 0.93rem;
        padding: 2px 8px 2px 7px;
        min-height: 24px;
        min-width: 24px;
    }
}

.featured-badge.category-badge-link {
    text-decoration: none;
    color: #fff;
    background: red;
    /* ugyanaz, mint a .featured-badge-nél! */
}

.featured-badge.category-badge-link:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
    text-decoration-color: #fff;
    filter: brightness(1.12);
}


.fancy-title,
.feature-title {
    display: inline-block;
    padding: 10px 20px 12px 22px;
    background: rgba(8, 52, 100, 0.72) !important;
    /* mindig kék overlay */
    border-radius: 0 0 14px 0;
    color: #fff !important;
    /* mindig fehér */
    line-height: 1.25;
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 0;
    margin-top: 0;
    width: auto;
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.15);
}

/* Mindig fehér hover/underline a címre! */
.news-link .fancy-title,
.news-link .feature-title {
    text-decoration: none;
    transition: text-decoration 0.13s, text-decoration-color 0.13s;
}

.news-link:hover .fancy-title,
.news-link:hover .feature-title {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    text-decoration-color: #fff !important;
}

/* Light mode override – cím akkor is fehér! */
body.light-mode .fancy-title,
body.light-mode .feature-title {
    background: rgba(8, 52, 100, 0.72) !important;
    color: #fff !important;
}

.news-category-link {
    color: red !important;
    font-weight: normal;
    font-size: 1em;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: text-decoration 0.13s, color 0.13s;
    cursor: pointer;
}

.news-category-link:hover {
    text-decoration: underline;
    text-decoration-color: red;
    text-underline-offset: 2px;
    text-decoration-thickness: 2px;
}

.video-icon-inline {
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
    line-height: 1;
}

@media (max-width: 700px) {
    .mini-thumb-wrapper {
        display: none !important;
    }
}



#scrollToTopBtn {
    position: fixed;
    right: 26px;
    bottom: 36px;
    z-index: 5000;
    display: none;
    border: none;
    outline: none;
    background: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s, background 0.2s, box-shadow 0.2s;
    border-radius: 50%;
    box-shadow: 0 3px 12px rgba(20, 40, 60, 0.13);
}

#scrollToTopBtn:hover {
    opacity: 1;
    background: rgba(8, 52, 100, 0.98);
    box-shadow: 0 5px 16px rgba(8, 52, 100, 0.11);
}

#scrollToTopBtn svg {
    display: block;
}

body.light-mode #scrollToTopBtn circle {
    fill: rgba(8, 52, 100, 0.93);
}

@media (max-width:600px) {
    #scrollToTopBtn {
        right: 14px;
        bottom: 14px;
    }
}



/* Logo visibility fix */
.header-logo,
.logo-dark,
.logo-light {
    max-height: 80px;
    display: none;
}

body:not(.light-mode) .logo-dark {
    display: block;
}

body.light-mode .logo-light {
    display: block;
}




/* ==============================================
   ARTICLE PAGE BLOKK (article- prefix)
============================================== */
.article-main {
    padding: 0 0 30px 0;
    background: transparent;
}

.article-container {
    display: flex;
    gap: 32px;
    max-width: 1200px;
    margin: 30px auto 0 auto;
    padding: 0 10px;
}

.article-box {
    background: var(--main-bg-color);
    color: var(--main-text-color);
    border-radius: 18px;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.13);
    padding: 32px 28px 28px 28px;
    flex: 1 1 650px;
    min-width: 0;
}

body.light-mode .article-box {
    background: #f1f1f1;
    color: #101010;
    box-shadow: 0 4px 32px rgba(50, 60, 120, 0.11), 0 1.5px 0 0 rgba(0, 0, 0, 0.03);
    border: 1.5px solid #ececf3;
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.97rem;
    margin-bottom: 18px;
    color: #c5c5c5;
}

/* DARK MODE – fehér breadcrumb link és ikon */
body:not(.light-mode) .article-breadcrumb-link {
    color: #fff !important;
}

body:not(.light-mode) .article-breadcrumb-link:hover {
    color: #aad4ff !important;
    /* vagy maradhat #fff, ha nem akarsz világoskéket */
}

body:not(.light-mode) .article-breadcrumb-homeicon path {
    fill: #fff;
}

/* Világos mód: fekete */
body.light-mode .article-breadcrumb-link {
    color: #111 !important;
}

body.light-mode .article-breadcrumb-homeicon path {
    fill: #111;
}


.article-breadcrumb-separator {
    color: #bbb;
}

.article-title {
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 900;
    margin-bottom: 12px;
    color: var(--main-text-color);
    letter-spacing: -0.5px;
}

body.light-mode .article-title {
    color: #101010;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.article-meta>* {
    /* minden közvetlen elem inline legyen */
    display: inline;
    margin-right: 2px;
}

.article-meta-share-inline {
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 0 0 2px;
    line-height: 1.2;
}

.fb-share-custom-label {
    color: #4267B2 !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 1em;
    font-family: inherit;
}

.fb-share-custom-label:hover {
    color: #234b85 !important;
    text-decoration: underline !important;
}


.article-author {
    font-weight: 600;
    color: #ff4040;
}

.article-share {
    margin-left: 9px;
    display: inline-flex;
    vertical-align: middle;
}

.article-divider {
    border: none;
    border-top: 1.5px solid #ececec;
    margin: 20px 0;
}

body.light-mode .article-divider {
    border-top: 1.5px solid #222;
    /* vagy #222, #333, #444 igény szerint */
}




.article-image-block {
    margin: 0 0 13px 0;
    text-align: center;
}

.article-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    border-radius: 12px;
    object-fit: cover;
    background: #efefef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.article-image-caption {
    font-size: 0.98rem;
    color: #aaa;
    margin-top: 4px;
    text-align: center;
}

.article-lead {
    font-size: 1.12rem;
    margin: 14px 0 12px 0;
    font-weight: bold;
    color: var(--main-text-color);
}

body.light-mode .article-lead {
    color: #111;
}

.article-body {
    font-size: 1.12rem;
    margin-bottom: 25px;
    color: var(--main-text-color);
    text-align: left;
    line-height: 1.7;
}

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

.article-video {
    margin: 32px auto 0 auto;
    text-align: center;
    width: 100%;
    max-width: 720px;
    /* nincs magasság! */
}

.article-video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 arány */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    /* Árnyék és keret együtt: */
    box-shadow: 0 4px 28px rgba(50, 60, 120, 0.13);
    border: 1.5px solid #283959;
    /* sötétkék árnyalat */
}

/* Light mode-ban világosabb, de jól látható keret: */
body.light-mode .article-video-embed {
    border: 1.5px solid #e1e3ee;
    /* világosszürke */
    box-shadow: 0 4px 32px rgba(66, 103, 178, 0.10);
}

.article-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 12px;
    background: #000;
    display: block;
}


/* --- Widgetek oldalra --- */
.article-widgets {
    width: 260px;
    min-width: 220px;
    flex: 0 0 260px;
}

@media (max-width: 1100px) {
    .article-container {
        flex-direction: column;
        gap: 0;
    }

    .article-widgets {
        width: 100%;
        min-width: 0;
        margin-top: 30px;
    }
}

/* --- Mobil optimalizáció --- */
@media (max-width: 700px) {
    .article-box {
        padding: 18px 7px 24px 7px;
        border-radius: 10px;
        margin: 0 -4px;
    }

    .article-title {
        font-size: 1.34rem;
        margin-bottom: 8px;
    }

    .article-lead,
    .article-body {
        font-size: 1.05rem;
    }

    .article-meta {
        font-size: 0.93rem;
        gap: 6px;
    }

    .article-widgets {
        margin-top: 18px;
    }
}

.article-share-badge {
    display: inline-flex;
    align-items: center;
    background: #4267B2;
    color: #fff !important;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.98em;
    padding: 2px 11px 2px 7px;
    margin-left: 2px;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: background 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(66, 103, 178, 0.07);
    border: none;
}

.article-share-badge svg {
    fill: #fff;
}

.article-share-badge:hover {
    background: #234b85;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(66, 103, 178, 0.13);
}

/* Bulla szín módosítás: legyen mindig fekete/fehér, hogy jól látható legyen! */
.article-meta-sep {
    color: #181818;
    font-size: 1.08em;
    margin: 0 5px 0 4px;
    font-weight: 900;
    vertical-align: middle;
}

body:not(.light-mode) .article-meta-sep {
    color: #fff;
}

body.light-mode .article-meta-sep {
    color: #111;
}


/* NEWSLIST PAGE BLOKK (newslist- prefix) */

.newslist-main-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 38px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 10px 0 10px;
}

.newslist-list-container {
    flex: 1 1 0%;
}

.newslist-right-wrapper,
.newslist-aside-widgets,
.newslist-aside {
    width: 350px;
    flex-shrink: 0;
}

.newslist-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 22px;
}

.newslist-card {
    background: var(--main-bg-color, #f7f7f7);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px 0 rgba(8, 52, 100, 0.08);
    display: flex;
    flex-direction: column;
    min-height: 340px;
    transition: box-shadow 0.18s;
}

.newslist-card:hover {
    box-shadow: 0 8px 32px 0 rgba(8, 52, 100, 0.18);
}

.newslist-card-image-wrap {
    position: relative;
    width: 100%;
    /* Ide kell az arányt rögzítő beállítás! */
    aspect-ratio: 16/9;
    overflow: hidden;
}

.newslist-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Nem árt, ha ezek is benne vannak */
    aspect-ratio: 16/9;
    border-radius: 0;
    background: #ddd;
}

.newslist-card-category {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--accent-color);
    color: #fff;
    font-size: 0.82rem;
    /* Eredetileg: 0.97rem */
    font-weight: 700;
    padding: 4px 13px 5px 13px;
    /* Eredetileg: 5px 16px 6px 16px */
    border-radius: 4px;
    /* Eredetileg: 5px */
    letter-spacing: 0.02em;
    box-shadow: 0 1px 4px rgba(8, 52, 100, 0.13);
    z-index: 2;
    line-height: 1.09;
    user-select: none;
    pointer-events: none;
    transition: background 0.16s;
}

.newslist-card-meta2 {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.83rem;
    /* Kisebb, ahogy kérted */
    color: #a5bbd4;
    margin-bottom: 7px;
    margin-top: 0px;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.1;
    /* Alapértelmezett: balra igazítva minden */
}

body.light-mode .newslist-card-meta2 {
    color: #626262;
}

.newslist-card-name,
.newslist-card-date {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.newslist-card-bull {
    font-size: 1.15em;
    color: #e4454f;
}

.newslist-card-content {
    padding: 15px 14px 14px 14px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.newslist-card-title {
    margin: 0 0 8px 0;
    font-size: 1.12rem;
    font-weight: 600;
    line-height: 1.2;
    /* 120% */
}

.newslist-card-lead {
    color: #fff;
    /* dark mode alapértelmezett */
    font-size: 0.97rem;
    line-height: 1.2;
}

.newslist-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.98rem;
    color: #668;
    margin-top: auto;
}

.newslist-card-author {
    font-weight: 500;
}

/* === Alap desktop stílus, ezt már korábban elkészítetted === */

/* Mobil: max-width: 900px → 2 oszlop */
@media (max-width: 900px) {
    .newslist-main-wrapper {
        flex-direction: column;
        gap: 18px;
    }

    .newslist-list-container {
        width: 100%;
        margin-right: 0;
    }

    .newslist-list-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 14px;
    }

    .newslist-right-wrapper,
    .newslist-aside-widgets,
    .newslist-aside {
        width: 100%;
        min-width: 0;
        margin-top: 24px;
    }
}

/* Mobil: max-width: 600px → 1 oszlop, kisebb paddingek */
@media (max-width: 600px) {
    .newslist-main-wrapper {
        flex-direction: column;
        gap: 12px;
        padding: 10px 2vw 0 2vw;
    }

    .newslist-list-grid {
        grid-template-columns: 1fr;
        gap: 13px 0;
    }

    .newslist-card {
        min-height: unset;
        border-radius: 7px;
    }

    .newslist-card-image {
        border-radius: 7px 7px 0 0;
    }

    .newslist-card-content {
        padding: 10px 7px 11px 8px;
    }

    .newslist-card-title {
        font-size: 1.03rem;
    }

    .newslist-card-lead {
        font-size: 0.96rem;
        margin-bottom: 8px;
    }

    .newslist-card-meta {
        font-size: 0.93rem;
    }

    .newslist-card-category {
        top: 7px;
        left: 8px;
        padding: 3px 9px 4px 9px;
        font-size: 0.91rem;
        border-radius: 11px;
    }

    .newslist-right-wrapper,
    .newslist-aside-widgets,
    .newslist-aside {
        width: 100%;
        min-width: 0;
        margin-top: 20px;
    }
}

body.light-mode .newslist-card {
    background: #f6f6f6;
    color: #101010;
    box-shadow: 0 4px 18px rgba(50, 60, 120, 0.08);
    border: 1px solid #ececf3;
}

body.light-mode .newslist-card-title,
body.light-mode .newslist-card-lead,
body.light-mode .newslist-card-meta,
body.light-mode .newslist-card-author,
body.light-mode .newslist-card-date {
    color: #101010;
}

body.light-mode .newslist-card-category {
    background: var(--accent-color);
    /* ugyanaz a piros */
    color: #fff;
}

body.light-mode .newslist-card-image {
    background: #eee;
}

/*  mobil  */

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

.newslist-mobile-item {
    display: flex;
    align-items: stretch;
    gap: 13px;
    padding: 17px 0 17px 0;
    border-bottom: 1.5px solid #fff;
    min-height: 82px;
}

.newslist-mobile-item:last-child {
    border-bottom: none;
}

.newslist-mobile-text {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
    justify-content: center;
}

.newslist-mobile-category {
    color: #f60d46;
    font-size: 0.81rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
    line-height: 1.06;
    display: block;
}

.newslist-mobile-title {
    font-size: 1.06rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 2px 0;
    line-height: 1.14;
    overflow: hidden;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    /* max. 2 sor */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.newslist-mobile-lead {
    color: #a9c5e5;
    font-size: 0.94rem;
    margin-bottom: 5px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.newslist-mobile-meta {
    font-size: 0.91rem;
    color: #bfd6eb;
    display: flex;
    gap: 10px;
    align-items: center;
    opacity: 0.92;
}

.newslist-mobile-author {
    font-weight: 500;
}

.newslist-mobile-date {
    font-size: 0.92rem;
}

/* Jobb oldali kép (4:3 arány) */
.newslist-mobile-image-wrap {
    flex: 0 0 90px;
    width: 90px;
    aspect-ratio: 4 / 3;
    border-radius: 7px;
    overflow: hidden;
    background: #111;
    margin-left: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newslist-mobile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 4 / 3;
    /* opcionális, a wrapper már tartja az arányt! */
    border-radius: 7px;
    background: #222;
}

/* Light mód */

body.light-mode .newslist-mobile-meta .newslist-mobile-dot {
    color: #f60d46 !important;
    font-weight: bold;
}


body.light-mode .newslist-mobile-item {
    border-bottom: 1.5px solid #e3e3e3;
}

body.light-mode .newslist-mobile-title {
    color: #101010;
}

body.light-mode .newslist-mobile-category {
    color: #f60d46;
}

body.light-mode .newslist-mobile-image-wrap {
    background: #eee;
}

body.light-mode .newslist-mobile-image {
    background: #ccc;
}

.newslist-mobile-list {
    display: none;
}

@media (max-width: 600px) {
    .newslist-mobile-list {
        display: block;
    }

    .newslist-list-grid {
        display: none;
    }
}

@media (min-width: 601px) {
    .newslist-mobile-list {
        display: none;
    }
}

.newslist-mobile-item:last-child {
    border-bottom: none !important;
}

body.light-mode .newslist-mobile-item:last-child {
    border-bottom: none !important;
}

body.light-mode .newslist-mobile-meta span {
    color: #222 !important;
}



.magazine-frame {
    margin-bottom: 2rem;
}

.year-selector {
    text-align: center;
    margin-bottom: 1.5rem;
}

.year-selector a {
    display: inline-block;
    margin: 0 0.5rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
}

.year-selector a.active {
    background-color: var(--accent);
    color: #fff;
    font-weight: bold;
}

.magazine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.magazine-item {
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.magazine-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.magazine-label {
    margin-top: 0.4rem;
    font-size: 0.9rem;
}

.magazine-frame-fullwidth iframe {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16/9;
    border: none;
    margin-bottom: 2rem;
}

.year-selector-spaced {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    margin: 1.5rem 0;
    justify-content: flex-start;
}

.magazine-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

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

.magazine-grid-item img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.magazine-issue-date {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* =====================================================
   🔷 9. Globális Konténer és Layout Stílusok (Frissítve)
====================================================== */

/* 1. Az oldal body-jának háttérszíne (ez változatlan). */
body.light-mode {
    background-color: #f4f6f9;
}

/* 2. A fő tartalmi blokkok "kártya" stílusa.
   ⬇️ MÓDOSÍTÁS: A szelektorokat pontosítottuk, hogy minden blokk azonos szélességű legyen,
      és kibővítettük a MediaGroup bannerrel. */
.main-top>.container,
.main-content>.container,
.category-block,
.mediagroup-banner-wrap {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    /* Egységes alsó margó a blokkok közötti távolsághoz */
    box-shadow: 0 4px 20px rgba(44, 50, 65, 0.06);
    border: 1px solid #e9ecef;
}

/* 3. A legelső blokknak legyen egy kis felső tere a navigációs sáv alatt. */
.main-top>.container {
    margin-top: 24px;
}

/* 4. Biztonsági szabály: Levesszük a stílust a külső, teljes szélességű wrapperekről,
      nehogy megzavarják a kinézetet. */
.main-top,
.main-content {
    background-color: transparent;
    padding: 0;
    margin-bottom: 0;
    box-shadow: none;
    border: none;
    border-radius: 0;
}

/* Mivel a .category-block egy .container-ben van, annak 10px-es paddingje
   szűkíti a fehér dobozt. Ezt egy negatív margóval korrigáljuk. */
.container>.category-block {
    margin-left: -10px;
    margin-right: -10px;
}

/* Ugyanez a korrekció a MediaGroup bannerre is, ha az is .container-ben van */
.container>.mediagroup-banner-wrap {
    margin-left: -10px;
    margin-right: -10px;
}

/* Mobil nézetben csökkentjük a belső paddinget, lekerekítést és margót (ez is frissítve) */
@media (max-width: 768px) {

    .main-top>.container,
    .main-content>.container,
    .category-block,
    .mediagroup-banner-wrap {
        padding: 16px;
        border-radius: 12px;
        margin-bottom: 16px;
    }

    .main-top>.container {
        margin-top: 16px;
    }
}


/* =====================================================
   🔷 10. Kategória Oszlopok Finomhangolása
====================================================== */

/* Az oszlopokat tartalmazó fő doboz belső terét csökkentjük,
   hogy maguk az oszlopok kényelmesebben elférjenek. */
.category-block {
    padding: 20px;
}

/* Az egyes kategória oszlopok "alkártya" stílust kapnak. */
.category-column {
    background: #fbfcfe;
    /* Nagyon halvány, majdnem fehér háttér */
    border: 1px solid #eef0f3;
    /* Finom, világosszürke keret */
    border-radius: 12px;
    /* Lekerekített sarkok az oszlopoknak is */
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* Oszlop hover effektus - finoman megemeli az egész oszlopot. */
.category-column:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(44, 50, 65, 0.08);
}

/* A kategóriák címeinek stílusát is finomítjuk. */
.category-title {
    font-size: 1rem;
    text-transform: uppercase;
    /* Csupa nagybetűs a jobb kiemelésért */
    letter-spacing: 0.05em;
    /* Növelt betűköz a szellősebb hatásért */
    margin-bottom: 20px;
    /* Nagyobb tér a cím és az első hír között */
    padding-left: 12px;
    border-left: 3px solid var(--accent-color);
    /* A piros vonal vastagságát csökkentettük */
}

/* Az egyes hírek sora az oszlopon belül. */
.category-news-item {
    padding: 8px;
    margin: 0 -8px 4px -8px;
    /* Negatív margó, hogy a kattintható terület kitöltse a rendelkezésre álló helyet. */
    border-radius: 8px;
    transition: background-color 0.2s;
}

/* Hír sor hover effektus az oszlopon belül. */
.category-news-item:hover {
    background-color: #f0f2f5;
}

/* Az elválasztó vonal stílusát is finomítjuk. */
.category-divider {
    border-top: 1px solid #e9ecef;
    margin: 10px 0;
}

/* =====================================================
   🔷 11. Jobb oldali miniblokk térköz finomhangolása
====================================================== */

/* 1. A cím (h4) sorai közötti távolságot csökkentjük, hogy a többsoros
   címek ne essenek szét. */
.right-mini-title {
    line-height: 1.3;
}

/* 2. Az egyes hírek blokkjai (kép + cím) kapnak egy alsó margót,
   hogy szépen elváljanak egymástól. */
.right-mini-block {
    margin-bottom: 18px;
    /* Térköz az elemek között */
}

/* 3. Az utolsó hír alatt viszont már nincs szükség erre a térközre,
   ezért azt a :last-child szelektorral eltávolítjuk. */
.main1-right-miniblock .right-mini-block:last-child {
    margin-bottom: 0;
}

/* =====================================================
   🔷 12. Aloldalak (Hírlista, Cikk) Layout Stílusa
====================================================== */

/* A hírlista és a cikk oldal fő elemei (tartalom és oldalsáv)
   megkapják a "kártya" stílust, hogy elváljanak a háttértől. */
.newslist-list-container,
.article-box,
/* HOZZÁADVA: a cikk doboza */
.main1-right-wrapper {
    background-color: #ffffff !important;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(44, 50, 65, 0.06);
    border: 1px solid #e9ecef;
}

/* Az oldalsáv (aside_widgets.php) widget címeinek finomhangolása,
   hogy jobban illeszkedjenek az új dobozolt dizájnhoz. */
.main1-right-wrapper .widget-title {
    margin-top: 24px;
    padding: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    /* Középre igazítva */
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
}

/* Az első widget címének ne legyen felső margója, hogy a doboz tetejéhez igazodjon. */
.main1-right-wrapper .widget-title:first-of-type {
    margin-top: 0;
}

/* Mobil nézetben a belső térköz csökkentése */
@media (max-width: 768px) {

    .newslist-list-container,
    .article-box,
    .main1-right-wrapper {
        padding: 16px;
        border-radius: 12px;
    }
}

/* =====================================================
   🔷 13. Keresőmező Kiemelése a Fejlécben
====================================================== */

/* A keresőmező alap stílusának finomítása, hogy jobban látható legyen. */
.search-input {
    border: 1px solid #d0d7de;
    /* Finom, de határozott szürke keret. */
    background-color: #f8f9fa;
    /* Enyhe háttérszín, hogy elváljon a környezetétől. */
    padding: 6px 12px;
    /* Kényelmesebb belső térköz a szövegnek. */
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    border-radius: 6px;
    /* A lekerekítés igazodik a többi új elemhez. */
}

/* Amikor a felhasználó belekattint a mezőbe (:focus állapot),
   a mező vizuálisan kiemelkedik. */
.search-input:focus {
    outline: none;
    /* Eltávolítjuk a böngésző alapértelmezett kék "outline"-ját. */
    border-color: #084c9c;
    /* A keret színe a logó kékjéhez hasonlóvá válik. */
    box-shadow: 0 0 0 3px rgba(8, 76, 156, 0.1);
    /* Finom külső "glow" effektus a kiemeléshez. */
    background-color: #ffffff;
    /* Fókuszban a háttér legyen tiszta fehér. */
}