﻿
/* =========================================
   NOVOSTI - JKP VODOVOD ILINDEN
========================================= */

.news-page {
    padding: 55px 0 75px;
    background: #faf9f7;
    min-height: 500px;
}

    .news-page *,
    .news-modal * {
        box-sizing: border-box;
    }

.news-container {
    max-width: 1160px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Наслов */

.news-heading {
    margin-bottom: 35px;
}

.news-eyebrow {
    color: #e96b56;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.news-heading h1 {
    color: #292929;
    font-family: "Poppins", sans-serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 14px;
}

.news-heading p {
    max-width: 750px;
    color: #777;
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}

.news-divider {
    height: 4px;
    width: 55px;
    background: #e96b56;
    border-radius: 2px;
    margin-top: 22px;
}

/* Издвоена вест */

.featured-news {
    display: flex;
    width: 100%;
    background: #fff;
    border: 1px solid #eee8e3;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 42px;
    box-shadow: 0 5px 20px rgba(40, 30, 20, .035);
}

.featured-image {
    width: 38%;
    min-height: 290px;
    flex-shrink: 0;
    background: #f4eae5;
    color: #d49b89;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 76px;
}

.featured-content {
    width: 62%;
    min-width: 0;
    padding: 35px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.news-label {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 3px;
    background: #fff0eb;
    color: #c95743;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 13px;
}

.news-date {
    font-size: 12px;
    color: #929292;
    margin-bottom: 12px;
}

    .news-date i {
        color: #e96b56;
        margin-right: 5px;
    }

.featured-content h2 {
    font-family: "Poppins", sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.5;
    color: #303030;
    margin: 0 0 13px;
}

.featured-content p {
    color: #777;
    font-size: 14px;
    line-height: 1.8;
    margin: 0 0 22px;
}

/* Филтри */

.news-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 22px;
}

    .news-toolbar h3 {
        font-family: "Poppins", sans-serif;
        font-size: 22px;
        font-weight: 600;
        color: #303030;
        margin: 0;
    }

.news-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.news-page .filter-btn {
    background: #fff;
    border: 1px solid #e6dfda;
    color: #666;
    border-radius: 3px;
    padding: 9px 13px;
    font-family: "Open Sans", sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}

    .news-page .filter-btn:hover,
    .news-page .filter-btn.active {
        background: #e96b56;
        border-color: #e96b56;
        color: #fff;
    }

/* Пребарување */

.news-search {
    position: relative;
    margin-bottom: 25px;
    width: 100%;
}

    .news-search input {
        display: block;
        width: 100%;
        height: 46px;
        border: 1px solid #e8e2dd;
        border-radius: 3px;
        background: #fff;
        padding: 10px 45px 10px 15px;
        color: #444;
        font-family: "Open Sans", sans-serif;
        font-size: 13px;
        outline: none;
        box-shadow: none;
    }

        .news-search input:focus {
            border-color: #e6a092;
            box-shadow: 0 0 0 2px rgba(233, 107, 86, .08);
        }

    .news-search > i {
        position: absolute;
        right: 17px;
        top: 16px;
        color: #a99d96;
        pointer-events: none;
    }

/* Мрежа на вести */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
    width: 100%;
}

.news-page .news-card {
    min-width: 0;
    height: 100%;
    background: #fff;
    border: 1px solid #eee8e3;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}

    .news-page .news-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 9px 24px rgba(40, 30, 20, .07);
    }

.news-card-top {
    height: 125px;
    flex-shrink: 0;
    background: #f5eee9;
    color: #d9a18f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
}

    .news-card-top.category-notice {
        background: #f5f1e8;
        color: #bba36d;
    }

    .news-card-top.category-work {
        background: #eaf1f1;
        color: #71999a;
    }

    .news-card-top.category-water {
        background: #edf2f8;
        color: #7296bd;
    }

.news-card-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

    .news-card-body .news-label {
        margin-bottom: 12px;
    }

    .news-card-body h4 {
        font-family: "Poppins", sans-serif;
        color: #303030;
        font-size: 16px;
        font-weight: 600;
        line-height: 1.6;
        margin: 0 0 12px;
        width: 100%;
    }

    .news-card-body p {
        color: #777;
        font-size: 13px;
        line-height: 1.8;
        margin: 0 0 22px;
        flex: 1;
        width: 100%;
    }

.news-card-footer {
    width: 100%;
    border-top: 1px solid #f0ece9;
    padding-top: 15px;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

    .news-card-footer .news-date {
        margin: 0;
        font-size: 11px;
    }

/* Копчиња */

.news-page .btn-news,
.news-page .btn-news-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 3px;
    font-family: "Open Sans", sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
}

.news-page .btn-news {
    background: #e96b56;
    border: 1px solid #e96b56;
    color: #fff;
}

    .news-page .btn-news:hover,
    .news-page .btn-news:focus {
        background: #d85f4b;
        border-color: #d85f4b;
        color: #fff;
    }

.news-page .btn-news-outline {
    background: #fff;
    border: 1px solid #e96b56;
    color: #d65f4b;
}

    .news-page .btn-news-outline:hover,
    .news-page .btn-news-outline:focus {
        background: #fff2ed;
        border-color: #e96b56;
        color: #c95743;
    }

/* Нема резултати */

.news-empty {
    display: none;
    background: #fff;
    border: 1px solid #eee8e3;
    padding: 40px 20px;
    text-align: center;
    color: #777;
    margin-top: 20px;
}

    .news-empty > i {
        display: block;
        font-size: 35px;
        color: #d6b6a9;
        margin-bottom: 15px;
    }

    .news-empty h4 {
        font-weight: 600;
        color: #444;
        margin-bottom: 10px;
    }

/* Пагинација */

.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 35px;
}

#pageNumbers {
    display: flex;
    gap: 7px;
}

.news-page .page-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #e8e0db;
    background: #fff;
    color: #666;
    border-radius: 3px;
    cursor: pointer;
    transition: background .2s, color .2s;
}

    .news-page .page-btn.active,
    .news-page .page-btn:hover:not(:disabled) {
        background: #e96b56;
        color: #fff;
        border-color: #e96b56;
    }

    .news-page .page-btn:disabled {
        opacity: .4;
        cursor: not-allowed;
    }

/* Прозорец со целосна вест */

.news-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    inset: 0;
    overflow-y: auto;
    background: rgba(30, 26, 24, .62);
    padding: 30px 15px;
}

.news-modal-content {
    position: relative;
    max-width: 720px;
    width: 100%;
    background: #fff;
    margin: 20px auto;
    padding: 35px;
    border-radius: 4px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, .2);
}

.news-modal-close {
    position: absolute;
    top: 10px;
    right: 16px;
    font-size: 29px;
    line-height: 1.3;
    color: #888;
    background: transparent;
    border: none;
    cursor: pointer;
}

    .news-modal-close:hover {
        color: #e96b56;
    }

.news-modal-content h2 {
    font-family: "Poppins", sans-serif;
    font-size: 24px;
    line-height: 1.5;
    font-weight: 600;
    color: #303030;
    margin: 15px 0;
    padding-right: 15px;
}

.news-modal-text {
    white-space: pre-line;
    overflow-wrap: anywhere;
    font-size: 14px;
    line-height: 1.9;
    color: #666;
}

/* Таблети */

@media (max-width: 991px) {
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .featured-image {
        min-height: 260px;
    }

    .featured-content {
        padding: 25px;
    }
}

/* Мобилни телефони */

@media (max-width: 600px) {
    .news-page {
        padding: 35px 0 45px;
    }

    .news-container {
        padding: 0 15px;
    }

    .news-heading h1 {
        font-size: 27px;
    }

    .news-heading p {
        font-size: 13px;
    }

    .featured-news {
        display: block;
    }

    .featured-image,
    .featured-content {
        width: 100%;
    }

    .featured-image {
        min-height: 150px;
        font-size: 50px;
    }

    .featured-content {
        padding: 22px;
    }

        .featured-content h2 {
            font-size: 20px;
        }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .news-filters {
        width: 100%;
    }

    .news-page .filter-btn {
        padding: 8px 10px;
    }

    .news-modal-content {
        padding: 25px 20px;
        margin: 10px auto;
    }

        .news-modal-content h2 {
            font-size: 20px;
        }

    .news-card-footer {
        align-items: flex-start;
    }
}
