/* Style for case study items on the main page (index.html) */

.case-study-video-item {
    padding: 0 1rem 1rem 1rem; /* Adjust padding for the whole item, remove top padding */
}

.case-study-video-item h3 {
    margin: 0.8rem 0 0.4rem 0; /* Reduced top and bottom margin, zero left/right */
}

.case-study-video-item p {
    margin: 0; /* Remove all margins */
    line-height: 1.6;
}

.video-responsive {
    margin-bottom: 0.5rem; /* Small margin below video */
}

.video-thumbnail-link {
    position: absolute; /* Crucial for filling video-responsive */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block; /* Ensure it behaves like a block */
    overflow: hidden; /* Hide any overflow */
}

.video-thumbnail-link img.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the entire area without distortion, cropping if necessary */
    display: block; /* Remove any extra space below image */
}

/* Also ensure the play button is visible and positioned correctly */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background-color: rgba(0, 224, 255, 0.4); /* Półprzezroczysty neonowy cyjan */
    border: none; /* Usunięto ramkę */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 0 1px rgba(0, 224, 255, 0.2), 0 0 15px rgba(0, 224, 255, 0.6); /* Delikatne obramowanie przez cień i glow */
}

.play-button::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 25px;
    border-color: transparent transparent transparent #ffffff; /* Biały trójkąt */
    margin-left: 5px;
}

.video-thumbnail-link:hover .play-button {
    background-color: var(--accent-cyan); /* Pełny neonowy cyjan na hover */
    transform: translate(-50%, -50%) scale(1.2); /* Większe powiększenie */
    box-shadow: 0 0 0 2px var(--accent-cyan), 0 0 25px var(--accent-cyan), 0 0 40px rgba(0, 224, 255, 0.8); /* Mocniejszy glow */
}

.video-thumbnail-link:hover .video-thumbnail {
    transform: scale(1.05);
    filter: brightness(1); /* Rozjaśnienie miniatury na hover */
}

.video-thumbnail-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Ciemna, półprzezroczysta nakładka */
    transition: background 0.3s ease;
    z-index: 5; /* Poniżej przycisku odtwarzania */
}

.video-thumbnail-link:hover::before {
    background: rgba(0, 0, 0, 0.3); /* Jaśniejsza nakładka na hover */
}
