/* ==========================================================================
   Projects Page Specific Styles (Listing Page)
   ========================================================================== */

/**
 * Ta datoteka vsebuje stile, ki se uporabljajo izključno na strani s 
 * seznamom vseh projektov.
 *
 * 1. Glava strani (naslov, opis, obrazec za prijavo)
 * 2. Sekcija z vsemi objavami (mreža)
 * 3. Paginacija
 * 4. Stili za stran s projekti na mobilnih napravah
 */

/* 1. Glava strani */

.page-content {
    padding-top: 80px; /* Odmik za fiksno glavo */
}

.page-header-section {
    background: linear-gradient(180deg, #FFF7F2 0%, #FFFFFF 100%);
    /* .page-content already offsets the fixed 80px header, so this top value
       is the actual visible gap under the menu — keep it small. */
    padding: 40px 24px 44px;
    text-align: center;
}

.page-header-section .container.text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 760px;
}

/* Eyebrow — uppercase, letter-spaced, like the News/Blog hero */
.page-subtitle {
    display: inline-block;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #E8833A;
}

.page-header-section h1 {
    font-weight: 700;
    font-size: 42px;
    line-height: 1.12;
    color: #101828;
    margin: 0;
    max-width: 760px;
}

.page-description {
    font-size: 18px;
    line-height: 28px;
    color: #475467;
    max-width: 640px;
    margin: 0;
}

.subscribe-form {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.subscribe-form input {
    width: 360px;
    height: 48px;
    padding: 12px 16px;
    border: 1px solid #D0D5DD;
    border-radius: 8px;
    box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
    font-size: 16px;
    box-sizing: border-box;
}

.subscribe-form .btn {
    height: 48px;
    /* SPREMEMBA: Dodan flexbox za popolno sredinsko poravnavo besedila znotraj gumba. */
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
}

.privacy-note {
    font-size: 14px;
    color: #667085;
    margin-top: -8px;
}

.privacy-note a {
    color: #667085;
    font-weight: 500;
}

/* Newsletter subscription status message */
.subscribe-status {
    max-width: 520px;
    margin: 10px auto 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}
.subscribe-status.is-info { color: #667085; }
.subscribe-status.is-success { color: #067647; }
.subscribe-status.is-error { color: #B42318; }

/* 1b. Filter kategorij (pill navigacija + podfiltri) */

/* Filter bar — left-aligned pills with a thin separator, like the News hub.
   .filter-inner mirrors the posts container so the pills/separator line up
   with the grid below. */
.filter-section {
    padding: 8px 80px 40px; /* bottom gap so the separator/sub-filter clears "All our projects" */
}
.filter-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.filter-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-bottom: 24px;
    border-bottom: 1px solid #EAECF0; /* thin, near-transparent separator */
}

.filter-pill {
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    color: #475467;
    background: #F2F4F7;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 9px 16px;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.filter-pill:hover {
    background: #E4E7EC;
}

.filter-pill.active {
    background: #101828;
    color: #FFFFFF;
}

/* Sub-filter row (e.g. event types) — sits under the pills, left aligned */
.filter-subnav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}
.filter-subnav[hidden] { display: none; }

.filter-chip {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 18px;
    border: 1px solid #D0D5DD;
    background: #FFFFFF;
    border-radius: 999px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #344054;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.filter-chip:hover {
    border-color: #2D738C;
    color: #2D738C;
}

.filter-chip.active {
    background: #101828;
    border-color: #101828;
    color: #FFFFFF;
}

/* Sporočilo, ko noben zadetek ne ustreza filtru */
.filter-empty {
    width: 100%;
    text-align: center;
    color: #667085;
    font-size: 16px;
    padding: 32px 0;
}
.filter-empty[hidden] { display: none; }

/* Skrite kartice pri filtriranju */
.post-card[hidden] { display: none; }

/* 2. Sekcija z vsemi objavami */

.all-posts-section {
    padding: 0 80px 96px;
}

.all-posts-section .container.column-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 64px;
}

.all-posts-section h2 {
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    color: #101828;
    margin: 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 32px;
    width: 100%;
}

/* 3. Paginacija */

.pagination {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #EAECF0;
}

.pagination[hidden] { display: none; }

.pagination-arrow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #667085;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.pagination-arrow:hover { color: #101828; }

.pagination-arrow.disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: default;
}

.pagination-numbers {
    display: flex;
    gap: 2px;
}

.page-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: #667085;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.page-number:hover { background-color: rgba(102, 112, 133, 0.08); }

.page-number.active {
    background-color: rgba(102, 112, 133, 0.16);
    color: #2D738C;
}

.page-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    color: #667085;
}


/* ==========================================================================
   Mobile Projects Page Styles
   ========================================================================== */

@media (max-width: 768px) {

    .page-content {
        /* body already has padding-top:60px on mobile for the fixed header,
           so no extra offset here (avoids a double gap under the menu). */
        padding-top: 0;
    }

    .page-header-section {
        padding: 32px 20px 28px;
    }

    .page-header-section h1 {
        font-size: 30px;
        line-height: 1.15;
    }

    .page-description {
        font-size: 16px;
        line-height: 24px;
    }

    .subscribe-form {
        flex-direction: column;
        width: 100%;
    }

    .subscribe-form input {
        width: 100%;
    }

    .filter-section {
        padding: 8px 20px 32px;
    }
    .filter-inner {
        padding: 0;
        gap: 14px;
    }

    .filter-nav {
        justify-content: flex-start;
        padding-bottom: 20px;
    }

    .filter-subnav {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    .filter-subnav::-webkit-scrollbar { display: none; }

    .filter-chip { flex: 0 0 auto; }

    .all-posts-section {
        padding: 48px 24px;
    }

    .all-posts-section .container.column-layout {
        gap: 32px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 20px;
    }

    /* Numbers on their own row on top; Previous / Next share the row below */
    .pagination-numbers {
        order: -1;
        flex-basis: 100%;
        justify-content: center;
    }
}