/* Reset podstawowych styli */
.blog-slider,
.blog-slider * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.blog-slider {
    width: 100%;
    margin: 0 auto;
    font-family: sans-serif;
    position: relative;
}
/* Nagłówek i kontrolki */
.blog-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}
.blog-title {
    font-size: 48px;
    font-weight: 700;
    color:#000000;
    width:90%;
}
.slider-controls {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
	margin:auto;
	max-width: 1700px;
}
.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;
}

.slider-controls button:hover {
    color: #E22618;
}
/* 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;
	max-width:1700px;
}
.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: 462px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.slide-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3); /* 30% czerni */
    border-radius: 10px;
    pointer-events: none;
    z-index: 1;
    transition: background-color 0.3s ease;
}
/* Hover efekt - ciemniejsze tło po najechaniu */
.slide-bg:hover::after {
    background-color: rgba(0, 0, 0, 0.7); /* 70% czerni */
}
/* Etykieta Topic - bez ciemniejszego tła */
.topic {
    position: absolute;
    top: 20px;
    left: 20px;
    border: 1px solid #fff;
    border-radius:5px;
    color: #fff;
    padding: 5px 10px;
    font-size: 14px;
    z-index: 2;
}

/* Kontener dla wersji mobilnej */
.mobile-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
    display: none;
    flex-direction: column;
    justify-content: flex-end;
}

.mobile-title {
    color: #fff;
    font-weight: 400;
    font-family: "Poppins", sans-serif;
    text-decoration: none;
    font-size: 24px;
    line-height: 150%;
    margin-bottom: 10px;
}

.mobile-title a {
    color: #fff;
    text-decoration: none;
}

.mobile-excerpt {
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

/* Tytuł wpisu - wersja desktop */
.slide-title {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: #fff;
    font-weight: 700;
    font-family: "Poppins", sans-serif;
    text-decoration: none;
    font-size: 32px;
    line-height: 120%;
    max-width: 90%;
    z-index: 2;
    transition: all 0.3s ease;
}

.slide-title a {
    color: #fff;
    text-decoration: none;
}

/* Hover efekt dla tytułu - przesuwa się do góry */
.slide-bg:hover .slide-title {
    opacity: 0;
}

/* Nowe style dla elementów hover */
.slide-hover-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.slide-bg:hover .slide-hover-content {
    opacity: 1;
}

.slide-bg:hover .topic {
    z-index: 4; /* Upewniamy się, że Topic pozostaje widoczny */
}

.slide-title-hover {
    color: #fff;
    font-weight: 700;
    font-family: "Poppins", sans-serif;
    text-decoration: none;
    font-size: 32px;
    line-height: 120%;
    max-width: 90%;
    margin-bottom: 15px;
}

.slide-title-hover a {
    color: #fff;
    text-decoration: none;
}

.excerpt-readmore-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.slide-excerpt {
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    width: 80%;
}

.read-more-btn {
    border: 1px solid #fff;
    color: #fff;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    width: 180px;
    text-align: center;
}

.read-more-btn:hover {
    background-color: #fff;
    color: #000;
}

/* Obsługa slidera */
.prev,
.next {
    cursor: pointer;
}


@media (hover: none), (max-width: 768px) {
    .slide-hover-content {
        display: none !important;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .mobile-content {
        display: flex;
    }
    
    .slide-bg:hover::after {
        background-color: rgba(0, 0, 0, 0.3) !important; /* Standardowe przyciemnienie na mobile */
    }

    /* Kontener slidera dostosowany do pionowego układu */
    .slider-container {
        overflow: hidden;
        position: relative;
        height: calc(2 * 440px + 20px); /* Wysokość na 2 slajdy + margines */
    }

    .slide-wrapper {
        display: flex;
        flex-direction: column; /* Pionowy układ slajdów */
        transition: transform 0.4s ease;
    }
    
    .slide {
        width: 100%; /* Pełna szerokość na mobile */
        margin-right: 0;
        margin-bottom: 20px; /* Odstęp między slajdami */
        flex-shrink: 0;
    }
    
    .slide-bg {
        height: 440px; /* Mniejsza wysokość dla mobilnych slajdów */
    }
    
    .slider-controls {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0 20px;
        margin-top: 20px;
    }
    
    .slider-controls button {
        padding: 10px;
    }
    
    /* Style dla nieaktywnych przycisków */
    .slider-controls button[disabled],
    .slider-controls button[style*="opacity: 0.5"] {
        opacity: 0.5;
        cursor: not-allowed;
    }
    
    .mobile-title {
        font-size: 24px; /* Mniejszy font dla tytułu na mobile */
        line-height: 1.2;
        font-weight: 700;
    }
    
    .mobile-excerpt {
        display:none;
    }
}