/* =====================================================================
 * =====================================================================
 *
 *   SILWEAR SENSE - BLOG ARHIVA
 *
 * =====================================================================
 * ===================================================================== */

.site-main{
    padding: 180px 0 120px;
}


/* =====================================================================
 * 1. ZAGLAVLJE
 * ===================================================================== */

#archive-header {
    padding: 30px 0 40px;
}

.archive-title {
    margin: 0;
    font-family: 'The-Seasons', serif;
    font-size: 36px;
    font-weight: 400;
    color: #0b2c36;
}

.archive-description {
    max-width: 700px;
    margin-top: 15px;
    font-size: 15px;
    line-height: 1.7;
    color: #0b2c36;
}


/* =====================================================================
 * 2. LISTA POSTOVA
 * ===================================================================== */

#archive-content {
    padding-bottom: 100px;
}

.posts-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


/* =====================================================================
 * 3. KARTICA POSTA: SLIKA LEVO, TEKST DESNO
 * ===================================================================== */

.post-card {
    display: grid;
    grid-template-columns: minmax(0, 50%) minmax(0, 1fr);
    gap: 60px;
    align-items: stretch;
}

/* --- Slika --- */
.post-card__image {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    background-color: #f3f3f3;
}

.post-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
    max-height: 450px;
}

.post-card__image:hover img {
    transform: scale(1.03);
}

/* --- Tekst --- */
.post-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 0;
    max-width: 77%;
}

/* --- Kategorije (pilule) --- */
.post-card__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 22px;
}

.post-card__cat {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    border: 1px solid #8a8a8a;
    border-radius: 50px;
    color: #0b2c36;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color .2s, color .2s;
}

.post-card__cat:hover {
    background-color: #0b2c36;
    border-color: #0b2c36;
    color: #fff;
}

/* --- Naslov --- */
.post-card__title {
    margin: 0 0 14px;
    font-family: 'The-Seasons', serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.3;
}

.post-card__title a {
    color: #0b2c36;
    text-decoration: none;
}

.post-card__title a:hover {
    text-decoration: underline;
}

/* --- Izvod --- */
.post-card__excerpt {
    font-size: 16px;
    line-height: 1.8;
    text-align: justify;
    color: #0b2c36;
    word-break: break-word;
}

/* --- Dugme "Pročitaj" --- */
.post-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 15px 25px;
    border-radius: 50px;
    background-color: #E5C6C3;
    color: #022B3A;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color .2s;
}

.post-card__btn:hover {
    background-color: #dfb9b5;
    color: #0b2c36;
}


/* =====================================================================
 * 4. PAGINACIJA
 * ===================================================================== */

.pagination {
    margin-top: 50px;
}

.pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: 50%;
    color: #0b2c36;
    font-size: 14px;
    text-decoration: none;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background-color: #0b2c36;
    color: #fff;
}


/*/* =====================================================================
 * 5. RESPONSIVE
 * ===================================================================== */

@media (max-width: 1200px) {
    .site-main{
        padding: 30px 0 100px;
    }
}

@media (max-width: 768px) {
    .post-card {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 30px;
    }

    .post-card__body {
        max-width: none;
        padding: 0;
    }

    .post-card__title {
        font-size: 20px;
    }

    .post-card__excerpt {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .post-card__btn {
        height: 38px;
        padding: 0 16px;
        font-size: 11px;
    }
    .site-main{
        padding: 20px 0 80px;
    }
}


@media (max-width: 600px) {
    .post-card__image img {
        height: 200px;   
    }
    #archive-header {
        padding: 0px 0 40px;
    }
    .post-card__cats {
        margin: 0 0 10px auto;
    }
    .post-card__cat {
        font-size: 10px;
    }
    .post-card__title a {
        margin-bottom: 5px;
        display: inline-block;
    }
    .post-card__btn {
        width: 100%;
        justify-content: center;
    }
    #archive-content {
        padding-bottom: 30px;
    }
}


/* =====================================================================
 * Silwear Sense - BLOG ARHIVA v2 (zaglavlje, teme, izdvojeni post, mreža)
 * ===================================================================== */
.ss-bl-head, .ss-bl-topics, .ss-bl-posts { font-family: 'Instrument-Sans', sans-serif; color: #022b3a; }
.ss-bl-topics ul { list-style: none; margin: 0; padding: 0; }
.ss-bl-posts { padding-bottom: 110px; }

/* --- Zaglavlje --- */
.ss-bl-head { padding: 40px 0 56px; text-align: center; }
.ss-bl-head__tagline { margin: 0 0 18px; font-size: 14px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; color: #b58d5b; }
.ss-bl-head__title { margin: 0 0 18px; font-family: 'The-Seasons', serif; font-size: 72px; font-weight: 400; line-height: 1.05; color: #022b3a; }
.ss-bl-head__desc { margin: 0 auto; max-width: 640px; font-size: 19px; line-height: 1.55; color: rgba(2,43,58,.7); }

/* --- Teme --- */
.ss-bl-topics { padding-bottom: 48px; }
.ss-bl-topics__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ss-bl-chip { display: inline-flex; align-items: center; padding: 14px 24px; border: 1.2px solid rgba(2,43,58,.25); border-radius: 40px; font-size: 14px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: #022b3a; text-decoration: none; transition: background-color .2s, color .2s, border-color .2s; }
.ss-bl-chip:visited { color: #022b3a; }
.ss-bl-chip.is-active, .ss-bl-chip.is-active:visited { background: #022b3a; border-color: #022b3a; color: #fff; font-weight: 600; }
@media (min-width: 1025px) {
    .ss-bl-chip:not(.is-active):hover { border-color: #022b3a; }
}

/* --- Izdvojeni post --- */
.ss-bl-feat { display: flex; align-items: stretch; margin-bottom: 56px; background: #fbf7f5; border-radius: 28px; overflow: hidden; }
.ss-bl-feat__img { position: relative; flex: 0 0 54.8%; min-height: 520px; display: block; background: #f3ece2; }
.ss-bl-feat__pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ss-bl-feat__body { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 22px; padding: 56px 64px; }
.ss-bl-feat__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.ss-bl-pill { display: inline-flex; padding: 8px 14px; border-radius: 20px; background: #e5c6c3; color: #022b3a; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; }
.ss-bl-pill:visited { color: #022b3a; }
.ss-bl-feat__date { font-size: 14px; color: rgba(2,43,58,.6); }
.ss-bl-feat__title { margin: 0; font-family: 'The-Seasons', serif; font-size: 56px; font-weight: 400; line-height: 1.1; }
.ss-bl-feat__title a { color: #022b3a; text-decoration: none; }
.ss-bl-feat__excerpt { margin: 0; font-size: 18px; line-height: 1.6; color: rgba(2,43,58,.75); }
.ss-bl-btn { display: inline-flex; align-items: center; gap: 12px; padding: 20px 32px; border-radius: 40px; background: #022b3a; color: #fff; font-size: 16px; font-weight: 600; letter-spacing: 1px; text-decoration: none; transition: background-color .2s; }
.ss-bl-btn:visited { color: #fff; }
@media (min-width: 1025px) { .ss-bl-btn:hover { background: #0b4458; color: #fff; } }

/* --- Mreža --- */
.ss-bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; }
.ss-bl-card { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.ss-bl-card__img { position: relative; display: block; width: 100%; height: 340px; margin-bottom: 18px; border-radius: 22px; overflow: hidden; background: #f3ece2; }
.ss-bl-card__pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
@media (min-width: 1025px) { .ss-bl-card__img:hover .ss-bl-card__pic { transform: scale(1.03); } }
.ss-bl-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 13px; line-height: 1.2; }
.ss-bl-card__cat { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: #b58d5b; }
.ss-bl-card__date { color: rgba(2,43,58,.55); }
.ss-bl-card__title { margin: 0 0 14px; font-family: 'The-Seasons', serif; font-size: 28px; font-weight: 400; line-height: 1.25; }
.ss-bl-card__title a { color: #022b3a; text-decoration: none; }
.ss-bl-card__excerpt { margin: 0 0 18px; font-size: 16px; line-height: 1.55; color: rgba(2,43,58,.7); }
.ss-bl-card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-size: 13px; font-weight: 600; letter-spacing: 1.2px; color: #022b3a; text-decoration: none; }
.ss-bl-card__more:visited { color: #022b3a; }
@media (min-width: 1025px) {
    .ss-bl-card__title a:hover { text-decoration: underline; }
    .ss-bl-card__more:hover svg { transform: translateX(4px); }
}
.ss-bl-card__more svg { transition: transform .2s; }

/* --- Paginacija: centrirana ispod mreže --- */
.ss-bl-posts .pagination { margin-top: 64px; }
.ss-bl-posts .pagination .nav-links { justify-content: center; }

/* --- Responsive --- */
@media (max-width: 1200px) {
    .ss-bl-head__title { font-size: 56px; }
    .ss-bl-feat__title { font-size: 42px; }
    .ss-bl-feat__body { padding: 40px; }
}
@media (max-width: 992px) {
    .ss-bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ss-bl-feat { flex-direction: column; }
    .ss-bl-feat__img { flex: none; min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 767px) {
    .ss-bl-head { padding: 16px 0 28px; }
    .ss-bl-head__tagline { font-size: 12px; margin-bottom: 12px; }
    .ss-bl-head__title { font-size: 36px; margin-bottom: 12px; }
    .ss-bl-head__desc { font-size: 16px; }

    .ss-bl-topics { padding-bottom: 28px; }
    .ss-bl-topics__list { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding: 0 20px 4px; scrollbar-width: none; }
    .ss-bl-topics__list::-webkit-scrollbar { display: none; }
    .ss-bl-chip { white-space: nowrap; padding: 12px 20px; }

    .ss-bl-feat { margin-bottom: 36px; border-radius: 20px; }
    .ss-bl-feat__body { padding: 24px 20px 28px; gap: 16px; }
    .ss-bl-feat__title { font-size: 30px; }
    .ss-bl-feat__excerpt { font-size: 15px; }
    .ss-bl-btn { width: 100%; justify-content: center; padding: 16px 24px; font-size: 14px; }

    .ss-bl-grid { grid-template-columns: 1fr; gap: 36px; }
    .ss-bl-card__img { height: auto; aspect-ratio: 3 / 2; border-radius: 18px; }
    .ss-bl-card__title { font-size: 22px; }
    .ss-bl-card__excerpt { font-size: 15px; }

    .ss-bl-posts { padding-bottom: 40px; }
    .ss-bl-posts .pagination { margin-top: 40px; }
}






