/* =============================================
   NEWS SECTION - strona główna (teaser)
   oraz lista/szczegóły na aktualnosci.php
   ============================================= */

.news-section {
    background: var(--bg-dark);
    position: relative;
    padding: 90px 0;
}

.news-section .section-header,
.news-list-section .section-header-inline {
    text-align: center;
    margin-bottom: 50px;
}

.news-section .section-header h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 900;
    color: var(--text-white);
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.news-section .section-header p {
    color: var(--text-gray);
    font-size: 16px;
}

/* GRID */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* CARD */
.news-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.news-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #1f1f1f;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.06);
}

.news-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 30px;
}

.news-card-content {
    padding: 20px 22px 24px;
}

.news-card-date {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.news-card-content h3 {
    color: var(--text-white);
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.news-card-content p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* BUTTON "Zobacz wszystkie" / "Wróć" */
.news-section-footer {
    text-align: center;
    margin-top: 40px;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border: 2px solid var(--primary);
    color: var(--text-white);
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background: var(--primary);
}

/* =============================================
   LISTA NEWSÓW - aktualnosci.php (bez slug)
   ============================================= */

.news-list-section {
    background: var(--bg-dark);
    padding: 0 0 100px;
}

.news-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.news-pagination a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.news-pagination a:hover,
.news-pagination a.active {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
}

/* =============================================
   SZCZEGÓŁY ARTYKUŁU - aktualnosci.php?slug=...
   ============================================= */

.news-article-date {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    margin-bottom: 14px;
}

.news-article {
    background: var(--bg-dark);
    padding: 0 0 100px;
}

.news-article-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #111;
    border-radius: 16px;
    margin-bottom: 40px;
}

.news-article-content {
    max-width: 760px;
    margin: 0 auto 40px;
    color: #d9d9d9;
    font-size: 17px;
    line-height: 1.8;
}

.news-article-content p {
    margin-bottom: 22px;
}

.news-article-content h2,
.news-article-content h3,
.news-article-content h4 {
    color: var(--text-white);
    font-weight: 700;
    margin: 32px 0 16px;
    line-height: 1.3;
}

.news-article-content h2 { font-size: 26px; }
.news-article-content h3 { font-size: 22px; }
.news-article-content h4 { font-size: 19px; }

.news-article-content strong {
    color: var(--text-white);
}

.news-article-content a {
    color: var(--primary);
    text-decoration: underline;
}

.news-article-content a:hover {
    color: var(--primary-dark);
}

.news-article-content ul,
.news-article-content ol {
    margin: 0 0 22px;
    padding-left: 24px;
}

.news-article-content li {
    margin-bottom: 8px;
}

.news-article-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 12px 0;
}

/* Osadzone materiały (YouTube/Spotify/Apple Music/SoundCloud/Vimeo) */
.news-embed {
    margin: 28px 0;
}

.news-embed-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.news-embed-audio {
    border-radius: 12px;
    overflow: hidden;
    background: #181818;
}

.news-embed-audio iframe {
    display: block;
    max-width: 100%;
}

.news-article .btn-view-all {
    display: flex;
    width: fit-content;
    margin: 0 auto;
}
