/* Import Mona Sans font */
@import url('https://fonts.googleapis.com/css2?family=Mona+Sans:ital,wght@0,200..900;1,200..900&display=swap');

/* Reset podstawowych styli */
.blog-slider,
.blog-slider * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.blog-slider {
    width: 100%;
    margin: 0 auto;
    font-family: 'Mona Sans', sans-serif;
    position: relative;
}

/* Nagłówek i kontrolki */
.blog-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 40px;
}

.blog-title {
    font-size: 36px;
    font-weight: 300;
    color: #000000;
    font-family: 'Mona Sans', sans-serif;
}

/* Kontrolki slidera */
.slider-controls {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    margin: auto;
}

.desktop-controls {
    display: flex;
    gap: 20px;
}

.mobile-controls {
    display: none;
    width: 100%;
    justify-content: center;
}

.slider-controls button {
    background: none;
    background-color: transparent;
    border: none;
    width: auto;
    height: auto;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #000;
    font-size: 18px;
    border-radius: 0;
}

.slider-controls button:hover {
    color: #E22618;
}

/* Przycisk Load More dla mobile */
.load-more-btn {
    border: 1px solid #000 !important;
    color: #000 !important;
    background: transparent !important;
    font-family: 'Mona Sans', sans-serif !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: none !important;
    width: 100% !important;
    height: 66px!important;
}

.load-more-btn:hover {
    background-color: #000 !important;
    color: #fff !important;
}

.load-more-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* Separator */
.separator {
    width: 100%;
    height: 1px;
    background-color: #adadad;
    margin-bottom: 20px;
}

.slider-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin-top: 40px;
    margin: auto;
}

.slide-wrapper {
    display: flex;
    transition: transform 0.4s ease;
    will-change: transform;
}

/* Slajdy */
.slide {
    width: calc(50% - 10px);
    margin-right: 20px;
    flex-shrink: 0;
}

.slide-wrapper .slide:last-child {
    margin-right: 0;
}

/* Tło slajdu (miniaturka wpisu) */
.slide-bg {
    width: 100%;
    height: 440px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.slide-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: inherit;
    background-position: inherit;
    background-image: inherit;
    z-index: 0;
    transition: filter 0.3s ease;
}

.slide:hover .slide-bg::before {
    filter: brightness(0.7);
}

.slide-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

/* Zawartość slajdu - zawsze widoczna */
.slide-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    color: #fff;
    font-family: 'Mona Sans', sans-serif;
}

.slide-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    font-family: 'Mona Sans', sans-serif;
}

.slide-title a {
    color: #fff;
    text-decoration: none;
    font-family: 'Mona Sans', sans-serif;
    font-weight: 300;
}

.slide-title a:hover {
    color: #e5e5e5;
}

.slide-excerpt {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 20px;
    font-weight: 300;
    font-family: 'Mona Sans', sans-serif;
}

.read-more-btn {
    border: 1px solid #fff;
    color: #fff;
    padding: 0 30px;
    height: 66px;
    border-radius: 0;
    text-decoration: none;
    font-family: 'Mona Sans', sans-serif;
    font-weight: 400;
    font-size: 20px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.read-more-btn:hover {
    background-color: #fff;
    color: #666666;
}

/* Obsługa slidera */
.prev,
.next {
    cursor: pointer;
}

/* Media queries dla responsywności */
@media (max-width: 768px) {
    
    .blog-title{
        font-size: 36px;
    }

    /* Ukrywamy kontrolki desktopowe i pokazujemy mobilne */
    .desktop-controls {
        display: none;
    }
    
    .mobile-controls {
        display: flex;
    }

    .slider-controls {
        justify-content: center;
    }

    /* Kontener slidera dla mobilnych - brak ograniczenia wysokości */
    .slider-container {
        overflow: visible;
        position: relative;
    }

    .slide-wrapper {
        display: flex;
        flex-direction: column;
        transition: none; /* Usuwamy animacje dla load more */
        transform: none !important; /* Resetujemy transformacje */
    }
    
    .slide {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
        flex-shrink: 0;
    }
    
    /* Ukrywamy slajdy początkowo (oprócz pierwszych dwóch) */
    .slide {
        display: block;
    }
    
    .slide.hidden {
        display: none;
    }
    
    .slide-bg {
        height: 500px;
    }
    
    .slide-title {
        font-size: 28px;
        line-height: 1.2;
        font-weight: 700;
    }
    
    .slide-excerpt {
        font-size: 18px;
    }
    
    .slide-content {
        padding: 40px 40px;
    }
    
    .read-more-btn{
        width: 100%;
        text-align: center;
    }
}