 /* Instagram-Style Video Showcase */
 .student-experiences-insta {
    background-color:#ffffff;
    padding: 100px 0;
}

.insta-video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.insta-video-card {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.insta-video-card:hover {
    transform: translateY(-10px);
}

.video-wrapper {
    position: relative;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 120%; /* Reduced from 177.78% to make it shorter */
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-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 .video-overlay {
    opacity: 1;
}

.play-button {
    width: 70px;
    height: 70px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    cursor: pointer;
}

.play-button i {
    color: var(--primary);
    font-size: 24px;
}

.video-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.video-modal-content {
    position: relative;
    margin: 5% auto;
    width: 90%;
    max-width: 500px;
    aspect-ratio: 9/16;
}

.close-video {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--white);
    font-size: 35px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
}

.video-container {
    width: 100%;
    height: 100%;
}

.video-modal-content iframe {
    width: 100%;
    height: 100%;
}

.video-details {
    padding: 20px;
    text-align: center;
}

.video-details h3 {
    font-size: 1.1rem;
    color: var(--secondary-dark);
    margin-bottom: 10px;
}

.video-details p {
    font-size: 0.9rem;
    color: var(--secondary-light);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .insta-video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .insta-video-grid {
        grid-template-columns: 1fr;
    }

    .student-experiences-insta {
        padding: 60px 0;
    }

    .video-modal-content {
        margin: 10% auto;
    }
}