/* Virtual Labs Hero Section */
.virtual-labs-hero {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.image-stack {
    position: relative;
    height: 500px;
}

.stacked-image {
    position: absolute;
    width: 85%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stacked-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.img-main {
    top: 0;
    left: 0;
    z-index: 3;
}

.img-secondary {
    top: 20px;
    left: 10%;
    z-index: 2;
    opacity: 0.9;
}

.img-tertiary {
    top: 40px;
    left: 20%;
    z-index: 1;
    opacity: 0.8;
}

.image-label {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.virtual-labs-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.2;
}

.virtual-labs-subtitle {
    font-size: 1.4rem;
    color: #3498db;
    margin-bottom: 30px;
    font-weight: 500;
}

.virtual-labs-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.virtual-labs-description p {
    margin-bottom: 20px;
}

.features-list {
    margin-top: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 1rem;
}

.feature-item i {
    color: #e74c3c;
    margin-right: 12px;
    font-size: 1.2rem;
}

/* Virtual Labs List Section */
.virtual-labs-list-section {
    padding: 80px 0;
    background-color: white;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
}

.labs-categories {
    margin-top: 40px;
}

.lab-category {
    margin-bottom: 40px;
}

.category-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #e9ecef;
    display: flex;
    align-items: center;
}

.category-title i {
    margin-right: 10px;
    font-size: 1.4rem;
}

.physics-icon {
    color: #9b59b6;
}

.chemistry-icon {
    color: #e67e22;
}

.biology-icon {
    color: #27ae60;
}

.lab-items {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.lab-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: white;
    border-bottom: 1px solid #e9ecef;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.lab-item:last-child {
    border-bottom: none;
}

.lab-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.lab-item-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.lab-item-content p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.5;
}

.lab-duration {
    font-size: 0.85rem;
    color: #888;
    display: flex;
    align-items: center;
}

.lab-duration i {
    margin-right: 5px;
}

.lab-item i.bi-chevron-right {
    color: #3498db;
    font-size: 1.2rem;
}

/* Side Images */
.side-images {
    position: sticky;
    top: 100px;
}

.side-image-card {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.side-image-card:hover {
    transform: translateY(-5px);
}

.side-image-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.side-image-content {
    padding: 20px;
    background-color: white;
}

.side-image-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.side-image-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Responsive Styles for Main Section Only */
@media (max-width: 992px) {
    .virtual-labs-hero {
        padding: 40px 0;
    }
    
    .image-stack {
        height: 400px;
        margin-bottom: 40px;
    }
    
    .virtual-labs-title {
        font-size: 2.2rem;
    }
    
    .virtual-labs-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .image-stack {
        height: 350px;
    }
    
    .virtual-labs-title {
        font-size: 1.9rem;
    }
    
    .stacked-image {
        width: 90%;
    }
    
    .side-images {
        position: static;
        margin-top: 40px;
    }
    
    .virtual-labs-list-section {
        padding: 50px 0;
    }
}

@media (max-width: 576px) {
    .image-stack {
        height: 300px;
    }
    
    .virtual-labs-title {
        font-size: 1.7rem;
    }
    
    .lab-item {
        padding: 15px;
    }
    
    .lab-item-content h4 {
        font-size: 1.1rem;
    }
}