/* ===================== ABOUT SLIDER ===================== */
/* Tak jak w services.css */
.about-slider-container {
    position: relative;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, rgba(8,47,97,0.95) 0%, rgba(10, 51, 94, 0.9) 100%);
}

.about-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.about-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    background: linear-gradient(135deg, rgba(8,47,97,0.95) 0%, rgba(10, 51, 94, 0.9) 100%);
    color: var(--white);
}

.about-slide.active {
    opacity: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.2;
}

.slide-bg figure,
.slide-bg .wp-block-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

.slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.slide-content {
    max-width: 900px; /* Zwiększono z 800px dla lepszego dopasowania tekstu */
    z-index: 2;
    position: relative;
    padding: 30px;
    background: rgba(8, 47, 97, 0.7);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.slide-content h3 {
    letter-spacing: 3px;
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    font-weight: 700;
}

.slide-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.4);
    font-weight: 400;
}

/* Nawigacja jak w services.css */
.slider-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 10;
    background: rgba(8, 47, 97, 0.7);
    padding: 8px 16px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: fit-content;
}

.slider-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.slider-arrow:active {
    transform: scale(0.95);
}

.slider-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.28s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0;
    display: inline-block;
}

.slider-indicator.active {
    background: var(--white);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.slider-indicator:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

/* Przyciski w sliderze */
.about-slide .btn {
    background-color: var(--white);
    color: var(--primary-dark) !important;
    border: 2px solid var(--white);
    padding: 10px 25px;
    font-weight: 600;
    margin-top: 10px;
}

.about-slide .btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark) !important;
    border-color: rgba(255, 255, 255, 0.9);
}

/* Responsywność */
@media (max-width: 992px) {
    .about-slider-container {
        height: auto;
    }
    
    .slide-content {
        padding: 25px;
        max-width: 90%;
    }
    
    .slide-content h3 {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .section.about {
        padding-bottom: 0;
    }

    .about-slider-container {
        border-radius: 0;
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
        display: flex;
        flex-direction: column;
    }

    .about-slider {
        flex: 1;
        min-height: 480px; /* fallback do JS syncHeight */
    }

    .about-slide {
        padding: 0;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }

    .slide-bg {
        display: none;
    }

    .slide-content {
        max-width: 100%;
        width: 100%;
        padding: 35px 20px 20px;
        background: linear-gradient(135deg, rgba(8,47,97,0.97) 0%, rgba(10, 51, 94, 0.95) 100%);
        border-radius: 0;
        border: none;
        box-shadow: none;
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .slide-content h3 {
        font-size: 1.3rem;
        letter-spacing: 1px;
        margin-bottom: 12px;
    }

    .slide-content p {
        font-size: 0.95rem;
        line-height: 1.7;
        max-width: 100%;
        text-align: center;
    }

    .slider-indicators {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        justify-content: center;
        margin: 0 auto;
        padding: 20px 20px 25px;
        background: rgba(8, 47, 97, 0.97);
        border-radius: 0;
        border: none;
        width: 100%;
        backdrop-filter: none;
    }
}

@media (max-width: 576px) {

    .about-slide.active {
        display: flex;
    }

    .slide-content {
        padding: 25px 15px;
    }

    .slide-content h3 {
        font-size: 1.1rem;
        letter-spacing: 0;
    }

    .slide-content p {
        font-size: 0.9rem;
        margin-bottom: 15px;
        max-width: 100%;
    }

    .slider-indicator {
        width: 8px;
        height: 8px;
    }

    .slider-arrow {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .slider-indicators {
        padding: 8px 14px;
        gap: 10px;
    }
}

/* Focus dla slider indicator */
.slider-indicator:focus {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

/* Skip link dla slidera */
.slider-skip {
    position: absolute;
    top: -40px;
    left: 20px;
    background: var(--white);
    color: var(--primary-dark);
    padding: 8px 15px;
    border-radius: 5px;
    z-index: 10;
    font-weight: 600;
    border: 2px solid var(--primary);
}

.slider-skip:focus {
    top: 20px;
    outline: 3px solid var(--primary-light);
}

/* Kontrast dla tekstu w sliderze */
.about-slide .slide-content * {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.about-slide .slide-content h3 {
    color: var(--white); /* 21:1 kontrast na ciemnym tle */
}

.about-slide .slide-content p {
    color: rgba(255, 255, 255, 0.95); /* 18.9:1 kontrast na ciemnym tle */
}

/* Wysoki kontrast */
@media (prefers-contrast: high) {
    .about-slide {
        background: linear-gradient(135deg, #000080 0%, #000000 100%);
    }
    
    .slide-content {
        background: #000000;
        border: 2px solid #ffffff;
    }
    
    .slider-indicator {
        border: 2px solid #ffffff;
    }
    
    .slider-indicator.active {
        background: #ffffff;
        box-shadow: 0 0 15px #ffffff;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .about-slide {
        transition: opacity 0.1s ease;
    }
    
    .slider-indicator {
        transition: none;
    }
}

/* Podniesienie podkreślenia dla sekcji O Klinice na mobile i tablet */
@media (max-width: 992px) {
    .section.about .section-title::before,
    .section.about .section-title::after {
        transform: translateY(-13px); /* Podniesienie z 10px na 15px, żeby nie nachodziło na tekst */
    }
}
