/* ============================================================
   OI Posts – CNN-style cards for articles (FINAL)
   ============================================================ */

.oi-articles {
    margin: 48px 0;
    font-family: system-ui, sans-serif;
}

/* H2 */

.oi-articles-title {
    font-size: 1.7rem;
    margin-bottom: 26px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left !important;
    justify-content: flex-start !important;
}

.oi-articles-title i {
    font-size: 1.4rem;
    color: #6a3df4;
    opacity: .9;
}

/* H3 */

.oi-subtitle {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 18px 0 8px 2px;
    text-align: left;
    color: #111;
}

/* Wrapper */

.oi-articles-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* GRID */

.oi-articles-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px 30px;
    margin-top: -20px;
}

@media (min-width: 769px) {
    .oi-articles-group {
        grid-template-columns: repeat(2, 1fr);
        max-width: 820px;
        margin: 0 auto;
        margin-top: -20px;
    }
}

/* ============================================================
   KAFEL CNN
   ============================================================ */

.oi-article-card {
    display: flex;
    flex-direction: row;
    gap: 14px;
    border-bottom: none !important; /* usuwamy linie */
    padding-bottom: 0 !important;
}

.oi-article-card a {
    display: flex;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

/* ============================================================
   MINIATURKA — NIE UCINAĆ DOŁU
   ============================================================ */

.oi-article-media {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.oi-article-thumb {
    width: 150px;
    aspect-ratio: 150 / 95;
    overflow: hidden;
    border-radius: 8px;
    flex-shrink: 0;
}

.oi-article-thumb img {
    width: 100%;
    height: 100px !important;
    object-fit: cover;
    object-position: top center; /* nie ucina dołu */
    transition: filter .25s ease, transform .25s ease;
}

.oi-article-card:hover .oi-article-thumb img {
    filter: brightness(92%);
    transform: scale(1.03);
}

.oi-badge-wrap {
    margin-top: -24px; /* tuż pod miniaturką */
}

.oi-badge {
    display: inline-block;
    font-family: Quicksand;
    font-size: 8px;
    font-weight: 600;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    width: fit-content;

    background: rgba(0,0,0,0.05);
    color: #444;

    opacity: 0.75;
}

/* delikatny hover – minimalny */
.oi-badge:hover {
    opacity: 0.9;
}


/* ============================================================
   TEKST — obok miniaturki
   ============================================================ */

.oi-article-text h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.32;
    color: #111;
}

.oi-article-card:hover h4 {
    text-decoration: underline;
}

/* ============================================================
   BADGE NAD MINIATURKĄ
   ============================================================ */

/* Ustawiamy najpierw layout dla "media" */
.oi-article-media {
    display: flex;
    flex-direction: column-reverse; /* ODWRÓCENIE: najpierw badge, potem miniaturka */
    align-items: flex-start;
}


/* Badge – mały, delikatny, tuż nad obrazkiem */
.oi-badge-wrap {
    margin-bottom: -8px; /* minimalny odstęp od miniaturki */
}

.oi-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    opacity: 0.75;
    background: rgba(0,0,0,0.05);
    color: #444;
}

/* Kolory kategorii */
.oi-badge-ranking {
    background: rgba(255, 184, 0, 0.14);
    color: #9c6a00;
}

.oi-badge-ciekawostki {
    background: rgba(22, 132, 255, 0.15);
    color: #0d5aa1;
}

.oi-badge-poradnik {
    background: rgba(124, 92, 255, 0.17);
    color: #5a46c9;
}

.oi-badge-video {
    background: rgba(255, 0, 68, 0.18);
    color: #b8002b;
}

.oi-badge-uncategorized {
    display: none !important;
}




