/* ==========================================================================
   ZÁKLADNÍ PROMĚNNÉ A TYPOGRAFIE
   ========================================================================== */
:root {
    --brand-blue: #73bcc1;
    --brand-green: #6e7a2a;
    --brand-yellow: #F4D068;
    --brand-light-blue: #bce1e6;
    --brand-light-green: #d0e5a3;
}

body {
    font-family: 'Nunito', sans-serif;
    color: #333;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}

main {
    flex: 1;
}        

h1, h2, h3, .nav-link {
    font-family: 'Yanone Kaffeesatz', sans-serif;
    letter-spacing: 1px;
}

/* ==========================================================================
   HLAVIČKA (HEADER)
   ========================================================================== */
.site-header-shell {
    position: relative;
    background-color: #ffffff;
}

.site-header-shell::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(115, 188, 193, 0) 0%, rgba(115, 188, 193, 0.42) 25%, rgba(244, 208, 104, 0.72) 50%, rgba(115, 188, 193, 0.42) 75%, rgba(115, 188, 193, 0) 100%);
}

.site-header-hero {
    position: relative;
    width: 100%;
    background-color: #ffffff;
}

.header-branding-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.85rem 1.2rem;
    width: 100%;
    min-height: 118px;
    margin: 0;
    padding: 0.35rem 0 0.45rem;
    z-index: 1;
}

.header-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.header-title-group {
    position: relative;
    display: inline-flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.15rem;
    max-width: 760px;
    padding-left: 0.9rem;
    border-left: 4px solid rgba(115, 188, 193, 0.42);
    text-align: left;
}

.header-title-group::after {
    content: '';
    width: 132px;
    height: 4px;
    margin-top: 0.3rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-blue) 0%, #F4D068 100%);
}

.header-title {
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-weight: 600;
    color: var(--brand-blue);
    font-size: clamp(2rem, 2vw + 1rem, 3.2rem);
    text-transform: none !important;
    font-variant: normal;
    font-feature-settings: normal;
    white-space: nowrap;
    margin: 0;
    line-height: 1;
    letter-spacing: 0.02em;
}

.header-location {
    font-family: 'Nunito', sans-serif;
    margin: 0;
    color: #6a767f;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: none !important;
    line-height: 1.2;
}

.header-logo {
    max-width: 138px;
    filter: none;
}

/* ==========================================================================
   NAVIGACE (MENU A OFFCANVAS)
   ========================================================================== */
.wave-menu-wrapper {
    position: sticky;
    top: 0;
    background: #F4D068;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0.62rem 0 0.5rem;
    margin-top: 0;
    margin-bottom: 1.9rem;
    z-index: 1000;
    box-shadow: 0 4px 14px rgba(110, 122, 42, 0.10);
    border-bottom: 1px solid rgba(110, 122, 42, 0.14);
    overflow: visible;
}

.wave-menu-wrapper::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -18px;
    height: 19px;
    background-color: #F4D068;
    mask-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0,100 C20,100 30,28 50,28 C70,28 80,100 100,100 Z' fill='black'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0,100 C20,100 30,28 50,28 C70,28 80,100 100,100 Z' fill='black'/%3E%3C/svg%3E");
    mask-size: max(16.66%, 150px) 100%;
    -webkit-mask-size: max(16.66%, 150px) 100%;
    mask-repeat: repeat-x;
    -webkit-mask-repeat: repeat-x;
}

.wave-menu-wrapper::after {
    content: none;
}

.wave-menu-wrapper .container {
    position: relative;
    z-index: 1;
}

.wave-menu-wrapper .navbar {
    width: 100%;
    padding: 0.2rem 0 0.08rem;
    min-height: 54px;
    display: flex;
    align-items: center;
}

.wave-menu-wrapper .navbar-collapse {
    width: 100%;
    justify-content: center;
}

.navbar-nav {
    width: calc(100% - 1.2rem);
    max-width: 100%;
    margin: 0 auto;
    padding-inline: 0.6rem;
    justify-content: space-between;
    gap: 0.6rem 0.85rem;
    align-items: center;
    min-height: 48px;
}

.custom-nav-item {
    position: relative;
}

.custom-nav-item.has-submenu {
    padding-bottom: 0.45rem;
    margin-bottom: -0.45rem;
}

.custom-menu-button {
    border: 0;
    background: transparent;
}

.nav-link {
    color: var(--brand-green) !important;
    font-size: 1.45rem;
    text-transform: uppercase;
    padding: 0.9rem 0.9rem 0.74rem !important;
    border-radius: 0;
    transition: color 0.2s ease;
    line-height: 1.1;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.2rem;
    height: 3px;
    border-radius: 3px;
    background-color: currentColor;
    opacity: 0;
    transform: scaleX(0.55);
    transform-origin: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.custom-menu-button:hover,
.custom-menu-button.active {
    color: #4f5b18 !important;
    background-color: transparent;
}

.nav-link:hover::before,
.nav-link.active::before,
.custom-menu-button:hover::before,
.custom-menu-button.active::before {
    opacity: 1;
    transform: scaleX(1);
}

.nav-link-with-submenu {
    padding-right: 1rem !important;
}

.nav-link-with-submenu::after {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    margin-top: -0.15rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.82;
    flex: 0 0 auto;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.custom-nav-item.has-submenu:hover .nav-link-with-submenu::after,
.nav-link-with-submenu.active::after {
    transform: rotate(45deg) translateY(2px);
    opacity: 1;
}

.custom-dropdown-menu {
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    z-index: 1000;
    min-width: 280px;
    padding: 0.75rem;
    border: none;
    border-radius: 18px;
    background-color: #ffffff;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.submenu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.submenu-list .submenu-list {
    margin-top: 0.3rem;
    margin-left: 0.75rem;
    padding-left: 0.75rem;
    border-left: 2px solid var(--brand-light-blue);
}

/* For the specific dropdown area, render nested submenu as a floating bubble to the right */
.custom-dropdown-menu .submenu-list {
    position: relative;
}

.custom-dropdown-menu .submenu-list .submenu-list {
    /* override inline indentation and render as floating bubble to the right */
    margin-top: 0;
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
    position: absolute;
    left: calc(100% + 12px);
    top: 0;
    min-width: 260px;
    padding: 0.75rem;
    border-radius: 14px;
    background-color: #ffffff;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(115, 188, 193, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateX(6px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.custom-dropdown-menu .submenu-group:hover > .submenu-list {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.custom-dropdown-menu .submenu-list .submenu-list .submenu-list {
    left: calc(100% + 8px);
}

.submenu-group {
    margin-bottom: 0.25rem;
}

.submenu-link {
    display: block;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    color: #44505a;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.submenu-parent {
    color: var(--brand-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-dropdown-menu .submenu-link.class-menu-link {
    background: var(--submenu-item-bg, #ffffff);
    color: var(--submenu-item-color, #44505a);
    border: 1px solid var(--submenu-item-border, rgba(115, 188, 193, 0.18));
    box-shadow: 0 6px 14px rgba(115, 188, 193, 0.08);
}

.custom-dropdown-menu .submenu-link.class-menu-link:hover,
.custom-dropdown-menu .submenu-link.class-menu-link.active {
    background: var(--submenu-item-bg, #ffffff);
    color: var(--submenu-item-color, #44505a);
    border-color: var(--submenu-item-border, rgba(115, 188, 193, 0.24));
    box-shadow: 0 10px 18px rgba(115, 188, 193, 0.14);
    transform: translateX(2px);
}

/* Allow specific submenu parents to keep normal-case */
.custom-dropdown-menu .submenu-link.submenu-parent.no-case {
    text-transform: none;
}

/* Add right-arrow indicator for submenu parents that have further children */
.custom-dropdown-menu .submenu-link.submenu-parent.has-arrow {
    position: relative;
    padding-right: 1.5rem;
}
.custom-dropdown-menu .submenu-link.submenu-parent.has-arrow::after {
    content: '\00BB';
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: #666;
}

.submenu-link:hover,
.submenu-link.active,
.submenu-parent.active {
    background-color: #eef7f8;
    color: var(--brand-green);
}

@media (min-width: 992px) {
    .custom-nav-item:hover > .custom-dropdown-menu,
    .custom-nav-item:focus-within > .custom-dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }
}

/* Tlačítko menu pro mobily */
.navbar-toggler {
    background-color: white;
    border: 2px solid var(--brand-green);
    border-radius: 25px;
    padding: 0.4rem 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.toggler-text {
    font-family: 'Yanone Kaffeesatz', sans-serif;
    color: var(--brand-green);
    font-size: 1.6rem;
    letter-spacing: 1px;
    margin-top: 2px;
}

/* Offcanvas (Vyjetí z boku) */
.offcanvas {
    background: linear-gradient(180deg, #fffdf6 0%, #f8efc8 100%);
    border: none;
    position: fixed;
    top: 0;
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    z-index: 2005;
}

.offcanvas-backdrop {
    z-index: 2000;
}

.offcanvas .btn-close {
    filter: invert(40%) sepia(30%) saturate(1000%) hue-rotate(30deg) brightness(95%) contrast(85%);
    opacity: 1;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-item,
.mobile-submenu-item {
    list-style: none;
}

.mobile-menu-item {
    margin-bottom: 0.65rem;
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.72);
    box-shadow: 0 6px 16px rgba(110, 122, 42, 0.08);
    overflow: hidden;
}

.mobile-menu-link,
.mobile-menu-toggle,
.mobile-submenu-link,
.mobile-submenu-toggle-link {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    border: 0;
    background: transparent;
    text-align: left;
}

.mobile-menu-link,
.mobile-menu-toggle {
    justify-content: space-between;
    padding: 0.9rem 1rem;
    color: var(--brand-green);
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 1.55rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.mobile-submenu-link,
.mobile-submenu-toggle-link {
    justify-content: flex-start;
}

.mobile-menu-text {
    flex: 1;
    text-align: left;
}

.mobile-menu-toggle i,
.mobile-submenu-toggle-link i {
    transition: transform 0.2s ease;
}

.mobile-submenu-toggle-link i {
    margin-left: auto;
}

.mobile-menu-toggle[aria-expanded="true"] i,
.mobile-submenu-toggle-link[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.mobile-menu-link.active,
.mobile-menu-toggle.active {
    color: #4f5f1b;
}

.mobile-submenu-collapse {
    padding: 0 1rem 0.75rem;
}

.mobile-submenu-list {
    list-style: none;
    margin: 0;
    padding: 0.2rem 0 0 0.85rem;
    border-left: 2px solid rgba(115, 188, 193, 0.35);
}

.mobile-submenu-item {
    margin-top: 0.15rem;
}

.mobile-submenu-link,
.mobile-submenu-toggle-link {
    color: #44505a;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.45rem 0 0.45rem 0.2rem;
}

.mobile-submenu-link::before,
.mobile-submenu-toggle-link span::before {
    content: "↳";
    color: var(--brand-blue);
    margin-right: 0.45rem;
}

.mobile-submenu-link.active,
.mobile-submenu-toggle-link.active {
    color: var(--brand-green);
}

.mobile-submenu-link.class-menu-link {
    margin-right: 0.15rem;
    padding: 0.45rem 0.65rem;
    border-radius: 12px;
    border: 1px solid var(--submenu-item-border, rgba(115, 188, 193, 0.18));
    background: var(--submenu-item-bg, #ffffff);
    color: var(--submenu-item-color, #44505a);
    box-shadow: 0 6px 14px rgba(115, 188, 193, 0.08);
}

.mobile-submenu-link.class-menu-link::before {
    color: var(--submenu-item-color, #44505a);
    opacity: 0.78;
}

.mobile-submenu-link.class-menu-link.active {
    background: var(--submenu-item-bg, #ffffff);
    color: var(--submenu-item-color, #44505a);
    border-color: var(--submenu-item-border, rgba(115, 188, 193, 0.24));
}


/* ==========================================================================
   HLAVNÍ STRÁNKA (INDEX) STYLY
   ========================================================================== */
#o-nas {
    position: relative;
    z-index: 1;
    margin-top: 2.75rem;
    margin-bottom: 8rem;
}

.about-shapes-container {
    position: relative;
}

.photo-frame {
    position: absolute;
    background-color: white;
    padding: 15px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    overflow: hidden;
    z-index: 10;
    will-change: transform;
}

.frame-budova {
    animation: gentleFloatBudova 7.5s ease-in-out infinite;
}

.frame-trida {
    animation: gentleFloatTrida 9s ease-in-out infinite;
}

.masked-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    transform-origin: center center;
    will-change: transform;
}

.frame-budova .masked-photo {
    animation: gentleZoomBudova 10s ease-in-out infinite alternate;
    -webkit-mask-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0,10 C15,-5 35,5 50,15 C65,25 85,15 100,0 L100,100 L0,100 Z' fill='black'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0,10 C15,-5 35,5 50,15 C65,25 85,15 100,0 L100,100 L0,100 Z' fill='black'/%3E%3C/svg%3E");
}

.frame-trida .masked-photo {
    animation: gentleZoomTrida 11.5s ease-in-out infinite alternate;
    -webkit-mask-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0,15 C10,5 25,-5 40,5 C55,15 70,5 85,-10 C95,-20 100,-15 100,0 L100,100 L0,100 C0,100 0,60 0,40 C0,30 0,20 0,15 Z' fill='black'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0,15 C10,5 25,-5 40,5 C55,15 70,5 85,-10 C95,-20 100,-15 100,0 L100,100 L0,100 C0,100 0,60 0,40 C0,30 0,20 0,15 Z' fill='black'/%3E%3C/svg%3E");
}

.shape-deco-1 { position: absolute; background-color: #d8eef0; border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; z-index: 1; }
.shape-deco-2 { position: absolute; background-color: #e2efc1; border-radius: 60% 40% 30% 70% / 50% 30% 70% 50%; z-index: 1; }

@keyframes gentleFloatBudova {
    0%, 100% { transform: translateY(0) rotate(-1.2deg); }
    50% { transform: translateY(-8px) rotate(-0.3deg); }
}

@keyframes gentleFloatTrida {
    0%, 100% { transform: translateY(0) rotate(1deg); }
    50% { transform: translateY(-6px) rotate(1.8deg); }
}

@keyframes gentleZoomBudova {
    0% { transform: scale(1); }
    100% { transform: scale(1.04); }
}

@keyframes gentleZoomTrida {
    0% { transform: scale(1.01); }
    100% { transform: scale(1.045); }
}

@media (prefers-reduced-motion: reduce) {
    .frame-budova,
    .frame-trida,
    .frame-budova .masked-photo,
    .frame-trida .masked-photo {
        animation: none !important;
    }
}

.text-area-box {
    background: linear-gradient(135deg, #eef8f9 0%, #f8fcfc 100%);
    padding: 3.25rem 3rem;
    border-radius: 34px;
    box-shadow: 0 14px 30px rgba(115, 188, 193, 0.08);
    border: 1px solid rgba(115, 188, 193, 0.14);
}

.content-title {
    color: var(--brand-blue);
    font-size: clamp(2.6rem, 2vw + 1.5rem, 3.4rem);
    margin-bottom: 1rem;
    text-transform: uppercase;
    line-height: 0.95;
}

.content-text p {
    font-size: 1.08rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1rem;
}

/* Aktuality (Hlavní stránka) */
.news-section { margin-top: 6rem; }

.news-card {
    border-radius: 20px;
    overflow: hidden;
    background-color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(115, 188, 193, 0.15) !important;
    border-color: var(--brand-light-blue);
}

.news-card .card-img-top { height: 220px; object-fit: cover; background-color: var(--brand-light-blue); }
.news-date { font-weight: 600; color: var(--brand-green); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.5px; }
.news-title { color: var(--brand-blue); font-family: 'Yanone Kaffeesatz', sans-serif; font-size: 2rem; letter-spacing: 1px; margin-bottom: 0.5rem; line-height: 1.1; }
.news-text { color: #555; font-size: 1.05rem; line-height: 1.6; }

.upcoming-events-section {
    margin-top: 5rem;
}

.upcoming-events-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.upcoming-events-intro {
    color: #61707a;
    font-size: 1.02rem;
}

.upcoming-events-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    color: var(--brand-green);
    font-weight: 800;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(208, 229, 163, 0.26);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.upcoming-events-link:hover {
    background: rgba(208, 229, 163, 0.42);
    transform: translateY(-1px);
}

.upcoming-event-card,
.upcoming-empty-state {
    background: linear-gradient(135deg, #ffffff 0%, #f7fbfc 100%);
    border: 1px solid rgba(115, 188, 193, 0.16);
    border-radius: 22px;
    box-shadow: 0 12px 26px rgba(115, 188, 193, 0.08);
}

.upcoming-event-card {
    padding: 1.2rem 1.2rem 1.1rem;
}

.upcoming-empty-state {
    padding: 1.2rem 1.3rem;
    color: #52606b;
}

.upcoming-event-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}

.upcoming-event-date {
    color: var(--brand-green);
    font-weight: 800;
    font-size: 0.95rem;
}

.upcoming-event-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: var(--badge-bg, rgba(244, 208, 104, 0.3));
    color: var(--badge-color, #6b5310);
    border: 1px solid var(--badge-border, rgba(244, 208, 104, 0.55));
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.upcoming-event-title {
    color: var(--brand-blue);
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 1.85rem;
    line-height: 1;
    margin-bottom: 0.45rem;
}

.upcoming-event-audience {
    margin-bottom: 0.55rem;
    color: #687782;
    font-weight: 700;
}

.upcoming-event-text {
    color: #52606b;
    line-height: 1.6;
}

/* ==========================================================================
   UNIVERZÁLNÍ PODSTRÁNKA (O NÁS, atd.) STYLY
   ========================================================================== */
.page-title {
    color: var(--brand-blue);
    font-size: 3rem;
    text-transform: none;
    margin-top: 0.95rem;
    margin-bottom: 2rem;
}


.subpage-content {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #444;
}

.subpage-content p { margin-bottom: 1.5rem; }
.subpage-content ul { margin-top: 2rem; margin-bottom: 2rem; padding-left: 1.5rem; }
.subpage-content li { margin-bottom: 0.6rem; }

.subpage-hero {
    scroll-margin-top: 120px;
}

.subpage-panel {
    background: linear-gradient(135deg, #f5fbfc 0%, #ffffff 100%);
    border: 1px solid rgba(115, 188, 193, 0.18);
    border-radius: 24px;
    padding: 2rem 2.2rem;
    box-shadow: 0 12px 30px rgba(115, 188, 193, 0.08);
}

.subpage-lead {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4d5b63;
    max-width: 900px;
}

.subpage-section-card {
    background-color: #ffffff;
    border: 1px solid rgba(115, 188, 193, 0.18);
    border-radius: 18px;
    padding: 1.5rem;
    height: 100%;
    box-shadow: 0 10px 24px rgba(115, 188, 193, 0.08);
    scroll-margin-top: 120px;
}

.subpage-section-card h2 {
    font-family: 'Yanone Kaffeesatz', sans-serif;
    color: var(--brand-green);
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.subpage-section-card p,
.subpage-section-card li {
    color: #4d5b63;
    line-height: 1.75;
}

.subpage-section-card ul {
    margin: 0;
    padding-left: 1.2rem;
}

/* Boční zelené menu na podstránkách */
.sidebar-menu {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdf6 100%);
    border: 1px solid rgba(110, 122, 42, 0.18);
    border-radius: 18px;
    overflow: hidden;
    position: sticky;
    top: 20px;
    box-shadow: 0 12px 30px rgba(110, 122, 42, 0.08);
    width: 100%;
    max-width: none;
}

.sidebar-header {
    background-color: var(--brand-light-green);
    padding: 1rem 1.25rem 0.7rem;
    margin: 0;
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 1.9rem;
    color: #334019;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
}

.sidebar-intro {
    margin: 0;
    padding: 0 1.25rem 1rem;
    background-color: var(--brand-light-green);
    color: #4d5a2b;
    font-size: 0.95rem;
    line-height: 1.45;
}

.sidebar-nav-list {
    list-style: none;
    padding: 0.8rem;
    margin: 0;
}

.sidebar-nav-list li { margin-bottom: 0.35rem; }
.sidebar-nav-list li:last-child { margin-bottom: 0; }

.sidebar-nav-list a {
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 1.4rem;
    color: #333;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.8rem;
    border-radius: 12px;
}

.sidebar-link-icon {
    font-size: 1rem;
    color: var(--brand-blue);
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-nav-list a:hover,
.sidebar-nav-list a.active {
    color: var(--brand-green);
    background-color: rgba(208, 229, 163, 0.35);
    transform: translateX(2px);
}

.sidebar-nav-list a.active .sidebar-link-icon,
.sidebar-nav-list a:hover .sidebar-link-icon {
    color: var(--brand-green);
}

/* ==========================================================================
   PATIČKA (FOOTER)
   ========================================================================== */
.wave-footer {
    width: 100%;
    height: 40px; 
    background-color: var(--brand-yellow);
    mask-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0,50 C20,5 30,5 50,50 C70,95 80,95 100,50 L100,100 L0,100 Z' fill='black'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0,50 C20,5 30,5 50,50 C70,95 80,95 100,50 L100,100 L0,100 Z' fill='black'/%3E%3C/svg%3E");
    mask-size: max(16.66%, 150px) 100%;
    -webkit-mask-size: max(16.66%, 150px) 100%;
    mask-repeat: repeat-x;
    -webkit-mask-repeat: repeat-x;
    margin-top: 4rem;
}

.site-footer {
    background-color: var(--brand-yellow);
    min-height: 200px;
    margin-top: -1px;
    padding: 2.5rem 0 1.5rem;
}

.footer-text { font-family: 'Yanone Kaffeesatz', sans-serif; color: #6e7a2a; font-size: 1.8rem; letter-spacing: 0.03em; text-transform: none; margin: 0; }
.footer-copy { font-family: 'Yanone Kaffeesatz', sans-serif; color: #6e7a2a; font-size: 1.1rem; letter-spacing: 0.03em; text-transform: none; margin: 0; }
.footer-heading { font-family: 'Yanone Kaffeesatz', sans-serif; color: var(--brand-green); font-size: 1.5rem; text-transform: uppercase; margin-bottom: 0.8rem; letter-spacing: 1px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.45rem; }
.footer-link, .footer-contact-link, .footer-author-link { color: #6e7a2a; text-decoration: none; font-weight: 600; transition: color 0.2s ease; }
.footer-link:hover, .footer-contact-link:hover, .footer-author-link:hover { color: #ffffff; }
.footer-contact-item { display: flex; align-items: center; gap: 0.6rem; color: #6e7a2a; }
.footer-badge { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background-color: rgba(255,255,255,0.45); }
.footer-image { max-width: 170px; width: 100%; height: auto; }

.footer-bottom-bar {
    position: relative;
    margin-top: 2rem;
    padding-top: 1.4rem;
}

.footer-bottom-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(110, 122, 42, 0) 0%,
        rgba(110, 122, 42, 0.2) 18%,
        rgba(255, 255, 255, 0.72) 50%,
        rgba(110, 122, 42, 0.2) 82%,
        rgba(110, 122, 42, 0) 100%
    );
}

.footer-bottom-bar::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff8d9;
    border: 1px solid rgba(110, 122, 42, 0.22);
    box-shadow: 0 2px 8px rgba(110, 122, 42, 0.12);
}


/* ==========================================================================
   RESPONZIVITA (MEDIA QUERIES)
   ========================================================================== */

/* --- STYLY PRO PC --- */
@media (min-width: 992px) {
    /* Hlavní stránka (Fotky) */
    .about-shapes-container { height: 550px; margin-bottom: 0; }
    .frame-budova { width: 80%; height: 320px; top: 0; left: 0; }
    .frame-trida { width: 75%; height: 280px; bottom: 0; right: 0; z-index: 11; }
    .shape-deco-1 { width: 350px; height: 350px; top: -30px; left: -50px; }
    .shape-deco-2 { width: 400px; height: 400px; bottom: -50px; right: 50px; }
    .text-area-wrapper { padding-left: 2rem; }
}

/* --- STYLY PRO MOBIL A TABLET --- */
@media (max-width: 991px) {
    /* Hlavička a Menu */
    .header-branding-row { gap: 0.9rem; min-height: auto; padding: 0.7rem 0 0.95rem; justify-content: center; }
    .header-logo { max-width: 110px; }
    .header-title-group { align-items: center; padding-left: 0; border-left: 0; text-align: center; }
    .header-title-group::after { width: 92px; }
    .header-title { font-size: 2rem; margin-top: 0.1rem; text-align: center; }
    .header-location { font-size: 0.88rem; letter-spacing: 0.1em; text-align: center; }
    .wave-menu-wrapper { margin-bottom: 1.4rem; padding: 0.46rem 0 0.38rem; }
    .wave-menu-wrapper::before { top: -16px; height: 17px; }
    .wave-menu-wrapper::after { content: none; }
    .wave-menu-wrapper .navbar { padding: 0.1rem 0; min-height: 46px; }
    .nav-link { font-size: 1.2rem; padding: 0.65rem 0.75rem 0.8rem !important; }
    .mobile-main-link { font-size: 1.35rem !important; }
    .mobile-submenu-link { font-size: 0.96rem; }
    
    /* Patička */
    .site-footer { text-align: center; }
    .footer-contact-item { justify-content: center; }

    /* Hlavní stránka */
    #o-nas { margin-top: 2rem; margin-bottom: 5.5rem; }
    .content-title { font-size: 2.5rem; text-align: center; }
    .about-shapes-container { height: 340px; margin-bottom: 4rem; display: block; }
    .photo-frame { padding: 10px; border-radius: 20px; }
    .frame-budova { width: 85%; height: 200px; top: 0; left: 0; }
    .frame-trida { width: 85%; height: 180px; bottom: 0; right: 0; z-index: 11; }
    .shape-deco-1 { width: 200px; height: 200px; top: -10px; left: -10px; }
    .shape-deco-2 { width: 250px; height: 250px; bottom: -20px; right: 10px; }
    .text-area-box { padding: 2.3rem 1.7rem !important; margin-bottom: 4rem; border-radius: 24px; }
    .content-title { margin-bottom: 0.8rem; }
    .content-text p { font-size: 1.05rem; }

    /* Podstránky */
    .page-title { font-size: 2.5rem; text-align: center; margin-top: 0.8rem; }
    .sidebar-menu { margin-top: 3rem; }
}