/* ==================== */
/* RESET A PROMĚNNÉ     */
/* ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --sd-dark-blue: #203354;
    --sd-light-blue: #4566a7;
    --sd-grey: #272727;
    --sd-slate: #252c34;
    --sd-white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--sd-grey);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== */
/* HEADER A NAVIGACE    */
/* ==================== */
.header {
    background-color: var(--sd-dark-blue);
    padding: 15px 0;
    position: relative;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-brand a {
    color: var(--sd-white);
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-brand img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu li {
    list-style: none;
}

.nav-menu a {
    color: var(--sd-white);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 16px;
    padding: 10px 0;
    display: block;
}

.nav-menu a:hover {
    color: var(--sd-light-blue);
}

.lang-switch {
    display: flex;
    gap: 5px;
}

.lang-switch a {
    color: var(--sd-white);
    padding: 5px 10px;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.lang-switch a.active {
    opacity: 1;
    font-weight: bold;
    border-bottom: 2px solid var(--sd-white);
}

/* ==================== */
/* HAMBURGER MENU       */
/* ==================== */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--sd-white);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger animace při otevření */
.menu-toggle.open span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* ==================== */
/* HERO SEKCE           */
/* ==================== */
.hero {
    text-align: center;
    padding: 60px 0;
    background-color: #f8f9fa;
}

.hero h1 {
    color: var(--sd-dark-blue);
    font-size: 36px;
}

.hero h1 span {
    color: var(--sd-light-blue);
}

/* ==================== */
/* SLIDER               */
/* ==================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(32, 51, 84, 0.7);
}

.slide-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 80px;
    color: white;
}

.slide-content.centered {
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.slide-text h1 {
    font-size: 48px;
    margin: 0;
    color: white;
}

.slide-text h1 span,
.slide-text h2 span {
    color: #4566a7;
}

.slide-text h2 {
    font-size: 36px;
    margin: 10px 0;
    font-weight: normal;
}

.slide-image img {
    max-height: 400px;
    object-fit: contain;
}

.slide-image img.rounded {
    border-radius: 10px;
    max-height: 350px;
}

.slide-logo {
    position: absolute;
    top: 30px;
    right: 50px;
    z-index: 3;
}

.slide-logo img {
    height: 120px;
}

.slide-logo-main {
    height: 80px;
    margin-bottom: 20px;
}

.slide-subtitle {
    font-size: 24px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.program-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.program-list li {
    font-size: 18px;
    margin: 12px 0;
    color: white;
}

.program-list li i {
    color: var(--sd-light-blue);
    margin-right: 15px;
    width: 25px;
}

/* Slider navigace */
.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.slider-btn:hover {
    background: var(--sd-light-blue);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active,
.dot:hover {
    background: white;
}

/* ==================== */
/* ORNAMENTY            */
/* ==================== */
.ornament-divider {
    width: 100%;
    height: 40px;
    background-image: url('../img/ornament-light.png');
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: center;
    margin: 20px 0;
}

.ornament-divider-dark {
    width: 100%;
    height: 40px;
    background-image: url('../img/ornament-line.png');
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: center;
    margin: 20px 0;
}

.ornament-inverted {
    width: 100%;
    height: 40px;
    background-image: url('../img/ornament.png');
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: center;
    margin: 20px 0;
    filter: invert(1) brightness(2);
}

.ornament-section {
    background: white;
    padding: 10px 0;
}

/* ==================== */
/* SEKCE                */
/* ==================== */
.section-title {
    text-align: center;
    font-size: 32px;
    color: var(--sd-dark-blue);
    margin-bottom: 10px;
}

.section-title.light {
    color: white;
}

.program-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.events-section {
    padding: 60px 0;
    color: white;
}

.text-center {
    text-align: center;
}

/* ==================== */
/* KATEGORIE            */
/* ==================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.category-card {
    background: var(--sd-white);
    border: 1px solid #eee;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    transition: box-shadow 0.3s;
}

.category-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.category-card i {
    font-size: 40px;
    color: var(--sd-light-blue);
    margin-bottom: 15px;
}

.category-card h3 {
    color: var(--sd-dark-blue);
}

/* ==================== */
/* EVENTY / KARTY       */
/* ==================== */
.event-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid var(--sd-dark-blue);
    margin-bottom: 20px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.event-date-box {
    background: linear-gradient(135deg, var(--sd-dark-blue) 0%, var(--sd-light-blue) 100%);
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    min-width: 80px;
    flex-shrink: 0;
}

.event-date-box .day {
    display: block;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.event-date-box .month {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    margin-top: 3px;
}

.event-date-box .time {
    display: block;
    font-size: 12px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.3);
}

.event-image {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-info {
    flex: 1;
}

.event-info, .event-date {
    color: #203354;
}

.event-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0f4f8;
    color: var(--sd-light-blue);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
}

.event-info h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
}

.event-info h4 a {
    color: var(--sd-dark-blue);
    text-decoration: none;
    transition: color 0.2s;
}

.event-info h4 a:hover {
    color: var(--sd-light-blue);
}

.event-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.event-action {
    flex-shrink: 0;
}

.event-action .btn-small {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* ==================== */
/* TLAČÍTKA             */
/* ==================== */
.btn {
    display: inline-block;
    background: var(--sd-light-blue);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn:hover {
    background: var(--sd-dark-blue);
}

.btn-light {
    background: white;
    color: var(--sd-dark-blue);
}

.btn-light:hover {
    background: var(--sd-light-blue);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--sd-dark-blue);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sd-light-blue);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 20px;
    transition: color 0.3s;
}

.btn-back:hover {
    color: var(--sd-dark-blue);
}

.btn-nav {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sd-light-blue);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s;
}

.btn-nav:hover {
    background: var(--sd-dark-blue);
    transform: scale(1.05);
}

.btn-filter {
    width: 100%;
}

/* ==================== */
/* FILTER               */
/* ==================== */
.filter-section {
    background: #f8f9fa;
    padding: 20px;
    margin-bottom: 20px;
}

.filter-section label {
    margin-right: 15px;
}

/* ==================== */
/* PARTNEŘI             */
/* ==================== */
.partners {
    background: #f8f9fa;
    padding: 40px 0;
    text-align: center;
}

.partners h3 {
    color: var(--sd-dark-blue);
    margin-bottom: 10px;
}

.partners-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.partner-item img {
    width: 166px;
    height: 175px;
    object-fit: contain;
    border: 1px solid #eee;
    padding: 10px;
    background: white;
    transition: transform 0.3s;
}

.partner-item:hover img {
    transform: scale(1.05);
}

.partners-admin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.partner-admin-card {
    background: white;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.partner-admin-card img {
    width: 166px;
    height: 175px;
    object-fit: contain;
    margin-bottom: 15px;
}

/* ==================== */
/* FOOTER               */
/* ==================== */
.footer {
    background: var(--sd-slate);
    color: var(--sd-white);
    padding: 40px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-col p {
    margin: 8px 0;
    font-size: 14px;
}

.footer-col p i {
    margin-right: 10px;
    color: var(--sd-light-blue);
}

.footer h4 {
    margin-bottom: 15px;
    color: var(--sd-light-blue);
}

.footer-logo {
    height: 40px;
    margin-bottom: 15px;
}

.footer-ornament {
    text-align: center;
    margin: 30px 0 20px 0;
}

.footer-ornament img {
    height: 25px;
    opacity: 0.4;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.8;
}

/* ==================== */
/* POPUP OVERLAY        */
/* ==================== */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.popup-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: popupIn 0.3s ease;
}

@keyframes popupIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    line-height: 1;
}

.popup-close:hover {
    color: #333;
}

/* Newsletter Popup */
.newsletter-popup-content {
    max-width: 450px;
}

.popup-event img {
    max-width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
}

.popup-event h3 {
    color: var(--sd-dark-blue);
    margin: 0 0 5px 0;
    font-size: 20px;
}

.popup-event p {
    color: var(--sd-light-blue);
    margin: 0;
    font-weight: 500;
}

.popup-content h4 {
    color: var(--sd-dark-blue);
    margin: 0 0 20px 0;
}

.popup-form {
    display: flex;
    gap: 10px;
}

.popup-form input[type="email"] {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.popup-form input[type="email"]:focus {
    outline: none;
    border-color: var(--sd-light-blue);
}

.popup-form .btn {
    white-space: nowrap;
}

.gdpr-note {
    font-size: 13px;
    color: #666;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.gdpr-note input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.gdpr-note label {
    cursor: pointer;
}

/* ==================== */
/* COOKIES BAR          */
/* ==================== */
.cookies-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--sd-dark-blue);
    color: white;
    padding: 20px;
    z-index: 9998;
    box-shadow: 0 -5px 30px rgba(0,0,0,0.3);
}

.cookies-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cookies-text {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cookies-text i {
    font-size: 32px;
    color: #ffc107;
}

.cookies-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.cookies-text a {
    color: #ffc107;
    text-decoration: underline;
}

.cookies-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* Cookies detail modal */
.cookies-detail-content {
    max-width: 550px;
    text-align: left;
}

.cookies-detail-content h2 {
    text-align: center;
    color: var(--sd-dark-blue);
    margin: 0 0 10px 0;
}

.cookies-options {
    margin: 25px 0;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #eee;
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-info {
    flex: 1;
    padding-right: 20px;
}

.cookie-info h4 {
    margin: 0 0 5px 0;
    color: var(--sd-dark-blue);
    font-size: 15px;
}

.cookie-info p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

/* Toggle switch */
.switch {
    position: relative;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-toggle {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 28px;
}

.slider-toggle:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

input:checked + .slider-toggle {
    background-color: var(--sd-light-blue);
}

input:checked + .slider-toggle:before {
    transform: translateX(24px);
}

.switch.disabled .slider-toggle {
    cursor: not-allowed;
    opacity: 0.7;
}

.cookies-detail-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 25px;
}

/* ==================== */
/* GALERIE              */
/* ==================== */
.galleries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.gallery-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.gallery-card:hover {
    transform: translateY(-5px);
}

.gallery-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.gallery-card .no-cover {
    width: 100%;
    height: 200px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.gallery-info {
    padding: 20px;
}

.gallery-info h3 {
    margin: 0 0 10px 0;
}

.gallery-info h3 a {
    color: var(--sd-dark-blue);
    text-decoration: none;
}

.gallery-info h3 a:hover {
    color: var(--sd-light-blue);
}

/* Photos Grid */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.photo-item {
    position: relative;
}

.photo-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

.photo-delete {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
}

/* Photos Grid Frontend */
.photos-grid-frontend {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.photo-link img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: opacity 0.3s;
}

.photo-link:hover img {
    opacity: 0.8;
}

/* ==================== */
/* KONTAKT              */
/* ==================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 30px;
}

.contact-info {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 24px;
    color: var(--sd-light-blue);
    width: 30px;
}

.contact-form-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.contact-form-section label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--sd-dark-blue);
}

.contact-form-section input[type="text"],
.contact-form-section input[type="email"],
.contact-form-section textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.contact-form-section input[type="submit"] {
    background: var(--sd-dark-blue);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.contact-form-section input[type="submit"]:hover {
    background: var(--sd-light-blue);
}

.contact-map {
    margin-top: 40px;
}

.contact-map iframe {
    border-radius: 8px;
    width: 100%;
}

/* ==================== */
/* EVENT DETAIL         */
/* ==================== */
.event-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.event-detail-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.event-detail-date {
    background: var(--sd-dark-blue);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    min-width: 100px;
}

.event-detail-date .day {
    display: block;
    font-size: 42px;
    font-weight: bold;
    line-height: 1;
}

.event-detail-date .month {
    display: block;
    font-size: 18px;
    text-transform: uppercase;
    margin-top: 5px;
}

.event-detail-date .year {
    display: block;
    font-size: 14px;
    opacity: 0.8;
}

.event-detail-date .time {
    display: block;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 16px;
}

.event-detail-info {
    flex: 1;
}

.event-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--sd-light-blue);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 15px;
}

.event-detail-info h1 {
    color: var(--sd-dark-blue);
    font-size: 32px;
    margin: 0;
    line-height: 1.3;
}

.event-detail-image {
    margin-bottom: 30px;
}

.event-detail-image img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.event-detail-content {
    margin-bottom: 30px;
}

.event-perex {
    font-size: 18px;
    color: var(--sd-grey);
    line-height: 1.7;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid var(--sd-light-blue);
    border-radius: 0 8px 8px 0;
}

.event-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--sd-grey);
}

.event-text p {
    margin-bottom: 15px;
}

.event-detail-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
}

.event-detail-footer h3 {
    color: var(--sd-dark-blue);
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.event-location p {
    margin: 0;
    line-height: 1.7;
    color: var(--sd-grey);
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.email {
    background: var(--sd-light-blue);
}

/* ==================== */
/* PROGRAM PAGE         */
/* ==================== */
.program-page {
    padding: 20px 0;
}

.program-header {
    text-align: center;
    margin-bottom: 10px;
}

.program-header h1 {
    color: var(--sd-dark-blue);
    font-size: 36px;
    margin: 0 0 10px 0;
}

.program-header p {
    color: var(--sd-grey);
    font-size: 16px;
    margin: 0;
}

.program-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-top: 30px;
}

/* Sidebar */
.program-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-box,
.legend-box {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.filter-box h3,
.legend-box h3 {
    color: var(--sd-dark-blue);
    font-size: 16px;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.filter-box h3 i,
.legend-box h3 i {
    color: var(--sd-light-blue);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.filter-option:hover {
    background: #f8f9fa;
}

.filter-option input[type="checkbox"] {
    display: none;
}

.filter-option .checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid #ddd;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.filter-option .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    color: white;
    opacity: 0;
    transition: opacity 0.2s;
}

.filter-option input[type="checkbox"]:checked + .checkmark {
    background: var(--sd-light-blue);
    border-color: var(--sd-light-blue);
}

.filter-option input[type="checkbox"]:checked + .checkmark::after {
    opacity: 1;
}

.filter-option.select-all {
    background: #f0f4f8;
    border: 2px solid transparent;
}

.filter-option.select-all:hover {
    border-color: var(--sd-light-blue);
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--sd-grey);
}

.filter-label i {
    color: var(--sd-light-blue);
    width: 18px;
    text-align: center;
}

.filter-divider {
    height: 1px;
    background: #eee;
    margin: 8px 0;
}

/* Legend */
.legend-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--sd-grey);
}

.legend-dot {
    width: 20px;
    height: 20px;
    border-radius: 6px;
}

.legend-dot.today {
    background: #e8f4fd;
    border: 2px solid var(--sd-light-blue);
}

.legend-dot.has-events {
    background: #fff8e1;
    border: 2px solid #ffc107;
}

/* Calendar Navigation */
.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-month-title {
    color: var(--sd-dark-blue);
    font-size: 28px;
    margin: 0;
    font-weight: 700;
}

/* Calendar Grid */
.calendar-wrapper {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.calendar-grid {
    width: 100%;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: linear-gradient(135deg, var(--sd-dark-blue) 0%, var(--sd-light-blue) 100%);
    color: white;
}

.weekday {
    padding: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.weekday.weekend {
    background: rgba(0,0,0,0.15);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day {
    min-height: 100px;
    border: 1px solid #eee;
    padding: 8px;
    position: relative;
    transition: all 0.2s;
}

.calendar-day:hover {
    background: #f8f9fa;
}

.calendar-day.empty {
    background: #fafafa;
}

.calendar-day.today {
    background: #e8f4fd;
    border-color: var(--sd-light-blue);
}

.calendar-day.has-events {
    background: #fffbeb;
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.day-number {
    font-weight: 700;
    font-size: 16px;
    color: var(--sd-dark-blue);
}

.calendar-day.today .day-number {
    background: var(--sd-light-blue);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-count {
    background: var(--sd-dark-blue);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.day-events {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.day-event {
    background: var(--sd-light-blue);
    color: white;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 11px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
    overflow: hidden;
}

.day-event:hover {
    background: var(--sd-dark-blue);
    transform: translateX(3px);
}

.day-event i {
    font-size: 10px;
    flex-shrink: 0;
}

.day-event .event-time {
    font-weight: 700;
    flex-shrink: 0;
}

.day-event .event-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Month Events Section */
.month-events-section {
    margin-top: 40px;
}

.month-events-section h3 {
    color: var(--sd-dark-blue);
    font-size: 22px;
    margin: 0 0 25px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.month-events-section h3 i {
    color: var(--sd-light-blue);
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.no-events {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    color: #999;
}

.no-events i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ddd;
}

.no-events p {
    margin: 0;
    font-size: 16px;
}

/* ==================== */
/* RESPONSIVE - 1200px  */
/* ==================== */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }

    .slide-content {
        padding: 0 50px;
    }

    .slide-text h1 {
        font-size: 42px;
    }

    .slide-text h2 {
        font-size: 30px;
    }

    .footer-grid {
        gap: 20px;
    }
}

/* ==================== */
/* RESPONSIVE - 992px   */
/* ==================== */
@media (max-width: 992px) {
    /* Hamburger menu zobrazení */
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--sd-dark-blue);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0,0,0,0.3);
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-menu a {
        padding: 15px 0;
        font-size: 18px;
    }

    .lang-switch {
        margin-left: 0;
    }

    /* Slider */
    .hero-slider {
        height: 400px;
    }

    .slide-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 0 30px;
    }

    .slide-text h1 {
        font-size: 32px;
    }

    .slide-text h2 {
        font-size: 24px;
    }

    .slide-image {
        display: none;
    }

    .slide-logo {
        top: 20px;
        right: 20px;
    }

    .slide-logo img {
        height: 80px;
    }

    /* Kategorie */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Program layout */
    .program-layout {
        grid-template-columns: 1fr;
    }

    .program-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .filter-box,
    .legend-box {
        flex: 1;
        min-width: 250px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Partneři admin */
    .partners-admin-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==================== */
/* RESPONSIVE - 768px   */
/* ==================== */
@media (max-width: 768px) {
    /* Header */
    .nav-brand img {
        height: 40px;
    }

    /* Hero */
    .hero {
        padding: 40px 0;
    }

    .hero h1 {
        font-size: 28px;
    }

    /* Slider */
    .hero-slider {
        height: 350px;
    }

    .slide-text h1 {
        font-size: 26px;
    }

    .slide-text h2 {
        font-size: 20px;
    }

    .slide-subtitle {
        font-size: 18px;
    }

    .program-list li {
        font-size: 14px;
    }

    .slider-nav {
        bottom: 20px;
        gap: 15px;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    /* Sekce */
    .section-title {
        font-size: 26px;
    }

    .program-section,
    .events-section {
        padding: 40px 0;
    }

    /* Kategorie */
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        padding: 20px;
    }

    /* Galerie */
    .galleries-grid {
        grid-template-columns: 1fr;
    }

    .photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .photos-grid-frontend {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Kontakt */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Event detail */
    .event-detail-header {
        flex-direction: column;
    }

    .event-detail-date {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
    }

    .event-detail-date .time {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
        border-left: 1px solid rgba(255,255,255,0.2);
        padding-left: 15px;
    }

    .event-detail-info h1 {
        font-size: 26px;
    }

    .event-detail-footer {
        grid-template-columns: 1fr;
    }

    /* Program header */
    .program-header h1 {
        font-size: 28px;
    }

    /* Calendar */
    .calendar-day {
        min-height: 70px;
        padding: 5px;
    }

    .day-event {
        padding: 3px 5px;
        font-size: 10px;
    }

    .day-event .event-title {
        display: none;
    }

    .calendar-month-title {
        font-size: 22px;
    }

    /* Event card */
    .event-card {
        flex-wrap: wrap;
    }

    .event-image {
        width: 100%;
        height: 150px;
        order: -1;
    }

    .event-date-box {
        display: flex;
        align-items: center;
        gap: 15px;
        min-width: auto;
    }

    .event-date-box .time {
        border-top: none;
        border-left: 1px solid rgba(255,255,255,0.3);
        padding-left: 15px;
        margin-top: 0;
        padding-top: 0;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col {
        margin-bottom: 20px;
    }

    /* Cookies */
    .cookies-content {
        flex-direction: column;
        text-align: center;
    }

    .cookies-text {
        flex-direction: column;
    }

    .cookies-buttons {
        width: 100%;
        flex-direction: column;
    }

    .cookies-buttons .btn {
        width: 100%;
    }

    .cookie-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    /* Popup */
    .popup-content {
        padding: 30px 20px;
    }

    .popup-form {
        flex-direction: column;
    }

    /* Partneři */
    .partner-item img {
        width: 140px;
        height: 150px;
    }

    .partners-admin-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== */
/* RESPONSIVE - 576px   */
/* ==================== */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    /* Header */
    .header {
        padding: 10px 0;
    }

    .nav-brand img {
        height: 35px;
    }

    /* Hero */
    .hero {
        padding: 30px 0;
    }

    .hero h1 {
        font-size: 24px;
    }

    /* Slider */
    .hero-slider {
        height: 300px;
    }

    .slide-content {
        padding: 0 20px;
    }

    .slide-text h1 {
        font-size: 22px;
    }

    .slide-text h2 {
        font-size: 18px;
    }

    .slide-logo {
        display: none;
    }

    /* Sekce */
    .section-title {
        font-size: 22px;
    }

    /* Tlačítka */
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    /* Event detail */
    .event-detail-info h1 {
        font-size: 22px;
    }

    .event-perex {
        font-size: 16px;
        padding: 15px;
    }

    /* Program */
    .program-header h1 {
        font-size: 24px;
    }

    .filter-box,
    .legend-box {
        min-width: 100%;
    }

    /* Galerie */
    .gallery-card img,
    .gallery-card .no-cover {
        height: 180px;
    }

    /* Partneři */
    .partners {
        padding: 30px 0;
    }

    .partner-item img {
        width: 120px;
        height: 130px;
    }

    /* Footer */
    .footer {
        padding: 30px 0 15px;
    }

    .footer-logo {
        height: 35px;
    }
}

/* ==================== */
/* RESPONSIVE - 480px   */
/* ==================== */
@media (max-width: 480px) {
    /* Slider */
    .hero-slider {
        height: 250px;
    }

    .slide-text h1 {
        font-size: 20px;
    }

    .slide-text h2 {
        font-size: 16px;
    }

    .slider-nav {
        bottom: 15px;
        gap: 10px;
    }

    .slider-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    /* Calendar */
    .weekday {
        padding: 10px 5px;
        font-size: 12px;
        letter-spacing: 0;
    }

    .day-number {
        font-size: 14px;
    }

    .event-count {
        display: none;
    }

    .calendar-day {
        min-height: 60px;
    }

    /* Photos */
    .photos-grid,
    .photos-grid-frontend {
        grid-template-columns: 1fr;
    }

    .photo-item img,
    .photo-link img {
        height: 200px;
    }

    /* Event card */
    .event-date-box .day {
        font-size: 24px;
    }

    .event-info h4 {
        font-size: 16px;
    }

    /* Popup */
    .popup-content {
        padding: 25px 15px;
    }

    .popup-event img {
        height: 150px;
    }

    .popup-event h3 {
        font-size: 18px;
    }

    /* Cookies detail */
    .cookies-detail-content {
        max-width: 100%;
    }

    .cookies-detail-buttons {
        flex-direction: column;
    }

    .cookies-detail-buttons .btn {
        width: 100%;
    }
}

/* ==================== */
/* UTILITY CLASSES      */
/* ==================== */
.bg-primary {
    background-color: var(--sd-dark-blue);
    color: white;
}

.text-center {
    text-align: center;
}

/* Overlay pro zavření menu při kliknutí mimo */
.nav-menu.active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: calc(100% - 280px);
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}
