.menu li.aktivni_vychytavky a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    background-color: white;
    bottom: -4px;
    left: 0;
}

.nadpis {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 50px;
    color: #333;
}

p {
    /* Zarovnáme ke stejnému centru jako tabulku + omezíme šířku */
    width: 90%;
    margin: 0 auto 30px;   /* nahoře 0, dole 30px mezera od tabulky */
    
    /* Vzhled bloku */
    padding: 12px 16px;
    background-color: #eaf4ff;           /* jemné světlé pozadí ladící s paginator */
    border-left: 4px solid #1976d2;      /* modrá linka pro vizuální oddělení */
    border-radius: 4px;
    
    /* Text */
    font-style: italic;
    color: #555;
    line-height: 1.4;
    text-align: center;
}

.tiles-wrapper {
    width: 100%;          /* <<< DŮLEŽITÉ! */
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Samotná dlaždice */
.tile {
    width: 200px;
    background: white;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;

    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hover efekt */
.tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}

/* Ikona */
.tile img {
    width: 110px;
    height: auto;
    box-shadow: none;
    border: none;
}

/* Text pod ikonou */
.tile span {
    margin-top: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1976d2;
    white-space: nowrap;   /* Zabrání zalomení */
}

/* Hover na textu – změna barvy */
.tile:hover span {
    color: #0d5bb5;
}



.tile {
    position: relative;
    overflow: hidden; /* Glow musí být uvnitř */
}

.tile-glow {
    position: absolute;
    width: 130px;
    height: 130px;
    background: radial-gradient(circle, rgba(25,118,210,0.35), transparent 70%);
    pointer-events: none; /* kurzor to neblokuje */
    transform: translate(-50%, -50%);
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}
