.news-list {
    width: 100%;
    min-height: 60vh;
    box-sizing: border-box;
    padding: 142px 24px 72px;
    background: #fff;
    color: #1a2a35;
    font-family: "Montserrat", sans-serif;
}

.news-list-header {
    width: min(1220px, 100%);
    margin: 0 auto 38px;
    text-align: center;
}

.news-list-heading {
    margin: 0;
    color: #1270ac;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 750;
    line-height: 1.15;
}

.news-list-cards {
    width: min(1220px, 100%);
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    justify-content: center;
    gap: 30px;
    list-style: none;
}

.news-list-card {
    min-width: 0;
}

.news-list-card-link {
    display: flex;
    height: 100%;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid #e1eaf0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(18, 54, 75, 0.1);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.news-list-card-link:hover,
.news-list-card-link:focus-visible {
    border-color: rgba(18, 112, 172, 0.5);
    box-shadow: 0 16px 34px rgba(18, 54, 75, 0.16);
    transform: translateY(-5px);
}

.news-list-card-image {
    display: block;
    width: 100%;
    height: 230px;
    flex: 0 0 230px;
    object-fit: cover;
    object-position: center;
    background: #eef3f7;
    transition: transform 0.4s ease;
}

.news-list-card-link:hover .news-list-card-image {
    transform: scale(1.035);
}

.news-list-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 24px 24px;
}

.news-list-card-date {
    margin: 0 0 10px;
    color: #1270ac;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news-list-card-title {
    margin: 0;
    color: #172d3a;
    font-size: clamp(1.2rem, 1.5vw, 1.45rem);
    font-weight: 700;
    line-height: 1.35;
}

.news-list-card-description {
    display: -webkit-box;
    margin: 12px 0 0;
    overflow: hidden;
    color: #526571;
    font-size: 0.98rem;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.news-list-card-button {
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 0;
    border: 2px solid #1270ac;
    border-radius: 50%;
    color: #1270ac;
    transform: rotate(-45deg);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.news-list-card-description + .news-list-card-button {
    margin-top: 20px;
}

.news-list-card-link:hover .news-list-card-button,
.news-list-card-link:focus-visible .news-list-card-button {
    background: #1270ac;
    color: #fff;
}

.news-list-empty {
    width: min(1220px, 100%);
    margin: 0 auto;
    color: #4b5e6c;
    text-align: center;
}

@media (max-width: 700px) {
    .news-list {
        padding: 124px 0 48px;
    }

    .news-list-header {
        width: 95vw;
        margin-bottom: 26px;
    }

    .news-list-cards {
        width: 100%;
        grid-template-columns: 95vw;
        gap: 22px;
    }

    .news-list-card {
        width: 95vw;
        margin: 0 auto;
    }

    .news-list-card-image {
        height: clamp(190px, 56vw, 240px);
        flex-basis: clamp(190px, 56vw, 240px);
    }

    .news-list-card-content {
        padding: 20px 20px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .news-list-card-link,
    .news-list-card-image,
    .news-list-card-button {
        transition: none;
    }
}


.row-center {
    display: flex;
    justify-content: center;
}

/* O nás - nadpis */
.row-wavename {
    position: relative;
    width: 100%;
    min-height: clamp(3rem, 10vw, 5.5rem);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 10px;
}
.row-wavename h1, .row-wavename h2 {
    z-index: 10;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: "Montserrat", sans-serif;
    font-size: clamp(1rem, calc(7vw + 1rem), 4rem);
    white-space: nowrap;
    margin: 0;
    width: max-content;
    max-width: 100%;
}
.row-wavename h1:nth-child(1), .row-wavename h2:nth-child(1) {
    color: rgba(18, 113, 172, 0.6);
    z-index: 1;

}
.row-wavename h1:nth-child(2), .row-wavename h2:nth-child(2) {
    z-index: 2;
    color: rgba(18,112,172,1);
    animation: wave 4s ease-in-out infinite;
}
@keyframes wave{
    0%, 100%{
        clip-path: polygon(0% 45%, 7% 42%, 13% 40%, 20% 41%, 26% 42%, 32% 46%, 37% 51%, 44% 53%, 51% 55%, 55% 60%, 64% 60%, 71% 62%, 80% 62%, 84% 59%, 90% 57%, 94% 55%, 98% 54%, 100% 51%, 100% 100%, 0% 100%);
    }
    50%{
        clip-path: polygon(0% 75%, 9% 75%, 19% 75%, 26% 74%, 31% 71%, 38% 68%, 42% 64%, 50% 60%, 56% 57%, 63% 54%, 69% 52%, 75% 53%, 81% 53%, 88% 54%, 91% 55%, 93% 58%, 96% 63%, 100% 67%, 100% 100%, 0% 100%);
    }
}