/* Hero Section - specyficzne style */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    /* Wyrównaj zawartość do dołu */
    padding: 1rem;
    overflow: hidden;
    padding-top: 100px;
}


.hero .container {
    text-align: center;
    z-index: 10;
    animation: fadeIn 1s ease-out;
    width: 100%;
    /* Szerokość 100% */
    background-color: rgba(200, 200, 200, 0.7);
    /* Czarne tło z przezroczystością 80% */
    padding: 1rem;
    /* Dodaj padding, żeby treść nie przylegała do krawędzi */
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    max-width: 48rem;
    margin: 0 auto 2rem;
    color: var(--gray-700);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.scroll-down {
    margin-top: 2rem;
    animation: bounce 2s infinite;
}

.scroll-down button {
    background: none;
    border: none;
    color: var(--medical-600);
    cursor: pointer;
    transition: color 0.3s;
}

.scroll-down button:hover {
    color: var(--medical-800);
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.25rem;
    }

    .hero p {
        font-size: 1.125rem;
    }
}

.hero-video-background,
.hero-image-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    object-fit: cover;
    /* Upewnij się, że tło jest pod treścią */
}

.hero-video-background iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
    object-position: center;
    min-width: 100%;
    min-height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.15);
}

.hero-image-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Rozciągnij obrazek, zachowując proporcje */
    object-position: center;
    /* Wyśrodkuj obrazek */
}