/* Custom CSS for Sdružení pro Rokytnici Re-Design (ID 170) */

@import url('https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.2.19/tailwind.min.css');

/* Custom Brand Colors for Tailwind Compatibility */
.bg-brand-50 {
    background-color: #f0f9ff !important;
}

.bg-brand-100 {
    background-color: #e0f2fe !important;
}

.bg-brand-600 {
    background-color: #0284c7 !important;
}

.bg-brand-700 {
    background-color: #0369a1 !important;
}

.bg-brand-800 {
    background-color: #075985 !important;
}

.bg-brand-900 {
    background-color: #0c4a6e !important;
}

.hover\:bg-brand-50:hover {
    background-color: #f0f9ff !important;
}

.hover\:bg-brand-100:hover {
    background-color: #e0f2fe !important;
}

.hover\:bg-brand-600:hover {
    background-color: #0284c7 !important;
}

.hover\:bg-brand-700:hover {
    background-color: #0369a1 !important;
}

.hover\:bg-brand-800:hover {
    background-color: #075985 !important;
}

.hover\:bg-brand-900:hover {
    background-color: #0c4a6e !important;
}

.text-brand-50 {
    color: #f0f9ff !important;
}

.text-brand-100 {
    color: #e0f2fe !important;
}

.text-brand-400 {
    color: #38bdf8 !important;
}

.text-brand-600 {
    color: #0284c7 !important;
}

.text-brand-700 {
    color: #0369a1 !important;
}

.text-brand-800 {
    color: #075985 !important;
}

.text-brand-900 {
    color: #0c4a6e !important;
}

.hover\:text-brand-600:hover {
    color: #0284c7 !important;
}

.hover\:text-brand-700:hover {
    color: #0369a1 !important;
}

.border-brand-50 {
    border-color: #f0f9ff !important;
}

.border-brand-100 {
    border-color: #e0f2fe !important;
}

.border-brand-600 {
    border-color: #0284c7 !important;
}

.border-brand-700 {
    border-color: #0369a1 !important;
}

.border-brand-800 {
    border-color: #075985 !important;
}

.border-brand-900 {
    border-color: #0c4a6e !important;
}

/* Gradient Brand Colors */
.from-brand-50 {
    --tw-gradient-from: #f0f9ff !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(240, 249, 255, 0)) !important;
}

.from-brand-100 {
    --tw-gradient-from: #e0f2fe !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(224, 242, 254, 0)) !important;
}

.from-brand-600 {
    --tw-gradient-from: #0284c7 !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(2, 132, 199, 0)) !important;
}

.from-brand-700 {
    --tw-gradient-from: #0369a1 !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(3, 105, 161, 0)) !important;
}

.from-brand-800 {
    --tw-gradient-from: #075985 !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(7, 89, 133, 0)) !important;
}

.from-brand-900 {
    --tw-gradient-from: #0c4a6e !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(12, 74, 110, 0)) !important;
}

.to-brand-50 {
    --tw-gradient-to: #f0f9ff !important;
}

.to-brand-100 {
    --tw-gradient-to: #e0f2fe !important;
}

.to-brand-600 {
    --tw-gradient-to: #0284c7 !important;
}

.to-brand-700 {
    --tw-gradient-to: #0369a1 !important;
}

.to-brand-800 {
    --tw-gradient-to: #075985 !important;
}

.to-brand-900 {
    --tw-gradient-to: #0c4a6e !important;
}

/* Webkit text gradient background clip fix */
.bg-clip-text {
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

/* Tailwind Slate Gray Compatibility Rules (since 'slate' gray is v3 only and we import v2) */
.bg-slate-50 {
    background-color: #f8fafc !important;
}

.bg-slate-100 {
    background-color: #f1f5f9 !important;
}

.bg-slate-200 {
    background-color: #e2e8f0 !important;
}

.bg-slate-300 {
    background-color: #cbd5e1 !important;
}

.bg-slate-800 {
    background-color: #1e293b !important;
}

.bg-slate-900 {
    background-color: #0f172a !important;
}

.bg-slate-955 {
    background-color: #020617 !important;
}

.hover\:bg-slate-50:hover {
    background-color: #f8fafc !important;
}

.hover\:bg-slate-100:hover {
    background-color: #f1f5f9 !important;
}

.hover\:bg-slate-200:hover {
    background-color: #e2e8f0 !important;
}

.hover\:bg-slate-300:hover {
    background-color: #cbd5e1 !important;
}

.hover\:bg-slate-800:hover {
    background-color: #1e293b !important;
}

.text-slate-50 {
    color: #f8fafc !important;
}

.text-slate-100 {
    color: #f1f5f9 !important;
}

.text-slate-200 {
    color: #e2e8f0 !important;
}

.text-slate-300 {
    color: #cbd5e1 !important;
}

.text-slate-400 {
    color: #94a3b8 !important;
}

.text-slate-500 {
    color: #64748b !important;
}

.text-slate-600 {
    color: #475569 !important;
}

.text-slate-650 {
    color: #3b4b5f !important;
}

.text-slate-700 {
    color: #334155 !important;
}

.text-slate-750 {
    color: #2a3547 !important;
}

.text-slate-800 {
    color: #1e293b !important;
}

.text-slate-900 {
    color: #0f172a !important;
}

.border-slate-100 {
    border-color: #f1f5f9 !important;
}

.border-slate-200 {
    border-color: #e2e8f0 !important;
}

.border-slate-300 {
    border-color: #cbd5e1 !important;
}

.border-slate-800 {
    border-color: #1e293b !important;
}

.border-slate-900 {
    border-color: #0f172a !important;
}

/* Extended Color Palette Compatibility (Amber, Rose, Purple, Blue, Emerald) */
.bg-emerald-100 {
    background-color: #d1fae5 !important;
}

.text-emerald-600 {
    color: #059669 !important;
}

.dark .dark\:bg-emerald-900\/40 {
    background-color: rgba(6, 78, 59, 0.4) !important;
}

.dark .dark\:text-emerald-400 {
    color: #34d399 !important;
}

.bg-amber-100 {
    background-color: #fef3c7 !important;
}

.text-amber-600 {
    color: #d97706 !important;
}

.bg-accent-amber\/15 {
    background-color: rgba(245, 158, 11, 0.15) !important;
}

.dark .dark\:bg-amber-900\/40 {
    background-color: rgba(120, 53, 15, 0.4) !important;
}

.dark .dark\:text-amber-400 {
    color: #fbbf24 !important;
}

.bg-rose-100 {
    background-color: #ffe4e6 !important;
}

.text-rose-600 {
    color: #e11d48 !important;
}

.dark .dark\:bg-rose-900\/40 {
    background-color: rgba(136, 19, 55, 0.4) !important;
}

.dark .dark\:text-rose-400 {
    color: #fb7185 !important;
}

.bg-purple-100 {
    background-color: #f3e8ff !important;
}

.text-purple-600 {
    color: #9333ea !important;
}

.dark .dark\:bg-purple-900\/40 {
    background-color: rgba(88, 28, 135, 0.4) !important;
}

.dark .dark\:text-purple-400 {
    color: #c084fc !important;
}

.bg-blue-100 {
    background-color: #dbeafe !important;
}

.text-blue-600 {
    color: #2563eb !important;
}

.dark .dark\:bg-blue-900\/40 {
    background-color: rgba(30, 58, 138, 0.4) !important;
}

.dark .dark\:text-blue-400 {
    color: #60a5fa !important;
}

/* Input icon vertical centering fix */
.relative>i.absolute {
    top: 50%;
    transform: translateY(-50%);
}

/* Dark mode variations for brand colors and Tailwind utilities */
.dark .dark\:bg-brand-950\/50 {
    background-color: rgba(2, 44, 73, 0.5) !important;
}

.dark .dark\:bg-brand-700 {
    background-color: #0369a1 !important;
}

.dark .dark\:hover\:bg-brand-600:hover {
    background-color: #0284c7 !important;
}

.dark .dark\:text-brand-400 {
    color: #38bdf8 !important;
}

.dark .dark\:text-brand-300 {
    color: #7dd3fc !important;
}

.dark .dark\:border-slate-800\/50 {
    border-color: rgba(30, 41, 59, 0.5) !important;
}

.dark .dark\:border-slate-800\/40 {
    border-color: rgba(30, 41, 59, 0.4) !important;
}

.dark .dark\:border-slate-800\/60 {
    border-color: rgba(30, 41, 59, 0.6) !important;
}

.dark .dark\:bg-slate-800 {
    background-color: #1e293b !important;
}

.dark .dark\:bg-slate-900 {
    background-color: #0f172a !important;
}

.dark .dark\:bg-slate-950 {
    background-color: #020617 !important;
}

.dark .dark\:border-slate-800 {
    border-color: #1e293b !important;
}

.dark .dark\:hover\:bg-slate-700:hover {
    background-color: #334155 !important;
}

.dark .dark\:bg-slate-950\/20 {
    background-color: rgba(2, 6, 23, 0.2) !important;
}

.dark .dark\:bg-slate-950\/40 {
    background-color: rgba(2, 6, 23, 0.4) !important;
}

.dark .dark\:bg-slate-900\/40 {
    background-color: rgba(15, 23, 42, 0.4) !important;
}

.dark .dark\:bg-slate-900\/60 {
    background-color: rgba(15, 23, 42, 0.6) !important;
}

.dark .dark\:border-slate-900 {
    border-color: #0f172a !important;
}

.dark .dark\:text-white {
    color: #ffffff !important;
}

.dark .dark\:text-slate-100 {
    color: #f1f5f9 !important;
}

.dark .dark\:text-slate-200 {
    color: #e2e8f0 !important;
}

.dark .dark\:text-slate-250 {
    color: #cbd5e1 !important;
}

.dark .dark\:text-slate-300 {
    color: #cbd5e1 !important;
}

.dark .dark\:text-slate-350 {
    color: #94a3b8 !important;
}

.dark .dark\:text-slate-400 {
    color: #94a3b8 !important;
}

.dark .dark\:text-slate-500 {
    color: #64748b !important;
}

.dark .dark\:hover\:bg-slate-900:hover {
    background-color: #0f172a !important;
}

.dark .dark\:hover\:bg-brand-950\/50:hover {
    background-color: rgba(2, 44, 73, 0.5) !important;
}

.dark .dark\:hover\:text-brand-400:hover {
    color: #38bdf8 !important;
}

.dark .dark\:from-slate-900 {
    --tw-gradient-from: #0f172a !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(15, 23, 42, 0)) !important;
}

.dark .dark\:via-slate-950 {
    --tw-gradient-stops: var(--tw-gradient-from), #020617, var(--tw-gradient-to, rgba(2, 6, 23, 0)) !important;
}

.dark .dark\:to-slate-950 {
    --tw-gradient-to: #020617 !important;
}

.dark .dark\:from-brand-400 {
    --tw-gradient-from: #38bdf8 !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(56, 189, 248, 0)) !important;
}

.dark .dark\:to-brand-500 {
    --tw-gradient-to: #0ea5e9 !important;
}

/* variables */
:root {
    --primary: #0284c7;
    --primary-hover: #0369a1;
    --hero-bg: #0369a1;
    --hero-accent: #38bdf8;
    --hero-accent-hover: #7dd3fc;
    --hero-btn-bg: #0284c7;
    --hero-btn-hover: #0369a1;
    --hero-text: #ffffff;
    --hero-text-muted: rgba(255, 255, 255, 0.9);
    --cal-primary: #0284c7;
    --cal-secondary: #0369a1;

    /* Webeasy Admin variables */
    --color-primary: #0284c7;
    /* brand blue */
    --color-secondary: #0c4a6e;
    /* brand dark slate */
    --primary-color: #0c4a6e;
    --accent-color: #0284c7;
}

/* Styling of the Webeasy Login Modal to match our brand styling */
#editaceModal .modal-content.login {
    border-radius: 1.5rem !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    overflow: hidden !important;
}

#editaceModal .modal-header {
    background-color: #0c4a6e !important;
    /* brand dark slate */
    border-bottom: 4px solid #0284c7 !important;
    /* brand blue */
    padding: 1.25rem 1.5rem !important;
}

#editaceModal .modal-title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.025em !important;
    color: #ffffff !important;
}

#editaceModal .modal-title * {
    color: #ffffff !important;
}

#editaceModal .close {
    color: #ffffff !important;
    opacity: 0.8 !important;
}

#editaceModal .modal-body {
    background-color: #f8fafc !important;
    /* Slate 50 background */
    padding: 2rem 1.75rem !important;
}

#editaceModal .input-group-text {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #64748b !important;
}

#editaceModal .form-control {
    border-color: #cbd5e1 !important;
    font-size: 0.875rem !important;
    color: #1e293b !important;
}

#editaceModal .form-control:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}

#editaceModal .btn-primary {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    border-radius: 0.75rem !important;
    padding: 0.625rem 1.5rem !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    transition: all 0.2s ease-in-out !important;
}

#editaceModal .btn-primary:hover {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    transform: translateY(-1px) !important;
}

body {
    font-family: 'Inter', sans-serif !important;
    transition: background-color 0.3s, color 0.3s;
}

/* Offset for admin logged in */
body.admin-logged-in {
    padding-top: 152px !important;
}

/* Glassmorphism custom components */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .glass-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.zoom-image {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.zoom-image:hover {
    transform: scale(1.025);
}

/* Webeasy News Widget custom design overrides */
.news-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 1rem;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.dark .news-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

.news-img-wrapper {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-title span {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.4;
    color: #0f172a !important;
}

.dark .news-title span {
    color: #f8fafc !important;
}

.news-meta {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.5rem;
    display: block;
}

.news-perex {
    color: #475569;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.dark .news-perex {
    color: #cbd5e1;
}

.news-btn-corner {
    align-self: flex-end;
    font-size: 0.75rem;
    font-weight: 800;
    color: #0284c7 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none !important;
    transition: color 0.2s;
}

.news-btn-corner:hover {
    color: #0369a1 !important;
}

/* Webeasy Calendar Widget modern overrides */
.widget-calendar {
    width: 100%;
    font-family: inherit;
    border-radius: 1rem;
    overflow: hidden;
    background: transparent;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    color: #fff;
    font-weight: 750;
    font-size: 1.1rem;
}

.calendar-nav-btn {
    color: #fff !important;
    text-decoration: none !important;
    font-size: 1.25rem;
    padding: 0 0.5rem;
}

.calendar-nav-btn:hover {
    opacity: 0.8;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
}

.calendar-table th {
    text-align: center;
    padding: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

.calendar-table td {
    text-align: center;
    padding: 0.85rem 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(226, 232, 240, 0.4);
    color: #334155;
    position: relative;
}

.dark .calendar-table td {
    border-color: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
}

.calendar-table td.other-month {
    color: #94a3b8;
    opacity: 0.5;
}

.calendar-table td.today {
    background-color: rgba(2, 132, 199, 0.1);
    font-weight: 750;
    color: #0284c7;
}

.calendar-table td.has-event {
    background-color: rgba(16, 185, 129, 0.05);
    font-weight: 750;
    color: #10b981;
}

.calendar-dots {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-top: 4px;
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
}

.calendar-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #10b981;
    display: inline-block;
}

/* Popover styles for calendar events */
#calendar-popover {
    border-radius: 1rem !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    background-color: #fff !important;
}

.dark #calendar-popover {
    background-color: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    color: #f8fafc !important;
}

/* Sponsors list styles */
.sponsors-carousel img {
    max-height: 50px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s;
}

.sponsors-carousel img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.dark .sponsors-carousel img {
    filter: grayscale(100%) invert(80%);
}

.dark .sponsors-carousel img:hover {
    filter: grayscale(0%) invert(0%);
}

/* Z-Index Overrides for admin safety */
#ukladaci_panel {
    z-index: 1030 !important;
}

.modal {
    z-index: 1050 !important;
}

.modal-backdrop {
    z-index: 1040 !important;
}

/* Admin pencil icons positions */
.admin-edit-corner {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 20;
}

/* Styling for Webeasy dynamic menu items to match redesigned buttons */
nav ul.list-unstyled li.nav-item {
    display: inline-block;
}

nav ul.list-unstyled li.nav-item a.nav-link {
    display: inline-block;
    padding: 0.5rem 1.15rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
    color: #475569 !important;
    /* text-slate-650 */
    text-decoration: none !important;
}

.dark nav ul.list-unstyled li.nav-item a.nav-link {
    color: #cbd5e1 !important;
    /* text-slate-300 */
}

nav ul.list-unstyled li.nav-item a.nav-link:hover {
    background-color: #f1f5f9;
    /* hover:bg-slate-100 */
}

.dark nav ul.list-unstyled li.nav-item a.nav-link:hover {
    background-color: #1e293b;
    /* dark:hover:bg-slate-900 */
}

nav ul.list-unstyled li.nav-item.active a.nav-link {
    color: #0284c7 !important;
    /* text-brand-600 */
    background-color: #f0f9ff;
    /* bg-brand-50 */
}

.dark nav ul.list-unstyled li.nav-item.active a.nav-link {
    color: #38bdf8 !important;
    /* text-brand-400 */
    background-color: rgba(2, 132, 199, 0.1);
    /* dark:bg-brand-950/50 */
}

/* Mobile menu styling overrides */
#mobile-menu ul.list-unstyled li.nav-item a.nav-link {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #475569 !important;
    text-decoration: none !important;
    transition: all 0.2s;
}

.dark #mobile-menu ul.list-unstyled li.nav-item a.nav-link {
    color: #cbd5e1 !important;
}

#mobile-menu ul.list-unstyled li.nav-item a.nav-link:hover {
    background-color: #f1f5f9;
}

.dark #mobile-menu ul.list-unstyled li.nav-item a.nav-link:hover {
    background-color: #1e293b;
}

#mobile-menu ul.list-unstyled li.nav-item.active a.nav-link {
    background-color: #f0f9ff;
    color: #0284c7 !important;
}

.dark #mobile-menu ul.list-unstyled li.nav-item.active a.nav-link {
    background-color: rgba(2, 132, 199, 0.1);
    color: #38bdf8 !important;
}

/* Global btn-main style matching brand styling */
.btn-main {
    background-color: var(--primary) !important;
    border: 1px solid var(--primary) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 0.625rem 1.5rem !important;
    border-radius: 0.75rem !important;
    transition: all 0.2s ease-in-out !important;
    display: inline-block !important;
    text-align: center !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-shadow: 0 4px 6px -1px rgba(2, 132, 199, 0.2) !important;
}

.btn-main:hover {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    transform: translateY(-1px) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 15px -3px rgba(2, 132, 199, 0.3) !important;
}

/* Form controls styling for Webeasy contact form to match redesigned theme */
.formular input.form-control,
.formular textarea.form-control {
    border-radius: 0.75rem !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    background-color: #ffffff !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
    color: #1e293b !important;
    transition: all 0.2s ease-in-out !important;
}

.dark .formular input.form-control,
.dark .formular textarea.form-control {
    background-color: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    color: #f8fafc !important;
}

.formular input.form-control:focus,
.formular textarea.form-control:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
    outline: none !important;
}

.formular label.control-label {
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    color: #475569 !important;
    margin-bottom: 0.5rem !important;
    display: inline-block !important;
}

.dark .formular label.control-label {
    color: #cbd5e1 !important;
}

/* Webeasy contact form with dark blue background styling */
.formular-container {
    background-image: linear-gradient(to bottom right, #0284c7, #0c4a6e) !important;
    /* sky-600 to sky-900 */
    color: #ffffff !important;
}

.dark .formular-container {
    background-image: linear-gradient(to bottom right, #0f172a, #020617) !important;
}

.formular-container p {
    color: #e0f2fe !important;
    /* sky-100 */
}

.formular-container label.control-label {
    color: #f8fafc !important;
}

.formular-container .invalid-feedback {
    color: #fecaca !important;
    /* red-200 */
}

.formular-container .mensi {
    color: #e0f2fe !important;
    /* sky-100 */
}

.formular-container .mensi a {
    color: #38bdf8 !important;
    /* sky-400 */
    text-decoration: underline !important;
}

/* White button class for dark blue background sections */
.btn-white {
    background-color: #ffffff !important;
    border: 1px solid #ffffff !important;
    color: #0c4a6e !important;
    /* brand-900 text */
    font-weight: 700 !important;
    padding: 0.625rem 1.5rem !important;
    border-radius: 0.75rem !important;
    transition: all 0.2s ease-in-out !important;
    display: inline-block !important;
    text-align: center !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

.btn-white:hover {
    background-color: #f1f5f9 !important;
    /* slate-100 */
    border-color: #f1f5f9 !important;
    transform: translateY(-1px) !important;
    color: #0c4a6e !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15) !important;
}

/* --- Headings (h1–h5) --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Inter', sans-serif;
    color: var(--primary-hover);
    /* #0369a1 – hlavní modrá webu */
    font-weight: 700;
    line-height: 1.25;
}

h1 {
    font-size: 2.75rem;
    margin-bottom: 1.25rem;
}

h2 {
    font-size: 2.1rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.65rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.35rem;
    }

    h4 {
        font-size: 1.15rem;
    }

    h5 {
        font-size: 1rem;
    }
}

/* --- 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(2, 132, 199, 0.4);
    /* brand blue 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, 0.20) !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;
    color: #fff;
    font-size: 2rem;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1.1);
}

/* ==========================================================================
   Hero Section - Full Slanted Layout (olujevicko.cz style)
   ========================================================================== */
.hero-transition-section {
    position: relative;
    width: 100%;
    min-height: 420px;
    height: 520px;
    max-height: 540px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-top: 0;
    padding: 0 !important;
    background-color: var(--hero-bg);
}

@media (min-width: 768px) {
    .hero-transition-section {
        flex-direction: row;
    }
}

.hero-content-side {
    position: relative;
    z-index: 10;
    width: 100%;
    background-color: var(--hero-bg);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .hero-content-side {
        width: 48%;
    }
}

@media (min-width: 1024px) {
    .hero-content-side {
        width: 44%;
    }
}

/* Slanted Divider Element */
.hero-slanted-divider {
    display: none;
    position: absolute;
    right: -99px;
    width: 100px;
    background-color: var(--hero-bg);
    z-index: 10;
    top: 0;
    bottom: 0;
    clip-path: polygon(0 0, 100% 100%, 0 100%);
}

@media (min-width: 768px) {
    .hero-slanted-divider {
        display: block;
    }
}

.hero-inner-content {
    position: relative;
    z-index: 20;
    padding: 2rem 1.5rem;
    width: 100%;
    color: var(--hero-text);
}

@media (min-width: 768px) {
    .hero-inner-content {
        padding: 2.75rem 2.75rem;
        padding-right: 4.25rem;
    }
}

@media (min-width: 1024px) {
    .hero-inner-content {
        padding: 3.25rem 4rem;
        padding-right: 6rem;
    }
}

.hero-image-side {
    position: relative;
    flex: 1;
    min-height: 300px;
    z-index: 1;
    background-color: #0f172a;
}

@media (min-width: 768px) {
    .hero-image-side {
        min-height: 0;
    }
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    transform: scale(1.04);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

/* Navigation Arrows over the whole hero section */
.hero-image-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

@media (min-width: 768px) {
    .hero-image-nav .hero-nav-btn:first-child {
        margin-left: calc(44% + 7rem);
    }

    .hero-image-nav .hero-nav-btn:last-child {
        margin-right: 2rem;
    }
}

.hero-badge-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hero-text);
}

.hero-nav-btn {
    pointer-events: auto;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--hero-text);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.hero-nav-btn:hover {
    background-color: var(--hero-btn-hover);
    transform: scale(1.1);
}

/* Progress Bar at the very bottom edge of Hero section */
.hero-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 100;
    overflow: hidden;
}

.hero-progress-fill {
    height: 100%;
    width: 0%;
    background-color: var(--hero-accent);
    box-shadow: 0 0 12px var(--hero-accent);
    transition: width 0s linear;
}

/* Indicator Dots on Left Blue Side */
.hero-indicator-dots {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.hero-indicator-dot {
    height: 9px;
    width: 9px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.35);
    transition: all 0.3s ease;
    border: none;
    padding: 0;
    cursor: pointer;
}

.hero-indicator-dot:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

.hero-indicator-dot.active {
    width: 32px;
    background-color: var(--hero-accent);
    border-radius: 9999px;
}

.hero-accent-text {
    color: var(--hero-accent);
}

.hero-accent-bg {
    background-color: var(--hero-accent);
}

.hero-btn-primary {
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    background-color: var(--hero-accent);
    color: #0c4a6e;
    font-weight: 800;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
}

.hero-btn-primary:hover {
    background-color: var(--hero-accent-hover);
    color: #0369a1;
    transform: translateY(-1px);
    text-decoration: none;
}

.hero-btn-secondary {
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #ffffff;
    font-weight: 700;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-btn-secondary:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    text-decoration: none;
}

/* Header navigation link text size & weight */
header nav .nav-link,
header nav .nav-btn,
header nav .nav-link-text {
    font-size: 0.975rem !important;
    font-weight: 600 !important;
}

/* News Archive image wrapper styles */
.news-card-image-wrapper {
    position: relative;
    min-height: 180px;
}

.news-card-img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0.75rem 0 0 0.75rem;
}

@media (max-width: 767px) {
    .news-card-image-wrapper {
        min-height: 200px;
    }

    .news-card-img {
        min-height: 200px;
        border-radius: 0.75rem 0.75rem 0 0;
    }
}

/* Custom 1600px max-width container for content & footer */
.container-custom {
    width: 100%;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}