/* Podstránky na obsahu stránky */

.poduroven-section {
    margin: 24px 0 32px;
}

/* 1) Seznam odkazů — položky ~300px vedle sebe, zalamování */
.poduroven-seznam {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
}

.poduroven-seznam-item {
    box-sizing: border-box;
    flex: 0 0 300px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    color: #2C2A3F;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
}

.poduroven-seznam-item:hover {
    border-color: #EC6839;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    color: #2C2A3F;
}

.poduroven-seznam-item .bi {
    color: #EC6839;
    flex-shrink: 0;
    font-size: 0.85rem;
}

@media (max-width: 479px) {
    .poduroven-seznam-item {
        flex: 1 1 calc(50% - 10px);
        max-width: calc(50% - 5px);
    }
}

/* 2) Boxy jako aktuality */
.poduroven-boxy .col-12,
.poduroven-boxy .col-md-6 {
    container-type: inline-size;
}

/* 3) Karty s obrázkem na pozadí */
.poduroven-karta {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poduroven-karta:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}

.poduroven-karta-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.poduroven-karta-nazev {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.94);
    color: #2C2A3F;
    font-weight: 700;
    font-family: 'Barlow', sans-serif;
    font-size: 1.05rem;
    line-height: 1.3;
}
