/* Nawigacja strony */
.back-to-news {
    position: relative;
}

.article-date {
    position: absolute;
}

/* Cała lewa kolumna */
.col-md-8 {
   /* padding-right: 10% !important;
    padding-left: 10% !important; - jak trzeba to paddingi trzeba dodać we właściwy sposób */
}

/* Kategoria nad artykułem - małe okrągłe przyciski */
.mb-2 {
    display: flex;
}

.mb-2 .badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border: 1.5px solid #0148B3;
    border-radius: 20px;
    color: #0148B3;
    background-color: white;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 0.5rem;
}

/* Tytuł głównego artykułu */
.display-5 {
    color: #0148B3;
    font-weight: 700;
}

/* Treść głównego artykułu */
.article-content {
    color: #3A3A3A;
    line-height: 1.6;
}

/* Zdjęcia artykułu */
.article-content .no-overflow .img-fluid {
    border-radius: 0;
    min-width: 100%;
}

/* Cała prawa kolumna */
.block_news .row .rounded,
.path-local-news .row .rounded {
    max-width: 25%;
}

/* Nagłówek "Polecane" w prawej kolumnie */
.block_news .row .rounded .mb-3,
.path-local-news .row .rounded .mb-3 {
    color: #0148B3;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem !important;
}

/* Kontener dla artykułów w prawej kolumnie */
.other-articles-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Style dla menu kafelkowego Biblioteki Wiedzy */
.news-menu-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    justify-content: flex-start;
    align-items: stretch;
}

.news-menu-link {
    text-decoration: none !important;
    color: white !important;
    display: block;
}

.news-menu-link .news-menu-item {
    background-color: #009ee4;
}

.news-menu-link:focus .news-menu-item,
.news-menu-link:hover .news-menu-item {
    background-color: #21b1f0;
    cursor: pointer;
}

.news-menu-item {
    width: 100px;
    height: 125px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
}

.news-menu-item span {
    font-size: 1rem;
    line-height: 1.2;
    margin-top: 0.5rem;
    white-space: normal;
}

.news-menu-item i {
    font-size: 2rem;
}
.article-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 0.5rem;
}

.article-readtime {
    display: inline-block;
    margin-right: 1rem;
}

.article-author {
    display: inline-block;
    margin-right: 1rem;
    font-weight: 500;
}

.related-links-list .article-item,
.related-links-list .link-item {
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #0148B3;
}

.related-links-list .article-item:hover,
.related-links-list .link-item:hover {
    background: #e9ecef;
}

.author-articles-list .article-item {
    background: #f8f9fa;
    border-left: 4px solid #0148B3;
    transition: background-color 0.2s;
    border-radius: 12px;
}

.author-articles-list .article-item:hover {
    background: #e9ecef;
}

.manage-button-container {
    text-align: right;
    margin-bottom: 1rem;
}

.manage-button-container .btn {
    background-color: #0148B3;
    border-color: #0148B3;
}

.manage-button-container .btn:hover {
    background-color: #023c94;
    border-color: #023c94;
}

@media (min-width: 768px) {
    .header-maxwidth {
        margin: 0 !important;
    }
}

.article-meta {
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.article-info {
    font-size: 0.9rem;
}

.author-link {
    color: #0148B3;
    text-decoration: none;
}

.author-link:hover {
    text-decoration: underline;
}

.author-name {
    color: #666;
}

.article-readtime {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.news-card-featured .article-readtime {
    background: rgba(0,0,0,0.7);
    color: white;
}

.other-articles-container .news-card {
    max-height: 280px;
    margin-bottom: 1rem;
}

.other-articles-container h4 {
    font-size: 1rem;
}
/* Related links notice na górze */
.related-links-notice {
    background: #fff;
    border: 2px solid var(--primary-800);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: var(--primary-800);
}

.related-links-notice i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.related-links-notice .btn {
    border-color: var(--primary-800);
    color: var(--primary-800);
}

.related-links-notice .btn:hover {
    background-color: var(--primary-800);
    color: white;
}

/* Enhanced article meta styling */
.article-meta-enhanced {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
}

.category-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-800);
    border-radius: 25px;
    color: var(--primary-800);
    background-color: white;
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 0.75rem;
    margin-bottom: 1rem;
}

.article-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: var(--primary-800);
    font-weight: 500;
}

.detail-item i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
    width: 20px;
}

.author-link {
    color: var(--primary-800);
    text-decoration: none;
    font-weight: 600;
}

.author-link:hover {
    text-decoration: underline;
}

.author-name {
    color: var(--primary-800);
    font-weight: 600;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .article-details {
        flex-direction: column;
        gap: 0.75rem;
    }

    .category-badge {
        margin-bottom: 0.5rem;
    }

    .related-links-notice {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .related-links-notice .btn {
        margin: 0;
    }
}

/* Back to news link positioning */
.back-to-news {
    color: var(--primary-800);
    font-weight: 500;
}

.back-to-news:hover {
    color: var(--primary-900);
}

/* Article title styling */
.display-5 {
    color: var(--primary-800);
    font-weight: 700;
}

/* Other articles column title */
.col-md-4.rounded .mb-3 {
    color: var(--primary-800);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem !important;
}

.article-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.article-category {
    flex: 0 0 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}


/* Pierwszy artykuł nadal zajmuje więcej miejsca */
.articles-grid .news-card:first-child {
    grid-column: span 2;
    grid-row: span 1;
}

/* Responsywność - na małych ekranach wszystko w jednej kolumnie */
@media (max-width: 992px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .articles-grid .news-card:first-child {
        grid-column: span 2;
    }
}

@media (max-width: 576px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .articles-grid .news-card:first-child {
        grid-column: 1;
        grid-row: 1;
    }
}

/* Opcjonalnie - jeśli kategorie są za długie, skróć je */
.article-category {
    max-width: 100px;
    font-size: 0.75rem;
}
