.hero-videos {
    padding: 40px 0 20px;
}

.hero-videos .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-videos .video-item {
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    width: 100%;
}

.hero-videos .video-item:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.85);
}

.hero-videos .video-container {
    width: 100%;
    position: relative;
    aspect-ratio: 9 / 16;
    background-color: #000;
}

.hero-videos .square-video .video-container {
    aspect-ratio: 1 / 1;
}

.hero-videos .video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-videos .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    text-align: center;
}

.hero-videos .video-item:hover .video-overlay {
    opacity: 1;
}

.hero-videos .video-overlay p {
    font-size: 1.1rem;
    padding: 20px;
}

.hero-videos .video-info {
    padding: 20px;
    flex-grow: 1;
}

.hero-videos .video-info h2 {
    margin: 0 0 10px;
    font-size: 1.4rem;
    color: #ffffff;
}

.hero-videos .video-info p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #b0b0b0;
}

.hero-videos .view-button {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    background-color: transparent;
    border: 1px solid #666;
    color: #ccc;
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.hero-videos .view-button:hover {
    background-color: #007BFF;
    border-color: #007BFF;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-videos .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-videos .video-item {
        width: 100%;
        margin: 0 auto;
    }

    .hero-videos .video-container {
        width: 100%;
        position: relative;
        background-color: #000;
    }

    .hero-videos .video-container video {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        display: block;
    }
}