/* 
 * nemkladno Template CSS 
 * Brand Colors:
 * Anthracite: #2D2D2D or #333333
 * Brand Teal: #008080
 */

:root {
    --brand-primary: #008080;
    --brand-primary-hover: #006666;
    --brand-dark: #2D2D2D;
    --brand-light: #F8F9FA;

    --sidebar-width: 320px;

    /* Bootstrap overrides */
    --bs-primary: var(--brand-primary);
    --bs-primary-rgb: 0, 128, 128;
    --bs-link-color: var(--brand-primary);
    --bs-link-hover-color: var(--brand-primary-hover);
    --bs-dark: var(--brand-dark);
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    background-color: var(--brand-light);
}

/*
 * Sidebar / Offcanvas Styling
 */
.sidebar {
    width: var(--sidebar-width) !important;
    background-color: var(--brand-light) !important;
    color: var(--brand-dark);
    /* Zajištění plné výšky i pokud obsah vedle je delší */
    min-height: 100%;
}

@media (min-width: 992px) {

    /* On desktop, making the offcanvas act as a static sidebar */
    .sidebar.offcanvas-lg {
        position: sticky;
        top: 0;
        height: 100%;
        border-right: 1px solid rgba(0, 0, 0, 0.05);
        /* Jemnější čára na bílém podkladu */
        transform: none;
        visibility: visible;
        background-color: var(--brand-light) !important;
        /* Přepis offcanvas stylů Bootstrapu */
    }
}

/* Sidebar Logo */
.sidebar-logo img {
    max-width: 200px;
    height: auto;
}

.mobile-topbar {
    background-color: #ffffff;
    position: relative;
    z-index: 1050;
    /* Zajišťuje, že lišta s logem a menu překryje slider pod ní */
}

/* Sidebar Navigation is handled by drilldown-nav.css */

/* Accessibility Focus States */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid #ffbf47;
    outline-offset: 2px;
}

/* Page Header (Title + Breadcrumbs) */
.page-header {
    background-color: #fff;
    border-bottom: 3px solid var(--brand-primary);
}

/* Generic Layout */
.main-content {
    background-color: #ffffff;
}

/* Footer */
.site-footer {
    background-color: var(--brand-dark);
    color: #fff;
    border-top: 4px solid var(--brand-primary);
}

.site-footer a {
    color: var(--brand-primary);
    text-decoration: underline;
}

.site-footer a:hover {
    color: #fff;
}

/*
 * Sidebar Search Module Styling
 * Forces the input and button into an inline flex container
 */
.sidebar-search {
    background-color: rgba(0, 128, 128, 0.08) !important;
    padding: 1.5rem !important;
    /* Přepíšeme p-3 pro lepší dýchání boxu */
}

/* Obal modulu (v J4/5 občas fieldset nebo div wrapper uvnitř form) */
.sidebar-search form {
    margin: 0;
}

.sidebar-search form>div,
.sidebar-search fieldset {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: 100%;
    align-items: stretch;
    background-color: #fff;
    border-radius: 0.375rem;
    /* Zaoblení vyhledávače */
    border: 1px solid rgba(0, 128, 128, 0.3);
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
    margin: 0;
    padding: 0;
}

.sidebar-search form:focus-within>div,
.sidebar-search form:focus-within fieldset {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.15);
}

/* Input pole */
.sidebar-search input[type="search"],
.sidebar-search input[type="text"],
.sidebar-search .form-control {
    flex-grow: 1;
    min-width: 0;
    /* Zabrání přetékání flexboxu */
    border: none !important;
    /* Odstranit původní bs borders */
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0.75rem 1rem !important;
    margin: 0 !important;
    max-width: 100%;
    height: auto !important;
    background-color: transparent !important;
}

/* Tlačítko Hledat */
.sidebar-search button,
.sidebar-search .btn {
    flex-shrink: 0;
    border-radius: 0 !important;
    border: none !important;
    border-left: 1px solid rgba(0, 128, 128, 0.2) !important;
    /* Jemný oddělovač lupy od pole */
    background-color: transparent !important;
    /* Zprůhlednění tlačítka */
    color: var(--brand-primary) !important;
    /* Barva samotné lupy v brandové teal */
    padding: 0.75rem 1.2rem !important;
    margin: 0 !important;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* Interakce na přejetí lupy - jemně se podbarví její box tyrkysovou, do celku to dává smysl */
.sidebar-search button:hover,
.sidebar-search .btn:hover {
    background-color: rgba(0, 128, 128, 0.08) !important;
    color: var(--brand-dark) !important;
}

/* Případný text/label schovat nebo zarovnat */
.sidebar-search label,
.sidebar-search .form-label {
    display: none !important;
}

/* =========================================
 * LEGACY ARTICLE LAYOUT SUPPORT
 * Backward compatibility pro staré zápisy obsahu v článcích (Canvas/stará šablona)
 * ========================================= */

.clear {
    clear: both;
    display: block;
    width: 100%;
}

.line {
    clear: both;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin: 2rem 0;
    width: 100%;
}

.nobottommargin {
    margin-bottom: 0 !important;
}

/* Starý mřížkový systém */
.col_one_third {
    width: 100%;
    margin-bottom: 2rem;
    box-sizing: border-box;
}

@media (min-width: 992px) {
    .col_one_third {
        width: 32%;
        margin-right: 2%;
        float: left;
    }

    .col_one_third.col_last {
        margin-right: 0;
    }
}

/* Feature Box (Bloky s ikonou nalevo a textem napravo) */
.feature-box {
    display: grid;
    grid-template-columns: 60px 1fr;
    column-gap: 20px;
    align-items: start;
}

/* Ikona */
.feature-box .fbox-icon {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    width: 60px;
    height: 60px;
    background-color: var(--brand-primary);
    /* Tyrkysová brand barva */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 128, 128, 0.2);
    transition: transform 0.3s ease;
}

.feature-box:hover .fbox-icon {
    transform: translateY(-3px);
}

.feature-box .fbox-icon a {
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 100%;
    height: 100%;
}

.feature-box .fbox-icon em {
    font-style: normal;
}

/* Nadpis vedle ikony */
.feature-box h3 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--brand-dark);
    letter-spacing: 0.5px;
    padding-top: 4px;
}

/* Textový popisek vedle ikony */
.feature-box p {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    margin: 0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Poloviční sloupce pro vizitky (Legacy Canvas) */
.col_half {
    width: 100%;
    margin-bottom: 2rem;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .col_half {
        width: 48%;
        margin-right: 4%;
        float: left;
    }

    .col_half.col_last {
        margin-right: 0;
    }
}

/* Tým a vizitky osob (Legacy Canvas) */
.team {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-image {
    width: 100%;
    max-width: 350px;
    /* Zamezení příliš velkému roztahování na velkých monitorech */
    margin-bottom: 1.5rem;
}

.team-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.team-desc {
    padding: 0 1rem;
    width: 100%;
}

.team-title h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin: 0 0 0.25rem 0;
}

.team-title span {
    display: block;
    color: var(--brand-primary);
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 1.25rem;
}

.team-content p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.team-content a,
.team-content joomla-hidden-mail a {
    color: var(--brand-primary) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.team-content a:hover,
.team-content joomla-hidden-mail a:hover {
    color: var(--brand-dark) !important;
    text-decoration: underline;
}

/* =========================================
 * GLOBÁLNÍ ODKAZY A SEZNAMY V ČLÁNCÍCH
 * ========================================= */

.com-content-article__body a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.com-content-article__body a:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}

/* Očištění seznamů oddělení v feature-boxech a v nových Bootstrap seznamech */
.feature-box ul,
.department-list {
    list-style: none;
    /* Skryje výchozí puntíky */
    padding-left: 0;
    margin-bottom: 0;
    margin-top: 0.5rem;
}

.feature-box ul li,
.department-list li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Vlastní drobná odrážka v puncovní barvě */
.feature-box ul li::before,
.department-list li::before {
    content: "•";
    color: var(--brand-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* U odkazů v seznamech je hezčí, když mají primárně barvu textu a po najetí ztyrkysoví */
.feature-box ul li a,
.department-list li a {
    color: #444;
}

.feature-box ul li a:hover,
.department-list li a:hover {
    color: var(--brand-primary);
    text-decoration: none;
    /* V seznamech je možná hezčí jen barva bez podtržení */
}

/* =========================================
 * OPRAVA STARÝCH IKON (PŘEBÍJÍ NATIVNÍ FONT-AWESOME)
 * ========================================= */

.fbox-icon i,
.fbox-icon em {
    font-family: 'font-icons', 'lined-icons', 'Simple-Line-Icons' !important;
    font-style: normal !important;
    font-weight: normal !important;
}

/* =========================================
 * TLAČÍTKA A EXTERNÍ KOMPONENTY CANVA
 * ========================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 10px 0;
    padding: 0 22px;
    font-size: 14px;
    line-height: 40px;
    background-color: #555;
    color: #FFF !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
    text-decoration: none !important;
    /* Důležité: tlačítko nemá být podtržené */
}

/* Specifická tlačítka (velká varianta a kulatá varianta) */
.button.button-rounded {
    border-radius: 4px;
}

.button.button-xlarge {
    padding: 0 26px;
    font-size: 1rem;
    line-height: 52px;
}

.button:hover {
    background-color: var(--brand-primary);
    transform: translateY(-2px);
}

/* ==========================================================================
   Breadcrumbs Module Styles
   ========================================================================== */
.mod-breadcrumbs .page-title {
    color: var(--brand-dark);
    font-size: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.mod-breadcrumbs .page-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 60px;
    background-color: var(--brand-primary);
}

.mod-breadcrumbs .text-brand {
    color: var(--brand-primary);
}

.mod-breadcrumbs .hover-underline:hover {
    text-decoration: underline !important;
    text-underline-offset: 4px;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "\e7a5";
    /* Native font-icons angle-right */
    font-family: 'font-icons', sans-serif;
    font-weight: 400;
    color: #999;
}