@charset "UTF-8";
/* Theme Name: SDH Rudoltice 
Theme URI: https://www.sdhrudoltice.cz/ 
Author: Marcel Rek 
Author URI: https://www.sdhrudoltice.cz/ 
Description: Wordpress theme for firefighter dept. from Rudoltice (Czech Republic) 
Tested up to: 5.9.3 
Version: 1.0 
License: GNU General Public License v2 or later 
License URI: http://www.gnu.org/licenses/gpl-2.0.html 
Text Domain: sdhrudoltice 
*/

/* ==========================================================================
   1. GLOBÁLNÍ STYLY & PROMĚNNÉ
   ========================================================================== */
:root {
    --red-color: #b30c13;
    --blue-color: #117088;
    --gray-color: #2d2d2d;
    --yellow-color: #ffc107;
}

body {
    margin: 0;
    padding: 0;
    background: #f4f2ed;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: var(--gray-color);
    min-height: 100vh;
}

body.home.admin-bar header {
    top: 32px;
}

body.admin-bar #background-video {
    height: calc(100vh - 232px);
}
#cmsToolbar {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    background: #141414;
    padding: 10px;
    border-radius: 25px;
    z-index: 99999;
    box-shadow: 0 0 2px 0 #fff;
    border-bottom: none;
}

#cmsToolbar a {
    color: #fff;
    font-size: 0;

    display: flex;
    align-items: center;
    justify-content: center;
}

#cmsToolbar a svg {
    font-size: 30px;
    opacity: 0.95;
}

.container {
    width: 1200px;
	padding: 0 30px;
    margin: 0 auto;
}

.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* Typografie */
h1, h2, h3 {
    font-family: 'Roboto Slab', serif;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-color);
}

/* Uniformované H2  */

h2 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    position: relative;
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    color: #000;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: rgba(0, 0, 0, 0.00);
    border-left: 35px solid var(--red-color);

}

h2.dark {
    color: #fff;
}

h2.dark::after {
    background-color: rgba(255, 255, 255, 0.00);
    border-left: 35px solid var(--yellow-color);
}

p {
    font-size: 13px;
}

/* Odkazy a obecná tlačítka */
a {
    color: #3366cc;
}

a:hover {
    text-decoration: none;
}

a.button {
    background: rgb(118,3,8);
    background: linear-gradient(0deg, rgba(118,3,8,1) 0%, rgba(179,12,19,1) 100%);
    border-bottom: 1px solid #650207;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 10px;
    color: #fff;
}

.readmore {
    padding: 0;
    margin: 0;
    padding-top: 10px;
    text-align: right;
}

.viewMore {
    float: right;
    height: 28px;
    line-height: 28px;
    border-radius: 5px;
    background-color: #777;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    padding: 0 10px;
    color: #fff;
}

.viewMore i {
    display: none;
}

.viewMore:hover {
    text-decoration: underline;
}

.goUp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 46px;
    height: 46px;
    line-height: 46px;
    font-size: 24px;
    border-radius: 50%;
    border: 2px solid #fff;
    text-align: center;
    color: #fff;
    background-color: var(--red-color);
    display: none;
}

.goUp.show {
    display: inline-block;
}

/* ==========================================================================
   2. HLAVIČKA & NAVIGACE
   ========================================================================== */
#topbar {
    padding: 8px 0;
    background: #222;
    display: none;
}

header {
    background-color: #fff;
    border-bottom: 2px solid #232232;
}

#header a.custom-logo-link {
    display: inline-block;
    padding: 20px 0;
    margin: 0;
    float: left;
}

#header a.custom-logo-link img {
    width: auto;
    height: 60px;
    float: left;
}

#header .sitename {
    float: left;
    margin-left: 20px;
    font-size: 13px;
    line-height: 16px;
    padding-top: 35px;
}

#header .sitename a {
    text-decoration: none;
    color: var(--gray-color);
}

.headerBoxes {
    display: inline-block;
    float: right;
    list-style-type: none;
    margin: 25px 0 0;
    padding: 0;
    font-size: 0;
}

.headerBoxes li {
    display: inline-block;
    margin: 0 0 0 10px;
    padding: 0;
    background: #ddd;
    border-radius: 15px;
    overflow: hidden;
}

.headerBoxes li a {
    color: #666;
}

.headerBoxes li svg {
    padding: 12px;
    background: rgb(118,3,8);
    background: linear-gradient(0deg, rgba(118,3,8,1) 0%, rgba(179,12,19,1) 100%);
    color: #fff;
}

.headerBoxes li span {
    height: 30px;
    padding: 10px 20px 10px 15px;
    line-height: 15px;
    display: inline-block;
    float: inline-end;
    font-size: 12px;
}

.headerBoxes li span strong {
    font-size: 11px;
}

/* Hlavní menu */
nav#primary {
    font-family: 'Poppins', sans-serif;
    float: right;
    display: inline-block;
    margin: 35px 0 0 15px;
    font-size: 14px;
    font-weight: 500;
}

nav#primary .toggle_nav {
    display: none;
    height: 50px;
    line-height: 50px;
    background: var(--red-color);
    padding: 0 15px;
    color: #fff;
    text-decoration: none;
}

nav#primary .toggle_nav span {
    padding: 14px 10px 15px 5px;
}

nav#primary ul {
    list-style-type: none;
    display: block;
    margin: 0;
    padding: 0;
    font-size: 0;
}

nav#primary li {
    display: inline-block;
    padding: 0 10px 0 0;
    margin: 0;
    font-size: 14px;
}

nav#primary li a {
    color: var(--gray-color);
    text-decoration: none;
    transition: background-color .2s ease-in;
    position: relative;
    padding: 0 10px;
    height: 30px;
    line-height: 30px;
    display: inline-block;
    border-radius: 10px;
}

nav#primary li.menu-item-home a {
}

nav#primary li.menu-item-home a:before {
}

nav#primary li a:hover {
    color: #fff;
    background-color: var(--gray-color);
}

nav#primary li.active a, 
nav#primary li.current-post-parent a, 
nav#primary li.current-page-ancestor a {
    background-color: var(--red-color);
    color: #fff;
    border-radius: 8px;
    font-weight: 500;
}

/* Sociální sítě v hlavičce */
nav.social {
    float: right;
    display: inline-block;
    margin: 0;
}

nav.social ul {
    list-style-type: none;
    display: block;
    margin: 0;
    padding: 0;
    font-size: 0;
}

nav.social li {
    display: inline-block;
    padding: 0 8px 0 0;
    margin: 0;
}

nav.social li a {
    font-size: 0;
    height: 16px;
    width: 16px;
    padding: 6px;
    background-color: #cdcdcd;
    color: var(--gray-color);
    text-decoration: none;
    border-radius: 50%;
    transition: background .2s ease-in, color .2s ease-in;
}

nav.social li a:hover {
    background-color: var(--red-color);
    color: #fff;
}

nav.social li svg {
    font-size: 24px;
}

nav.social li a.dashicons-facebook:hover  { background-color: #4267B2; }
nav.social li a.dashicons-twitter:hover   { background-color: #1DA1F2; }
nav.social li a.dashicons-instagram:hover { background-color: #E1306C; }
nav.social li a.dashicons-youtube:hover   { background-color: #FF0000; }
nav.social li a.dashicons-rss:hover       { background-color: #f26522; }

/* ==========================================================================
   3. STRÁNKY & OBSAH (SINGLE / PAGE)
   ========================================================================== */
.single h1, .page h1 {
    text-align: center;
    font-size: 52px;
}

.content {
    margin-top: 30px;
    margin-bottom: 30px;
}

.contentbg {
    background: #f4f2ed url(../images/content_bg.jpg) 50% 100% no-repeat;
    background-size: contain;
}

.content.full-page {
    float: none;
    width: 100%;
    margin-left: 0;
}

.content h1 {
    text-align: left;
    font-size: 32px;
}

.content .wp-block-gallery {
    margin: 0;
}

.content .wp-block-embed iframe {
    margin: 25px 0;
}

.breadcrumb {
    padding: 8px 0;
    list-style: none;
    font-size: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    margin: 10px 0;
    color: #666;
}

.breadcrumb a {
    color: var(--red-color);
    text-decoration: none;
}

.breadcrumb .fa-chevron-right {
    font-size: 8px;
    padding: 5px;
    vertical-align: middle;
    color: #999;
}

.single-date {
    display: inline-block;
    background: var(--red-color);
    text-align: left;
    margin-bottom: 10px;
    font-size: 11px;
    color: #fff;
    padding: 3px 6px;
    border-radius: 3px;
}

/* ==========================================================================
   4. ÚVODNÍ STRÁNKA (HOME PAGE) SEKCE
   ========================================================================== */
#homePage {
    padding: 30px 15px;
}

.homecontent {
    width: calc(100% - 400px);
}

/* Video Banner */
#videoBanner {
    position: relative;
    background: #fff;
    font-size: 0;
    overflow: hidden;
}

#background-video {
    background-color: #000;
    width: 100%;
    object-fit: cover;
    z-index: -1;
    height: calc(100vh - 180px);
}

.videoOverlayTexture {
    background: rgba(0,0,0,0.1) url(../images/seamless.png?v=3);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    text-align: left;
}

.videoOverlay {
    background: transparent url(../images/sipka2.svg?v=7) 50% 100% no-repeat;
    background-size: contain;
    position: absolute;
    height: 150px;
    left: 0;
    right: 0;
    bottom: -1px;
    text-align: center;
}

.videoOverlay svg {
    margin-top: 100px;
    opacity: 0.65;
}

#videoBanner h1 {
    display: none;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    height: 50%;
    line-height: 50%;
    font-size: 42px;
    text-align: center;
    color: rgba(255,255,255,0.55);
    margin: 0;
    padding: 25px 0 0;
}

body.home .superslider {
    height: calc(100vh - 132px);
}

/* Starý Banner alternatíva */
#banner {
    min-height: 70px;
    max-height: 600px;
    background: #333 url('../images/background.jpg?3') 50% 50% no-repeat;
    background-size: cover;
    background-position: center center;
    padding: 30px 0;
    text-align: center;
}

#banner h1, #banner h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 1);
    text-shadow: 0px 0px 6px rgba(0, 0, 0, 1);
}

/* Sekce: Vítejte */
#welcome {
    background: #fff;
    padding: 25px 0 40px;
    margin: 0;
    text-align: center;
}

#welcome h1, #welcome h2 {
    text-align: center;
    margin: 10px 0;
    padding: 0;
}

#welcome h1 {
    font-size: 40px;
}

/* Sekce: Rozcestník (Dlaždice) */
#homeMenu {
    background: #fff;
    text-align: center;
    padding: 0 20px;
}

#homeMenu h3 {
    font-size: 18px;
    margin: 0;
    padding: 30px 0 5px;
}

#homeMenu h1 {
    margin: 0;
    padding: 0 0 15px;
    font-size: 28px;
}

#homeMenu p {
    margin: 0;
    padding: 0 0 30px;
}

#homeMenu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    font-size: 0;
}

#homeMenu ul li {
    position: relative;
    border-radius: 15px;
    margin: 30px 10px;
    width: calc((100% / 4) - 20px);
    display: inline-block;
    text-align: center;
    overflow: hidden;
}

#homeMenu ul li img {
    width: 100%;
    height: auto;
    opacity: 1;
    -webkit-filter: grayscale(0%);
    transition: all 0.3s ease-in-out;
}

#homeMenu ul li:hover img {
    opacity: 0.85;
    -webkit-filter: grayscale(100%);
}

#homeMenu ul li span {
    bottom: 10px;
    left: 0;
    right: 0;
    color: #fff;
    position: absolute;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0px 0px 6px #000, 0 0 6px #0000;
}

/* Sekce: Činnosti / Služby */
#services {
    font-size: 0;
    padding: 30px 0;
    margin: 0;
}

ul.services {
    margin: 0;
    padding: 0;
    list-style-type: none;
    text-align: center;
    display: none;
}

.services li {
    width: calc((100% / 4) - 20px);
    padding: 0 10px;
    margin: 0;
    display: inline-block;
    text-align: center;
}

.services li svg {
    color: var(--red-color);
}

.services li h3 {
    font-size: 16px;
}


/* ==========================================================================
   DESKTOP LAYOUT (Základní styl pro velké obrazovky)
   ========================================================================== */

#technika {
    padding: 0 0 40px;
    background: #cc0000 url(../images/services.jpg?4) 70% 50% no-repeat; 
    background: linear-gradient(to bottom, #f4f2ed 0%, #ebe7de 100%);
    border-bottom: 1px solid #e2dccf;
    background-size: cover;
}

.technika {
    display: grid;
    grid-template-columns: 1fr 4fr;
    gap: 60px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.technika.about {
    margin-top: 30px;
    grid-template-columns: 1fr 2fr;
}

.technika img {
    width: 100%;
    height: auto;
    display: block;
}

.technika ul {
    columns: 3;
    column-gap: 30px;
    margin: 0;
    padding: 0;
    font-size: 13px;
    list-style: none;
}

.technika ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 4px;
    break-inside: avoid; /* Zabrání roztržení jedné odrážky mezi sloupce */
}

.technika ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    background-color: var(--red-color);
}


/* ==========================================================================
   MOBILNÍ LAYOUT (Úpravy pro displeje menší než 992px)
   ========================================================================== */
@media (max-width: 991px) {
    #technika {
        padding: 0 20px 30px; /* O něco menší padding na mobilu */
    }

    /* Přepnutí mřížky na jeden sloupec pod sebou */
    .technika {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .technika img {
        max-width: 100%; /* Aby auto na velkých mobilech nebylo obří */
        margin: 0 auto;   /* Vycentrování obrázku */
    }

    /* Zrušení sloupců u seznamu, aby text netekl do úzkých nudlí */
    .technika ul {
        display: flex;
        flex-direction: column;
        gap: 6px;
        columns: auto;    /* Vypne třísloupcový layout */
        font-size: 14px;  /* Drobně větší písmo pro lepší čitelnost na mobilu */
    }

    .technika ul li {
        margin-bottom: 0; /* Mezery teď řídí gap ve flexboxu */
    }
}


/* ==========================================================================
   INFOKARTY - DESKTOP (Základní styl)
   ========================================================================== */


#technika-infocards {
    padding: 40px 0;
    background: #333 url(../images/backinfo.jpg?7) 0 0% no-repeat; 
}

.technika-infocards {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 sloupce vedle sebe */
    gap: 30px;
    border-radius: 8px;
}

.infocard {
    background: #fff; /* Čistě bílé karty krásně vystoupí z šedého pozadí */
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    /* border-top: 4px solid var(--red-color); /* Červený proužek na levé straně */
    display: flex;
    text-align: center;
    flex-direction: column;
    justify-content: center;
}

.infocard-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.25px;
    color: #1a1a1a; /* Decentní šedý popisek */
    margin-bottom: 4px;
    font-weight: 600;
}

.infocard-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--red-color); /* Výrazná tmavá barva pro hlavní hodnotu */
    text-transform: uppercase;
}


/* ==========================================================================
   INFOKARTY - MOBILNÍ LAYOUT (Do tvé stávající media query)
   ========================================================================== */
@media (max-width: 480px) {

    #technika-infocards {
        padding: 30px 20px;
    }
    .technika-infocards {
        grid-template-columns: repeat(2, 1fr); /* Na tabletech/mobilech 2x2 */
        gap: 15px;
        margin-bottom: 0;
    }
    
    .infocard {
        padding: 12px 15px;
    }
    
    .infocard-value {
        font-size: 15px; /* Drobně menší písmo na mobilu */
    }
}

@media (max-width: 360px) {
    .technika-infocards {
        grid-template-columns: 1fr; /* Na úplně malých mobilech pod sebou */
    }
}

#events {
    padding: 40px 0;
}

@media (max-width: 480px) {
    #events {
        padding: 30px 20px;
    }
}

/* FAQ  */
/* ==========================================================================
   FAQ SEKCE - DESKTOP (Základní vzhled)
   ========================================================================== */
.sekce-faq {
    background-color: #ffffff; /* Čistě bílé pozadí, pokud navazuje na šedou techniku */
    padding: 40px 0;
}

.faq-accordion {
    overflow: hidden;
}

.faq-item {
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #e5e5e3; /* Jemná linka mezi otázkami */
    padding: 0;
    margin-bottom: 6px;
}

/* Skrytí funkčních checkboxů */
.faq-trigger {
    display: none;
}

/* Stylování řádku s otázkou */
.faq-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px; /* Prostor pro levý čtvereček */
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: color 0.2s ease;
}

/* Hover efekt na otázku */
.faq-title:hover {
    color: var(--red-color);
}

/* VNITŘNÍ OBSAH (Odpověď) - Výchozí skrytý stav */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0, 1, 0, 1); /* Plynulé vysunutí */
}

.faq-content p {
    padding: 20px; /* Zarovnání textu odpovědi pod text otázky */
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #555555;
}

/* ==========================================================================
   FUNKČNÍ ČÁST (Stavy při zaškrtnutém checkboxu)
   ========================================================================== */

/* 1. Otevření odpovědi */
.faq-trigger:checked ~ .faq-content {
    max-height: 1000px; /* Dostatečná výška pro rozbalení textu */
    transition: max-height 0.5s cubic-bezier(0.9, 0, 0.1, 1);
}

/* 2. Otočení šipky směrem nahoru */
.faq-trigger:checked ~ .faq-title {
    background: var(--red-color);
    color: #fff;
}


/* ==========================================================================
   FAQ - MOBILNÍ LAYOUT (max-width: 991px)
   ========================================================================== */
@media (max-width: 991px) {
    .sekce-faq {
        padding: 30px 20px;
    }

    .faq-title {
        font-size: 14px;
        padding: 16px 15px;
    }

    .faq-title::before {
        top: 22px;
    }

    .faq-content p {
        padding: 15px;
        font-size: 13px;
    }
}

/* Statistiky výjezdů bar */
.hpVyjezdy {
    background: #c6bca2;
    color: #4b422e;
    border-bottom: 1px solid rgba(0,0,0,0.25);
}

.vyjezdyCount {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.vyjezdyCount li {
    padding: 10px 0 !important;
    font-size: 12px;
    display: inline-block;
    width: calc((100% / 6) - 2px);
    text-align: center;
}

.vyjezdyCount li:first-child { border-left: none; }
.vyjezdyCount li:last-child  { border-right: none; }
.vyjezdyCount li span        { display: inline-block; }

.vyjezdyCount li span.icon {
    font-size: 24px;
    color: var(--red-color);
}

.counter {
    font-size: 24px;
    padding-left: 10px;
}

/* Starý a Nový split-block (O nás / Jednotka) */
#hpVyjezd {
    background: #232232 url(../images/rr.png?1) 100% 100% no-repeat;
    background-size: contain;
    color: #fff;
    padding: 60px 0;
}

#hpVyjezd h2, #hpVyjezd h3 {
    color: #fff;
}

#hpVyjezd h2 {
    margin: 0;
    padding: 0 0 30px 0;
    font-size: 26px;
}

#hpVyjezd h3 {
    margin-top: 0;
    padding-top: 0;
}

#hpVyjezd .image {
    width: 25%;
    margin-right: 30px;
    float: left;
}

#hpVyjezd .image img {
    width: 100%;
    height: auto;
}

#hpVyjezd .hpVyjezdContent {
    width: 35%;
    float: left;
}

#hpVyjezd a.button {
    display: inline-block;
    font-size: 14px;
    border: 2px solid #fff;
    padding: 0 10px;
    height: 40px;
    line-height: 40px;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    background: none;
}


/* Ostatní widgety a bary */
.stats {
    background-color: #ddd;
    padding: 30px;
}

.homewidget {
    width: 360px;
}

#contactBar {
    background: var(--red-color);
    padding: 45px 30px;
    color: #fff;
    text-align: center;
}

#contactBar h3 {
    color: #fff;
    font-size: 26px;
    margin: 0 0 20px;
}

#contactBar p {
    margin: 0 0 20px;
}

#contactBar a {
    display: inline-block;
    font-size: 14px;
    border: 2px solid #fff;
    padding: 0 10px;
    height: 40px;
    line-height: 40px;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    transition: background-color .2s ease-in;
}

#contactBar a:hover {
    background: rgba(0, 0, 0, 0.25);
}

.grid {
    display: grid;
    gap: 2rem;

    grid-template-columns: repeat(
        auto-fit,
        minmax(320px, 1fr)
    );
}

#facebookBar {
    background: #1877F2;
    padding: 30px;
    color: #fff;
    text-align: center;
}

#facebookBar h3 {
     color: #fff;
     font-size: 52px;
     margin: 0;
}

#facebookBar p {
     margin: 0 0 20px;
}

#facebookBar a {
     display: inline-block;
     font-size: 14px;
     border: 2px solid #fff;
     padding: 0 10px;
     height: 40px;
     line-height: 40px;
     color: #fff;
     text-decoration: none;
     border-radius: 10px;
     transition: background-color .2s ease-in;
}

#facebookBar a:hover {
     background: rgba(0, 0, 0, 0.25);
}
.social {
    background: #3c5898;
    color: #fff;
    padding: 16px;
    
    /* Aktivuje flexbox a vycentruje obsah svisle i vodorovně */
    display: flex;
    justify-content: center;  /* Vodorovné vycentrování */
    align-items: center;      /* Svislé vycentrování */
    gap: 8px;                 /* Mezera mezi textem a ikonami */
}

.social .label {
    font-size: 14px;
}

.social .icons {
    /* Pokud jsou ikony v samostatném obalu, uděláme z něj také flexbox */
    display: flex;
    align-items: center;
    gap: 8px;                 /* Mezera mezi jednotlivými ikonami (nahrazuje margin-left) */
}

.social .icons a {
    /* Odkaz jako flexbox zajistí, že se SVG uvnfitř vycentruje perfektně */
    display: flex;
    align-items: center;
    color: #fff;
	transition: opacity 0.4s;
}

.social .icons svg {
    display: block;           /* U flexboxu stačí block, aby se chovalo předvídatelně */
    width: 32px;              /* U SVG je lepší definovat šířku a výšku přímo */
    height: 32px;
}

.social .icons a:hover {
	opacity: 0.5;
}

/* ==========================================================================
   5. SEZNAMY ZÁSAHŮ VÝJEZDŮ (MŘÍŽKA KARET)
   ========================================================================== */
#yearFilter {
    padding: 10px;
    border: 1px solid rgba(0,0,0,0.1);
}

.paging {
    margin-top: 10px;
    text-align: center;
    font-size: 13px;
}

.page-numbers {
    padding: 8px 14px;
    text-decoration: none;
    color: var(--red-color);
}

.page-numbers.current {
    background-color: var(--red-color);
    color: #fff;
}

.page-numbers.dots {
    color: var(--gray-color);
}

ul.listing.clearfix {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px;
    padding: 0;
    margin: 30px 0;
    list-style: none;
}

ul.listing.clearfix::after {
    display: none;
}

ul.listing.clearfix li {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
}

ul.listing.clearfix li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

ul.listing.clearfix li img.post-thumbnail {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    transition: transform 0.5s ease;
}

ul.listing.clearfix li:hover img.post-thumbnail {
    transform: scale(1.03);
}

ul.listing.clearfix li > a {
    text-decoration: none;
    color: #1a1a1a;
    display: block;
    overflow: hidden;
}

ul.listing.clearfix li h3 {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 20px 20px 8px 20px;
    color: #1a1a1a;
    transition: color 0.2s ease;
}

ul.listing.clearfix li:hover h3 {
    color: var(--red-color);
}

ul.listing.clearfix li .metainfo {
    margin: 0 20px 15px 20px;
    color: #767676;
}

ul.listing.clearfix li .metainfo small {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

ul.listing.clearfix li p:not(.metainfo):not(.readmore) {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4a4a4a;
    margin: 0 20px 20px 20px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

ul.listing.clearfix li .readmore {
    margin-top: auto;
    padding: 0 20px 25px 20px;
}

ul.listing.clearfix li .readmore a.button {
    display: inline-block;
    width: 100%;
    text-align: center;
    background: var(--red-color);
    color: #ffffff !important;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s ease, transform 0.1s ease;
    box-sizing: border-box;
    border: none;
}

ul.listing.clearfix li .readmore a.button:hover {
    background: #b30000;
}

ul.listing.clearfix li .readmore a.button:active {
    transform: scale(0.98);
}

/* ==========================================================================
   Styly pro detail výjezdu (single-vyjezdy.php)
   ========================================================================== */

.single-vyjezd article {
    background: #fff;
    padding: 20px;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Náhledový obrázek */
.vyjezd-main-image {
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vyjezd-main-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
}

/* Meta informační box (Datum a klasifikace) */
.vyjezd-meta-box {
    background: #fdfefe;
    padding: 18px 20px;
    border-left: 5px solid #d9534f; /* Hasičská červená */
    border-top: 1px solid #f1f1f1;
    border-right: 1px solid #f1f1f1;
    border-bottom: 1px solid #f1f1f1;
    border-radius: 0 6px 6px 0;
    margin-bottom: 30px;
}

.vyjezd-meta-box .meta-row {
    font-size: 14px;
    color: #444;
    padding-bottom: 4px;
}

.vyjezd-meta-box .meta-row:last-child {
    padding-bottom: 0;
}

.vyjezd-meta-box .meta-row strong {
    color: #222;
    font-weight: 600;
}

/* Krátký popis (perex) */
.vyjezd-lead {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
    font-style: italic;
    border-left: 3px solid #ccc;
    padding-left: 15px;
    margin: 25px 0;
}

/* Dlouhý popis zásahu */
.vyjezd-description p {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

/* Mřížka fotogalerie */
.vyjezd-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    gap: 12px !important;
    margin-top: 20px !important;
}

.vyjezd-grid li {
    margin: 0 !important;
    list-style: none !important;
}

.vyjezd-grid li a {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.vyjezd-grid li img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    border: 1px solid #e1e1e1;
}

/* Efekt při najetí myší na fotku v galerii */
.vyjezd-grid li a:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Responzivní wrapper pro video (YouTube/Vimeo) */
.video-responsive-container {
    position: relative;
    padding-bottom: 56.25%; /* Poměr stran 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin-top: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

/* ==========================================================================
   E-shopový (Split) Layout pro Detail výjezdu
   ========================================================================== */

.single-vyjezd article {
    background: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* Hlavní kontejner horního splitu */
.vyjezd-product-look {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Levý sloupec širší než pravý */
    gap: 40px;
    margin-bottom: 40px;
    align-items: start;
}

/* Levý sloupec s fotkou */
.vyjezd-product-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.vyjezd-product-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
}

/* Náhradní placeholder pro případ, že výjezd nemá hlavní fotku */
.vyjezd-no-image {
    background: #f5f5f5;
    color: #999;
    text-align: center;
    padding: 80px 20px;
    border: 2px dashed #e0e0e0;
    border-radius: 6px;
}
.vyjezd-no-image .dashicons {
    font-size: 50px;
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

/* Pravý sloupec s informacemi */
.vyjezd-product-info {
    background: #fafafa;
    padding: 10px 25px;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

/* Štítek (Badge) s typem události */
.vyjezd-card-header {
    position: absolute;
    top: 10px;
    left: 10px;
}
.vyjezd-badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #000;
    background-color: var(--yellow-color); /* Výchozí červená */
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Specifické barvy podle typu zásahu (volitelné – stačí sladit s názvy slugů)
.vyjezd-badge.pozar { background-color: #d9534f; }
.vyjezd-badge.technicka-pomoc { background-color: #f0ad4e; }
.vyjezd-badge.dopravni-nehoda { background-color: #0275d8; }
*/

/* Tabulka parametrů */
.vyjezd-spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}

.vyjezd-spec-table th, 
.vyjezd-spec-table td {
    padding: 12px 0;
    border-bottom: 1px solid #eaeaea;
    font-size: 15px;
    text-align: left;
}

.vyjezd-spec-table th {
    color: #666;
    font-weight: 500;
    width: 40%;
}

.vyjezd-spec-table td {
    color: #222;
}

/* Krátký popis v pravém sloupci */
.vyjezd-product-lead {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    font-style: italic;
    border-left: 3px solid #d9534f;
    padding-left: 15px;
    margin-top: 20px;
}

/* ==========================================================================
   Spodní část (Nadpisy, popis, galerie, video)
   ========================================================================== */

.vyjezd-description p {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

/* Grid fotogalerie */
.vyjezd-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
    gap: 12px !important;
    margin-top: 20px !important;
    padding: 0 !important;
    list-style: none !important;
}

.vyjezd-grid li { margin: 0 !important; }

.vyjezd-grid li a {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.vyjezd-grid li img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    border: 1px solid #e1e1e1;
}

.vyjezd-grid li a:hover {
    transform: scale(1.04);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Responzivita (Mobily a menší tablety)
   ========================================================================== */
@media (max-width: 991px) {
    .vyjezd-product-look {
        grid-template-columns: 1fr; /* Na menších displejích hodí sloupce pod sebe */
        gap: 25px;
    }
    
    .vyjezd-product-image img {
        max-height: 350px;
    }
}

@media (max-width: 768px) {
    .single-vyjezd article {
        padding: 20px;
    }
    .single-vyjezd h2 {
        font-size: 19px;
    }
    .vyjezd-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)) !important;
        gap: 8px !important;
    }
    .vyjezd-grid li img {
        height: 90px;
    }
}

/* ==========================================================================
   Responzivita pro menší obrazovky (Mobily a tablety)
   ========================================================================== */
@media (max-width: 768px) {
    .single-vyjezd article {
        padding: 15px;
    }
    
    .single-vyjezd h2 {
        font-size: 19px;
    }
    
    .vyjezd-lead {
        font-size: 16px;
    }
    
    .vyjezd-description p {
        font-size: 15px;
    }

    .vyjezd-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)) !important;
        gap: 8px !important;
    }

    .vyjezd-grid li img {
        height: 90px;
    }
}

/* ==========================================================================
   6. SIDEBAR (BOČNÍ PANEL)
   ========================================================================== */
.sidebar {
    float: left;
    width: 260px;
    margin-top: 40px;
}

.sidebar iframe.meteo {
    background: #fff;
    padding: 10px;
    border: none;
}

.sidebar .meteoalarm {
    background-color: #fff;
    text-align: center;
}

.sidebar .widget {
    margin-bottom: 25px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.sidebar .widget .wp-block-table {
    margin: 0;
}

.sidebar .widget table {
    width: 100%;
    font-size: 11px;
    border-spacing: 0;
    border-collapse: collapse;
}

.sidebar .widget table tr td {
    background: #fafafa;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 10px 0;
}

.sidebar .widget table tr:last-child td {
    border-bottom: none;
}

.sidebar .widget table tr td i {
    padding: 0 6px 0 25px;
}

.sidebar .widget h3 {
    background: rgb(118,3,8);
    background: linear-gradient(0deg, rgba(118,3,8,1) 0%, rgba(179,12,19,1) 100%);
    border-bottom: 1px solid #650207;
    padding: 10px 25px;
    margin: 0;
    color: #fff;
}

.sidebar .widget ul, 
.sidebar .widget ul li {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.sidebar .widget ul li {
    background: #fafafa;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar .widget ul li.current {
    background: #e6c848;
}

.sidebar .widget ul li a {
    display: block;
    text-decoration: none;
    color: #222;
    font-size: 13px;
    padding: 12.5px 25px;
}

.sidebar .widget ul li a:hover {
    background: rgba(0,0,0,0.1);
}

.sidebar .widget ul li:first-child { border-top: none; }
.sidebar .widget ul li:last-child  { border-bottom: none; }

/* ==========================================================================
   7. FOTOGALERIE
   ========================================================================== */
.gallery {
    margin: 0;
    padding: 1px;
    list-style-type: none;
    text-align: center;
    font-size: 0;
}

.gallery .gallery-item {
    width: calc((100% / 6) - 2px);
    padding: 1px;
    margin: 0;
    display: inline-block;
    text-align: center;
}

.gallery .gallery-item img {
    width: 100%;
    height: auto;
}

.wp-block-gallery.has-nested-images figure.wp-block-image {
    flex-grow: 0 !important;
}

/* ==========================================================================
   8. PATIČKA (FOOTER) - UPRAVENÁ ASYMETRICKÁ MŘÍŽKA 2fr 1fr 1fr
   ========================================================================== */
#footer {
    background-color: #141414 !important; /* Elegantní velmi tmavě šedá */
    color: #cccccc !important;
    font-size: 13px;
    padding-block: 60px;
    padding-inline: max(20px, calc((100% - 1200px) / 2));
}

body.home #footer {
    margin-top: 0;
}

#footer .widgets {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important; /* Rozvržení sloupců */
    gap: 50px !important; 
    list-style: none;
}

#footer .widget h3 {
    color: #ffffff !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 25px 0 !important;
    padding: 0 0 10px 0 !important;
    position: relative;
    border: none !important;
    font-family: 'Poppins', sans-serif;
}

/* Žlutá dekorační linka pod nadpisy v patičce */
#footer .widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--yellow-color); !important; /* Obecní žlutá */
}

#footer .widget p {
    line-height: 1.6;
    color: #b3b3b3 !important;
}

#footer .widget a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.2s ease !important;
}

#footer .widget a:hover {
    color: var(--yellow-color);
}

#footer img {
    width: 50px;
    height: auto;
    opacity: 0.3;
    margin-bottom: 15px;
    transition: opacity 0.4s;
}

#footer img:hover {
    opacity: 0.6;
}

/* Tabulky a seznamy ve widgetech patičky */
#footer .widget .wp-block-table {
    margin: 0;
}

#footer .widget table {
    width: 100%;
    border-spacing: 0;
    border-collapse: collapse;
    margin-top: 6px;
}

#footer .widget table tr td {
    border: none;
    border-top: 1px solid #222;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 8px 0;
}

#footer .widget table tr:first-child td,
#footer .widget table tr:last-child td {
    border: none;
}

#footer .widget table tr td i {
    padding: 0 7px 0 0;
    color: var(--yellow-color);
}

#footer .widget ul, 
#footer .widget ul li {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#footer .widget ul li {
    border-bottom: 1px solid #222;
    padding: 8px 0;
}

#footer .widget ul li:last-child {
    border-bottom: none;
}

#footer .widget ul li.current {
    background: #e6c848;
}

#footer p a {
	overflow: hidden;
	display: inline-block;
	padding: 0 9px 0 0;
	margin: 4px 0;
	background: #222222;
	color: #fff;
	border-radius: 4px;
	font-weight: bold;
	font-size: 1.1em;
}

#footer p a svg {
	padding: 5px;
	background: #e6c848;
	margin-right: 5px;
	color: #000;
    font-size: 1.2em;
}

#footer p a:hover {
	background: #e6c848;
	color: #000 !important;
}

/* Spodní lišta autorských práv */
#footer .copyright {
    border-top: 1px solid #222 !important;
    font-size: 0.8rem !important;
    color: #666666 !important;
    text-align: center;
    padding-block: 60px 0;
    padding-inline: max(20px, calc((100% - 1200px) / 2));
}

#footer .copyright a {
    color: #888;
}

#footer .copyright a:hover {
    color: #fff;
}


/* ==========================================================================
   9. RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media screen and (max-width: 1259px) {
    .container {
        width: 960px;
		padding: 0;
    }
    nav#primary li {
        padding: 0 7px;
    }
}

@media screen and (max-width: 960px) {

    .container {
        width: 100%;
		padding: 0;
    }
    
    /* Mřížka výjezdů na tabletu/mobilu pod sebou */
    ul.listing.clearfix {
        grid-template-columns: 1fr !important; 
        gap: 20px !important;
        margin: 20px 0 !important;
    }
    
    #footer .widget {
        padding: 0 30px;
    }

    /* Mřížka patičky se přeskládá */
    #footer .widgets {
        grid-template-columns: 1fr 1fr !important;
        gap: 40px !important;
    }
    
    #footer .widgets > div:first-child {
        grid-column: span 2 !important;
        border-bottom: 1px solid #222 !important;
        padding-bottom: 30px !important;
    }
    
    nav.social {
        padding-right: 10px;
    }
    
    #header {
        border: none;
    }
    
    body.home header {
        position: relative;
    }
    
    #header a.custom-logo-link {
        margin-left: 15px;
    }
    
    #header a.custom-logo-link img {
        height: 50px;
    }
    
    #header .sitename {
        margin-left: 15px;
        font-size: 12px;
        line-height: 15px;
        padding-top: 32px;
    }
    
    #header nav#primary {
        float: none;
        margin: 0;
        clear: both;
        display: block;
    }
    
    nav#primary ul.menu {
        display: none;
        padding: 10px;
    }
    
    nav#primary .toggle_nav {
        display: block;
    }
    
    nav#primary ul.menu li {
        display: block;
        height: 50px;
        line-height: 50px;
        border-bottom: 1px solid rgba(0,0,0,0.2);
        padding: 0;
    }
    
    nav#primary ul.menu li a {
        display: block;
        height: 50px;
        line-height: 50px;
        padding: 0 15px;
    }
    
    nav#primary li.menu-item-home a:before {
        padding-right: 10px;
    }
    
    nav#primary li.menu-item-home a {
        font-size: 14px;
    }
    
    nav#primary li.current-menu-item a, 
    nav#primary li.current-post-parent a, 
    nav#primary li.current-page-ancestor a, 
    nav#primary li a:hover {
        border-radius: 0;
    }
    
    .content {
        width: calc(100% - 40px);
        padding: 0 20px;
        float: none;
        margin-left: 0;
    }
    
    .frontainer {
        width: calc(100% - 40px);
        margin: 0 20px;
    }
    
    ul.listing li {
        width: 100%;
    }
    
    ul.listing li h3 {
        padding-top: 20px;
        clear: both;
    }
    
    ul.listing li img {
        width: 100%;
        height: auto;
    }
    
    .sidebar {
        width: calc(100% - 40px);
        padding: 0 20px;
        float: none;
    }
    
    .vyjezdyCount li {
        width: calc((100% / 2) - 2px);
    }
    
    .headerBoxes {
        display: none;
    }
    
    #services {
        padding: 60px 0 30px 0;
    }
    
    #services h2 {
        font-size: 24px;
    }
    
    .services li {
        width: calc(100% - 40px);
        margin: 0;
        padding: 0 20px;
    }
    
    .gallery .gallery-item {
        width: calc((100% / 3) - 2px);
        padding: 1px;
    }
    
    #background-video {
        width: 100%;
        height: calc(80vw - 1px);
    }
    
    #videoBanner h1 {
        font-size: 16px;
    }
    
    .videoOverlay .videoOverlayContent .welcome {
        padding: 10px;
        font-size: 14px;
    }
    
    #rr {
        margin: 0 20px;
        padding: 40px;
        padding-bottom: calc(100vw / 1.5);
    }
    
    #rr ul {
        max-width: 100%;
    }
    
    #rr p {
        padding: 0;
    }
    
    #homeMenu h1 {
        font-size: 24px;     
    }
    
    #homeMenu ul li {
        width: calc(50% - 2px);
        margin: 1px 0;
    }
    
    #homeMenu ul li:annotate-and-translate(2n) {
        margin-left: 2px;
    }
    
    #homeMenu ul li span {
        font-size: 14px;
    }
    
    #homeMenu ul li:nth-child(1) { border-radius: 15px 0 0 0; }
    #homeMenu ul li:nth-child(2) { border-radius: 0 15px 0 0; }
    #homeMenu ul li:nth-child(3) { border-radius: 0 0 0 15px; }
    #homeMenu ul li:nth-child(4) { border-radius: 0 0 15px 0; }
}

@media screen and (max-width: 600px) {
    #footer .widgets {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    #footer .widgets > div:first-child {
        grid-column: span 1 !important;
    }
}