
/* === CK Blog Slider === */

.ck-swiper-container {
    margin: 40px auto;
    padding: 0 20px;
    max-width: 1600px;
    background: transparent !important;
}

.ck-post-box {
    background: #171717;
    border-radius: 12px;
    overflow: hidden;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ck-post-box img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.ck-post-box h3 {
    font-size: 16px;
    font-weight: 600;
    color: #ffa200;
    padding: 15px 15px 5px;
    min-height: 60px;
}

.ck-post-box p {
    padding: 0 15px;
    font-size: 14px;
    line-height: 1.4;
    color: #fff;
    flex-grow: 1;
}

.ck-post-box a {
    padding: 10px 15px 15px;
    color: #ffa200;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
}

/* Nawigacja Custom (przyciski .ck-prev/.ck-next) */
.ck-blog-slider-controls {
    margin-top: 24px;
    text-align: center;
}

.ck-blog-slider-controls button {
    background: #1f1f1f;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    margin: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    transition: background 0.3s;
}

.ck-blog-slider-controls button:hover {
    background: #2a2a2a;
}

.ck-blog-slider-controls svg {
    width: 20px;
    height: 20px;
    fill: #ffa200;
}

/* Mobile (<=768px) */
@media (max-width: 768px) {
    .ck-swiper-container {
        padding: 0 10px;
    }

    .ck-post-box {
        border-radius: 10px;
    }

    .ck-post-box img {
        height: 140px;
    }

    .ck-post-box h3 {
        font-size: 13px;
        padding: 12px 12px 4px;
        min-height: 48px;
    }

    .ck-post-box p {
        font-size: 12.5px;
        padding: 0 12px;
    }

    .ck-post-box a {
        font-size: 13px;
        padding: 8px 12px 12px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
}

/* Reset dla sekcji Divi */
.et_pb_section, .et_pb_row {
    background: transparent !important;
}

/* Loader */
#ck-loader {
    text-align: center;
    margin: 40px 0;
}

#ck-loader::after {
    content: "";
    display: inline-block;
    width: 48px;
    height: 48px;
    border: 4px solid #ffa200;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}