/* AK News Section Styles */

.ak-news-section {
    width: 100%;
    box-sizing: border-box;
    padding: 80px 64px 80px;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ak-news-inner {
    max-width: 1200px;
    margin: 0 auto;
    color: #ffffff;
}

/* NADPIS POSLEDNÍ NOVINKY */
.ak-news-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #FDA748;
}

.ak-news-heading-logo {
    height: 35px;
    width: 35px;
    display: block;
}

.ak-news-divider {
    margin-top: 10px;
    width: 260px;
    border-top: 2px dashed #FDA748;
}

.ak-news-intro {
    margin: 18px 0 0 0;
    font-size: 14px;
    color: #B07977;
}

/* GRID NOVINEK */
.ak-news-grid {
    margin-top: 56px;
    display: flex;
    gap: 32px;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
}

/* Pro archiv - více řádků */
.ak-news-archive .ak-news-grid {
    margin-top: 40px;
}

.ak-news-archive .ak-news-grid:first-of-type {
    margin-top: 56px;
}

/* KARTA NOVINKY */
.ak-news-card {
    flex: 1 1 0;
    min-width: 0;
    max-width: 360px;
}

/* Link wrapper pro celou kartu */
.ak-news-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.ak-news-card-link:hover {
    transform: translateY(-5px);
}

.ak-news-card-link:hover .ak-news-title {
    color: #FDA748;
}

.ak-news-card-link:hover .ak-news-image {
    transform: scale(1.05);
}

/* obrázek */
.ak-news-image-wrap {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
}

.ak-news-image {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-bottom: 1px solid #B07977 !important;
    transition: transform 0.3s ease;
}

.ak-news-date {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    padding: 17px 34px 3px;
    border-radius: 18px 18px 0 0;
    background: #17091d;
    font-size: 13px;
    border-top: 1px solid #B07977;
    border-left: 1px solid #B07977;
    border-right: 1px solid #B07977;
    border-bottom: 1px solid #17091d;
    font-weight: 500;
    color: #B07977;
    line-height: 1.2;
}

/* titulek */
.ak-news-title {
    margin: 26px 0 0 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: #ffffff;
    transition: color 0.3s ease;
}

/* link dole */
.ak-news-all-wrapper {
    margin-top: 48px;
    text-align: center;
}

.ak-news-all-link {
    font-size: 16px;
    text-decoration: underline !important;
    color: #B54EC3;
    cursor: pointer;
    transition: color 0.3s ease;
}

.ak-news-all-link:hover {
    color: #FDA748;
}

/* Loading state */
.ak-news-all-link.loading {
    opacity: 0.6;
    pointer-events: none;
}

.ak-news-all-link.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* No posts message */
.ak-news-no-posts {
    text-align: center;
    color: #B07977;
    font-size: 16px;
    padding: 40px 0;
}

/* Pagination */
.ak-news-pagination {
    margin-top: 48px;
    text-align: center;
}

.ak-news-pagination .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 4px;
    color: #B07977;
    text-decoration: none;
    border: 1px solid #B07977;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.ak-news-pagination .page-numbers:hover,
.ak-news-pagination .page-numbers.current {
    background: #B54EC3;
    border-color: #B54EC3;
    color: #ffffff;
}

.ak-news-pagination .page-numbers.prev,
.ak-news-pagination .page-numbers.next {
    border: none;
    color: #B54EC3;
}

.ak-news-pagination .page-numbers.prev:hover,
.ak-news-pagination .page-numbers.next:hover {
    background: transparent;
    color: #FDA748;
}

/* responzivita */
@media (max-width: 1100px) {
    .ak-news-section {
        padding: 60px 24px 60px;
    }

    .ak-news-grid {
        gap: 24px;
        margin-left: 0px;
    }

    .ak-news-title {
        font-size: 18px;
    }
}

@media (max-width: 900px) {
    .ak-news-grid {
        flex-direction: column;
        align-items: center;
        margin-left: 0px;
    }

    .ak-news-card {
        max-width: 420px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .ak-news-section {
        padding: 40px 16px;
    }

    .ak-news-heading {
        font-size: 16px;
        gap: 8px;
    }

    .ak-news-heading-logo {
        height: 28px;
        width: 28px;
    }

    .ak-news-divider {
        width: 200px;
    }

    .ak-news-title {
        font-size: 16px;
        margin-top: 20px;
    }

    .ak-news-date {
        padding: 12px 24px 3px;
        font-size: 12px;
    }

    .ak-news-image-wrap {
        border-radius: 24px;
    }
}
