/* =========================================================
   SEKCJA ARTYKUŁÓW
   ========================================================= */

.articles {
    background-color: #f7f8fa;
}

/* Nagłówek sekcji */
.articles__header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 2.5rem;
}

.articles__label {
    position: relative;
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blue-color);
    margin-bottom: 1rem;
    padding: 0 12px;
}

.articles__label::before,
.articles__label::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 2px;
    background-color: var(--blue-color);
    opacity: 0.45;
    transform: translateY(-50%);
}

.articles__label::before { right: 100%; }
.articles__label::after  { left: 100%; }

.articles__title {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.articles__subtitle {
    font-size: 1rem;
    color: rgba(70, 65, 70, 0.68);
    line-height: 1.7;
}

/* Slider */
.articles__slider {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
    padding-bottom: 6px;
}

.articles__slider::-webkit-scrollbar { display: none; }
.articles__slider.is-dragging { cursor: grabbing; scroll-behavior: auto; }

/* Karta artykułu */
.article-card {
    flex: 0 0 calc(33.333% - 1rem);
    scroll-snap-align: start;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

/* Obraz */
.article-card__image-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.article-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-card__image {
    transform: scale(1.05);
}

/* Placeholder gdy brak zdjęcia */
.article-card__image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8edf2 0%, #d0d8e4 100%);
}

/* Treść karty */
.article-card__body {
    padding: 1.5rem 1.6rem 1.6rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-card__title a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-card__title a:hover {
    color: var(--blue-color);
}

.article-card__excerpt {
    font-size: 0.9rem;
    color: rgba(70, 65, 70, 0.72);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 1rem;
}

/* Stopka karty */
.article-card__footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.article-card__meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: rgba(70, 65, 70, 0.55);
}

.article-card__meta i {
    font-size: 0.72rem;
}

.article-card__link {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--blue-color);
    text-decoration: none;
    white-space: nowrap;
    transition: gap 0.2s ease, color 0.2s ease;
}

.article-card__link:hover {
    gap: 10px;
    color: rgb(0, 100, 180);
}

.article-card__link i {
    font-size: 0.72rem;
    transition: transform 0.2s ease;
}

.article-card__link:hover i {
    transform: translateX(3px);
}

/* ── Breakpointy ── */

@media (max-width: 1060px) {
    .article-card { flex: 0 0 calc(50% - 0.75rem); }
}

@media (max-width: 700px) {
    .article-card { flex: 0 0 80%; }
    .articles__label::before,
    .articles__label::after { display: none; }
}
