/* 1. GLOBAL & RESET */
html, body, div, span, h1, h2, h3, h4, h5, h6, p, blockquote, a, img, form, fieldset, legend, label, table, tr, th, td { padding: 0; margin: 0; }
body { font: 16px/1.3 'Roboto', Helvetica, sans-serif; background-color: #ffffff; padding: 3px 0 20px; color: #010101; }
.clear { clear: both; line-height: 0; overflow: hidden; }
.hidden, #menu .hide, hr { display: none; }
.left { float: left; }
.right { float: right; }
.center { text-align: center; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.bold { font-weight: bold; }
.red { color: #e61c25; font-weight: 900;}
a { color: #000; text-decoration: none; }
a:hover { text-decoration: underline; }
a img { border: none; }
img.right { float: right; margin: 0 0 10px 10px; }
img.left { float: left; margin: 0 10px 10px 0; }
h1 { font: bold 24px 'Roboto', Helvetica, sans-serif; margin: 0 0 15px; line-height: 1.1; text-transform: uppercase; }
h2 { font: bold 15px 'Roboto', Helvetica, sans-serif; margin: 20px 0 10px; line-height: 1.1; }
h3 { font-size: 13px; margin: 15px 0 10px; line-height: 1.1; }

p { margin: 0.4em 0 0.8em; }

#content.article p.info {
    margin: 0 0 7px -7px;
    color: black;
}

span.source, p.source {
    font-weight: normal !important;
    margin-top: 1px;
    font-style: italic;
    display: block;
    font-size: 13px;
}

div#podkova {
    height: 1440px;
}

a#audi_branding {
    width: 100%;
    height: 100%;
    display: inline-block;
}

/* 2. LAYOUT */
#page-wrapper { width: 1000px; margin: 0 auto; position: relative; }
#column-wrapper { background-color: #fff; padding: 7px; min-height: 600px; overflow: hidden; }
#left { float: left; width: 660px; clear: both; }
#page-hp #left { float: left; width: 100%; clear: both; }
#right { float: right; width: 300px; }
.leaderboard { width: 980px; margin: 0 auto; text-align: center; }

/* 3. HEADER & TOP MENU */
#header { height: 76px; padding: 0; background-color: #ffffff; color: #000; position: relative; }
#header a { color: #000; }

/* Nový černý blok pro logo na výšku hlavičky */
#logo { float: left; margin: 0; background-color: #000000; height: 76px; line-height: 76px; padding: 0 25px; }
#logo a { display: inline-block; vertical-align: middle; line-height: normal; }
#logo svg, #logo img { width: 140px; height: 33px; display: block; }
#header #logo svg g { fill: #ffffff !important; }

/* Tlačítka vpravo (Předplatné, atd. naskládané pod sebou) */
#login-search { position: absolute; right: 20px; top: 14px; z-index: 200; white-space: nowrap; }
#search-form { display: inline-block; vertical-align: middle; margin: 0 15px 0 0; }
p#login-form { display: inline-block; vertical-align: middle; margin: 0; text-align: right; line-height: 1; }
#login-search a { display: inline; text-transform: uppercase; font-family: 'Roboto', sans-serif; font-weight: bold; font-size: 11px; text-decoration: none; color: #000000 !important; }

#search-form { position: absolute; right: 90px; top: 14px; }
#search-form fieldset { border: none; padding: 0; margin: 0; position: relative; display: inline-block; }
#search-form legend, #search-form label { display: none; }
#search-form .input { width: 159px; height: 20px; padding: 5px 10px 5px 35px; border: none; border-radius: 4px; background: #efefef; font-family: 'Roboto', sans-serif; font-size: 14px; box-sizing: border-box; outline: none; }
#search-form .input:focus { background: #e4e4e4; }
#search-form .submit { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 11px; height: auto; border: none; background: transparent; padding: 0; cursor: pointer; vertical-align: middle; }

/* MENU */
#menu { position: absolute; top: 0; left: 190px; height: 76px; max-width: 100%; z-index: 100; background-color: transparent; }
#menu span { display: none; } 
#menu ul { list-style: none; margin: 0; padding: 0; padding-top: 3px; float: left; }
#menu>ul>li { float: left; position: relative; }
#menu>ul>li>a { display: block; text-transform: uppercase; font-family: 'Roboto', sans-serif; font-weight: bold; font-size: 12px; padding: 29px 7px; color: #000000; }
#menu>ul>li>a:hover, #menu li.active a, #leftmenu a:hover { background: transparent; color: #e6000f; }

#menu #leftmenu ul { float: none; padding-left: 10px; }

/* Speciální tlačítko automobil+ */
#menu>ul>li.automobil-plus>a { background-color: #e6000f; color: white; border-radius: 12px; padding: 4px 10px; margin-top: 25px; line-height: 1; }

a#mercedes-benz-menu { position: absolute; top: 55px; right: 151px; text-transform: uppercase; font-family: 'Roboto', sans-serif; font-weight: bold; font-size: 12px; }

#leftmenu { float: left; padding: 26px 15px 26px 15px; height: 76px; box-sizing: border-box; }
#leftmenu>img { width: 35px; cursor: pointer; display: block; }
#menu #leftmenu>ul { display: none; background-color: black; position: absolute; width: 250px; margin-left: -15px; top: 76px; }
#leftmenu:hover ul { display: block !important; }
#menu #leftmenu>ul>li, #menu #leftmenu>ul>li a { float: none; display: block; color: #ffffff; padding: 4px 4px; }
#menu #leftmenu ul ul { display: block; position: relative; margin-right: 15px; padding: 0; left: 0; top: 0; }
#menu #leftmenu>ul>li>ul>li a { margin-left: 30px; }
#menu #leftmenu ul ul li a:hover, #menu #leftmenu ul li.active li a:hover { background-color: transparent; }

/* 4. HOMEPAGE COMPONENTS */
#prolinackaHP { overflow: hidden; padding-top: 0px; background-color: #000; position: relative; height: 531px; }
#prolinackaHP img { width: 100%; }
#prolinackaHP>div { position: relative; top: -10px; }
#prolinackaHP>div>div { position: absolute; top: 10px; background-position: center center; background-repeat: no-repeat; min-height: 531px; max-height: 531px; background-size: cover; width: 100%; }
#prolinackaHP>div>div.highlighted { display: block; }
#prolinackaHP a.link { display: block; position: absolute; top: 0; bottom: 0; right: 0; left: 0; z-index: 18; }

/* Tmavý fade efekt prolínačky pouze zdola */
#prolinackaHP div.textprolinacka { 
    position: absolute; top: 0; left: 0; bottom: 0; width: 100%; box-sizing: border-box; padding: 40px 40px 27px 27px; z-index: 15; 
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 30%, rgba(0, 0, 0, 0) 65%); 
    display: flex; flex-direction: column; justify-content: flex-end; 
}

#prolinackaHP div.textprolinacka h2 { 
    font-family: 'Roboto', sans-serif; font-weight: bold; line-height: 1.1; margin: 0 0 5px 0; font-size: 38px; color: #ffffff; text-shadow: 1px 1px 3px rgba(0,0,0,0.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 
}

#prolinackaHP div.textprolinacka p { 
    margin: 0 0 0px 0; font-family: 'Roboto', sans-serif; font-size: 20px; line-height: 1.2; font-weight: 500; color: #ffffff; text-transform: none; text-shadow: 1px 1px 3px rgba(0,0,0,0.8); max-width: 65%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; 
}

#prolinackaHP div.text_right { float: right; margin-right: 22px; } 

/* Kontejner pro odkaz a logo - drží je elegantně vedle sebe */
#prolinackaHP div.textprolinacka .link-wrapper { 
    display: flex; align-items: center; gap: 15px; margin-top: 10px; 
}

/* Odkaz ČÍST ČLÁNEK */
#prolinackaHP div.textprolinacka a.cist-clanek { 
    color: #ffffff; font-family: 'Roboto', sans-serif; font-size: 15px; font-weight: bold; text-transform: uppercase; text-decoration: none; 
}
#prolinackaHP div.textprolinacka a.cist-clanek:hover { text-decoration: underline; }
#prolinackaHP div.textprolinacka a.cist-clanek span { color: #e61c25; padding-left: 3px; }

/* Logo vrácené do normálního toku */
#prolinackaHP .link-wrapper .logo-plus-prolinacka { position: relative; left: -11px; height: 17px; width: auto; }

/* Navigace čárkami přesunuta do pravého dolního rohu */
#prolinackaHP .bullets { position: absolute; bottom: 33px; right: 40px; left: auto; z-index: 20; }
.bullets span.bullet { display: inline-block; width: 22px; height: 3px; background-color: #ffffff; margin: 0 2px; color: transparent; overflow: hidden; cursor: pointer; vertical-align: middle; box-shadow: 0 1px 3px rgba(0,0,0,0.6); transition: background-color 0.2s ease; }
.bullets span.bullet:hover, .bullets > span.white { background-color: #e6000f; }

/* OVERVIEW LIST - GLOBÁLNÍ MŘÍŽKA ČLÁNKŮ */
h2.HPnejnovejsi, h2#HPnejnovejsi { clear: both; text-transform: uppercase; font-family: 'Roboto', sans-serif; font-weight: 700; font-size: 24px; background-color: transparent; color: #000; padding: 0; margin: 30px 0 20px 0; }
h2.HPnejnovejsi::after { content: ''; display: block; width: 30px; height: 3px; background-color: #e61c25; margin-top: 6px; }

.sekce-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; }
.sekce-head h2.HPnejnovejsi { margin-bottom: 0; }
.sekce-head .show-all { color: black; font-family: 'Roboto', sans-serif; font-size: 9px; font-weight: 700; text-transform: uppercase; text-decoration: none; padding-bottom: 8px; padding-right: 8px;}
.sekce-head .show-all:hover { text-decoration: underline; }
.homepage-banner-middle {margin-top: 55px;}

/* AUTOMOBIL+ SEKCE */
#amr_plus_hp { clear: both; background-color: #000000; width: auto; overflow: hidden; padding: 30px 15px 30px 15px; box-sizing: border-box; margin: 30px -15px; }
#amr_plus_hp .amr-plus-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; }
#amr_plus_hp h2.HPnejnovejsi { margin: 0; padding: 0; background: transparent; display: flex; align-items: center; color: #ffffff; }
#amr_plus_hp .amr-plus-head h2.HPnejnovejsi::after { display: none !important; content: none !important; }
#amr_plus_hp .show-all { color: #ffffff; font-family: 'Roboto', sans-serif; font-size: 9px; font-weight: bold; text-transform: uppercase; text-decoration: none; padding-bottom: 5px; padding-right: 8px; }
#amr_plus_hp .show-all:hover { text-decoration: underline; }
#amr_plus_hp p.date a {
    color: white;
}
/* sekce v šedé */
.gray { clear: both; background-color: #b5b5b5; width: auto; overflow: hidden; padding: 0px 15px 0px 15px; box-sizing: border-box; margin: 30px -15px; }


/* META INFORMACE */
.overview .item p.meta-info { font-family: 'Roboto', sans-serif; font-size: 11px; color: #777777; margin: 0 0 5px 0; }
.overview .item p.meta-info .red { color: #e61c25; margin: 0 4px; font-weight: bold; }
#amr_plus_hp .overview .item p.meta-info { color: #aaaaaa; }

/* PŘEPIS BAREV PRO ČERNÉ POZADÍ */
#amr_plus_hp .item h2, #amr_plus_hp .item h2 a, #amr_plus_hp .item p.date small { color: #ffffff; }
#amr_plus_hp .item p.perex { color: #aaaaaa !important; }
#amr_plus_hp .item p.perex a.red { color: #e61c25; }

/* --- NOVÁ ROZLOŽENÍ ČLÁNKŮ (MŘÍŽKA) --- */
/* Kontejner zapne Flexbox a rozprostře 3 články vedle sebe */
div.overview { 
    margin: 0; 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: flex-start; /* Články se řadí vždy zleva doprava */
    gap: 30px 30px; /* 30px mezera pod řádkem, 50px mezera mezi sloupci */
}

/* Striktní box 300x300 */
div.overview .item { 
    position: relative; 
    width: 300px; 
    height: 300px; 
    margin-bottom: 30px; 
    box-sizing: border-box; 
    overflow: hidden; 
}

/* 1. Zafixování výšky fotky */
div.overview .item p.image { 
    margin: 0 0 5px 0; 
    overflow: hidden; 
    width: 100%; 
    height: 160px; 
}

div.overview .item p.image img { 
    display: block; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

div.overview .item p.perex a.red {
    margin-left: 5px;
}

/* 2. Zafixování výšky nadpisu na přesně 2 řádky (38px) */
div.overview .item h2 { 
    margin: 0 0 6px 0; 
    font-family: 'Roboto', sans-serif; 
    font-weight: 900; 
    font-size: 22px; 
    line-height: 24px; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
}

/* Datum a meta info s pevnou startovní čárou */
div.overview .item p.date, 
div.overview .item p.meta-info { 
    font-size: 9px;
    line-height: 13.5px;
    font-weight: 700;
    margin: 9px 0 5px;
    color: #535353;
}

div.amr-plus-left div.overview .item p.date, 
div.amr-plus-left div.overview .item p.meta-info { 
    color: #ffffff;
}

div.overview .item p.date a, 
div.overview .item p.meta-info a { 
    color: #535353;
}

/* Perex vyplní zbytek do 300px výšky */
div.overview .item p.perex { 
    margin: 0; 
    font-size: 14px; 
    line-height: 20.8px;
    display: -webkit-box; 
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
}

/* Výjimka pro "top" článek přes celou šířku */
div.overview .item.first { 
    width: 100%; 
    height: auto; 
    margin-bottom: 30px;
}
div.overview .item.first p.image { height: auto; margin-bottom: 12px; }
div.overview .item.first h2, 
div.overview .item.first p.date, 
div.overview .item.first p.perex { 
    margin: 0 0 10px 0; 
    height: auto;
    -webkit-line-clamp: unset;
}

/* 5. ARTICLES & CONTENT DETAIL */
#content { border: none; padding: 0 14px 5px; margin: 0 0 10px; }
div#content.section {
    width: 960px;
}
#page-hp #content { padding: 0 8px 5px 13px; }
#content .section-title { height: 22px; line-height: 22px; font-size: 14px; background-color: black; color: #fff !important; margin: 0 -15px 5px; padding: 0 10px; display: inline-block; }
#content.article h1 { margin: 0 -7px; color: black; }
#content.article p.info, #content.article p.info a { color: black; margin: 0; }
#content.article p.image { margin: 5px 0 5px -7px; }
div.gallery p.nav { position: relative; height: 20px; margin: 2px 0; text-align: center; }
p.links { margin: 10px 0 5px; }
p.kategorie { background-color: black; color: white; padding: 5px; margin: -5px; text-transform: uppercase; font-family: 'Roboto', sans-serif; font-weight: 700; font-size: 15px; display: inline-block; }
#foto-scroller { width: 100%; margin: 0 0 20px 0; } 
#foto-scroller-items { width: auto; float: left; margin: 0 5px; overflow: hidden; }

/* FORMS & TABLES */
div.form fieldset { border: 2px solid #ccc; padding: 2%; margin: 1em 0; }
div.form legend { color: #000; font-weight: bold; font-size: 15px; padding: 0.2em 1em; }
div.form label { display: block; float: left; width: 35%; padding-right: 2%; text-align: right; margin: 5px 0; line-height: 1.8em; }
div.form input, div.form select, div.form textarea { float: left; margin: 5px 0; vertical-align: middle; }
div.form input[type="text"], div.form textarea { width: 35%; border: 2px solid #EFEFF0; padding: 2px; }
table.table, table.import-table { border-collapse: collapse; width: 100%; margin: 10px 0; }
table.table th, table.table td, table.import-table th, table.import-table td { padding: 4px 8px; border-collapse: collapse; }
table.table th, table.import-table th { background-color: #545454; color: #fff; }
table.table .even td, table.import-table .odd td { background-color: #e4e3e3; }

/* 6. RIGHT COLUMN & FOOTER */
#right div.block { margin: 0 0 10px; padding: 0 4px 4px; border: none; }
#right div.block h2 { width: 280px; position: relative; left: -5px; height: 22px; line-height: 22px; background-color: black; background-image: none; color: #fff; margin: 0 0 2px; padding: 0 10px; }
#right div.banner, #right div.fb { padding: 0; }
div.block.more-news a { color: black; text-transform: uppercase; font-family: 'Roboto', sans-serif; font-weight: 700; font-size: 15px; }
div.block.more-news p { font-size: 14px; margin: 3px 0 0; color: #3b393a; }
div.block.articles { padding: 0 9px; }
div.block.articles .main-article h3 { font-size: 20px; margin: 3px 0 0; color: black; }
div.block.articles ul li { border-top: 1px solid #545454; padding: 7px 0; }

/* FOOTER */
#footer { clear: both; color: #000000; background-color: #ffffff; padding: 20px; display: flex; align-items: center; justify-content: flex-start; gap: 30px; text-align: left; }
#footer-menu { display: none; }
#footer #logo_dole { margin: 0; flex-shrink: 0; }
#footer #copy { margin: 0; font-family: 'Roboto', sans-serif; font-weight: bold; font-size: 11px; line-height: 1.6; text-transform: uppercase; }
#footer #copy a { color: #000000; display: inline; margin: 0; font-weight: bold; text-decoration: none; }
#footer #copy a:hover { text-decoration: underline; }
#footer #copy span { display: inline; padding: 0 4px; }
#footer #logo_dole img { filter: brightness(0); }


/* Štítek kategorie v levém horním rohu fotky */
div.overview .item a.item-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    background-color: #e0151d;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    line-height: 1;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

div.overview .item a.item-tag:hover {
    background-color: black; /* Při najetí myší zčerná v barvě webu */
    text-decoration: none;
}

/* --- DETAIL ČLÁNKU: HLAVIČKA A TYPOGRAFIE --- */

/* Vytvoření dýchacího prostoru mezi hlavním textem a pravým sloupcem */
#content.article {
    padding-right: 40px; 
    box-sizing: border-box;
}






/* Moderní červený štítek rubriky (nahrazuje ten starý černý) */
#content.article .section-title {
    background-color: #e61c25;
    color: #ffffff !important;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    display: inline-block;
    margin: 0 0 15px 0;
}
#content.article .section-title strong {
    font-weight: 700;
}

/* Hlavní nadpis článku - elegantnější a čitelnější */
#content.article h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 38px; /* nebo 53px */ 
    font-weight: 700;
    line-height: 1.08;
    margin: 6px 0 5px 0;
    color: #000000;
    /* Zrušení plošných verzálek z původního CSS, pokud chceš přirozenější text */
    text-transform: none; 
}

/* Oddělení autora a data */
#content.article p.info {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    color: #888888;
    margin: 0 0 10px 0;
    padding-bottom: 0px;
    font-weight: bold;
}

#content.article p.info .sep, .sep{
    color: #e61c25;
}

#content.article p.info a {
    color: #888888;
    font-weight: 700;
    text-decoration: none;
}
#content.article p.info a:hover {
    text-decoration: underline;
}

/* Ošetření hlavního obrázku, aby nepřetékal do strany */
#content.article p.image {
    margin: 0 0 5px 0;
}
#content.article p.image img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Popisek fotky (zdroj) */
#content.article p.source {
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    color: #aaaaaa;
    text-align: right;
    margin: -15px 0 20px 0;
}

/* --- FOTOGALERIE V DETAILU ČLÁNKU --- */

/* Nadpis galerie podle grafického návrhu (verzálky + červená linka) */
#foto-scroller h2 {
    text-transform: uppercase;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 25px;
    color: #000;
    margin: 40px 0 20px 0;
}
#foto-scroller h2::after {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background-color: #e61c25;
    margin-top: 6px;
}

/* Reset původních plovoucích elementů */
#foto-scroller-items {
    width: 100%;
    float: none;
    margin: 0;
}

/* Zapnutí CSS Gridu pro dokonalou dvousloupcovou mřížku */
#foto-scroller-items-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Striktně 2 sloupce */
    gap: 22px; /* Mezera mezi fotkami přesně 22px podle návrhu */
}

/* Vynucení formátu 300x200 (poměr 3:2) u všech odkazů s fotkami */
#foto-scroller-items-inner a {
    display: block;
    aspect-ratio: 3 / 2; /* Magie: vytvoří přesný poměr 300x200 */
    overflow: hidden;
    position: relative;
}

/* Oříznutí samotného obrázku na střed bez deformace */
#foto-scroller-items-inner a img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Dokonale vyplní rámeček 3:2, přesahující části skryje */
    transition: transform 0.3s ease; 
}

/* Efekt při najetí myší (lehké přiblížení) */
#foto-scroller-items-inner a:hover img {
    transform: scale(1.03);
}

#content.article > p.source {
    width: 1000px;
    margin: -15px 0 20px -21px;
    padding-right: 10px;
    box-sizing: border-box;
    text-align: right;
    color: #666; /* jemnější šedá, ať nesoupeří s černým boxem Newsletteru */
    font-size: 11px;
    position: relative;
    top: 15px;
}


/* Roztáhnutí hlavního obrázku na plných 1000px (až do krajů #column-wrapper) */
@media only screen and (min-width: 1021px) {
    /* 1. Zrušíme max-width: 100% z responzivního pravidla pro #content * */
    #content.article > p.image,
    #content.article > p.image img,
    #content.article > p.source {
        max-width: none !important;
    }

    /* 2. Fotka na plných 1000px: -21px vlevo (-14px #content a -7px #column-wrapper) a -7px nahoru */
    #content.article > p.image {
        width: 1000px;
        margin: -7px 0 5px -21px;
    }

    #content.article > p.image img {
        width: 100%;
        height: auto;
        display: block;
    }

    /* 4. Odstrčení pravého sloupce pod 1000x531px fotku */
    #column-wrapper:has(#content.article > p.image) #right {
        margin-top: 554px;
    }
}

/* 7. RESPONSIVE MEDIA QUERIES */

@media only screen and (max-width: 1020px) { 
    #left { margin: 0 auto; float: none; } 
    #content { border-right: none; } 
    #right { float: none; margin: 10px auto 0; } 

    /* Zruší zbytečné 40px odsazení z detailu článku na HP */
    #page-hp #content.article { padding-right: 8px !important; }

    /* 1. Nejnovější a Automobil+ umožní zalomení reklamy pod články */
    .nejnovejsi-layout, #amr_plus_hp {
        flex-wrap: wrap !important;
    }

    /* 2. Blok s články se roztáhne na 100 %, aby se do něj vešly dva 300px boxy vedle sebe */
    .nejnovejsi-left, .amr-plus-left {
        flex: 0 0 100% !important;
        width: 100% !important;
    }

    /* 3. Reklamy spadnou pod články, vycentrují se a drží 300px */
    .nejnovejsi-right, .amr-plus-right, div.overview .item.banner-item {
        flex: 0 0 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 10px 0 20px 0 !important;
        display: flex !important;
        justify-content: center !important;
    }
    .nejnovejsi-right .homepage-banner-middle,
    .amr-plus-right .homepage-banner-middle,
    div.overview .item.banner-item .homepage-banner-middle {
        width: 300px !important;
        margin-top: 0 !important;
    }

    /* 4. Články i hlavičky sekcí drží 300px mřížku vycentrovanou na střed (2 sloupce = 630px) */
    /* Hlavička lícuje s mírně odsazenými kraji */
    .sekce-head, #amr_plus_hp .amr-plus-head {
        max-width: 100%;
        padding: 0 4%;
        box-sizing: border-box;
    }

    /* Články se rovnoměrně rozprostřou v prostoru při zachování 300px */
    div.overview {
        justify-content: space-evenly;
        gap: 30px 15px;
    }

    /* Zruší jen ořez textu vespod, ale šířka zůstává pevných 300px ze základního CSS */
    div.overview .item {
        height: auto !important;
        overflow: visible !important;
    }
}

@media only screen and (max-width: 665px) {
    /* Když už se nevejdou dva 300px boxy vedle sebe (300 + 30 + 300 + okraje), 
       spadnou automaticky po 1 pod sebe a hlavička sekce se zarovná na 300px */
    .sekce-head, #amr_plus_hp .amr-plus-head {
        max-width: 300px;
    }
}

@media only screen and (max-width: 1290px) { 
    body { max-width: 1110px; margin: 0 auto; } 
    .skyscraper { display: none; } 
}
@media only screen and (max-width: 1100px) { 
    body { width: 100%; box-sizing: border-box; } 
    #page-wrapper, #content * { max-width: 100% !important; } 
    #header { padding: 0; max-width: 100%; } 
}
@media only screen and (max-width: 1020px) { 
    #left { margin: 0 auto; float: none; } 
    #content { border-right: none; } 
    #right { float: none; margin: 10px auto 0; } 
}
@media only screen and (max-width: 1000px) { 
    #search-form .input {
        width: 120px;
    }
}
@media only screen and (max-width: 960px) { 
    #search-form {
        margin: 0 0px 0 0;
    }
}
@media only screen and (max-width: 950px) { 
    #search-form {
        position: absolute;
        right: 80px;
    }
}
@media only screen and (max-width: 946px) { 
    .leaderboard {
        display: none;
    }
}
@media only screen and (max-width: 940px) { 
    #search-form .input {
        width: 90px;
    }
}
@media only screen and (max-width: 910px) { 
    #menu>ul { display: none; } 
    #drazice { left: 50px; top: 110px; }
}
@media only screen and (max-width: 860px) { 
    #prolinackaHP { height: 400px; } 
    #prolinackaHP>div>div { min-height: 390px; max-height: 390px; } 
    #footer {
        flex-direction: column; /* Přepne skládání z řádku (vedle sebe) na sloupec (pod sebe) */
        align-items: flex-start; /* Zarovná vše doleva (nebo dej 'center', pokud to chceš na střed) */
        gap: 15px; /* Udělá rovnoměrné mezery mezi logem, menu a copy blokem */
        text-align: center;
    }
    #footer #logo_dole {
        margin: 0 auto;
    }
}
@media only screen and (max-width: 800px) { 
    #left, #right { max-width: 100%; height: auto; margin: 0 auto; } 
    #content img { height: auto; } 
}
@media only screen and (max-width: 760px) { 
    #prolinackaHP div.textprolinacka p { display: none; } 
    #prolinackaHP div.textprolinacka h2 { text-align: left; font-size: 20px; } 
    #prolinackaHP .bullets { bottom: 12px; } 
    #prolinackaHP div.textprolinacka { max-width: 100%; padding: 10px; } 
}
@media only screen and (max-width: 630px) {
    div.overview .item h2 { padding-top: 10px; margin: 8px 0 3px; clear: both; height: auto; }
    div.overview .item p, div.overview .item p.date { margin-left: 0; clear: both; }
    div.overview .item p.image { width: 100%; }
    div.overview .item p.image img { margin: 0 auto; padding: 0; }
    div.overview .item p.perex { text-align: left; }
    #prolinackaHP { height: 300px; } 
    #prolinackaHP>div>div { min-height: 290px; max-height: 290px; }
    #search-form .input { width: 100px; } 
    #search-form .submit { right: 110px; }
}
@media only screen and (max-width: 540px) { 
    #current-issue { display: none; } 
    #login-search { right: 17px; } 
    #content img { display: block; float: none; } 
}

@media only screen and (max-width: 450px) {
    #search-form .input {
        width: 70px;
        position: relative;
        left: 5px;
    }
}

@media only screen and (max-width: 420px) {
    #search-form .input {
        width: 75px;
    }
    #logo {
        padding: 0 13px;
    }
}

/* 8. PRINT SETTINGS */
@media print {
    #header, #right, #header-boxes, #menu, #cover, #bottom-menu, #footer, #breadcrumbs, p.text-size, .hidden, .banner, hr, form, p.links, div.discussion, div.related, .ico, #foto-scroller, #login-search, #current-issue, #box, .articles.related, .article-links { display: none; }
    h1 { font-size: 16px; } 
    h2 { font-size: 14px; }
    .bold { font-weight: bold; }
}