/* Reset a základní styly */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #fbfbf9;
}

/* Hlavička / Hero Banner */
.hero-banner {
    #background-color: #ffffff;
    padding: 20px 0 0 0;
    text-align: center;
}

.header-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0px;
    background-color: #ffbfbf9;
}
.header-container h1 {
  visibility: hidden;
  height: 0px;
  padding: 0px;
  }

.main-title {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.title-blue {
    color: #003399; /* Tmavě modrá z letáku */
}

.title-green {
    color: #4caf50; /* Zelená z letáku */
}

.header-image-container {
    width: 100%;
    margin-top: 10px;
    overflow: hidden;
}

/* Pomocná třída pro plně responzivní obrázky */
.responsive-img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

/* Hlavní kontejner obsahu */
.content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
}

/* Textový dopis / Sekce */
.letter-section h1 {
    color: #003399;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.letter-section p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #222222;
}

.highlight-blue {
    font-weight: bold;
    color: #003399;
    font-size: 1.25rem !important;
}

.highlight-green {
    font-weight: bold;
    color: #2e7d32;
    font-size: 1.15rem;
    margin: 20px 0;
}

.section-divider {
    border: 0;
    height: 1px;
    background: #dddddd;
    margin: 40px 0;
}

/* Kandidáti */
.candidates-section h2 {
    color: #003399;
    font-size: 1.4rem;
    margin-bottom: 25px;
}

.candidates-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.candidates-list li {
    background-color: #f4f9f4;
    padding: 12px 15px;
    border-radius: 6px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    border-left: 4px solid #4caf50;
}

.candidates-list li::before {
    content: "👤";
    margin-right: 12px;
    font-size: 1.1rem;
}

.candidates-list li.last-candidate-placeholder {
    background-color: #fafafa;
    border: 1px dashed #ccc;
    border-left: 4px solid #ccc;
    color: #777;
    font-weight: normal;
    font-style: italic;
}

.candidates-list li.last-candidate-placeholder::before {
    content: "⏳";
}

/* Patička webu s obrázkem */
.site-footer {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fbfbf9;
    padding-bottom: 20px;
}

.footer-image-container {
    width: 100%;
}

/* Responzivní design pro počítače (Desktopy) */
@media (min-width: 768px) {
    .main-title {
        font-size: 4rem;
    }
    
    .candidates-list {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

/* Profily kandidátů */
body.profile-page {
    background: #e5e9ee;
    color: #1a2a40;
    font-family: 'Open Sans', sans-serif;
    padding: 32px 16px;
}

.profile-container {
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .18);
}

.back-link {
    display: inline-block;
    margin: 26px 36px 0;
    color: #0b2b52;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
    color: #3b7a33;
    text-decoration: underline;
}

.profile-header {
    margin-top: 20px;
    padding: 46px 48px;
    color: #fff;
    background: linear-gradient(135deg, #051d3b 0%, #0a2d59 100%);
}

.profile-kicker {
    margin-bottom: 8px;
    color: #78ca6e;
    font-family: 'Caveat', cursive;
    font-size: 2rem;
    font-weight: 700;
}

.profile-header h1 {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.12;
}

.profile-header > p:last-child {
    margin-top: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.profile-content {
    padding: 42px 48px 52px;
}

.profile-content p {
    margin: 0 0 18px;
    color: #26384f;
    font-size: 1.08rem;
    line-height: 1.72;
}

.profile-content h2 {
    margin: 40px 0 14px;
    color: #0b2b52;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
}

.profile-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    color: #fff;
    background: #051d3b;
}

.profile-footer .footer-left,
.profile-footer .footer-right {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-family: 'Caveat', cursive;
    font-size: 20px;
}

.profile-footer .footer-center {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .5px;
}

.profile-footer .heart-icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #3b7a33;
    stroke-width: 2.2;
    flex-shrink: 0;
}

.profile-footer a {
    color: #78ca6e;
    text-decoration: none;
}

.profile-footer a:hover,
.profile-footer a:focus-visible {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 680px) {
    body.profile-page {
        padding: 0;
        background: #fff;
    }

    .profile-container {
        box-shadow: none;
    }

    .back-link {
        margin: 20px 22px 0;
    }

    .profile-header,
    .profile-content {
        padding-right: 22px;
        padding-left: 22px;
    }

    .profile-header {
        padding-top: 34px;
        padding-bottom: 34px;
    }

    .profile-content {
        padding-top: 30px;
        padding-bottom: 36px;
    }

    .profile-content p {
        font-size: 1rem;
    }

    .profile-footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}
