* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Video Gallery Styles */
.video-gallery {
    padding: 2rem 5%;
    background-color: rgb(26, 26, 26);
    min-height: calc(100vh - 120px);
}

.page-title {
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    color: #d8d8d8;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

.page-subtitle {
    text-align: center;
    color: #c6c6c6;
    margin-bottom: 2rem;
    font-family: 'Montserrat', sans-serif;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.7rem;
    margin-top: 3rem;
}

.video-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 5px 7px 20px #d05b0197;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: 8px 11px 24px #d05b0197;
}

.video-thumbnail {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.thumbnail-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.video-thumbnail:hover .thumbnail-img {
    transform: scale(1.07);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-thumbnail:hover .play-overlay {
    opacity: 1;
}

.play-overlay i {
    color: white;
    font-size: 3rem;
}

.video-title {
    font-family: 'Montserrat', sans-serif;
    padding: 1rem;
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
    display: block; /* Ensures proper spacing */
}
.video-link {
    text-decoration: none;
    color: inherit; /* Inherit color from parent */
}

.video-title:hover {
    color: #054e98;
}

.video-actions {
    padding: 1rem 1rem 1rem;
    position: relative;
}

.share-btn {
    background: #f0f0f0;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: background 0.3s ease;
}

.share-btn:hover {
    background: #e0e0e0;
}

.share-options {
    position: absolute;
    bottom: 80%;
    left: 1rem;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 1, 0.2);
    padding: 0.5rem;
    display: none;
    z-index: 10;
    gap: 0.5rem;
}

/* Changed hover target */
.share-btn:hover + .share-options,
.share-options:hover {
    display: flex;
    opacity: 1;
}

.social-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: white;
    transition: transform 0.2s ease;
    text-decoration: none;
}

.social-share:hover {
    transform: scale(1.1);
}

.facebook { background: #3b5998; }
.twitter { background: #000000; }
.linkedin { background: #0077b5; }
.whatsapp { background: #25d366; }

/* Responsive Design */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .video-actions {
        padding: 0 0.8rem 0.8rem;
    }
    
    .social-share {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .video-gallery {
        padding: 1.5rem;
    }
    
    .social-share {
        width: 24px;
        height: 24px;
    }
}