/*
Theme Name: Stavíme modely
Theme URI: https://vlacky.info/
Author: Custom migration
Description: Klasická WordPress šablona s Gutenberg editací pro web Stavíme modely / KŽM Praha 3.
Version: 1.1.1
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: stavime-modely
*/
/* ==========================================================================
   SPOLEK MLADÝCH MODELÁŘŮ - HLAVNÍ STYLY
   ========================================================================== */

/* --- 1. PROMĚNNÉ A ZÁKLADNÍ NASTAVENÍ --- */
:root {
    --navy: #1A365D;
    --orange: #E67E22;
    --teal: #2A9D8F;
    --teal-ink: #1F7A6C;
    --green: #54B26A;
    --gray: #8A93A6;
    --white: #FFFFFF;
    --text-dark: #1F2937;
    --bg-gray: #F9FAFB;

    --font-head: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    --radius-lg: 16px;
    --radius-btn: 30px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-gray);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

body.home {
    background-color: var(--bg-gray);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- 2. TLAČÍTKA A ODZNAKY --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-orange {
    color: var(--white);
}

/* .btn-orange:hover {
    background-color: #d67118;
} */

.btn-teal {
    color: var(--white);
}

/* .btn-teal:hover {
    background-color: var(--teal-ink);
} */

.btn-navy {
    color: var(--white);
}

/* .btn-navy:hover {
    background-color: #112440;
} */

.btn-ghost {
    border: 1px solid #D1D5DB;
    color: var(--text-dark);
}

.btn-ghost:hover {
    border-color: var(--teal);
    color: var(--teal);
}

.tag,
.badge {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid #E5E7EB;
    color: #4B5563;
    display: inline-block;
    background: var(--bg-gray);
    font-weight: 600;
    text-transform: uppercase;
}

.badge-wrap {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

/* --- 3. HLAVIČKA A NAVIGACE --- */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    color: var(--white);
    padding-top: 20px;
}

#homepage.hero {
    position: relative;
    background-image: url('https://vlacky.info/titul-obr15c.jpg');
    background-size: cover;
    background-position: center;
    padding: 200px 0 160px;
    color: var(--white);
}

#krouzky.subpage-hero {
    background-image: url('https://vlacky.info/titul-obr15b.jpg');
}

#spoluprace.subpage-hero {
    background-image: url('https://vlacky.info/titul-obr15c.jpg');
}

#vystavy.subpage-hero {
    background-image: url('https://vlacky.info/titul-obr15a.jpg');
}

#workshopy.subpage-hero {
    background-image: url('https://vlacky.info/zaci2026/mseno/seminA-foto1.jpg');
}

.header-content {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "logo contacts" "logo nav";
    align-items: center;
}

@media only screen and (min-width: 769px) {
    .header-content {
        row-gap: 16px;
    }
}

.logo {
    grid-area: logo;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo svg {
    width: 32px;
    height: 32px;
    fill: var(--white);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text span:first-child {
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 600;
}

.logo-text span:last-child {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
}

.contacts {
    grid-area: contacts;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 500;
}

.contacts .divider {
    color: var(--orange);
    font-weight: bold;
}

.contacts svg {
    width: 12px;
    height: 12px;
    fill: var(--orange);
    margin-right: 4px;
    vertical-align: middle;
}

nav {
    grid-area: nav;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 24px;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

nav a {
    transition: color 0.2s;
}

nav a:not(.btn-nav):hover {
    color: var(--orange);
}

nav a.active {
    position: relative;
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--orange);
}

nav .btn-nav {
    background-color: var(--orange);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-btn);
    font-weight: 700;
}

nav .btn-nav:hover {
    background-color: #d67118;
}

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger-btn svg {
    width: 28px;
    height: 28px;
    fill: var(--white);
}

/* --- 4. HERO SEKCE --- */
.hero,
.subpage-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.hero::before,
.subpage-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero {
    padding: 200px 0 160px;
}

.hero::before {
    /* background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 100%); */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.57) 0%, rgba(0, 0, 0, 0.11) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1280px;
}

.hero-tag {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
}

.hero h1 {
    font-family: var(--font-head);
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 16px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.subpage-hero {
    padding: 160px 0 80px;
    margin-bottom: 40px;
    background-color: var(--navy);
}

.subpage-hero::before {
    background: linear-gradient(to right, rgba(26, 54, 93, 0.92) 0%, rgba(26, 54, 93, 0.65) 100%);
}

.subpage-hero-content {
    position: relative;
    z-index: 10;
    max-width: 1280px;
}

.subpage-hero h1 {
    font-family: var(--font-head);
    font-size: 42px;
    position: relative;
    color: white;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.subpage-hero p {
    font-size: 16px;
    opacity: 0.9;
    max-width: 1280px;
}

.breadcrumbs {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
    opacity: 0.8;
    display: flex;
    gap: 8px;
    align-items: center;
}

.breadcrumbs a:hover {
    color: var(--orange);
}

.subpage-hero.solid-bg {
    background-image: none !important;
    background-color: var(--navy);
}

.subpage-hero.solid-bg::before {
    display: none;
}

/* --- 5. SPOLEČNÉ PRVKY PODSTRÁNEK --- */
.content-section {
    padding: 20px 0 80px 0;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-box,
.legend {
    background-color: var(--white);
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-btn);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.filter-box {
    padding: 10px 18px;
    font-size: 13px;
    color: #4B5563;
    font-weight: 500;
    cursor: pointer;
}

.legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding: 12px 20px;
}

.status-indicator {
    font-size: 13px;
    font-weight: 500;
    color: #4B5563;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dot.go {
    background: var(--green);
}

.dot.soon {
    background: var(--orange);
}

.dot.pending {
    background: var(--gray);
}

/* --- 6. SPECIFICKÉ STRÁNKY --- */
.pillars {
    position: relative;
    margin-top: -80px;
    z-index: 20;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px;
}

.pillar-card {
    border-radius: var(--radius-lg);
    padding: 20px 12px;
    text-align: center;
    color: var(--white);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-5px);
}

.pillar-card.orange {
    background-color: var(--orange);
}

.pillar-card.teal {
    background-color: var(--teal);
}

.pillar-card.navy {
    background-color: var(--navy);
}

.pillar-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    fill: none;
    stroke: var(--white);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pillar-card h3 {
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.pillar-card p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.4;
}

.events {
    padding: 80px 0;
    background-color: var(--bg-gray);
}

.events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.events-header h2 {
    font-family: var(--font-head);
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.event-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #F3F4F6;
}

.event-card.image-bg {
    background-size: cover;
    background-position: center;
    color: var(--white);
    border: none;
    min-height: 320px;
}

.event-card.image-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.event-card.white-bg {
    background-color: var(--white);
    color: var(--text-dark);
}

.event-content {
    display: flex;
    padding: 24px;
    position: relative;
    z-index: 2;
    flex-grow: 1;
    flex-direction: column;
}

.event-icon-top {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-card.white-bg .event-icon-top {
    background-color: #F3F4F6;
}

.event-icon-top svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.event-card h3 {
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.event-meta {
    font-size: 13px;
    color: var(--orange);
    margin-bottom: 16px;
    font-weight: 700;
}

.event-card.white-bg .event-meta {
    color: var(--teal);
}

.event-desc {
    font-size: 14px;
    margin-bottom: 32px;
    line-height: 1.5;
    flex-grow: 1;
    opacity: 0.9;
}

.event-actions {
    margin-top: auto;
}

.history-b2b {
    padding: 80px 0;
    background-color: var(--bg-gray);
    border-top: 1px solid #E5E7EB;
}

.b2b-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.b2b-content h2 {
    font-family: var(--font-head);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--navy);
    line-height: 1.2;
}

.b2b-content p {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--text-dark);
    opacity: 0.9;
    line-height: 1.6;
}

.b2b-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.b2b-feature {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.b2b-feature svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--orange);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    margin-top: 2px;
}

.b2b-feature strong {
    display: block;
    font-size: 15px;
    color: var(--navy);
    margin-bottom: 4px;
}

.b2b-feature p {
    font-size: 13px;
    margin: 0;
    color: var(--text-dark);
    opacity: 0.8;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}

.intro-text h2 {
    font-family: var(--font-head);
    font-size: 32px;
    color: var(--navy);
    margin-bottom: 20px;
    line-height: 1.2;
}

.intro-text p {
    font-size: 16px;
    color: #4B5563;
    margin-bottom: 16px;
}

.info-card-box {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--orange);
}

.info-card-box h3 {
    font-family: var(--font-head);
    font-size: 22px;
    color: var(--navy);
    margin-bottom: 16px;
}

.contact-persons {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.contact-persons li {
    margin-bottom: 12px;
    font-size: 15px;
}

.contact-persons strong {
    color: var(--navy);
}

.pillars-section-title {
    text-align: center;
    font-family: var(--font-head);
    font-size: 28px;
    color: var(--navy);
    margin-bottom: 40px;
    text-transform: uppercase;
}

.cooperation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.coop-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    border: 1px solid #E5E7EB;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.coop-icon {
    background-color: #FEF3C7;
    color: var(--orange);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.coop-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.coop-text h3 {
    font-family: var(--font-head);
    font-size: 18px;
    color: var(--navy);
    margin-bottom: 8px;
}

.coop-text p {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
}

.partners-banner {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 50px;
    text-align: center;
    border: 1px solid #E5E7EB;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.partners-banner h3 {
    font-family: var(--font-head);
    font-size: 20px;
    color: var(--navy);
    margin-bottom: 30px;
    text-transform: uppercase;
}

.partner-logos-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.partner-item img {
    max-height: 50px;
    width: auto;
}

.vystavy-list,
.workshopy-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-card {
    background: var(--white);
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-lg);
    padding: 32px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    align-items: start;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.feature-date {
    font-family: var(--font-head);
    border-right: 1px dashed #E5E7EB;
    padding-right: 32px;
}

.feature-date .day {
    font-size: 42px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
}

.feature-date .month {
    font-size: 13px;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-top: 6px;
    font-weight: 600;
}

.feature-date .time {
    margin-top: 12px;
    font-size: 13px;
    color: var(--teal);
    font-weight: 600;
}

.feature-body h3 {
    font-family: var(--font-head);
    font-size: 22px;
    color: var(--navy);
    margin-bottom: 8px;
}

.feature-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 16px;
    font-weight: 500;
}

.feature-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.feature-body p {
    color: #4B5563;
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.info-panel {
    background-color: var(--bg-gray);
    border: 1px dashed #D1D5DB;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.info-row {
    display: flex;
    gap: 14px;
    align-items: baseline;
    flex-wrap: wrap;
}

.info-label {
    font-family: var(--font-head);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6B7280;
    min-width: 100px;
    flex-shrink: 0;
    font-weight: 700;
}

.info-value {
    font-size: 14px;
    color: var(--text-dark);
}

.info-value a {
    color: var(--teal);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}

.info-value a:hover {
    color: var(--navy);
}

.cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.single-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    margin-bottom: 80px;
    align-items: start;
}

.post-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.post-content h2 {
    font-family: var(--font-head);
    font-size: 28px;
    color: var(--navy);
    margin: 32px 0 16px;
}

.post-content h3 {
    font-family: var(--font-head);
    font-size: 22px;
    color: var(--navy);
    margin: 24px 0 12px;
}

.post-content p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #4B5563;
}

.post-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
    color: #4B5563;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.highlight-box {
    background-color: #FFF7ED;
    border-left: 5px solid var(--orange);
    padding: 24px;
    border-radius: 0 8px 8px 0;
    margin: 32px 0;
}

.highlight-box h3 {
    margin-top: 0;
    color: #9A3412;
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

.sidebar {
    position: sticky;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.meta-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-top: 5px solid var(--teal);
}

.meta-card h3 {
    font-family: var(--font-head);
    font-size: 20px;
    margin-bottom: 24px;
    color: var(--navy);
}

.meta-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.meta-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #4B5563;
}

.meta-list li:last-child {
    margin-bottom: 0;
}

.meta-list svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--teal);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.meta-list strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.form-card {
    background-color: var(--navy);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
}

.form-card h3 {
    font-family: var(--font-head);
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--white);
}

.form-card p {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 20px;
}

.iframe-placeholder {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 20px;
}

.krouzky-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

.k-card {
    background: var(--white);
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
    position: relative;
}

.k-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.k-card .school {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 18px;
    color: var(--navy);
}

.k-card .badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.k-card .note {
    font-size: 14px;
    color: #6B7280;
    flex-grow: 1;
}

.k-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #F3F4F6;
}

.k-card .link {
    font-size: 13px;
    font-weight: 700;
    color: var(--orange);
}

.k-card .link:hover {
    text-decoration: underline;
}

.k-note-box {
    background-color: #FEF3C7;
    border-left: 4px solid var(--orange);
    padding: 20px;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    font-size: 14px;
    color: #92400e;
}

.story-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.story-content h2 {
    font-family: var(--font-head);
    font-size: 32px;
    color: var(--navy);
    margin: 40px 0 20px;
}

.story-content p {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-dark);
    line-height: 1.7;
}

.quote-box {
    background: var(--white);
    border-left: 5px solid var(--orange);
    padding: 30px;
    margin: 40px 0;
    font-style: italic;
    font-size: 20px;
    color: var(--navy);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.sidebar-box {
    background: var(--navy);
    color: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
}

.sidebar-box .stat {
    font-size: 32px;
    font-weight: 800;
    color: var(--orange);
    display: block;
}

.stat-label {
    font-size: 14px;
    margin-bottom: 20px;
    display: block;
    opacity: 0.9;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 60px;
    margin-bottom: 80px;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid #E5E7EB;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-body {
    padding: 24px;
}

.blog-tag {
    font-size: 12px;
    color: var(--orange);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.blog-card h3 {
    font-family: var(--font-head);
    font-size: 18px;
    color: var(--navy);
    margin-bottom: 12px;
}

.blog-card p {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 20px;
}

.widget {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid #E5E7EB;
}

.widget h4 {
    font-family: var(--font-head);
    margin-bottom: 20px;
    color: var(--navy);
    font-size: 18px;
}

.widget ul {
    list-style: none;
}

.widget li {
    margin-bottom: 10px;
    font-size: 14px;
}

.widget a:hover {
    color: var(--orange);
}

/* --- 7. PATIČKA --- */
footer {
    background-color: var(--navy);
    color: var(--white);
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    margin-bottom: 16px;
}

.footer-logo span:first-child {
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 600;
}

.footer-logo span:last-child {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
}

footer p {
    font-size: 14px;
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    opacity: 0.6;
}

/* --- 8. RESPONZIVNÍ DESIGN --- */
@media (max-width: 1024px) {

    .pillars-grid,
    .events-grid {
        gap: 16px;
    }

    nav {
        gap: 16px;
        font-size: 11px;
    }

    .single-layout,
    .intro-grid,
    .blog-layout,
    .story-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .krouzky-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cooperation-grid {
        grid-template-columns: 1fr;
    }

    .b2b-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    header {
        position: relative;
        background-color: var(--navy);
        padding: 15px 0 0 0;
    }

    .header-content {
        grid-template-columns: 1fr auto;
        grid-template-areas: "logo hamburger" "nav nav";
        padding-bottom: 15px;
    }

    .contacts {
        display: none;
    }

    .hamburger-btn {
        grid-area: hamburger;
        display: block;
        justify-self: end;
    }

    nav {
        grid-area: nav;
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        background-color: var(--navy);
        padding: 10px 0 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin: 0 -24px;
        width: calc(100% + 48px);
        padding-left: 24px;
        padding-right: 24px;
    }

    nav.active {
        display: flex;
    }

    nav a {
        width: 100%;
        padding: 24px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 14px;
    }

    nav a.active::after {
        display: none;
    }

    nav a.active {
        color: var(--orange);
    }

    nav .btn-nav {
        text-align: center;
        margin-top: 15px;
        padding: 12px;
        border-bottom: none;
    }

    .hero {
        padding: 60px 0 100px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .subpage-hero {
        padding: 60px 0;
        margin-bottom: 24px;
    }

    .subpage-hero h1 {
        font-size: 32px;
    }

    .pillars {
        margin-top: 0;
        padding: 40px 0;
        background-color: var(--bg-gray);
    }

    .pillars-grid,
    .events-grid,
    .krouzky-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .section-header-row,
    .events-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .filter-box {
        width: 100%;
    }

    .filter-btn {
        flex-grow: 1;
        justify-content: space-between;
    }

    .feature-card {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px;
    }

    .feature-date {
        border-right: none;
        border-bottom: 1px dashed #E5E7EB;
        padding-right: 0;
        padding-bottom: 16px;
        display: flex;
        align-items: baseline;
        gap: 12px;
    }

    .feature-date .day {
        font-size: 32px;
    }

    .b2b-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .b2b-features {
        grid-template-columns: 1fr;
    }

    .b2b-content h2 {
        font-size: 26px;
    }

    .sidebar,
    .story-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .info-card-box {
        padding: 24px;
    }

    .post-content {
        padding: 24px;
    }

    .partners-banner {
        padding: 30px 20px;
    }

    .partner-logos-row {
        gap: 30px;
    }

    .event-card.image-bg {
        min-height: 280px;
    }
}

/* ==========================================================================
   9. KONTAKT A FOTOGALERIE
   ========================================================================== */

/* Kontakt */
.contact-info-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.contact-info-list li {
    margin-bottom: 12px;
    font-size: 16px;
}

.contact-link {
    color: var(--teal);
    font-weight: 600;
}

.contact-link:hover {
    color: var(--navy);
    text-decoration: underline;
}

.content-divider {
    margin: 40px 0;
    border: none;
    border-top: 1px solid #E5E7EB;
}

.gallery-divider {
    margin: 60px 0;
    border: none;
    border-top: 1px solid #E5E7EB;
}

.sidebar-heading {
    font-family: var(--font-head);
    font-size: 22px;
    margin-bottom: 16px;
}

.sidebar-desc {
    opacity: 0.9;
    margin-bottom: 20px;
}

.sponsor-list {
    list-style: none;
    padding: 0;
}

.sponsor-list li {
    margin-bottom: 12px;
    font-size: 16px;
}

.sponsor-list li:last-child {
    margin-bottom: 0;
}

/* Fotogalerie */
.gallery-intro {
    margin-bottom: 60px;
    max-width: 900px;
}

.gallery-intro>p {
    font-size: 16px;
    margin-bottom: 20px;
}

.schools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.school-card {
    padding: 30px;
}

.school-card.teal-top {
    border-top: 5px solid var(--teal);
}

.school-card.orange-top {
    border-top: 5px solid var(--orange);
}

.school-card h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.school-card p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 12px;
}

.school-list {
    color: var(--navy);
    font-weight: 500;
    padding-left: 20px;
    line-height: 1.8;
}

.gallery-card {
    min-height: auto;
}

.gallery-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.gallery-caption-box {
    padding: 16px;
}

.gallery-caption {
    font-size: 14px;
    text-align: center;
    margin: 0;
    color: #4B5563;
    font-style: italic;
}

/* ========================================================================== 
   WORDPRESS / GUTENBERG ADAPTACE
   ========================================================================== */

/* Core bloky si nesou wp-block-* třídy, původní designové třídy zůstávají. */
.wp-site-blocks,
.entry-content {
    margin: 0;
    padding: 0;
}

.wp-block-group.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

#main-nav {
    margin-top: 10px;
}

/* Navigace z wp_nav_menu používá <ul><li>, původní HTML mělo odkazy přímo v <nav>. */
#main-nav .main-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

#main-nav .main-menu>li {
    list-style: none;
    margin: 0;
    padding: 0;
}

#main-nav .current-menu-item>a,
#main-nav .current_page_item>a {
    color: var(--orange);
    position: relative;
}

#main-nav .current-menu-item>a::after,
#main-nav .current_page_item>a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--orange);
}

#main-nav .btn-nav-item>a {
    background-color: var(--orange);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-btn);
    font-weight: 700;
}

#main-nav .btn-nav-item>a:hover {
    background-color: #d67118;
    color: var(--white);
}

/* Gutenberg Button má barvu na vnitřním odkazu. */
.wp-block-button.btn-orange .wp-block-button__link,
.wp-block-button.btn-teal .wp-block-button__link,
.wp-block-button.btn-navy .wp-block-button__link {
    border: 0;
    border-radius: var(--radius-btn);
    padding: 12px 24px;
    font-weight: 600;
    font-size: 14px;
}

.wp-block-button.btn-orange .wp-block-button__link,
.pre-footer-cta-box>.btn-orange,
.event-actions>.btn-orange,
.event-row-actions>.btn-orange {
    background: var(--orange);
    color: var(--white);
}

.wp-block-button.btn-teal .wp-block-button__link,
.event-actions>.btn-teal,
.event-row-actions>.btn-teal {
    background: var(--teal);
    color: var(--white);
}

.wp-block-button.btn-navy .wp-block-button__link {
    background: var(--navy);
    color: var(--white);
}

.wp-block-button.btn-orange .wp-block-button__link:hover {
    background: #d67118;
}

.wp-block-button.btn-teal .wp-block-button__link:hover {
    background: var(--teal-ink);
}

.wp-block-button.btn-navy .wp-block-button__link:hover {
    background: #112440;
}

/* Hero – Gutenberg odstavec místo původního divu. */
.hero .hero-tag,
.hero .hero-subtitle {
    margin-bottom: 0;
}

.pillar-card .wp-block-html,
.b2b-feature .wp-block-html {
    margin: 0;
}

.pillar-card h3 a {
    color: inherit;
}

.history-photo {
    margin-top: 60px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    background-color: #f3f4f6;
}

.history-photo img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* Dynamické akce */
.event-card {
    position: relative;
    overflow: hidden;
}

.event-card-thumb {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.event-badge {
    display: inline-block;
    color: var(--white);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.event-badge.orange {
    background: var(--orange);
}

.event-badge.teal {
    background: var(--teal);
}

.event-badge.navy {
    background: var(--navy);
}

.event-actions>.btn-navy {
    background: var(--navy);
    color: var(--white);
}

.event-actions>.btn-navy:hover {
    background: #112440;
}

.no-events {
    grid-column: 1 / -1;
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-lg);
}

/* Ke stažení */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.download-card {
    background: var(--white);
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.download-card h3 {
    margin-bottom: 8px;
}

.download-card p {
    margin-bottom: 20px;
}

/* Gutenberg galerie podle původních karet. */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 36px;
}

.wp-block-image.gallery-card {
    margin: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.wp-block-image.gallery-card img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.wp-block-image.gallery-card figcaption {
    padding: 14px 16px;
    margin: 0;
    color: var(--text-dark);
    font-size: 14px;
}

/* Pre-footer byl v původním footer.php inline. */
.pre-footer-cta {
    background-color: var(--bg-gray);
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid #E5E7EB;
}

.pre-footer-cta-box {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px 30px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--orange);
}

.pre-footer-cta-box h2 {
    font-family: var(--font-head);
    font-size: 28px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 16px;
}

.pre-footer-cta-box p {
    font-size: 16px;
    color: #4B5563;
    margin-bottom: 32px;
}

.site-footer h4 {
    margin-bottom: 16px;
    font-family: var(--font-head);
}

.footer-menu,
.footer-contact {
    list-style: none;
    line-height: 2;
    font-size: 14px;
    margin: 0;
    padding: 0;
}

/* Obal blockquote z Gutenbergu – původní quote-box byl div. */
.wp-block-quote.quote-box {
    margin-left: 0;
    margin-right: 0;
}

/* WordPress admin bar posune absolutní hlavičku. */
.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

@media (max-width: 768px) {
    #main-nav .main-menu {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    #main-nav .main-menu>li,
    #main-nav .main-menu>li>a {
        width: 100%;
        display: block;
    }

    #main-nav .current-menu-item>a::after,
    #main-nav .current_page_item>a::after {
        display: none;
    }

    #main-nav .btn-nav-item>a {
        text-align: center;
        margin-top: 15px;
        padding: 12px;
    }

    #menu-hlavni-menu.main-menu a {
        width: 100% !important;
        padding: 24px 0px;
        display: block;
    }

    .history-photo img {
        height: 260px;
    }

    #main-nav .main-menu>li{
        padding: 0px 0px!important;
    }

    #main-nav .main-menu>li.btn-nav-item>a {
        padding: 12px 0px!important;
    }
}

figure.wp-block-image.size-large.gallery-card{
    display:flex;
    flex-direction: column;
}

/* ============================================================
   DYNAMICKÝ SEZNAM AKCÍ
   ============================================================ */

.events-list-section {
    padding: 70px 0 100px;
    background: #f6f8fa;
}

.events-list-header {
    margin-bottom: 35px;
}

.events-list-header h2 {
    margin: 0;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.event-list-image img {
    display: block;

    width: 100%;
    height: 100%;
    min-height: 330px;

    object-fit: cover;
}


.event-list-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;

    margin-bottom: 14px;
}


.event-list-badge {
    display: inline-flex;
    align-items: center;

    padding: 6px 13px;

    border-radius: 30px;

    background: var(--orange);
    color: #fff;

    font-size: 11px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .04em;
}


.event-list-date {
    color: var(--orange);

    font-size: 14px;
    font-weight: 700;
}


.event-list-title {
    margin: 0 0 20px;

    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
}


.event-list-title a {
    color: var(--navy);
    text-decoration: none;
}

.event-list-title a:hover {
    text-decoration: underline;
}


/* Jednotlivé údaje */

.event-list-details {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 14px 30px;

    margin-bottom: 20px;
}


.event-list-detail {
    display: flex;
    flex-direction: column;
    gap: 2px;

    color: #53606d;

    font-size: 14px;
}


.event-list-detail strong {
    color: var(--navy);
}


.event-list-detail small {
    color: #7c8792;
}


/* Doplňující informace */

.event-list-info {
    margin-bottom: 18px;

    color: var(--teal);

    font-size: 14px;
    font-weight: 700;
}


/* Popis */

.event-list-description {
    margin-bottom: 25px;

    color: #53606d;

    line-height: 1.7;
}

.event-list-description p {
    margin: 0;
}


/* Tlačítka */

.event-list-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: auto;
}


/* Stav registrace workshopu */

.event-registration-status {
    display: inline-flex;
    align-self: flex-start;

    margin-bottom: 18px;

    padding: 7px 13px;

    border-radius: 30px;

    font-size: 12px;
    font-weight: 800;
}


/* Přihlášení otevřeno */

.status-otevreno {
    background: #e8f7f3;
    color: #14765d;
}


/* Poslední místa */

.status-posledni_mista {
    background: #fff3dc;
    color: #9c6200;
}


/* Obsazeno / ukončeno */

.status-obsazeno,
.status-ukonceno {
    background: #f2f2f2;
    color: #666;
}


/* Žádné akce */

.events-empty {
    padding: 40px;

    background: #fff;

    border-radius: 20px;

    text-align: center;
}


/* Mobil */

@media (max-width: 800px) {

    .event-list-item {
        grid-template-columns: 1fr;
    }

    .event-list-image {
        min-height: 0;
    }

    .event-list-image img {
        height: 260px;
        min-height: 0;
    }

    .event-list-content {
        padding: 28px 24px;
    }

    .event-list-details {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   DYNAMICKÝ ŘÁDKOVÝ VÝPIS VÝSTAV A WORKSHOPŮ
   ============================================================ */

.events-list-section {
    padding: 70px 0 100px;
    background: var(--bg-gray);
}

.events-list-header {
    margin-bottom: 35px;
}

.events-list-header h2 {
    margin: 0;
    font-family: var(--font-head);
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.event-list-item {
    display: grid;
    grid-template-columns: minmax(300px, 38%) 1fr;
    background: var(--white);
    border: 1px solid #F3F4F6;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.07);
}

.event-list-image {
    display: block;
    min-height: 330px;
}

.event-list-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 330px;
    object-fit: cover;
}

.event-list-content {
    padding: 38px 42px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.event-list-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.event-list-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 13px;
    border-radius: 30px;
    color: var(--white);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.event-list-badge.orange {
    background: var(--orange);
}

.event-list-badge.teal {
    background: var(--teal);
}

.event-list-date {
    color: var(--orange);
    font-size: 14px;
    font-weight: 700;
}

.event-list-title {
    margin: 0 0 20px;
    font-family: var(--font-head);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
}

.event-list-title a {
    color: var(--navy);
    text-decoration: none;
}

.event-list-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 30px;
    margin-bottom: 20px;
}

.event-list-detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #53606d;
    font-size: 14px;
}

.event-list-detail strong {
    color: var(--navy);
}

.event-list-detail small {
    color: #7c8792;
}

.event-list-info {
    margin-bottom: 18px;
    color: var(--teal);
    font-size: 14px;
    font-weight: 700;
}

.event-list-description {
    margin-bottom: 25px;
    color: #53606d;
    line-height: 1.7;
}

.event-list-description p {
    margin: 0;
}

.event-list-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
}

.event-registration-status {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 18px;
    padding: 7px 13px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 800;
}

.status-otevreno {
    background: #e8f7f3;
    color: #14765d;
}

.status-posledni_mista {
    background: #fff3dc;
    color: #9c6200;
}

.status-obsazeno,
.status-ukonceno {
    background: #f2f2f2;
    color: #666;
}

.events-empty {
    padding: 40px;
    background: var(--white);
    border-radius: 20px;
    text-align: center;
}


/* DETAIL AKCE */

.event-detail-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0 30px;
}

.event-detail-facts>div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    background: var(--bg-gray);
    border-radius: 14px;
}

.event-detail-facts strong {
    color: var(--navy);
    font-size: 13px;
}

.event-detail-facts span {
    font-weight: 600;
}

.event-detail-facts small {
    color: #6b7280;
}

.event-detail-info {
    color: var(--teal);
    font-weight: 700;
}

@media (max-width: 800px) {

    .event-list-item {
        grid-template-columns: 1fr;
    }

    .event-list-image {
        min-height: 0;
    }

    .event-list-image img {
        height: 260px;
        min-height: 0;
    }

    .event-list-content {
        padding: 28px 24px;
    }

    .event-list-details,
    .event-detail-facts {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   ŘÁDKOVÝ VÝPIS AKCÍ
   ============================================================ */

.events-list-section {
    padding: 70px 0 100px;
    background: var(--bg-gray);
}

.events-list-header {
    margin-bottom: 38px;
}

.events-list-header h2 {
    margin: 0;
    color: var(--navy);
    font-family: var(--font-head);
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 800;
}


/* Celý seznam */

.events-list {
    display: flex;
    flex-direction: column;
    gap: 44px;
}


/* Jedna akce */

.event-row {
    display: grid;

    grid-template-columns:
        235px minmax(0, 1fr);

    gap: 38px;

    padding: 40px;

    background: #fff;

    border: 1px solid #e1e5e9;
    border-radius: 20px;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.025);
}


/* ============================================================
   DATUM VLEVO
   ============================================================ */

.event-row-date {
    padding-right: 35px;

    border-right: 1px dashed #d6dde4;
}


/* 22.–23. */

.event-row-day {
    color: var(--navy);

    font-family: var(--font-head);

    font-size: clamp(38px, 4vw, 52px);
    line-height: 1;

    font-weight: 900;

    letter-spacing: -1.5px;
}


/* SRPNA 2026 */

.event-row-month {
    margin-top: 8px;

    color: #6b7280;

    font-size: 14px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 1.2px;
}


/* Sobota – Neděle / 10:00–17:00 */

.event-row-date-info {
    margin-top: 21px;

    color: var(--teal);

    font-size: 14px;
    font-weight: 700;

    text-transform: capitalize;
}


/* ============================================================
   OBSAH VPRAVO
   ============================================================ */

.event-row-content {
    min-width: 0;

    display: flex;
    flex-direction: column;

    justify-content: center;
}


/* Nadpis */

.event-row-title {
    margin:
        4px 0 18px;

    font-family: var(--font-head);

    font-size: clamp(23px, 2.4vw, 30px);
    line-height: 1.2;

    font-weight: 800;
}

.event-row-title a {
    color: var(--navy);
    text-decoration: none;

    transition: color .2s ease;
}

.event-row-title a:hover {
    color: var(--orange);
}


/* ============================================================
   META – místo, cena
   ============================================================ */

.event-row-meta {
    display: flex;
    flex-wrap: wrap;

    align-items: center;

    gap:
        12px 22px;

    margin-bottom: 24px;

    color: #586272;

    font-size: 15px;
    font-weight: 700;
}


.event-row-meta-item {
    display: inline-flex;

    align-items: center;

    gap: 9px;
}


.event-row-meta-icon {
    color: #e63946;

    font-size: 15px;
    line-height: 1;
}


/* ============================================================
   DOPLŇUJÍCÍ INFO
   ============================================================ */

.event-row-info {
    margin-bottom: 13px;

    color: var(--teal);

    font-size: 14px;
    font-weight: 700;
}


/* ============================================================
   POPIS
   ============================================================ */

.event-row-description {
    max-width: 1100px;

    margin-bottom: 26px;

    color: #53606d;

    font-size: 16px;
    line-height: 1.65;
}

.event-row-description p {
    margin: 0;
}


/* ============================================================
   TLAČÍTKO
   ============================================================ */

.event-row-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;
}


.event-row-actions .btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: auto;

    min-height: 48px;

    padding:
        12px 24px;

    border-radius: 999px;

    font-size: 15px;
    font-weight: 800;

    text-decoration: none;
}


/* Výstava */

.event-row-orange .event-row-title a:hover {
    color: var(--orange);
}


/* Workshop */

.event-row-teal .event-row-title a:hover {
    color: var(--teal);
}


/* ============================================================
   PRÁZDNÝ VÝPIS
   ============================================================ */

.events-empty {
    padding: 40px;

    background: #fff;

    border: 1px solid #e1e5e9;
    border-radius: 20px;

    text-align: center;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 950px) {

    .event-row {
        grid-template-columns:
            190px minmax(0, 1fr);

        gap: 28px;

        padding: 32px;
    }

    .event-row-date {
        padding-right: 25px;
    }
}


/* ============================================================
   MOBIL
   ============================================================ */

@media (max-width: 700px) {

    .events-list {
        gap: 24px;
    }


    .event-row {
        display: block;

        padding: 25px 22px;

        border-radius: 16px;
    }


    .event-row-date {
        padding:
            0 0 20px;

        margin-bottom: 22px;

        border-right: 0;
        border-bottom: 1px dashed #d6dde4;
    }


    .event-row-day {
        font-size: 38px;
    }


    .event-row-date-info {
        margin-top: 13px;
    }


    .event-row-title {
        margin-top: 0;

        font-size: 23px;
    }


    .event-row-description {
        font-size: 15px;
    }


    .event-row-meta {
        align-items: flex-start;

        flex-direction: column;

        gap: 8px;
    }
}

/* ============================================================
   DYNAMICKÉ KROUŽKY
   ============================================================ */

.krouzky-list-section {
    padding: 70px 0 100px;
    background: var(--bg-gray);
}

.krouzky-list-header {
    margin-bottom: 35px;
}

.krouzky-list-header h2 {
    margin: 0;
    color: var(--navy);
    font-family: var(--font-head);
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 800;
}


.dynamic-krouzky-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 25px;
}


.krouzek-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-height: 360px;

    padding: 30px;

    background: #fff;

    border: 1px solid #e4e8ec;
    border-radius: 20px;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.krouzek-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 16px 40px rgba(0, 0, 0, .08);
}


.krouzek-card-top {
    margin-bottom: 22px;
}


.krouzek-status {
    display: inline-flex;

    padding: 7px 13px;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .04em;
}


/* Běží */

.krouzek-status-bezi .krouzek-status {
    background: #e8f7f3;
    color: #137761;
}


/* Zahajuje se */

.krouzek-status-zahajuje_se .krouzek-status {
    background: #fff2df;
    color: #b56300;
}


/* V jednání */

.krouzek-status-v_jednani .krouzek-status {
    background: #eef1f5;
    color: #667085;
}


.krouzek-card h3 {
    margin: 0 0 10px;

    color: var(--navy);

    font-family: var(--font-head);
    font-size: 23px;
    line-height: 1.2;
    font-weight: 800;
}


.krouzek-card h3 a {
    color: inherit;
    text-decoration: none;
}


.krouzek-place {
    margin-bottom: 22px;

    color: var(--teal);

    font-size: 14px;
    font-weight: 700;
}


.krouzek-card-row {
    display: flex;
    justify-content: space-between;

    gap: 20px;

    padding: 11px 0;

    border-top: 1px solid #edf0f2;

    color: #586272;

    font-size: 14px;
}


.krouzek-card-row strong {
    color: var(--navy);
}


.krouzek-card-info {
    margin: 20px 0 0;

    color: #667085;

    line-height: 1.6;
}


.krouzek-card-actions {
    margin-top: auto;

    padding-top: 25px;
}


.krouzek-detail-link {
    color: var(--teal);

    font-weight: 800;

    text-decoration: none;
}


.krouzek-detail-link:hover {
    text-decoration: underline;
}


@media (max-width: 1000px) {

    .dynamic-krouzky-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 650px) {

    .dynamic-krouzky-grid {
        grid-template-columns: 1fr;
    }

    .krouzek-card {
        min-height: 0;
    }
}