/* =========================================
   ML SLIDER - GŁÓWNY KONTENER I TOR
   ========================================= */
.ml-slider-container {
    max-width: auto;
    width: auto;
    margin: 0 auto;
    padding: 40px 0;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ml-slider.no-transition .ml-slide {
    transition: none;
}

.ml-slider {
    display: flex;
    transition: transform 0.5s ease;
    width: fit-content;
    align-items: center;
}

/* =========================================
   POJEDYNCZY SLAJD (Obrazek w tle)
   ========================================= */
.ml-slide {
    flex-shrink: 0;
    height: 500px;
    margin: 0 10px;
    transition: all 0.5s ease;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 3px solid transparent; /* Miejsce na ramkę aktywnego */
}

/* STAN NIEAKTYWNY */
.ml-slide:not(.active) {
    width: 200px;
}
/* Zablokowanie kliknięć w niewidoczny link na nieaktywnym slajdzie */
.ml-slide:not(.active) .ml-slide-link {
    pointer-events: none;
    cursor: not-allowed;
}

/* STAN AKTYWNY (Z obramowaniem z Figmy) */
.ml-slide.active {
    width: 500px;
    transform: scale(1.05);
    border: 3px solid #5B75AD;
    border-radius: 7px;
}

/* =========================================
   WARSTWY TŁA (Nakładka / Overlay)
   ========================================= */
.ml-slide-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    transition: background 0.5s ease, background-color 0.5s ease;
    background-color: rgba(0, 0, 0, 0.5); /* Zwykłe przyciemnienie bocznych slajdów */
}

/* Gradientowy ciemny overlay z Figmy na aktywnym (od dołu ciemniejszy) */
.ml-slide.active .ml-slide-overlay {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 20%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.95) 100%);
    background-color: transparent;
}

/* Niewidoczny link pokrywający cały slajd */
.ml-slide-link {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 10;
}

/* =========================================
   WARSTWY TEKSTOWE
   ========================================= */
.ml-slide-title, 
.ml-slide-content {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 20;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    pointer-events: none; /* Pozwala kliknąć w tło/link */
}

/* --- TYTUŁ (Pionowy, na nieaktywnych) --- */
.ml-slide-title {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1; 
    visibility: visible; 
}
.ml-slide.active .ml-slide-title { 
    opacity: 0; 
    visibility: hidden; 
}

.ml-slide-title h3 {
    color: #fff;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin: 0;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- OPIS (Na aktywnym) --- */
.ml-slide-content { 
    opacity: 0; 
    visibility: hidden; 
}
.ml-slide.active .ml-slide-content { 
    opacity: 1; 
    visibility: visible; 
}

/* Wyrównanie do lewej i do dołu wg Figmy */
.ml-slide-content-inner {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 33px 30px;
    gap: 8px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    text-align: left;
}

/* =========================================
   STYLOWANIE TREŚCI Z FIGMY 
   (Cena, hr, opis, przycisk)
   ========================================= */

.ml-pricing-header {
    margin-bottom: 0;
    width: 100%;
}

/* Cena */
.ml-price {
    font-family: 'Poppins', sans-serif;
    color: #F37D08;
    font-size: 24.5px;
    font-weight: 400;
    line-height: 1.6;
    text-shadow: 0px 0px 13px rgba(0, 0, 0, 0.97);
}

.ml-price .ml-currency,
.ml-price .ml-amount,
.ml-price .ml-period {
    font-size: inherit; 
    vertical-align: baseline;
    letter-spacing: normal;
}

/* Zostawiamy kreskę, ale równamy do lewej i zmieniamy styl by pasowała */
.ml-hr {
    border: 0;
    height: 2px;
    background-color: #5B75AD;
    width: 60px;
    margin: 4px 0 8px 0; /* Margines trzymający rygor do lewej */
}

/* Opis */
.ml-pricing-content {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #BDCBE8;
    margin: 0;
    max-width: 100%;
}

/* Kontener na przycisk */
.ml-pricing-footer {
    width: 100%;
    margin-top: 9px;
}

/* Szklany Przycisk (Glassmorphism) z Figmy */
.ml-btn {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 44px;
    background: rgba(227, 236, 255, 0.21);
    border: 1px solid #FFFFFF;
    backdrop-filter: blur(9.75px);
    -webkit-backdrop-filter: blur(9.75px);
    border-radius: 7px;
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 20;
    pointer-events: auto; 
}

.ml-btn:hover {
    background: rgba(227, 236, 255, 0.4);
    color: #ffffff;
    text-decoration: none;
}

/* =========================================
   PRZYCISKI I PAGINACJA (Bez zmian)
   ========================================= */
.prev-btn, .next-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 10; font-size: 80px; background-color: transparent;
    padding: 0; margin: 0; height: 100%;
    -webkit-tap-highlight-color: transparent; tap-highlight-color: transparent;        
}
.prev-btn:hover, .next-btn:hover { background-color: transparent !important; }
.prev-btn { left: calc(50% - 250px - 10px); }
.next-btn { right: calc(50% - 250px - 10px); }
.prev-btn i:before { text-shadow: -2px 7px 5px black; }
.next-btn i:before { text-shadow: 2px 7px 5px black; }

.ml-pagination {
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    display: flex; gap: 10px; z-index: 10;
}
.ml-dot {
    width: 12px; height: 12px; border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5); border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 0; cursor: pointer; transition: background-color 0.3s ease;
}
.ml-dot:hover { background-color: rgba(255, 255, 255, 0.8); }
.ml-dot.active { background-color: #E5780D; border-color: #333; }

/* =========================================
   RESPONSIVE (Twoje dotychczasowe wartości)
   ========================================= */
@media (max-width: 1024px) {
    .ml-slide { height: 400px; }
    .ml-slide.active { width: 400px; }
    .ml-slide:not(.active) { width: 150px; }
    .prev-btn { left: calc(50% - 200px - 10px); }
    .next-btn { right: calc(50% - 200px - 10px); }
}
@media (max-width: 768px) {
    .ml-slide { height: 300px; margin: 0 6px; }
    .ml-slide.active { width: 300px; }
    .ml-slide:not(.active) { width: 100px; }
    .prev-btn, .next-btn { font-size: 40px; }
    .prev-btn { left: calc(50% - 150px - 10px); }
    .next-btn { right: calc(50% - 150px - 10px); }
    
    /* Na mobile tekst z Figmy mógłby być ciut mniejszy, żeby się zmieścił */
    .ml-price { font-size: 20px; }
    .ml-pricing-content { font-size: 14px; }
    .ml-slide-content-inner { padding: 20px 15px; }
}