/* =========================================
   Blog Archive + Home — Fokus tema
   ========================================= */

/* -------- Page hero -------- */
.archive-hero {
    background: #f5f5f5;
    border-bottom: 1px solid var(--color-border);
    padding: 56px 0 52px;
    text-align: center;
    margin-bottom: 64px;
}

.archive-hero__title {
    font-size: 40px;
    font-weight: 700;
    margin: 0;
    color: var(--color-text);
    font-family: var(--font-primary);
    line-height: 1.2;
}

.archive-hero__title span {
    font-weight: 700;
}

.archive-hero__desc {
    color: var(--color-text-muted);
    margin: 12px 0 0;
    font-size: 15px;
    line-height: 1.6;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* -------- Search field unutar archive hero (Recenzije) -------- */
.archive-hero__search {
    display: flex;
    align-items: center;
    max-width: 500px;
    margin: 24px auto 0;
    background: #fff;
    border: 1px solid var(--color-border, #E6E6E6);
    border-radius: 50px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.archive-hero__search:focus-within {
    border-color: var(--color-accent, #D65A5A);
}
.archive-hero__search-input {
    flex: 1;
    padding: 12px 18px;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    color: var(--color-text, #000);
}
.archive-hero__search-input::placeholder {
    color: var(--color-text-muted, #666);
}
.archive-hero__search-btn {
    background: var(--color-accent, #D65A5A);
    border: none;
    width: 44px;
    height: 44px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
}
.archive-hero__search-btn:hover {
    background: var(--color-accent-hover, #c14d4d);
}

/* -------- 3-column grid -------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 64px;
}

@media (max-width: 1100px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 640px) {
    .blog-grid { grid-template-columns: 1fr; gap: 28px; }
    .archive-hero { padding: 40px 0 36px; margin-bottom: 40px; }
    .archive-hero__title { font-size: 28px; }
}

/* -------- Blog card -------- */
.blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.blog-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.09);
    transform: translateY(-4px);
}

/* Image */
.blog-card__thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
    background: var(--color-border);
}

.blog-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.blog-card:hover .blog-card__img {
    transform: scale(1.06);
}

/* Placeholder when no image */
.blog-card__thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: var(--color-border);
}

/* Card body */
.blog-card__body {
    padding: 24px 24px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Category badge */
.blog-card__cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: var(--color-accent);
    text-decoration: none;
    margin-bottom: 10px;
    line-height: 1;
}

.blog-card__cat:hover {
    text-decoration: underline;
}

/* Date */
.blog-card__date {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 10px;
    font-weight: 400;
}

/* Title */
.blog-card__title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 12px;
    font-family: var(--font-primary);
}

.blog-card__title a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card__title a:hover {
    color: var(--color-accent);
}

/* Excerpt */
.blog-card__excerpt {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__excerpt p {
    margin: 0;
}

/* Read more */
.blog-card__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    transition: gap 0.2s;
    margin-top: auto;
}

.blog-card__more:hover {
    gap: 10px;
    text-decoration: none;
}

.blog-card__more svg {
    flex-shrink: 0;
    transition: transform 0.2s;
}

.blog-card__more:hover svg {
    transform: translateX(2px);
}

/* -------- Pagination -------- */
.blog-pagination {
    margin-bottom: 80px;
    display: flex;
    justify-content: center;
}

.blog-pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.blog-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 6px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    background: transparent;
    font-family: var(--font-primary);
}

.blog-pagination .page-numbers:hover {
    background: #f0f0f0;
}

.blog-pagination .page-numbers.current {
    background: var(--color-accent);
    color: #fff;
    min-width: 40px;
}

.blog-pagination .page-numbers.dots {
    background: transparent;
    cursor: default;
    color: var(--color-text-muted);
}

.blog-pagination .prev.page-numbers,
.blog-pagination .next.page-numbers {
    font-size: 16px;
    color: var(--color-text-muted);
}

.blog-pagination .prev.page-numbers:hover,
.blog-pagination .next.page-numbers:hover {
    color: var(--color-accent);
    background: #f0f0f0;
}
