/* ==================================================
   Sponzoři a dotace
================================================== */

/* ── Intro stat strip ────────────────────────── */
.dotace-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.dotace-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 18px 24px;
    background: #f0f6ff;
    border: 1px solid #d0e3f8;
    border-radius: var(--radius-lg);
    flex: 1;
    min-width: 140px;
}

.dotace-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.1;
}

.dotace-stat-label {
    font-size: 0.78rem;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Timeline dotací ─────────────────────────── */
.dotace-scroll {
    max-height: 720px;
    overflow-y: auto;
    border: 1px solid #dbe4f0;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    box-shadow: var(--shadow-medium);
    padding: 8px 16px 16px;
    scroll-behavior: smooth;
}

.dotace-scroll::-webkit-scrollbar {
    width: 6px;
}

.dotace-scroll::-webkit-scrollbar-track {
    background: #f0f4fa;
    border-radius: 99px;
}

.dotace-scroll::-webkit-scrollbar-thumb {
    background: #c0d0e8;
    border-radius: 99px;
}

.dotace-scroll::-webkit-scrollbar-thumb:hover {
    background: #97b3d4;
}

.dotace-timeline {
    position: relative;
}

.dotace-timeline::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), #d0e3f8);
    border-radius: 2px;
}

.dotace-item {
    display: flex;
    gap: 28px;
    padding: 0 0 32px 48px;
    position: relative;
}

.dotace-item:last-child {
    padding-bottom: 0;
}

/* Tečka na časové ose */
.dotace-item::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 18px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 0 3px #e8f0fb;
    z-index: 1;
}

.dotace-card {
    flex: 1;
    background: #fff;
    border: 1px solid #e2ecf8;
    border-radius: var(--radius-lg);
    padding: 22px 26px;
    box-shadow: 0 4px 16px rgba(0, 74, 173, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.dotace-card:hover {
    box-shadow: 0 8px 28px rgba(0, 74, 173, 0.1);
    transform: translateY(-2px);
}

.dotace-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.dotace-date {
    font-size: 0.75rem;
    font-weight: 700;
    color: #8fa3bc;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dotace-amount {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
    background: #eef4ff;
    padding: 3px 12px;
    border-radius: 999px;
    border: 1px solid #c8dcf5;
}

.dotace-org {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f1f35;
    margin-bottom: 6px;
}

.dotace-desc {
    font-size: 0.875rem;
    line-height: 1.65;
    color: #5f6b7a;
}

.dotace-program {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #7a90a8;
    background: #f4f8fd;
    border: 1px solid #e0eaf5;
    padding: 3px 10px;
    border-radius: 999px;
    text-transform: uppercase;
}

/* ── Sponzoři – prázdný stav ─────────────────── */
.sponzori-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 48px 24px;
    background: #f9fbff;
    border: 2px dashed #c8dcf5;
    border-radius: var(--radius-lg);
    text-align: center;
    color: #8fa3bc;
}

.sponzori-empty svg {
    color: #c8dcf5;
}

.sponzori-empty p {
    font-size: 1rem;
    font-weight: 700;
    color: #6b7280;
    margin: 0;
}

.sponzori-empty-sub {
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    color: #9ca3af !important;
    line-height: 1.6;
}

.sponzori-empty-sub a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── Partneři / loga ─────────────────────────── */
.partneri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 8px;
}

.partner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 16px 18px;
    background: #fff;
    border: 1px solid #e2ecf8;
    border-radius: var(--radius-lg);
    text-align: center;
    text-decoration: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    min-height: 130px;
}

.partner-card:hover {
    box-shadow: 0 8px 24px rgba(0, 74, 173, 0.1);
    transform: translateY(-3px);
    border-color: #c8dcf5;
}

.partner-card img {
    max-width: 110px;
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(30%);
    transition: filter 0.2s ease;
}

.partner-card:hover img {
    filter: grayscale(0%);
}

.partner-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b7280;
    line-height: 1.35;
    letter-spacing: 0.01em;
}

/* Kraj rekonstrukce banner */
.kraj-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 28px;
    background: linear-gradient(135deg, #f0f6ff 0%, #e8f0fb 100%);
    border: 1px solid #c8dcf5;
    border-radius: var(--radius-lg);
    margin-bottom: 28px;
}

.kraj-banner img {
    width: 64px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.kraj-banner-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #374151;
}

.kraj-banner-text strong {
    display: block;
    font-size: 0.95rem;
    color: #0f1f35;
    margin-bottom: 3px;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 700px) {
    .dotace-timeline::before {
        left: 12px;
    }

    .dotace-item {
        padding-left: 38px;
    }

    .dotace-item::before {
        left: 5px;
        width: 14px;
        height: 14px;
    }

    .dotace-card {
        padding: 18px 18px;
    }

    .dotace-card-top {
        flex-direction: column;
        gap: 6px;
    }

    .dotace-amount {
        font-size: 1rem;
    }

    .dotace-stats {
        gap: 12px;
    }

    .dotace-stat {
        padding: 14px 18px;
    }

    .partneri-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .kraj-banner {
        flex-direction: column;
        text-align: center;
        gap: 14px;
        padding: 20px 20px;
    }
}
