/* ===================== Blog Aggregator – style ===================== */

.baw-aggregator {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.baw-aggregator a {
    text-decoration: none;
    color: inherit;
}

/* wspólny kontener na zdjęcie – zaokrąglenie 35px zgodnie z wytyczną */
.baw-img,
.baw-img-el,
.baw-img-placeholder {
    border-radius: 35px;
    overflow: hidden;
}

.baw-img {
    position: relative;
    background: transparent;
    box-shadow: none;
}

.baw-img-el {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
    box-shadow: none;
    border: none;
    outline: none;
}

.baw-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e5e5e5 0%, #f2f2f2 100%);
}

.baw-card:hover .baw-img-el,
.baw-main:hover .baw-img-el {
    transform: scale(1.04);
}

/* ---------- WPIS GŁÓWNY ---------- */
.baw-main {
    position: relative;
    display: block;
    border-radius: 35px;
}

.baw-main-img {
    height: 440px;
}

.baw-main-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 32px 40px;
    background: linear-gradient(0deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,0) 100%);
    border-radius: 0 0 35px 35px;
    color: #fff;
}

.baw-aggregator .baw-main-title {
    font-size: 30px;
    line-height: 1.25;
    margin: 0 0 10px;
    font-weight: 700;
    color: #ffffff !important;
}

.baw-aggregator .baw-main-title a {
    color: #ffffff !important;
    text-decoration: none;
}

.baw-aggregator .baw-main-lead {
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    max-width: 720px;
    opacity: .95;
    color: #ffffff !important;
}

.baw-main-readmore {
    display: inline-block;
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff !important;
    text-decoration: underline;
}

/* ---------- WIDEO w wpisie głównym ---------- */
.baw-main-video-wrap {
    position: relative;
    height: 440px;
}

.baw-main-video-wrap video,
.baw-main-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

@media (max-width: 782px) {
    .baw-main-video-wrap {
        height: 300px;
    }
}

/* ---------- 2 WPISY POBOCZNE ---------- */
.baw-secondary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}

.baw-card {
    display: flex;
    flex-direction: column;
    background: transparent;
    box-shadow: none;
}

.baw-card-img {
    height: 220px;
    margin-bottom: 16px;
}

.baw-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.baw-card-title {
    font-size: 19px;
    line-height: 1.3;
    margin: 0;
    font-weight: 700;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.3em * 2);
}

.baw-card-lead {
    font-size: 14.5px;
    line-height: 1.5;
    color: #5c5c5c;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.5em * 3);
}

/* ---------- KARUZELA NEWSÓW ---------- */
.baw-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.baw-carousel-viewport {
    overflow: hidden;
    flex: 1;
}

.baw-carousel-track {
    display: flex;
    align-items: flex-start;
    transition: transform .45s ease;
}

.baw-slide {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    box-sizing: border-box;
    padding: 0 14px;
}

.baw-carousel-btn {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, visibility .2s ease;
}

.baw-carousel-btn:hover {
    background: #f2f2f2;
}

/* ---------- 3 WPISY KASKADOWE ---------- */
.baw-cascade {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.baw-cascade-item {
    flex: 1 1 0;
}

.baw-cascade-2 {
    margin-top: 46px;
}

.baw-cascade-3 {
    margin-top: 92px;
}

/* ---------- RESPONSYWNOŚĆ ---------- */
@media (max-width: 992px) {
    .baw-slide {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 782px) {
    .baw-secondary-grid {
        grid-template-columns: 1fr;
    }

    .baw-cascade {
        flex-direction: column;
    }

    .baw-cascade-2,
    .baw-cascade-3 {
        margin-top: 0;
    }

    .baw-main-img {
        height: 300px;
    }

    .baw-main-title {
        font-size: 22px;
    }

    .baw-main-overlay {
        padding: 22px 20px;
    }

    .baw-slide {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
