/* ==========================================================================
   Články (/clanky/) – šablona articles-page.php
   Načítá se jen na této šabloně, za global.css. Genesis style.css tu není,
   takže html má 16 px; velikosti jsou přesto v px jako v navigaci a patičce.
   Karty vycházejí z .blog-* v homepage.css (ta se tu nenačítá).
   ========================================================================== */

.articles-page {
    padding: 100px 20px;
    background: #f8f8f8;
}

.articles-page .blog-container {
    max-width: 1400px;
    margin: 0 auto;
}

.articles-page .section-title {
    font-size: 45px;
    text-align: center;
    margin: 0 0 16px;
    color: #333;
    font-weight: 700;
}

.articles-page .section-subtitle {
    text-align: center;
    font-size: 21px;
    color: #666;
    margin: 0 0 64px;
    font-weight: 300;
}

/* ----- Mřížka a karty ----- */

.articles-page .blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    margin: 0;
}

.articles-page .blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.articles-page .blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.articles-page .blog-image {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* Karta bez náhledu: světlé pozadí a logo uprostřed */
.articles-page .blog-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1efe9;
}

.articles-page .blog-image--placeholder img {
    width: 40%;
    height: auto;
    max-height: 60%;
    object-fit: contain;
    opacity: 0.85;
}

.articles-page .blog-content {
    padding: 32px;
}

.articles-page .blog-content h3 {
    color: #333;
    margin: 0 0 13px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
}

.articles-page .blog-meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 16px;
    font-weight: 400;
}

.articles-page .blog-excerpt {
    color: #666;
    font-size: 16px;
    margin: 0 0 19px;
    line-height: 1.7;
}

.articles-page .read-more {
    color: #B8960F;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.articles-page .read-more:hover {
    color: #2c3e50;
    transform: translateX(5px);
}

/* ----- Doporučené řádky podle rubrik ----- */

.articles-featured {
    margin-bottom: 72px;
}

.articles-row {
    position: relative;
    margin-bottom: 56px;
    padding-bottom: 0;
}

.articles-row:last-child {
    margin-bottom: 0;
}

.articles-row-title,
.articles-list-title {
    margin: 0 0 24px;
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
}

/* Nadpis vlevo, „Vše z rubriky →“ vpravo ve stejné řádce */
.articles-row-title {
    padding-right: 180px;
}

.articles-row-more {
    position: absolute;
    top: 8px;
    right: 0;
    color: #B8960F;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.articles-row-more:hover {
    color: #2c3e50;
}

/* ----- Stránkování ----- */

.articles-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 56px;
}

.articles-pagination .page-numbers {
    display: inline-block;
    min-width: 44px;
    padding: 10px 16px;
    box-sizing: border-box;
    text-align: center;
    background: #fff;
    color: #2c3e50;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.articles-pagination a.page-numbers:hover {
    border-color: #D4AF37;
    color: #B8960F;
}

.articles-pagination .page-numbers.current {
    background: #D4AF37;
    border-color: #D4AF37;
    color: #2c3e50;
}

.articles-pagination .page-numbers.dots {
    background: transparent;
    border-color: transparent;
}

/* ----- Responzivita ----- */

@media (max-width: 1024px) {
    .articles-page .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .articles-page {
        padding: 60px 20px;
    }

    .articles-page .section-title {
        font-size: 32px;
    }

    .articles-page .section-subtitle {
        font-size: 18px;
        margin-bottom: 40px;
    }

    .articles-page .blog-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .articles-page .blog-content {
        padding: 24px;
    }

    .articles-featured {
        margin-bottom: 56px;
    }

    /* Řádek rubriky: nadpis a „Vše z rubriky →“ pod sebou */
    .articles-row-title {
        padding-right: 0;
        margin-bottom: 8px;
        font-size: 24px;
    }

    .articles-row-more {
        position: static;
        display: inline-block;
        margin-bottom: 16px;
    }

    .articles-list-title {
        font-size: 24px;
    }

    .articles-pagination {
        gap: 6px;
        margin-top: 40px;
    }

    .articles-pagination .page-numbers {
        padding: 10px 12px;
        min-width: 40px;
    }
}
