:root {
    /* Legacy Variable Support for Admin / Modal Styles */
    --color-primary: var(--accent);
    --color-secondary: var(--primary);
    --primary-color: var(--primary);
    --accent-color: var(--accent);

    /* Semantic Color System - Rokytnická Voda Theme */
    --primary: #1B77AD;
    /* Primary Blue - Slides, Headings */
    --primary-light: #2CB2DF;
    /* Lighter Blue */
    --primary-dark: #0A213B;
    /* Deep Water Blue */
    --accent: #2CB2DF;
    /* Cyan Accent */
    --water-glow: #00D5FF;
    /* Neon Water Glow */
    --bg-light: #F8FAFB;
    /* Off-white background */
    --white: #ffffff;
    --text-main: #0C1824;
    --text-muted: rgba(255, 255, 255, 0.7);

    /* Fonts */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --shadow-soft: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-water: 0 4px 20px -4px rgba(13, 98, 162, 0.25);

    /* Gradients */
    --gradient-water: linear-gradient(135deg, var(--primary), var(--accent));
    --gradient-hero-overlay: linear-gradient(to right, rgba(10, 33, 59, 0.88), rgba(27, 119, 173, 0.5));
}

/* --- Base --- */
html {
    scroll-behavior: smooth;
}

body.taborenka-theme {
    font-family: var(--font-body);
    font-size: 1rem;
    /* Reset to standard size */
    line-height: 1.6;
    color: #333;
    padding-top: 100px;
    /* Buffer for fixed header */
}

@media (max-width: 991px) {
    body.taborenka-theme {
        padding-top: 70px;
        /* Smaller buffer for mobile */
    }
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    color: var(--accent);
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand span,
.hero-title,
.hero-tagline {
    font-family: var(--font-heading);
    color: var(--primary);
    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(--accent) !important;
    border-bottom: none !important;
    color: var(--primary) !important;
    font-weight: 600;
}

.top-bar .container-fluid {
    padding-left: 2rem;
    padding-right: 2rem;
}

.top-bar a {
    color: var(--primary) !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(--primary) !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;
}

/* Water Theme Utilities */
.water-gradient-bg {
    background: var(--gradient-water);
}

.water-gradient-text {
    background: var(--gradient-water);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-water {
    background: #fff;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-water:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.text-water-glow {
    color: var(--water-glow);
    text-shadow: 0 0 10px rgba(0, 213, 255, 0.3);
}

/* 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(--accent);
    border: 2px solid var(--accent);
    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: #E5B41F;
    border-color: #E5B41F;
    transform: translateY(-1px);
    text-decoration: none;
    color: #000;
}

.btn-main.active {
    background-color: var(--bg-menu-hover);
    border-color: var(--bg-menu-hover);
    transform: translateY(-1px);
    text-decoration: none;
    color: #000;
}

.btn-green-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
}

.btn-green-outline:hover {
    background: var(--primary);
    color: #fff;
    text-decoration: none;
}

/* --- Anchor Links / Internal Navigation --- */
.anchor-nav-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 1.5rem 0;
}

/* Ensure CKEditor <p> wrapping doesn't break flex layout */
.anchor-nav-wrapper p {
    display: contents;
    margin: 0;
}

@media (max-width: 767px) {
    .anchor-nav-wrapper {
        flex-direction: column;
        gap: 8px;
    }
    
    .anchor-nav-wrapper .btn {
        width: 100% !important;
        margin-right: 0 !important;
        text-align: left !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.8rem 1.25rem;
    }
    
    .anchor-nav-wrapper .btn::after {
        content: '\f105'; /* fa-chevron-right */
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        margin-left: 10px;
        opacity: 0.5;
        font-size: 0.8em;
    }
}

/* 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(--primary);
    border-color: #fff;
    transform: translateY(-1px);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

#header-wrapper.header--scrolled {
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
}

#header-wrapper.header--unpinned {
    transform: translateY(-100%);
}

/* Admin Panel Overlap Fix */
#ukladaci_panel {
    z-index: 3000 !important;
}

/* Modal Z-index Fix (Must be above header/admin panel) */
.modal {
    z-index: 4000 !important;
}

.modal-backdrop {
    z-index: 3990 !important;
}

body.admin-logged-in #header-wrapper {
    top: 152px !important;
}

/* Brand Link */
.brand-link {
    text-decoration: none !important;
    color: inherit !important;
    transition: opacity 0.2s;
}

.brand-link:hover {
    opacity: 0.9;
}

/* Ensure body padding is correct if not already in admin.css */
body.admin-logged-in {
    padding-top: calc(152px + 104px) !important;
}

/* --- Top Info Bar --- */
.top-info-bar {
    background-color: #1A74AB;
    color: #fff;
    font-size: 0.85rem;
}

.top-info-bar a {
    color: #fff;
    transition: opacity 0.2s;
}

.top-info-bar a:hover {
    opacity: 0.8;
}

/* --- Main Header / Brand --- */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Header Brand & Icons */
.top-brand-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.brand-logo-text {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.brand-emblem {
    height: 65px;
    /* SIGHTLY LARGER AS IN DESIGN */
    width: auto;
    object-fit: contain;
}

.brand-name {
    color: #fff;
    font-size: 1.3rem;
    /* Clean size */
    font-family: var(--font-heading);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.header-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.header-icons a {
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.2s;
    opacity: 0.8;
}

.header-icons a:hover {
    color: var(--accent);
    opacity: 1;
}

/* The original .top-brand-bar .brand-logo-text img is removed as it's replaced by .brand-emblem */
/* The original .top-right-icons is removed as it's replaced by .header-icons */

/* Lighter blue nav bar - MATCHING DESIGN BETTER */
.main-nav-bar {
    background-color: var(--primary-light);
    /* #3C8ADD - Medium blue */
    padding: 0;
    z-index: 1000;
    position: relative;
    min-height: 50px;
}

@media (max-width: 991px) {
    .navbar-toggler {
        border: 1px solid rgba(255, 255, 255, 0.4) !important;
        padding: 8px 10px;
        margin-right: 15px;
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.05);
        transition: all 0.3s ease;
    }

    .navbar-toggler:hover {
        background: rgba(255, 255, 255, 0.15);
    }
}

.hamburger-icon {
    width: 26px;
    height: 18px;
    position: relative;
    transform: rotate(0deg);
    transition: .5s ease-in-out;
    cursor: pointer;
}

.hamburger-icon span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #ffffff;
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger-icon span:nth-child(1) {
    top: 0px;
}

.hamburger-icon span:nth-child(2) {
    top: 8px;
}

.hamburger-icon span:nth-child(3) {
    top: 16px;
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
    opacity: 0;
    left: -40px;
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

.navbar {
    padding: 0 !important;
    box-shadow: none !important;
    height: auto !important;
}

/* Hero Section - Water Drop Design */
.hero-transition-section {
    position: relative;
    height: 700px;
    background-color: var(--primary-dark);
    overflow: hidden;
    margin-top: 0;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    transition: opacity 1s ease-in-out;
    opacity: 0;
}

.hero-slide-bg.active {
    opacity: 1;
}

.hero-content-slider {
    width: 60%;
    z-index: 25;
}

@media (max-width: 991px) {
    .hero-content-slider {
        width: 100%;
        margin-top: 50px;
    }
}

/* Text Enhancements */
.hero-title {
    text-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.hero-subtitle {
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-actions .btn {
    transition: all 0.3s;
}

.hero-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3) !important;
}

/* Text Slider Styles */
.hero-text-slides {
    position: relative;
    min-height: 250px;
    /* Ensure space for content */
    margin-bottom: 2rem;
}

.hero-text-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-out;
    transform: translateY(10px);
}

.hero-text-slide.active {
    position: relative;
    /* Take up space when active */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hero-slide.active {
    opacity: 1 !important;
    transform: none !important;
}

.hero-slide.inactive {
    opacity: 0 !important;
    transform: scale(1.05) !important;
}

/* Navigation Dots */
.hero-indicator-dots {
    display: flex;
    gap: 0.5rem;
    margin-top: 2rem;
}

.indicator-dot {
    height: 8px;
    width: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
    border: none;
    padding: 0;
    cursor: pointer;
}

.indicator-dot:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.indicator-dot.active {
    width: 32px;
    background-color: var(--accent);
    /* Yellow accent */
    border-radius: 4px;
}

.hero-image-nav {
    position: absolute;
    left: 0;
    right: 0;
    /* Center in visible area, accounting for header and admin bar visibility */
    top: calc(50% + 80px);
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    padding: 0;
    pointer-events: none;
}

.hero-image-nav .hero-nav-btn:first-child {
    margin-left: calc(42% + 6rem);
}

.hero-image-nav .hero-nav-btn:last-child {
    margin-right: 1.5rem;
}

@media (max-width: 767px) {
    .hero-image-nav .hero-nav-btn:first-child {
        margin-left: 1rem;
    }

    .hero-image-nav .hero-nav-btn:last-child {
        margin-right: 1rem;
    }

    .hero-image-nav {
        top: calc(100% - 180px);
        /* Center on image on mobile */
    }
}

.hero-nav-btn {
    pointer-events: auto;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 50;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 1rem;
}

.hero-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.hero-indicator-dots {
    display: flex;
    gap: 0.5rem;
    z-index: 50;
}

.indicator-dot {
    height: 8px;
    width: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s;
    border: none;
    padding: 0;
    cursor: pointer;
}

.indicator-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.indicator-dot.active {
    width: 30px;
    background-color: var(--water-glow);
    border-radius: 4px;
}
.search-form-header {
    display: flex;
    align-items: center;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 0 5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-right: 1rem;
}

.search-form-header:hover,
.search-form-header:focus-within {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.search-input {
    width: 0;
    border: none;
    background: transparent;
    color: #fff;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    outline: none !important;
    box-shadow: none !important;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-form-header:hover .search-input,
.search-input:focus {
    width: 160px;
    padding: 0 10px;
}

.search-toggle-btn {
    background: transparent;
    border: none;
    color: #fff;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.search-toggle-btn:hover {
    color: var(--accent);
}

/* --- Mega Menu Styling (Desktop Only) --- */
@media (min-width: 992px) {
    .navbar-nav {
        width: 100%;
        justify-content: flex-end;
        gap: 0.25rem;
    }

    /* Important: static position on parent to allow full-width absolute child */
    .nav-item.dropdown {
        position: static !important;
    }

    .nav-link {
        color: #1A202C !important;
        font-weight: 500;
        font-size: 0.95rem;
        padding: 0.5rem 1.25rem !important;
        border-radius: 9999px; /* Pill shape */
        transition: all 0.2s ease;
    }

    .nav-item.active .nav-link,
    .nav-item.show .nav-link,
    .nav-link:hover {
        background-color: var(--primary) !important;
        color: #fff !important;
    }

    .nav-link-text {
        position: relative;
        display: inline-block;
    }

    /* Chevron Rotation - Only when item has .show class */
    .nav-item.show .nav-link .fa-chevron-down {
        transform: rotate(180deg);
    }

    .nav-link .fa-chevron-down {
        color: var(--accent);
        font-size: 0.7rem;
        transition: transform 0.3s ease;
        opacity: 0.8;
    }

    /* Hide default Bootstrap caret */
    .navbar-nav .dropdown-toggle::after {
        display: none !important;
    }

    /* MEGA MENU CONTENT - Specific to navbar to avoid conflicts with GridEditor */
    .navbar-nav .dropdown-menu {
        background-color: var(--bg-submenu);
        border: none;
        border-radius: 0;
        width: 100vw;
        max-width: none;
        left: 50% !important;
        right: auto !important;
        top: 100% !important;
        padding: 1rem 12% !important;
        margin: 0px;
        box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.4);
        display: none;
        flex-wrap: wrap;
        justify-content: center;
        border-top: none;
        transform: translateX(-50%);
        transition: none !important;
        animation: none !important;
        opacity: 1 !important;
    }

    .navbar-nav .nav-item.show .dropdown-menu,
    .navbar-nav .dropdown-menu.show {
        display: flex !important;
    }

    .navbar-nav .dropdown-item {
        color: #fff !important;
        padding: 12px 20px !important;
        font-weight: 500;
        font-size: 0.95rem;
        border: none !important;
        background: #2468B3 !important;
        margin: 3px;
        border-radius: 4px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: calc(22% - 12px);
        transition: none !important;
        animation: none !important;
        text-align: center;
        white-space: normal !important;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav .dropdown-item:hover {
        background: #F4C025 !important;
        color: #0B4A8E !important;
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }
}

/* --- Mobile Menu Styles --- */
@media (max-width: 991px) {
    .navbar-toggler:focus {
        outline: none !important;
        box-shadow: none !important;
    }

    .navbar-collapse {
        background-color: var(--primary-light);
        /* Hlavní barva menu */
        margin-top: 0;
        border-top: none;
        padding: 0;
        max-height: 80vh;
        overflow-y: auto;
    }

    .navbar-nav {
        flex-direction: column;
        padding: 0;
        margin: 0;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-link {
        padding: 1rem 1.5rem !important;
        color: #fff !important;
        text-transform: uppercase;
        font-weight: 700;
        display: block;
        /* Změna z flex na block pro zrušení space-between */
        font-size: 1.1rem;
    }

    /* Skrytí duplicitní šipky na pravém kraji */
    .nav-link .fa-chevron-down {
        display: inline-block !important;
        /* Necháme jen tu u textu */
        margin-left: 10px;
    }

    /* Pokud Bootstrap přidává caret přes ::after, skryjeme ho */
    .navbar-nav .dropdown-toggle::after {
        display: none !important;
    }

    .navbar-nav .dropdown-menu {
        background: var(--bg-submenu) !important;
        /* Specifická barva pro podmenu */
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
    }

    .navbar-nav.show .dropdown-menu,
    .navbar-nav .nav-item.show .dropdown-menu,
    .navbar-nav .dropdown-menu.show {
        display: block !important;
    }

    .navbar-nav .dropdown-item {
        padding: 0.8rem 2.5rem !important;
        background: transparent !important;
        color: rgba(255, 255, 255, 0.8) !important;
        font-weight: 500;
        text-align: left;
        width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        justify-content: flex-start !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        display: block !important;
    }

    .nav-link-text::before {
        display: none !important;
    }
}


/* --- 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 */
    }

    /* 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) */

/* --- Sections --- */
section {
    padding: 4rem 0;
}

/* Background Utilities */
.bg-druhe-col {
    background-color: var(--bg-light);
}

.bg-soft-yellow {
    background-color: var(--bg-light);
    border-top: 1px solid #faebcc;
    border-bottom: 1px solid #faebcc;
}

.bg-soft-green {
    background-color: var(--bg-light);
    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(--accent);
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: black;
}

/* --- Mobile Optimizations for Hero Section --- */
@media (max-width: 767px) {
    .navbar-toggler {
        position: absolute;
        right: 0;
        top: 5px;
        z-index: 1100;
    }

    .main-nav-bar {
        height: 50px;
        /* Fixed height for the bar portion only */
    }

    .hero-content-side {
        padding-top: 140px !important;
        /* Zvýšeno pro mobil */
        padding-bottom: 2rem;
    }

    body.admin-logged-in .hero-content-side {
        padding-top: 280px !important;
        /* Výrazné zvýšení pro adminy */
    }

    .hero-inner-content {
        padding: 1rem 1rem !important;
    }

    .hero-text-slides {
        min-height: 160px;
        margin-bottom: 1rem;
    }

    .hero-tagline {
        font-size: 0.7rem !important;
        letter-spacing: 0.5px !important;
        margin-bottom: 0.5rem !important;
    }

    .hero-text-slide h1 {
        font-size: 1.6rem !important;
        line-height: 1.1 !important;
        margin-bottom: 0.8rem !important;
    }

    .hero-text-slide .lead {
        font-size: 0.9rem !important;
        margin-bottom: 1.2rem !important;
        line-height: 1.4 !important;
    }

    .hero-inner-content .btn {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.85rem !important;
        margin-right: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    .hero-indicator-dots {
        margin-top: 1.5rem;
    }

    .hero-transition-section {
        height: auto !important;
    }
}

/* --- 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(--primary), var(--primary-light));
    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(--primary-light);
}

.feature-card:hover::before {
    opacity: 0.03;
    /* Very subtle tint on hover */
}

.icon-box {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    color: var(--primary);
    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(--accent);
    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(--primary);
    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(--primary);
}

.term-date {
    display: inline-block;
    background: var(--bg-light);
    color: var(--primary);
    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%;
    /* 16:9 Aspect Ratio */
    position: relative;
    overflow: hidden;
    background-color: #f5f5f5;
    border-radius: 11px 11px 0 0;
}

.news-img-wrapper img {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
    transition: transform 0.5s ease;
    transform-origin: bottom;
}

.news-card:hover .news-img-wrapper img {
    transform: scale(1.05);
}

.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(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

.news-title-link:hover {
    color: var(--primary-light);
    text-decoration: none;
}

.news-btn-corner {
    position: absolute;
    right: -1px;
    bottom: -1px;
    background: var(--accent);
    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: 12px;
    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: var(--primary-dark);
    /* Deep water blue */
    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(--accent);
}

.footer-title {
    color: var(--accent);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    color: #fff !important;
    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(--accent);
    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(--accent);
}

.btn-newsletter {
    background: var(--bg-light);
    color: var(--primary);
    /* Přechod na světlé pozadí s tmavým písmem */
    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(--accent);
    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(--accent);
    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: color-mix(in srgb, var(--primary-light), transparent 60%);
    /* průhledný overlay založený na proměnné */
    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(--primary) !important;
}

.text-success {
    color: var(--primary-light) !important;
}

.text-warning {
    color: var(--accent) !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(--primary);
    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(--primary-light);
}

@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(--primary);
    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(--primary-light) !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(--primary) !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 bottom;
    position: relative;
    transition: transform 0.5s ease;
}

.news-card-premium:hover .news-card-img {
    transform: scale(1.05);
}

.badge-yellow {
    background-color: var(--accent);
    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(--primary);
    color: var(--primary);
    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(--primary);
    color: #fff;
    text-decoration: none;
}

.news-actions .hover-primary:hover {
    color: var(--primary) !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(--primary);
    background: rgba(0, 0, 0, 0.03);
    text-decoration: none;

}

.hover-green:hover {
    color: var(--primary) !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(--accent) !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(--accent) !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(--primary);
    overflow: hidden;
    margin-bottom: 1rem;
}

.card-header.collapsible-item-heading {
    background-color: var(--primary);
    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(--primary);
    color: #ffffff;
    border-bottom: 3px solid var(--accent);
    border-top: none;
    font-style: italic;
    vertical-align: middle;
    font-size: 0.8rem;
}

.table td,
.table th {
    border-color: var(--primary-light);
}

.table-bordered {
    border: 2px solid var(--primary);
}

/* Base striped/hover adjustments to match brand colors when no other theme overrides them */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: color-mix(in srgb, var(--primary-light), transparent 95%);
}

.table-hover tbody tr:hover {
    background-color: var(--bg-light);
}

/* --- 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(--accent);
    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(--primary);
}

.feature-box-1 a.stretched-link:hover {
    color: var(--primary-light);
}

/* --- Varianta 2 (Tmavý / Brand design) --- */
.feature-box-2 {
    background: var(--primary);
    color: #fff;
}

.feature-box-2 a.stretched-link {
    color: #fff;
}

.feature-box-2 a.stretched-link:hover {
    color: var(--accent);
}




/* 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(--primary);
    color: #fff !important;
    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: color-mix(in srgb, var(--primary), transparent 15%);
    /* Průhledný pruh založený na proměnné */
    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(--accent);
    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(--primary);
    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(--primary);
}

.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(--primary);
    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(--accent);
    color: var(--primary);
    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 */
}

/* --- Additional Theme Overrides --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary) !important;
}

.hero-section h1 {
    color: #fff !important;
}

.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.text-warning,
.text-accent {
    color: var(--accent) !important;
}

.bg-warning,
.bg-accent {
    background-color: var(--primary) !important;
}

.footer-section {
    background-color: var(--primary-dark) !important;
}

.news-btn-corner {
    background-color: var(--accent) !important;
}

/* --- Subpage Banner Styles --- */
.subpage-banner {
    position: relative;
    height: 300px;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 0;
}

.subpage-banner .hero-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.subpage-banner .hero-slanted-overlay {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background-color: var(--primary);
    width: 45%;
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
    z-index: 2;
    opacity: 0.9;
}

.subpage-banner h1 {
    position: relative;
    z-index: 3;
    color: #fff !important;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@media (max-width: 767px) {
    .subpage-banner .hero-slanted-overlay {
        width: 100%;
        clip-path: none;
        background: linear-gradient(to bottom, rgba(11, 74, 142, 0.9), rgba(11, 74, 142, 0.4));
    }
}

/* --- Hero Slider Progress Bar --- */
.hero-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 100;
    overflow: hidden;
}

.hero-progress-fill {
    height: 100%;
    width: 0;
    background-color: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

/* --- Department Cards --- */
.dept-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--bg-menu-hover);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    /* Default shadow */
    position: relative;
    /* For stretched-link */
    display: flex;
    flex-direction: column;
}

.dept-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12) !important;
    border: 1px solid var(--primary-light);
    /* Primary border on hover */
}

.dept-image-container {
    height: 180px;
    /* Reduced height as requested */
}

.dept-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.dept-card:hover .dept-card-img {
    transform: scale(1.08);
}

.dept-capacity-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--primary-light);
    color: #fff;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.dept-card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.dept-card-title {
    color: var(--primary);
    line-height: 1.3;
    font-size: 1.05rem;
}

.dept-card-text {
    line-height: 1.6;
    color: #666;
    flex-grow: 1;
}

.dept-more-link {
    color: var(--primary-light) !important;
    text-decoration: none !important;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    align-self: flex-end;
    /* Push to right */
    margin-top: auto;
}

.dept-more-link i,
.dept-more-link span {
    transition: transform 0.3s ease;
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dept-card:hover .dept-more-link i,
.dept-card:hover .dept-more-link span {
    transform: translateX(5px);
}

.transition-all {
    transition: all 0.3s ease;
}

/* --- Kompaktní a zarovnané karty (GridEditor fix) --- */
.dept-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0 !important;
}

.dept-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.25rem !important;
}

/* Tlačí odkaz dolů, ale bez zbytečné mezery, pokud není text dlouhý */
.dept-card-body>div:last-child {
    margin-top: auto;
    padding-top: 1rem;
}

.dept-card-title {
    margin-bottom: 0.75rem !important;
}

.dept-card-text {
    margin-bottom: 0.5rem !important;
    line-height: 1.4;
    font-size: 0.95rem;
}

/* Povolíme standardní Bootstrap h-100 fix pro zobrazení (uložený stav) */
.row:has(.dept-card) {
    display: flex;
    flex-wrap: wrap;
}

.row .column:has(.dept-card) {
    display: flex;
    align-items: stretch;
}

/* Cíl: div, který obaluje kartu */
.row .column:has(.dept-card) div:has(.dept-card) {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* OPRAVA PRO GRIDEDITOR: V editoru vypneme flexbox na úrovni sloupců, 
   protože GridEditor počítá šířky sloupců a pozice ikon s předpokladem block/float layoutu. */
.ge-canvas .column:has(.dept-card) {
    display: block !important;
}

.ge-canvas .column:has(.dept-card) div:has(.dept-card) {
    display: block !important;
    height: auto !important;
}

/* Vypnutí stretched-link v GridEditoru pro editaci textu */
[class^="ge-"] .stretched-link::after {
    display: none !important;
    pointer-events: none !important;
}

/* --- Global Blockquote Styles --- */
blockquote {
    position: relative;
    padding: 3rem 3.5rem;
    margin: 2.5rem 0;
    background: var(--bg-light);
    border-left: 6px solid var(--accent);
    border-radius: 6px 15px 15px 6px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    border-top: none;
    border-right: none;
    border-bottom: none;
    font-style: normal;
}

/* Počáteční uvozovka (vlevo nahoře) */
blockquote::before {
    content: "\f10d";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--accent);
    font-size: 1.8rem;
    opacity: 0.9;
}

/* Koncová uvozovka (vpravo dole) */
blockquote::after {
    content: "\f10e";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 1.5rem;
    bottom: 1rem;
    color: var(--accent);
    font-size: 1.8rem;
    opacity: 0.9;
}

/* První odstavec - Datum nebo zvýrazněný úvod */
blockquote p:first-of-type {
    color: var(--primary);
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    display: block;
}

/* Ostatní odstavce s textem */
blockquote p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 1.2rem;
}

/* Podpis na konci */
blockquote p:last-of-type {
    margin-top: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Responzivita pro mobilní zařízení */
@media (max-width: 767px) {
    blockquote {
        padding: 2.5rem 1.7rem;
    }

    blockquote::before {
        left: 0.5rem;
        top: 0.5rem;
        font-size: 1.3rem;
    }

    blockquote::after {
        right: 0.7rem;
        bottom: 0.5rem;
        font-size: 1.3rem;
    }
}

/* --- Scroll to Top Button --- */
.scroll-top-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(20px);
}

.scroll-top-wrapper.show {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top-inner {
    width: 56px;
    height: 56px;
    background-color: var(--accent);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), inset 0 0 0 2px rgba(255, 255, 255, 0.2);
    font-size: 1.4rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scroll-top-inner:hover {
    background-color: var(--primary-light);
    color: #fff;
    transform: translateY(-8px) rotate(0deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.scroll-top-inner:active {
    transform: translateY(-4px) scale(0.95);
}

.scroll-top-inner i {
    transition: transform 0.3s ease;
}

.scroll-top-inner:hover i {
    animation: arrowJump 1.2s infinite;
}

@keyframes arrowJump {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

@media (max-width: 768px) {
    .scroll-top-wrapper {
        bottom: 25px;
        right: 25px;
    }

    .scroll-top-inner {
        width: 48px;
        height: 48px;
        border-radius: 10px;
        font-size: 1.2rem;
    }
}
/* --- Hero Transition Section --- */
.hero-transition-section .hero-nav-btn {
    z-index: 30;
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-transition-section .hero-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
    color: var(--accent);
}

.hero-transition-section .hero-nav-btn.prev-btn {
    left: 20px;
}

.hero-transition-section .hero-nav-btn.next-btn {
    right: 20px;
}

@media (max-width: 768px) {
    .hero-transition-section .hero-nav-btn.prev-btn {
        left: 10px;
    }

    .hero-transition-section .hero-nav-btn.next-btn {
        right: 10px;
    }
}

.hero-actions .btn-outline-light:hover {
    color: var(--primary) !important;
    background-color: #ffffff !important;
}

/* Slide Backgrounds & Zoom Effect */
.hero-slide-bg {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease-in-out, visibility 1.2s;
    overflow: hidden;
}

.hero-slide-bg.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slide-bg img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: 85% center !important;
    transform: scale(1.15); /* Start zoomed in */
    transition: transform 8s ease-out; /* Slow zoom out effect */
}

.hero-slide-bg.active img {
    transform: scale(1.0); /* Zoom to natural size when active */
}

/* Content Entrance Animations */
.hero-content-slider {
    position: relative;
    min-height: 400px;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.6s ease, visibility 0.6s;
}

.slide-content.active {
    position: relative;
    top: 0;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

.slide-content .hero-tagline,
.slide-content .hero-title,
.slide-content .hero-subtitle,
.slide-content .hero-actions {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-content.active .hero-tagline,
.slide-content.active .hero-title,
.slide-content.active .hero-subtitle,
.slide-content.active .hero-actions {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.slide-content.active .hero-tagline { transition-delay: 0.2s; }
.slide-content.active .hero-title   { transition-delay: 0.4s; }
.slide-content.active .hero-subtitle { transition-delay: 0.6s; }
.slide-content.active .hero-actions  { transition-delay: 0.8s; }


.hero-tagline {
    letter-spacing: 2px;
    color: var(--accent);
    font-size: 0.85rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    max-width: 500px;
}

/* Indicators */
.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator-dot.active {
    background: var(--accent);
    width: 30px;
    border-radius: 6px;
}

/* --- Buttons --- */
.btn-main {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transition: all 0.3s ease;
}

.btn-main:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 178, 223, 0.3);
}

/* --- Global Modal Design Overrides (Based on Taborenka) --- */
.modal-header {
    background-color: var(--color-secondary) !important;
    color: #fff !important;
    border-bottom: 3px solid var(--color-primary) !important;
}

.modal-header .modal-title {
    color: #fff !important;
}

.modal-header .close {
    color: #fff !important;
    text-shadow: none;
    opacity: 0.8;
}

.modal-header .close:hover {
    opacity: 1;
}

.modal-content .btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

.modal-content .btn-primary:hover {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
}

.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;
}

/* --- Universal Background Classes --- */
.bg-section-accent {
    background-color: #f0f7fb !important; /* Very light water-blue tint */
}
