:root {
    --kdu-blue: #005691;
    --kdu-blue-dark: #003d66;
    --kdu-yellow: #ffcc00;
    --kdu-yellow-dark: #e6b800;
    --dark-block: #1e252b;
    --page-bg: #f4f6f8;
    --text: #111111;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background-color: var(--page-bg);
    color: var(--text);
    padding-top: 70px;
}

/* =========================================================
   NAVIGACE - společná pro celý web
   ========================================================= */
.navbar {
    background-color: var(--kdu-yellow) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    border-bottom: 3px solid var(--kdu-blue);
    min-height: 70px;
}

.navbar .container {
    min-height: 67px;
}

.navbar-brand {
    color: #000 !important;
    font-weight: 800;
    letter-spacing: 0.35px;
    white-space: nowrap;
    line-height: 1.2;
}

.navbar-nav {
    align-items: stretch;
    gap: 0.25rem !important;
}

.nav-item {
    display: flex;
}

.nav-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.55rem 0.7rem !important;
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1.2;
    letter-spacing: 0.035em;
    color: #000 !important;
    text-transform: uppercase;
    white-space: nowrap;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(0, 86, 145, 0.15);
    color: var(--kdu-blue) !important;
}

.nav-link.active {
    box-shadow: inset 0 -3px 0 var(--kdu-blue);
}

.navbar-toggler {
    border: 1px solid rgba(0, 0, 0, 0.45) !important;
    padding: 0.45rem 0.6rem;
}

@media (max-width: 1199.98px) {
    .navbar-nav {
        padding-top: 0.75rem;
        padding-bottom: 0.5rem;
    }

    .nav-link {
        justify-content: flex-start;
        padding: 0.7rem 0.85rem !important;
    }
}

/* =========================================================
   SPOLEČNÁ HLAVIČKA STRÁNEK
   ========================================================= */
.hero-section {
    background:
        linear-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.85)),
        url('../images/logo.jpg') no-repeat center center;
    background-size: cover;
    min-height: 30vh;
    display: flex;
    align-items: center;
    border-bottom: 8px solid var(--kdu-yellow);
}

.hero-section h1 {
    color: var(--kdu-blue);
    font-weight: 800;
}

/* =========================================================
   SPOLEČNÉ SEKCE A KARTY
   ========================================================= */
.news-bg-wrapper {
    background-color: var(--kdu-yellow) !important;
    padding: 4rem 0;
}

.block-white {
    background-color: #fff !important;
    color: var(--text) !important;
    border: none;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2.5rem;
}

.block-dark {
    background-color: var(--dark-block) !important;
    color: #fff !important;
    border: none;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    margin-bottom: 2.5rem;
}

.heading-accent {
    font-weight: 800;
    color: var(--kdu-blue);
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.heading-accent::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 5px;
    background-color: var(--kdu-blue);
    border-radius: 10px;
}

.btn-kdu-blue {
    background-color: var(--kdu-blue);
    border-color: var(--kdu-blue);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.06em;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-kdu-blue:hover,
.btn-kdu-blue:focus {
    background-color: var(--kdu-blue-dark);
    border-color: var(--kdu-blue-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 86, 145, 0.3);
}

/* =========================================================
   ÚVODNÍ STRÁNKA
   ========================================================= */
.news-bg-wrapper.home-news {
    box-shadow: inset 0 10px 20px rgba(0, 0, 0, 0.05), inset 0 -10px 20px rgba(0, 0, 0, 0.05);
}

.image-card-white {
    background-color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-card-white:hover {
    transform: scale(1.01);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.image-card-white img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

/* Zachování původního rozložení obsahu indexu, ale pouze lokálně. */
@media (min-width: 1200px) {
    .home-content {
        width: 50%;
    }
}

/* =========================================================
   ARCHIV
   ========================================================= */
.image-container {
    text-align: center;
    margin: 1.5rem 0;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* =========================================================
   KANDIDÁTI
   ========================================================= */
.candidate-card {
    background-color: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    overflow: hidden;
}

.candidate-number {
    background-color: var(--kdu-blue);
    color: #fff;
    font-weight: 800;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

.candidate-img-box {
    text-align: center;
    padding: 1.2rem;
}

.candidate-img-box img {
    width: 150px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.grid-candidate-card {
    background-color: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.grid-candidate-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.grid-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 125%;
    background-color: #eaeff2;
}

.grid-img-wrapper img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid-number-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--kdu-blue);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* =========================================================
   PROGRAM
   ========================================================= */
.program-section-title {
    color: var(--kdu-blue);
    font-weight: 800;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

/* =========================================================
   OSTATNÍ STRÁNKY
   ========================================================= */
.placeholder-icon-wrap {
    color: var(--kdu-blue);
    opacity: 0.85;
}

/* =========================================================
   PATIČKA
   ========================================================= */
footer {
    background-color: var(--dark-block);
    color: #fff;
    padding: 3.5rem 0;
    border-top: 8px solid var(--kdu-blue);
}

footer a {
    color: #fff;
}

/* =========================================================
   MOBIL
   ========================================================= */
@media (max-width: 767.98px) {
    body {
        padding-top: 64px;
    }

    .navbar {
        min-height: 64px;
    }

    .navbar .container {
        min-height: 61px;
    }

    .navbar-brand {
        font-size: 0.95rem;
    }

    .hero-section {
        min-height: 26vh;
    }

    .news-bg-wrapper {
        padding: 2.5rem 0;
    }

    .candidate-img-box img {
        width: 140px;
        height: 185px;
    }
}
