/* Hero Slider Styles */

.hero-slider {
    position: relative;
    width: 100%;
    min-height: 60vh;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 80vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(100%);
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.hero-slide.prev {
    transform: translateX(-100%);
}

.slider-dot {
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: rgba(255, 255, 255, 1) !important;
    transform: scale(1.2);
}

.slider-nav {
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-nav:hover {
    transform: translateY(-50%) scale(1.1);
}

.slider-nav:active {
    transform: translateY(-50%) scale(0.95);
}

/* iPhone 16 PRO and mobile specific fixes */
@media (max-width: 430px) {
    .hero-slide img {
        object-fit: contain !important;
        object-position: center !important;
        width: 100% !important;
        height: auto !important;
    }
}

/* Responsive adjustments for slider */
@media (max-width: 768px) {
    .slider-nav {
        padding: 0.5rem;
        top: 40% !important; /* Wyżej niż 50% */
        transform: translateY(-50%) !important;
    }
    
    .slider-nav svg {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    /* Fix for mobile hero section */
    .hero-slider {
        min-height: 80vh;
    }
    
    .hero-slide {
        min-height: 80vh;
        padding-top: 1.5rem; /* 24px - więcej paddingu górnego */
        padding-bottom: 1rem; /* 16px */
    }
    
    /* Ensure content fits properly on mobile */
    .hero-slide .container {
        min-height: calc(80vh - 2.5rem); /* 80vh - padding (1.5rem top + 1rem bottom) */
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    /* Adjust grid layout for mobile */
    .hero-slide .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        align-items: center;
    }
    
    /* Ensure image doesn't get cut off */
    .hero-slide img {
        object-fit: contain;
        object-position: center;
        width: 100%;
        height: auto;
    }
    
    /* Additional mobile hero image fixes */
    .hero-slide .grid img {
        object-fit: contain;
        object-position: center;
        width: 100%;
        height: auto;
    }
    
    /* Force images to not be cropped - iPhone 16 PRO fix */
    .hero-slide img {
        object-fit: contain !important;
        object-position: center !important;
        width: 100% !important;
        height: auto !important;
    }
    
    /* Fix for hero slide content */
    .hero-slide .grid > div {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    
    /* iPhone 16 PRO specific container fixes */
    .hero-slide .grid > div:last-child {
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    /* Ensure image container doesn't crop */
    .hero-slide .grid > div:last-child img {
        object-fit: contain !important;
        object-position: center !important;
        width: 100% !important;
        height: auto !important;
    }
    
    /* Fix for fallback hero section on mobile */
    section.relative.pt-32.pb-16.md\\:pb-32 {
        padding-top: 1.5rem !important; /* 24px - więcej paddingu górnego */
        min-height: 60vh;
    }
    
    section.relative.pt-32.pb-16.md\\:pb-32 .container {
        min-height: calc(60vh - 1.5rem);
        display: flex;
        flex-direction: column;
    }
    
    section.relative.pt-32.pb-16.md\\:pb-32 img {
        object-fit: contain;
        object-position: center;
        width: 100%;
        height: auto;
    }
    
    /* Additional mobile hero fixes */
    .pt-32 {
        padding-top: 1.5rem !important;
    }
    
    .md\\:pt-32 {
        padding-top: 1.5rem !important;
    }
    
    /* General mobile hero section fixes */
    section[class*="pt-32"] {
        padding-top: 1.5rem !important;
    }
    
    /* Fix for any hero section with large padding */
    .hero-section,
    section.hero,
    .hero-banner {
        padding-top: 1.5rem !important;
    }
}
