/* Custom CSS for TÁBORENKA Re-Design */

/* --- Variables --- */
:root {
    --color-primary: #F9C200;
    /* Hlavní akční barva (tlačítka, aktivní prvky) */
    --color-secondary: #176114;
    /* Sekundární/firemní barva (hlavičky, menu, odkazy) */
    --color-tertiary: #81D982;
    /* Doplňková barva (detaily, gradienty) */

    --bg-main: #fdfdfd;
    /* Hlavní pozadí stránky */
    --bg-accent-1: #fff9e6;
    /* Světlé pozadí pro akcent 1 (sekce) */
    --bg-accent-2: #f1f8f1;
    /* Světlé pozadí pro akcent 2 (sekce) */

    /* Standard Fonts as requested */
    --font-heading: 'Open Sans', sans-serif;
    --font-body: 'Open Sans', 'Roboto', sans-serif;

    --shadow-soft: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* --- Base --- */
body.taborenka-theme {
    font-family: var(--font-body);
    font-size: 1rem;
    /* Reset to standard size */
    line-height: 1.6;
    color: #333;
    padding-top: 0;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand span {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    /* Headings in Green */
    font-weight: 700;
}

h1 {
    font-size: 3rem;
}

/* Facebook Icon Top */
.social-icon-fb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: #3b5998 !important;
    /* Facebook Blue forced */
    color: #fff !important;
    /* White icon forced */
    border-radius: 50%;
    text-decoration: none !important;
    transition: transform 0.2s;
}

/* Instagram Icon Top */
.social-icon-ig {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important;
    color: #fff !important;
    border-radius: 50%;
    text-decoration: none !important;
    transition: transform 0.2s;
}

/* --- Top Info Bar --- */
.top-bar {
    background-color: var(--color-primary) !important;
    border-bottom: none !important;
    color: var(--color-secondary) !important;
    font-weight: 600;
}

.top-bar .container-fluid {
    padding-left: 2rem;
    padding-right: 2rem;
}

.top-bar a {
    color: var(--color-secondary) !important;
    text-decoration: none !important;
}

.top-bar a:hover {
    text-decoration: none !important;
    opacity: 0.8;
}

/* Přebití barev pro texty a ikony uvnitř top-bar */
.top-bar .text-muted,
.top-bar .text-success,
.top-bar i {
    color: var(--color-secondary) !important;
}

/* Výjimka pro Facebook ikonu - musí být bílá */
.social-icon-fb i {
    color: #fff !important;
}

.top-bar .small {
    font-size: 0.9rem;
    /* Trochu větší pro čitelnost na žluté */
}

.social-icon-fb:hover {
    transform: scale(1.1);
    background-color: #2d4373 !important;
    text-decoration: none !important;
    color: #fff !important;
}

/* Výjimka pro Instagram ikonu - musí být bílá */
.social-icon-ig i {
    color: #fff !important;
}

.social-icon-ig:hover {
    transform: scale(1.1);
    text-decoration: none !important;
    color: #fff !important;
    opacity: 0.9;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.75rem;
}

/* Buttons */
.btn-main {
    background-color: var(--color-primary);
    border: 2px solid var(--color-primary);
    color: #212529;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    /* More standard rounded */
    transition: all 0.2s;
    /* Ensure it behaves like a button */
    display: inline-block;
    text-align: center;
    cursor: pointer;
}

.btn-main:hover {
    background-color: #fab005;
    border-color: #fab005;
    transform: translateY(-1px);
    text-decoration: none;
    color: #000;
}

.btn-green-outline {
    background: transparent;
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
}

.btn-green-outline:hover {
    background: var(--color-secondary);
    color: #fff;
    text-decoration: none;
}

/* White Outline Button (Hero Section) */
.btn-outline-white {
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.8);
    font-weight: 600;
    padding: 0.6rem 1.7rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    /* Jemně průhledné pozadí pro lepší čitelnost */
    backdrop-filter: blur(2px);
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background: #fff;
    color: var(--color-secondary);
    border-color: #fff;
    transform: translateY(-1px);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* --- Navbar (Colored) --- */
/* --- Navbar (Colored) --- */
.navbar {
    background-color: var(--color-secondary);
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    height: 90px;
    /* ZVĚTŠENÍ: Navbar je vyšší */
    z-index: 1000;
}

/* Zajistíme, aby container uvnitř navbaru měl plnou výšku */
.navbar .container,
.navbar .container-fluid {
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 2rem;
    padding-right: 2rem;
}

.navbar-brand {
    position: relative;
    padding: 0;
    margin-right: 1rem;
    z-index: 1001;
    display: flex;
    align-items: center;
    height: 100%;
}

/* Logo s přesahem */
/* Logo s přesahem - CSS Overlay */
.navbar-brand img {
    background: #fff;
    padding: 10px;
    border-radius: 0 0 15px 15px;
    height: 150px;
    /* ZVĚTŠENÍ: Obří logo */
    width: auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);

    /* Absolute positioning pro přetékání */
    position: absolute;
    top: 0;
    left: 15px;
    transition: all 0.3s ease;
    z-index: 1002;
    padding-bottom: 20px;
}

/* Text vedle loga */
/* Text vedle loga */
#logo-text,
.brand-text {
    display: block !important;
    /* Vynucení zobrazení */
    color: var(--color-primary) !important;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.2rem !important;
    /* ZVĚTŠENÍ */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 190px !important;
    /* Posun kvůli většímu logu */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1;
}

/* Navigace - kontejner */
.navbar-nav {
    margin-left: 2rem;
    /* Další odsazení od brand textu */
}

.navbar-nav .nav-item {
    position: relative;
    display: flex;
    align-items: center;
    height: 90px;
    /* Musí odpovídat výšce navbaru */
}

/* Odkazy v navigaci */
.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 700;
    text-transform: uppercase;
    /*font-size: 1.1rem;*/
    /* ZVĚTŠENÍ */
    padding: 0.5rem 0 !important;
    margin: 0 1.5rem;
    /* Větší rozestupy */
    position: relative;
    transition: all 0.3s ease;
}

/* Animované podtržítko (Hover efekt) */
/* Animované podtržítko (Hover efekt) - převedeno na ::before, aby nekolidovalo s Caret ::after */
.nav-link::before {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 5px;
    left: 50%;
    background-color: var(--color-primary);
    box-shadow: 0 2px 5px rgba(249, 194, 0, 0.4);
    transition: width 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover {
    color: #fff !important;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.nav-link:hover::before,
.nav-item.active .nav-link::before {
    width: 100%;
}

.nav-item.active .nav-link {
    color: #fff !important;
}

/* --- Dropdown Menu (Submenu) --- */
/* Zrušen skript skrývající podtržítko, protože nyní používáme ::before a ::after je Caret */

/* Otevření dropdownu na Click (nyní globálně přes JS) */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Vlastní styl pro Bootstrap caret (šipku) - nebo využití Bootstrapu s úpravou */
/* Vlastní styl pro Bootstrap caret (šipku) - nebo využití Bootstrapu s úpravou */
.dropdown-toggle::after {
    display: inline-block !important;
    margin-left: 0.3em;
    /* Menší odsazení od textu */
    vertical-align: 0.255em;
    content: "" !important;
    border-top: 0.3em solid;
    /* Menší šipka */
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    color: rgba(255, 255, 255, 0.9);
    /* Bílá šipka */
    transition: transform 0.3s ease;
    opacity: 0.9;
}

/* Rotace šipky při otevření */
.nav-item.show .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Dropdown menu vzhled (Desktop) */
.dropdown-menu {
    border: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    /* Výraznější stín */
    margin-top: 0;
    padding: 0;
    overflow: hidden;
    background-color: #1a6e17;
    /* O něco světlejší zelená než navbar (#176114), aby se "odstínila" */
    /* Nebo přesně stejná: var(--color-secondary) */
}

.dropdown-item {
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    /* Bílý text */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* Jemný oddělovač */
    transition: all 0.2s;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover,
.dropdown-item.active {
    background-color: rgba(255, 255, 255, 0.1);
    /* Průhledná bílá pro hover */
    color: var(--color-primary);
    /* Žlutý text při hoveru */
    padding-left: 1.8rem;
    text-decoration: none;
}


/* --- Tablet / Menší Laptop Optimizations (992px - 1350px) --- */
@media (min-width: 992px) and (max-width: 1350px) {

    /* 1. Skrytí textu vedle loga - logo samotné stačí a ušetříme místo */
    #logo-text,
    .brand-text {
        display: none !important;
    }

    /* 2. Zmenšení rozestupů mezi položkami menu */
    .nav-link {
        margin: 0 0.5rem;
        /* Původně 1.5rem */
        font-size: 0.95rem;
        /* Původně 1.1rem */
    }

    .navbar-nav {
        margin-left: 120px;
        /* Posunutí menu blíže k logu (místo původního odsazení textu) */
    }

    /* Zmenšení loga, aby tolik nečnílo */
    .navbar-brand img {
        height: 120px;
        padding-bottom: 15px;
    }

    /* Navbar může být o něco nižší */
    .navbar,
    .navbar-nav .nav-item {
        height: 80px;
    }
}


/* Responzivní úpravy (Mobil / Tablet) */
@media (max-width: 991.98px) {
    .navbar {
        height: auto;
        padding: 0.5rem 0;
    }

    .navbar .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Mobilní dropdown - "inline" zobrazení */
    .navbar-nav .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        border: 0;
        box-shadow: none;
        /*padding-left: 40px;*/
        /* Větší odsazení podmenu (bylo 20px) */
    }

    .dropdown-item {
        color: rgba(255, 255, 255, 0.7);
        /* Světlejší text na tmavém pozadí */
        border-bottom: none;
        padding: 0.3rem 1rem;
    }

    .dropdown-item:hover,
    .dropdown-item.active {
        background-color: transparent;
        color: var(--color-primary);
        padding-left: 1rem;
        /* Bez posunu */
    }


    .navbar-brand {
        display: flex;
        align-items: center;
        flex-grow: 1;
        margin-right: 0;
    }

    /* Reset loga na mobilu - vracíme do toku dokumentu */
    .navbar-brand img {
        position: relative;
        top: auto;
        left: auto;
        height: 50px;
        width: auto;
        margin: 0;
        border-radius: 4px;
        padding: 5px;
        box-shadow: none;
        background: transparent;
    }

    /* Text na mobilu hned vedle loga */
    #logo-text,
    .brand-text {
        margin-left: 10px !important;
        font-size: 1.4rem !important;
    }

    .navbar-nav {
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 1rem;
        text-align: left;
        /* Zarovnání doleva */
        width: 100%;
        align-items: flex-start !important;
    }

    .navbar-nav .nav-item {
        height: auto;
        margin-bottom: 5px;
        display: flex;
        flex-direction: column;
        /* Podmenu pod sebe, ne vedle */
        align-items: flex-start;
        justify-content: flex-start;
        padding-left: 20px;
        /* Odsazení od kraje */
        width: 100%;
    }

    /* Speciální fix pro tlačítko na mobilu */
    .navbar-nav .nav-item .btn {
        margin-left: 0 !important;
        /* Reset ml-2 z HTML */
        margin-top: 10px;
        width: calc(100% - 40px);
        /* Tlačítko přes většinu šířky s odstupem */
        text-align: center;
        display: block;
    }

    .nav-link {
        margin: 5px 0;
        display: inline-block;
        padding: 5px 0 !important;

    }

    /* --- Hamburger Menu Animace --- */
    .navbar-toggler {
        padding: 0.25rem 0.75rem;
        outline: none !important;
        /* Odstranění modrého rámečku při kliknutí */
        box-shadow: none !important;
    }

    .hamburger-icon {
        width: 30px;
        height: 24px;
        position: relative;
        transform: rotate(0deg);
        transition: .5s ease-in-out;
        cursor: pointer;
    }

    .hamburger-icon span {
        display: block;
        position: absolute;
        height: 3px;
        width: 100%;
        background: var(--color-primary);
        /* Žlutá barva */
        border-radius: 3px;
        opacity: 1;
        left: 0;
        transform: rotate(0deg);
        transition: .25s ease-in-out;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        /* Jemný stín pro lepší čitelnost */
    }

    /* Výchozí polohy čárek */
    .hamburger-icon span:nth-child(1) {
        top: 0px;
    }

    .hamburger-icon span:nth-child(2) {
        top: 10px;
    }

    .hamburger-icon span:nth-child(3) {
        top: 20px;
    }

    /* Animace na křížek - když je menu otevřené (Bootstrap nastaví aria-expanded="true") */
    .navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
        top: 10px;
        transform: rotate(135deg);
    }

    .navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
        opacity: 0;
        left: -60px;
    }

    .navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
        top: 10px;
        transform: rotate(-135deg);
    }


    .nav-link::after {
        bottom: 0;
        display: none;
        /* Na mobilu raději bez linky */
    }

    .nav-item.active .nav-link {
        color: var(--color-primary) !important;
    }

    /* Hero adjustments for mobile */
    .hero-content h1 {
        font-size: 2.2rem !important;
    }

    .hero-content p {
        font-size: 1rem !important;
        margin-bottom: 2rem !important;
    }

    .hero-content {
        padding: 2rem 1rem;
    }
}

/* --- Sections --- */
section {
    padding: 4rem 0;
}

/* Background Utilities */
.bg-soft-yellow {
    background-color: var(--bg-accent-1);
    border-top: 1px solid #faebcc;
    border-bottom: 1px solid #faebcc;
}

.bg-soft-green {
    background-color: var(--bg-accent-2);
    border-top: 1px solid #d6e9c6;
    border-bottom: 1px solid #d6e9c6;
}

/* --- Hero --- */
.hero-section {
    position: relative;
    color: #fff;
}

.hero-overlay {
    display: none;
    /* Skryto na žádost uživatele - chceme overlay jen pod textem */
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    /* Tmavší gradient přímo pod textem pro lepší čitelnost */
    background: radial-gradient(circle, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 80%);
    padding: 4rem 2rem;
    border-radius: 20px;
}

.hero-content h1 {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-content p {
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    font-size: 1.25rem;
}

.hero-badge {
    background: transparent !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 1.5rem;
}

/* Poloprůhledné tlačítko v Hero sekci */
.hero-section .btn-main {
    background-color: rgba(249, 194, 0, 0.4);
    /* 40% opacity */
    backdrop-filter: blur(4px);
    border-color: rgba(249, 194, 0, 0.6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: white;
}

.hero-section .btn-main:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: black;
}

/* --- Features Section --- */
.features-section {
    position: relative;
    padding: 100px 0;
}

.feature-card {
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-tertiary));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(23, 97, 20, 0.15);
    border-color: var(--color-tertiary);
}

.feature-card:hover::before {
    opacity: 0.03;
    /* Very subtle tint on hover */
}

.icon-box {
    width: 80px;
    height: 80px;
    background: var(--bg-accent-2);
    color: var(--color-secondary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.2rem;
    transition: all 0.4s ease;
    position: relative;
}

.feature-card:hover .icon-box {
    background: var(--color-primary);
    color: #000;
    transform: rotateY(360deg);
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(249, 194, 0, 0.3);
}

.feature-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    color: var(--color-secondary);
    transition: color 0.3s ease;
}

.feature-card:hover .feature-title {
    color: #1a1a1a;
}

.feature-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #666;
    transition: color 0.3s ease;
}

.feature-card:hover .feature-text {
    color: #444;
}


/* --- Term Cards --- */
.term-card {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    border: 1px solid #e3e3e3;
    box-shadow: var(--shadow-soft);
    height: 100%;
}

.term-card h4 {
    color: var(--color-secondary);
}

.term-date {
    display: inline-block;
    background: var(--bg-accent-2);
    color: var(--color-secondary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    margin: 1rem 0;
}

/* --- News Cards (Refactored) --- */
.news-card,
.novinka-card {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: visible;
    background: #fff;
    height: 100%;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.news-img-wrapper {
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    position: relative;
    overflow: hidden;
    background-color: #f5f5f5;
    border-radius: 11px 11px 0 0;
}

.news-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img-wrapper img {
    transform: scale(1.1);
}

.news-content {
    padding: 1.5rem 1.5rem 3.5rem 1.5rem;
    /* Space for button at bottom */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-title-link {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.news-title-link:hover {
    color: var(--color-tertiary);
    text-decoration: none;
}

.news-btn-corner {
    position: absolute;
    right: 0;
    bottom: 0;
    background: var(--color-primary);
    color: #000 !important;
    padding: 10px 25px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-top-left-radius: 12px;
    border-bottom-right-radius: 14px;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.news-btn-corner:hover {
    padding-right: 30px;
    background: #e0ae00;
}


/* Admin Edit Button on News Card */
.admin-edit-corner {
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 20;
}

.admin-edit-corner .btn {
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 1rem;
    background-color: #dc3545;
    /* Bootstrap Danger Red */
    border: none;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.admin-edit-corner .btn:hover {
    background-color: #bd2130;
    transform: scale(1.1);
}


/* --- Footer --- */
.footer-section {
    background: #0f420d;
    /* Slightly darker green than main for depth */
    color: #fff;
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--color-primary);
}

.footer-title {
    color: var(--color-primary);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    color: #fff;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

/* Newsletter Style from Image */
.newsletter-form .form-group {
    position: relative;
    margin-bottom: 2rem;
}

.newsletter-form label {
    display: block;
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.newsletter-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 0;
    color: #fff;
    padding: 10px 5px;
    width: 100%;
    outline: none;
    transition: border-color 0.3s;
}

.newsletter-input:focus {
    border-bottom: 1px solid var(--color-primary);
}

.btn-newsletter {
    background: #0a3108;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-weight: 600;
    transition: all 0.3s;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-newsletter:hover {
    background: var(--color-primary);
    color: #000;
}

/* Social Circles */
.social-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s;
    text-decoration: none !important;
}

.social-circle:hover {
    background: var(--color-primary);
    color: #000;
    transform: translateY(-3px);
    text-decoration: none !important;
}

/* Partner Logos in Footer */
.partner-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.partner-logo-item img {
    max-height: 32px;
    width: auto;
    opacity: 0.6;
    filter: brightness(0) invert(1);
    /* Bílý vzhled v základu */
    transition: all 0.4s ease;
}

.partner-logo-item:hover img {
    opacity: 1;
    filter: none;
    /* Originál při hoveru */
}

/* --- Gallery --- */
.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    height: 250px;
    display: block;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .gallery-item {
        height: 200px;
        margin-bottom: 1.5rem;
    }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(23, 97, 20, 0.4);
    /* Tmavě zelený průhledný overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

/* Skrytí overlaye v CKEditoru pro snadnou editaci obrázku */
.cke_editable .gallery-overlay,
.ge-content[contenteditable="true"] .gallery-overlay {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, .200) !important;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 0;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1.1);
}

/* --- Helpers --- */
.text-primary {
    color: var(--color-secondary) !important;
}

.text-success {
    color: var(--color-tertiary) !important;
}

.text-warning {
    color: var(--color-primary) !important;
}

/* --- Sponsors Carousel --- */
.sponsors-section {
    border-top: 1px solid #f1f1f1;
}

.sponsors-carousel .sponsor-item {
    outline: none;
    padding: 20px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 120px;
    transition: all 0.5s ease;
}

.sponsors-carousel .sponsor-item img {
    max-height: 80px;
    max-width: 100%;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.3;
    transition: all 0.5s ease;
    margin: 0 auto;
    transform: scale(0.8);
}

/* Slick Arrows for Sponsors */
.sponsors-carousel .slick-prev,
.sponsors-carousel .slick-next {
    width: 40px;
    height: 40px;
    z-index: 10;
    transition: all 0.3s ease;
}

.sponsors-carousel .slick-prev {
    left: -50px;
}

.sponsors-carousel .slick-next {
    right: -50px;
}

.sponsors-carousel .slick-prev:before,
.sponsors-carousel .slick-next:before {
    font-family: 'FontAwesome';
    font-size: 30px;
    color: var(--color-secondary);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.sponsors-carousel .slick-prev:before {
    content: "\f104";
    /* fa-angle-left */
}

.sponsors-carousel .slick-next:before {
    content: "\f105";
    /* fa-angle-right */
}

.sponsors-carousel .slick-prev:hover:before,
.sponsors-carousel .slick-next:hover:before {
    opacity: 1;
    color: var(--color-tertiary);
}

@media (max-width: 1200px) {
    .sponsors-carousel .slick-prev {
        left: -10px;
    }

    .sponsors-carousel .slick-next {
        right: -10px;
    }
}

/* Center item highlighting - more robust selectors */
.sponsors-carousel .slick-slide.slick-center .sponsor-item img,
.sponsors-carousel .slick-center img {
    filter: grayscale(0%) !important;
    opacity: 1 !important;
    transform: scale(1.1) !important;
}

.sponsors-carousel .slick-slide.slick-center .sponsor-item {
    z-index: 10;
}

/* Info Box - One line version */
.sponsor-info-box {
    max-width: 1140px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    visibility: hidden;
}

.sponsor-info-box.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.info-horizontal {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50px;
    padding: 10px 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 15px;
}

.info-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 0 !important;
    white-space: nowrap;
}

.info-desc {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0 !important;
    /* Limit to one line if very long text is problematic, but user wants it visible */
}

.info-link {
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.info-link:hover {
    background-color: var(--color-tertiary) !important;
    color: #fff !important;
}


.info-hint {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

/* --- Global Table Overrides --- */
.table td,
.table th {
    vertical-align: middle !important;
    line-height: 1.3;
    /* Tighter line-height to reduce bottom gap */
}

.table td img {
    vertical-align: middle;
    margin-right: 5px;
    /* Add small space between icon and text */
}

.table td a {
    display: inline-block;
    /* Helps with vertical alignment */
    vertical-align: middle;
}

.table td p {
    margin-bottom: 0;
}

/* --- News Archive Premium Styles --- */
.news-card-premium {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px !important;
    border: 1px solid var(--color-secondary) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

.news-card-premium:hover {
    /*transform: translateY(-5px);*/
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.news-card-image-wrapper {
    min-height: 180px;
    overflow: hidden;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
}

@media (max-width: 767.98px) {
    .news-card-image-wrapper {
        min-height: 160px;
        border-bottom-left-radius: 0;
        border-top-right-radius: 15px;
    }
}

.news-card-img {
    height: 100%;
    min-height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.5s ease;
}

.news-card-premium:hover .news-card-img {
    transform: scale(1.05);
}

.badge-yellow {
    background-color: var(--color-primary);
    color: #000;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 5px;
}

.bg-yellow-highlight {
    background-color: rgba(249, 194, 0, 0.3);
}

.btn-green-outline {
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
    font-weight: 700;
    padding: 10px 25px;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.btn-green-outline:hover {
    background-color: var(--color-secondary);
    color: #fff;
    text-decoration: none;
}

.news-actions .hover-primary:hover {
    color: var(--color-secondary) !important;
}

.news-content {
    color: #555;
    line-height: 1.8;
}

.news-content-compact {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /*margin-bottom: 3.5rem !important;  Space for absolute button */
}

.news-archive-actions-top {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
}

.small-icon-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    color: #d6d8da;
    font-size: 10px;
    transition: all 0.2s;
    border-radius: 4px;
}

.small-icon-action:hover {
    color: var(--color-secondary);
    background: rgba(0, 0, 0, 0.03);
    text-decoration: none;

}

.hover-green:hover {
    color: var(--color-secondary) !important;
    text-decoration: none;
}

@media (max-width: 767.98px) {
    .news-card-image-wrapper {
        min-height: 160px;
    }

    .news-card-img {
        min-height: 160px;
    }

    .news-content-compact {
        margin-bottom: 3.5rem !important;
    }
}

/* Footer Contact Links Hover Effects */
.contact-mini a {
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-mini a:hover {
    color: var(--color-primary) !important;
    transform: translateX(5px);
    text-decoration: none !important;
}

/* --- Sitemap Tree View --- */
.sitemap-tree {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.sitemap-tree ul {
    list-style: none;
    padding-left: 20px;
    margin-left: 10px;
    position: relative;
}

/* Styl pro položky vnořeného seznamu (čáry) */
.sitemap-tree ul li {
    position: relative;
    padding: 5px 0 5px 25px;
}

.sitemap-tree ul li::before {
    /* Vodorovná čára */
    content: '';
    position: absolute;
    top: 15px;
    /* Doladit podle výšky řádku */
    left: -15px;
    /* Posun do paddingu */
    width: 20px;
    border-top: 1px solid #ccc;
}

.sitemap-tree ul li::after {
    /* Svislá čára */
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -15px;
    border-left: 1px solid #ccc;
}

.sitemap-tree ul li:last-child::after {
    height: 16px;
    /* Zkrátí svislou čáru u posledního prvku (končí v místě vodorovné) */
}

/* Hlavní položky (Level 0) */
.sitemap-tree>li>a {
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
    margin-bottom: 5px;
    margin-top: 10px;
}

/* Hlavní položky nemají čáry, pokud nejsou vnořené */
.sitemap-tree>li::before,
.sitemap-tree>li::after {
    display: none;
}

.sitemap-tree>li {
    padding-left: 0;
}


/* Odkazy */
.sitemap-tree li a {
    position: relative;
    top: -2px;
    /* Barva se dědí z globálního 'a' */
}

/* Články */
.sitemap-article-link {
    font-size: 0.95em;
    opacity: 0.9;
}

/* Footer Bottom Links Hover Effects (Sitemap, Copyright etc.) */
footer .mt-3 a.text-white-50,
footer .text-center a.text-white-50 {
    transition: all 0.3s ease;
    display: inline-block;
}

footer .mt-3 a.text-white-50:hover,
footer .text-center a.text-white-50:hover {
    color: var(--color-primary) !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* Odsazení poslední položky menu a nastylování jako button (umístění vpravo, menu uprostřed) */
@media (min-width: 992px) {
    #mainNav .navbar-nav {
        width: 100%;
    }

    #mainNav .navbar-nav>li:first-child {
        margin-left: auto;
    }

    #mainNav .navbar-nav>li:nth-last-child(2) {
        margin-right: auto;
    }

    #mainNav .navbar-nav .custom-nav-last-item {
        position: static !important;
        transform: none;
        margin-left: 0 !important;
    }
}

/* --- Footer Bottom Links --- */
.footer-bottom-links {
    line-height: 1.8;
    /* Lepší výška řádku pro čitelnost při zalomení */
}

.footer-bottom-links a {
    margin: 0;
    text-decoration: none;
    white-space: nowrap;
    font-size: 0.85rem;
    /* Menší písmo */
    opacity: 0.8;
}

/* Tečka před každým odkazem kromě prvního */
.footer-bottom-links a:not(:first-child)::before {
    content: "•";
    display: inline-block;
    margin-left: 6px;
    /* Menší mezera */
    margin-right: 6px;
    color: rgba(255, 255, 255, 0.3);
    /* Jemná tečka */
}

/* Úprava pro mobilní zobrazení - menší mezery */
@media (max-width: 576px) {
    .footer-bottom-links a:not(:first-child)::before {
        margin-left: 4px;
        margin-right: 4px;
    }
}

/* -------------------------------------------------------------------------
   GLOBAL MODAL DESIGN OVERRIDES (ADMIN REQUESTED)
   ------------------------------------------------------------------------- */

/* Custom modal body design: light grey background */
.modal-body {
    background-color: #f4f7f6 !important;
}

/* White background for editable fields in modals for better focus */
.modal-content .form-control,
.modal-content select,
.modal-content textarea,
.modal-content .input-group-text {
    background-color: #ffffff !important;
    border: 1px solid #ced4da !important;
    color: #495057 !important;
}

/* Darker labels for better legibility against grey modal-body background */
.modal-content label {
    color: #555 !important;
}

/* --- CKEditor Collapsible Item Styles --- */
.card.collapsible-item {
    border-color: var(--color-secondary);
    overflow: hidden;
    margin-bottom: 1rem;
}

.card-header.collapsible-item-heading {
    background-color: var(--color-secondary);
    border-bottom: none;
    padding: 0;
    /* Padding přesuneme na h5 pro lepší flexbox alignment */
}

.card-header.collapsible-item-heading h5 {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
    /* Přehodíme pořadí: Text vlevo, Ikona vpravo */
    padding: 12px 15px;
}

/* Odkazy v hlavičce (Nadpis + Šipka) */
.collapsible-item-title-link {
    color: #fff !important;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-grow: 1;
    font-weight: bold;
    font-size: 1.1rem;
}

.collapsible-item-title-link-text {
    color: #fff !important;
}

.collapsible-item-title-link:hover,
.collapsible-item-title-link-icon:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* --- Premium Fade & Slide Arrow Effect --- */
.collapsible-item-title-link-icon {
    color: #fff !important;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 20px;
    height: 20px;
    position: relative;
    float: none !important;
    /* Zrušíme float, flexbox to vyřeší lépe */
    margin-left: 15px;
}

.collapsible-item-title-link-icon .fa {
    display: none;
    /* Skryjeme původní statický obsah */
}

/* Společný styl pro obě šipky */
.collapsible-item-title-link-icon::before,
.collapsible-item-title-link-icon::after {
    font-family: 'FontAwesome';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    color: #fff;
    font-size: 16px;
    line-height: 1;
}

/* Symboly šipek */
.collapsible-item-title-link-icon::before {
    content: "\f078";
    /* fa-chevron-down */
}

.collapsible-item-title-link-icon::after {
    content: "\f077";
    /* fa-chevron-up */
}

/* ZAVŘENO: Viditelná šipka DOLŮ */
.collapsible-item-title-link-icon.collapsed::before {
    opacity: 1;
    transform: translate(-50%, -50%);
    /* Je na svém místě */
}

/* ZAVŘENO: Schovaná šipka NAHORU (je nad pozicí) */
.collapsible-item-title-link-icon.collapsed::after {
    opacity: 0;
    transform: translate(-50%, -100%);
}

/* OTEVŘENO: Schovaná šipka DOLŮ (odjede dolů) */
.collapsible-item-title-link-icon:not(.collapsed)::before {
    opacity: 0;
    transform: translate(-50%, 0%);
}

/* OTEVŘENO: Viditelná šipka NAHORU (přijede na místo) */
.collapsible-item-title-link-icon:not(.collapsed)::after {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.collapsible-item-body {
    padding: 20px;
    background: #fff;
}

/* --- Global Table Styling --- */


.table thead th {
    background-color: var(--color-secondary);
    color: #ffffff;
    border-bottom: 3px solid var(--color-primary);
    border-top: none;
    vertical-align: middle;
}

.table td,
.table th {
    border-color: var(--color-tertiary);
}

.table-bordered {
    border: 2px solid var(--color-secondary);
}

/* Base striped/hover adjustments to match brand colors when no other theme overrides them */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(23, 97, 20, 0.05);
}

.table-hover tbody tr:hover {
    background-color: rgba(129, 217, 130, 0.15);
}

/* --- Styly v templates (CKEDITOR) --- */

/* 1) feature-box */
/* --- Univerzální systém pro feature-box --- */

/* Základ (Společné pro všechny varianty) */
.feature-box {
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 5px solid var(--color-primary);
    box-shadow: var(--shadow-soft);
    position: relative;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

/* Společný hover efekt pro všechny feature-boxy */
.feature-box:hover {
    box-shadow: var(--shadow-hover);
    transform: translateX(5px);
}

/* Společný základ pro odkaz */
.feature-box a.stretched-link {
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* --- Varianta 1 (Světlý design) --- */
.feature-box-1 {
    background: #fff;
    color: #333;
}

.feature-box-1 a.stretched-link {
    color: var(--color-secondary);
}

.feature-box-1 a.stretched-link:hover {
    color: var(--color-tertiary);
}

/* --- Varianta 2 (Tmavý / Brand design) --- */
.feature-box-2 {
    background: var(--color-secondary);
    color: #fff;
}

.feature-box-2 a.stretched-link {
    color: #fff;
}

.feature-box-2 a.stretched-link:hover {
    color: var(--color-primary);
}




/* 2) single-widget */
.single-widget {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.single-widget .widget-title {
    background: var(--color-secondary);
    color: #fff;
    padding: 12px 20px;
    margin: 0;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.single-widget .widget-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.single-widget .widget-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.single-widget:hover .widget-img img {
    transform: scale(1.05);
}

.single-widget .widget-body {
    padding: 20px;
}

.single-widget .widget-body p {
    margin-bottom: 0;
    color: #555;
    font-size: 0.95rem;
}

/* 3) service service-style-3 */
.service.service-style-3 {
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.service.service-style-3:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-style-3 .service-thumb {
    position: relative;
}

.service-style-3 .service-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.service-style-3 .service-href {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(23, 97, 20, 0.85);
    /* Tmavě zelený průhledný pruh */
    backdrop-filter: blur(4px);
    color: #fff !important;
    padding: 15px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 1px;
    text-decoration: none !important;
    transition: background 0.3s;
}

.service-style-3:hover .service-href {
    background: var(--color-primary);
    color: #000 !important;
}

/* 4) Employee Photo Style */
.photo-wrapper {
    width: 100%;
    max-width: 240px;
    /* Mírně zmenšeno pro lepší proporce */
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    /* DŮLEŽITÉ: skryje rohy obrázku */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    box-shadow: 8px 8px 0 var(--color-secondary);
    border: 5px solid #fff;
    position: relative;
    left: -4px;
    /* KOMPENZACE STÍNU: Posune vizuální střed kruhu nad střed textu */
    transition: all 0.3s ease;
    background: #fff;
    /* Pozadí pod avatarem */
}

.photo-wrapper:hover {
    transform: scale(1.03);
    box-shadow: 10px 10px 0 var(--color-secondary);
}

.photo-wrapper .photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* --- Global Fancybox Image Hover Effect --- */
/* Selects any <a> that has data-fancybox attribute AND contains an image directly (using basic CSS) */
/* Note: :has() is supported in modern browsers (Chrome 105+, Firefox 121+, Safari 15.4+) */
/* EXCLUDING .gallery-item to prevent breaking gallery layout */

a[data-fancybox]:not(.gallery-item):has(img),
a[rel="lightbox"]:not(.gallery-item):has(img) {
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 4px;
    overflow: hidden;
    vertical-align: top;
}

/* Hover State */
a[data-fancybox]:not(.gallery-item):has(img):hover,
a[rel="lightbox"]:not(.gallery-item):has(img):hover {
    transform: translateY(-2px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
    z-index: 2;
}

/* Dark overlay and Icon on hover */
a[data-fancybox]:not(.gallery-item):has(img)::after,
a[rel="lightbox"]:not(.gallery-item):has(img)::after {
    content: '\f00e';
    /* FontAwesome search-plus */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* Jemný tmavý filtr */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

a[data-fancybox]:not(.gallery-item):has(img):hover::after,
a[rel="lightbox"]:not(.gallery-item):has(img):hover::after {
    opacity: 1;
}

/* Image styles inside the link */
a[data-fancybox]:not(.gallery-item):has(img) img,
a[rel="lightbox"]:not(.gallery-item):has(img) img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

/* Slight Zoom on hover */
a[data-fancybox]:not(.gallery-item):has(img):hover img,
a[rel="lightbox"]:not(.gallery-item):has(img):hover img {
    transform: scale(1.02);
}

/* --- Scroll to Top Button --- */
#scrollUp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2147483647;
    width: 45px;
    background-color: var(--color-secondary);
    color: #fff;
    text-align: center;
    border-radius: 4px;
    font-size: 24px;
    cursor: pointer;
    line-height: 45px;
    height: 45px;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.5);
    /* Start small */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy pop effect */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#scrollUp:hover {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    transform: scale(1.1);
    /* Slight grow on hover */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#scrollUp.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    /* Popped in size */
}

/* --- Scroll to Top Button --- */
.scroll-top-wrapper {
    position: fixed;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    text-align: center;
    z-index: 999999;
    background-color: var(--color-primary, #0047b3);
    color: #ffffff;
    width: 50px;
    height: 50px;
    line-height: 50px;
    right: 30px;
    bottom: 30px;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.scroll-top-wrapper.show {
    visibility: visible;
    opacity: 1;
}

.scroll-top-wrapper:hover {
    background-color: var(--color-secondary, #003380);
    transform: translateY(-5px);
}

.scroll-top-inner i {
    font-size: 24px;
    vertical-align: middle;
}

/* --- Sticky Navbar Fix --- */
#navbar.fixed-top {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 2000 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease;
}

/* Ensure navbar transitions smooth */
.navbar {
    transition: padding 0.3s ease, background-color 0.3s ease;
}

/* --- Admin Bar adjustments for fixed navbar --- */
body.admin-logged-in {
    padding-top: 152px !important;
    /* Increase total padding to account for BOTH bars */
}

body.admin-logged-in #navbar.fixed-top {
    top: 152px !important;
    /* Push navbar below the admin bar (approx 130px) */
    z-index: 1025 !important;
    /* Just below admin bar (1030) but above everything else */
}

/* Ensure the navbar-admin-dole class mentioned by user is also available if needed */
.navbar-admin-dole {
    top: 130px !important;
}
/* --- Search Icon in Menu --- */
.nav-search-item .nav-link {
    color: #ffffff !important;
    font-size: 1.1rem;
    padding: 10px 15px !important;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-search-item .nav-link:hover {
    transform: scale(1.2);
    color: var(--color-primary, #f9c200) !important;
    opacity: 0.9;
}

/* Adjust button margin if search icon is present */
.custom-nav-last-item {
    margin-right: 20px !important;
}
