/* ---------------------------------------------------
   STYLY PRO STRANKU ODKAZU (assets/css/odkazy.css)
   --------------------------------------------------- */

.page-odkazy {
    padding: 60px 0 100px;
    background-color: #f8fbfb;
}

/* Levy sloupec - Hlavicka a Zvyraznena karta */
.odkazy-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 20px;
}
.odkazy-header p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
}

/* Zvyraznena karta vlevo */
.karta-highlight {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(243, 156, 18, 0.2);
}

.karta-highlight:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    }

.karta-highlight-tag {
    position: absolute;
    top: 0;
    left: 25px;
    background: #f39c12;
    color: #fff;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 10;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.karta-highlight-img-wrapper {
    width: 100%;
    height: 220px;
    background-image: url('https://ucimesmath4u.vsb.cz/images/lista.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border-bottom: 1px solid #eaeaea;
}
.karta-highlight-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.karta-highlight-obsah {
    padding: 30px 25px;
    color: #111;
    background: #fff;
}
.karta-highlight-obsah h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #111;
}
.karta-highlight-obsah p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    font-weight: 500;
}
.karta-highlight-akce {
    display: flex;
    gap: 20px;
}
.karta-highlight-akce a {
    color: #111;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}
.karta-highlight-akce a i {
    font-size: 1.2rem;
}
.karta-highlight:hover .karta-highlight-akce a {
    color: #05138b;
}

/* Pravy sloupec - Masonry mrizka odkazu */
.masonry-karty {
    column-count: 2;
    column-gap: 25px;
}

@media (max-width: 992px) {
    .masonry-karty { column-count: 2; }
    .odkazy-header h1 { font-size: 2.8rem; }
}
@media (max-width: 768px) {
    .masonry-karty { column-count: 1; }
}

/* Standardni karta */
.karta-odkaz {
    break-inside: avoid;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    position: relative;
    transition: box-shadow 0.3s ease;
}
.karta-odkaz:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.karta-odkaz-tag {
    position: absolute;
    top: 0;
    left: 20px;
    background: #f39c12;
    color: #fff;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 10;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.karta-odkaz img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    object-position: center;
    background-color: #ffffff;
    padding: 20px;
    display: block;
    border-bottom: 1px solid #eaeaea;
}

.karta-odkaz-kompozice {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: block;
    border-bottom: 1px solid #eaeaea;
}
.karta-odkaz-kompozice .gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(31, 41, 51, 1) 0%, rgba(31, 41, 51, 0.8) 45%, rgba(31, 41, 51, 0) 100%);
    z-index: 1;
}
.karta-odkaz-kompozice .pattern-overlay {
    /* position: absolute; */
    inset: 0;
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
    z-index: 2;
}

.karta-odkaz-obsah {
    padding: 25px 20px;
}
.karta-odkaz-obsah h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 15px;
}
.karta-odkaz-obsah p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}
.karta-odkaz-akce {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}
.karta-odkaz-akce a {
    color: #666;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}
.karta-odkaz-akce a i {
    color: #ccc;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.karta-odkaz:hover .karta-odkaz-akce a,
.karta-odkaz:hover .karta-odkaz-akce a i {
    color: #1bac91; 
}

.kliknutelna-karta::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
}

.karta-odkaz:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    }