﻿:root {
    --pagination-background: #016954;
    --pagination-cyfry: #262626;
}

[data-theme="dark"] {
    --pagination-background: #00B392;
    --pagination-cyfry: #A3A3A3;
    --pagination-active-text: #262626;
}

.card-img-top-wrapper {
    padding: 1.25rem;
/*    aspect-ratio: 16 / 9;*/
    overflow: hidden;
}

    .card-img-top-wrapper img {
        width: 100%;
        height: 100%;
/*        min-width: 215px;*/
        object-fit: cover;
        border-top-left-radius: calc(0.375rem - 1px);
        border-top-right-radius: calc(0.375rem - 1px);
    }

.article-row {
    --bs-gutter-x: 1.5rem; /* Adjust this value to change the spacing */
    --bs-gutter-y: 1.5rem;
}

.card {
    margin-bottom: var(--bs-gutter-y);
}

.container {
    max-width: 1200px; /* Adjust as needed */
}

.row.g-4 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

.col {
    padding: 0 15px;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.articles-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.article {
    flex: 1;
    min-width: 0; /* This prevents flex items from overflowing */
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

    .article h2 {
        color: #333;
        margin-bottom: 10px;
        font-size: 1.2em;
    }

    .article p {
        color: #666;
        line-height: 1.6;
        font-size: 0.9em;
    }

.article-image-wrapper {
    width: 100%;
    height: 0;
    padding-bottom: 66.67%; /* Maintains a 3:2 aspect ratio */
    position: relative;
    overflow: hidden;
}

.article-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 960px) {
    .articles-container, article.article-image {
        flex-direction: column;
    }
}

/*------------------------------------------------*/

.pagination {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 0;
    margin-top: 10px;
    font-family: "PT Sans", sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 150%;
    text-align: center;
}

.pagination a,
.pagination span:not(.ellipsis) {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #262626;
    margin: 1px;
    width: 35px;
    height: 35px;
    border: 1px solid transparent;
    border-radius: 100%;
}

.pagination a:hover {
    background-color: #9ec3bc;
    color: #f2f3f4;
}

.pagination .active,
.pagination a.active,
.pagination span.active {
    background-color: #016954;
    color: #ffffff;
}
/* Ensure color change for active state */
.pagination .active,
.pagination a.active,
.pagination span.active,
.pagination .active *,
.pagination a.active *,
 skin.active * {
    color: #ffffff !important;
}

.pagination .ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 0 5px;
    margin: 0 3px;
    border: none;
    background: none;
}

.pagination .placeholder {
    visibility: hidden;
    width: 35px;
    height: 35px;
}

/* Ensure consistent spacing */
.pagination > * {
    margin: 0 1px;
}
/* Remove extra spacing from nested elements */
.pagination > * > * {
    margin: 0;
}

/* Specific styling for "Previous" and "Next" links if needed /
.pagination a[href="Previous"],
.pagination a[href*="Next"] {
    width: auto;
    padding: 0 10px;
} */

/* Komunikaty BO paginacja */
#komunikaty-pagination {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 0;
    margin-top: 10px;
    font-family: "PT Sans", sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 150%;
    text-align: center;
}

    #komunikaty-pagination a,
    #komunikaty-pagination span:not(.ellipsis) {
        display: flex;
        justify-content: center;
        align-items: center;
        text-decoration: none;
        color: var(--pagination-cyfry);
        margin: 1px;
        width: 35px;
        height: 35px;
        border: 1px solid transparent;
        border-radius: 100%;
    }

        #komunikaty-pagination a:hover {
            background-color: #9ec3bc;
            color: #474747;
        }

        #komunikaty-pagination .active,
        #komunikaty-pagination a.active,
        #komunikaty-pagination span.active {
            background-color: var(--pagination-background);
            color: #ffffff;
        }

/* Dark mode pagination active text color override */
[data-theme="dark"] #komunikaty-pagination .active,
[data-theme="dark"] #komunikaty-pagination a.active,
[data-theme="dark"] #komunikaty-pagination span.active {
    color: var(--pagination-active-text) !important;
}
            /* Ensure color change for active state */
            .pagination .active,
            .pagination a.active,
            .pagination span.active,
            .pagination .active *,
            .pagination a.active *,
            skin.active * {
                color: #ffffff !important;
            }

#komunikaty-pagination .ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 0 5px;
    margin: 0 3px;
    border: none;
    background: none;
}

#komunikaty-pagination .placeholder {
    visibility: hidden;
    width: 35px;
    height: 35px;
}
