/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== Celá stránka ===== */
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f4f8fc;
    color: #333;
}

.page-container {
    max-width: 1860px;
    margin: 0 auto;
}

/* ===== Nadpis ===== */
h1 {
    font-size: 36px;
    margin: 60px 0 30px;
    text-align: center;
}

/* ===== HERO obrázek ===== */

.page-hero {
  margin-top: 0px; /* nebo výška tvé hlavičky */
}

.page-hero img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* ===== Obal kontejneru ===== */
.blog-container {
    width: 1248px;
    margin: 0 auto;
    padding: px;
    position: relative;
    z-index: 1;
}

/* ===== Sekce: modré pozadí hlavního článku ===== */
.blog-featured-wrapper {
    width: 100%;
    background-color: #f4f8fc;
    padding: 0px 0 0px;
    position: relative;
    z-index: 0;
}

/* ===== Sekce: bílý blok pro ostatní články ===== */
.blog-main-white {
    width: 100%;
    background-color: #fff;
    padding: 10px 0;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
}

/* ===== Hlavní článek (featured) ===== */
.featured-post .blog-post-content {
    background-color: #f4f8fc;
    padding: 40px 57px;         /* vnitřní odsazení: nahoře+dole 40px, vpravo+vlevo 57px */
    margin: 20px 0;             /* vnější odsazení: nahoře a dole 20px */
    line-height: 1.6;           /* řádkování: běžně 1.5 až 1.7 */
    border-radius: 10px;        /* volitelné: zaoblení rohů */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.featured-post .blog-post-content p {
    margin: 0 0 1em 0;          /* spodní mezera mezi odstavci */
}

}

.featured-post .blog-post-content h2 {
    margin: 10px 0 0 0;
}

.featured-post .blog-post-content .blog-post-date {
    font-size: 0.85em;
    color: #888;
    margin-bottom: 8px;
}

.featured-post .blog-post-content .read-more-btn {
    margin-top: auto;
    align-self: flex-start;
}


/* ===== Grid článků ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    justify-content: center;
}

/* ===== Ostatní články (malé karty) ===== */
.grid-post {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    padding: 0;
    margin: 0;
    box-shadow: 6px 10px 28px rgba(0, 0, 0, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    display: flex;
    flex-direction: row;
    width: 612px;
    height: 168px;
}

.grid-post:hover {
    transform: translateY(-4px);
    box-shadow: 10px 16px 36px rgba(0, 0, 0, 0.25);
}

.grid-post .blog-post-img {
    width: 305px;
    height: 100%;
    object-fit: cover;
    border-radius: 16px 16px 16px 16px;
}

.grid-post .blog-post-content {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* aby tlačítko bylo dole */
    flex: 1;
    background-color: #fff;
    border-radius: 21px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Nadpis článku */
.grid-post h3 {
    font-size: 22px;
    margin: 0 0 6px 0;
}

/* Datum článku */
.grid-post .blog-post-date {
    font-size: 13px;
    color: #777;
    margin-bottom: 4px;
}

/* Omezení textu článku na 2 řádky */
.grid-post .blog-post-content p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    margin: 0 0 10px 0;
    color: #333;
    font-size: 15px;
}

/* Tlačítko "Číst dál" */
.read-more-btn {
    color: #0057ff;
    text-decoration: none;
    font-weight: bold;
    align-self: flex-start;
    margin-top: auto;
}

.read-more-btn:hover {
    text-decoration: underline;
}


/* ===== Stránkování ===== */
.pagination {
    margin: 40px 0;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.pagination a {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #0066cc;
    font-weight: bold;
}

.pagination a.active {
    background-color: #0066cc;
    color: white;
}

.pagination a:hover {
    background-color: #f0f0f0;
}

/* ===== Responsivita ===== */
@media (max-width: 1400px) {
    .blog-container {
        width: 96%;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        justify-content: center;
    }

    .grid-post {
        width: 100%;
    }

    .featured-post {
        flex-direction: column;
        height: auto;
    }

    .featured-post .blog-post-img {
        width: 100%;
        height: 320px;
        border-radius: 16px 16px 0 0;
    }
}

@media (max-width: 768px) {
    .featured-post .blog-post-content,
    .grid-post .blog-post-content {
        padding: 16px;
    }

    .grid-post {
        flex-direction: column;
        height: auto;
    }

    .grid-post .blog-post-img {
        width: 100%;
        height: 200px;
        border-radius: 16px 16px 0 0;
    }
}
