/* =============================================================================
   Virtual Lab Page Specific Styles
   ========================================================================== */

/* About Section Paragraph Styling */
.section.container .lead {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--eduskill-text);
    font-family: 'Poppins', sans-serif !important;
}

.section.container .lead+p {
    margin-top: 1rem;
}

.page-virtual-lab .bg-light-alt {
    background-color: var(--bs-light);
}

/* Highlight & Functionality Cards */
.page-virtual-lab .highlight-card,
.page-virtual-lab .functionality-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.page-virtual-lab .highlight-card:hover,
.page-virtual-lab .functionality-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.1);
    background-color: #f7faff;
    /* Light blue background on hover */
}

.page-virtual-lab .feature-icon {
    font-size: 2.5rem;
    color: var(--eduskill-primary);
    margin: 0 auto 15px auto;
    width: 60px;
    height: 60px;
    line-height: 60px;
    background-color: var(--eduskill-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-virtual-lab .highlight-card h4,
.page-virtual-lab .functionality-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.page-virtual-lab .highlight-card p,
.page-virtual-lab .functionality-card p {
    color: var(--eduskill-text-dark);
}

/* Disciplines Section */
.page-virtual-lab .discipline-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background-size: cover;
    background-position: center;
    color: #fff;
    font-weight: 700;
    text-align: center;
    padding: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    padding: 1.5rem 1rem;
    /* Restored padding */
}

.page-virtual-lab .discipline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s ease;
}

.page-virtual-lab .discipline-card span {
    position: relative;
    z-index: 1;
}

.page-virtual-lab .discipline-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.2);
}

.page-virtual-lab .discipline-card:hover::before {
    background-color: rgba(59, 130, 246, 0.7);
}

/* How It Works Timeline */
.page-virtual-lab .timeline {
    position: relative;
    max-width: 900px;
    margin: 40px auto;
    padding: 20px 0;
}

.page-virtual-lab .timeline::before {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--eduskill-primary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

.page-virtual-lab .timeline-item {
    padding: 2px 40px;
    position: relative;
    width: 50%;
}

.page-virtual-lab .timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.page-virtual-lab .timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.page-virtual-lab .timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: white;
    border: 4px solid var(--eduskill-primary);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

.page-virtual-lab .timeline-item:nth-child(odd)::after {
    right: -10px;
}

.page-virtual-lab .timeline-item:nth-child(even)::after {
    left: -10px;
}

.page-virtual-lab .timeline-content {
    padding: 15px 25px;
    background-color: #ffffff;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-virtual-lab .timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 191, 255, 0.15);
}

.page-virtual-lab .timeline-content h3 {
    color: var(--eduskill-primary);
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.page-virtual-lab .timeline-content p {
    color: #686262;
    /* Grayish black color */
    text-align: center;
    font-size: 0.95rem;
}

/* Video Placeholder */
.video-placeholder-bg {
    background-color: #000;
}

.video-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 450px;
    /* Ensure it has a good height */
    position: absolute;
    top: 0;
    left: 0;
}

.coming-soon-text {
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
}

/* Final CTA Section */
.page-virtual-lab .final-cta-section {
    background-color: #f0f8ff;
}

.page-virtual-lab .final-cta-section h2,
.page-virtual-lab .final-cta-section p {
    color: var(--eduskill-text-dark) !important;
}

/* Responsive Timeline */
@media screen and (max-width: 768px) {
    .page-virtual-lab .timeline::before {
        left: 20px;
    }

    .page-virtual-lab .timeline-item,
    .page-virtual-lab .timeline-item:nth-child(even) {
        width: 100%;
        padding-left: 60px;
        padding-right: 15px;
        left: 0;
        text-align: left;
    }

    .page-virtual-lab .timeline-item::after,
    .page-virtual-lab .timeline-item:nth-child(even)::after {
        left: 10px;
    }
}

/* =============================================================================
   Virtual Lab Page Specific Styles
   ========================================================================== */

/* Ensure all lead paragraphs on a standard (light) background are dark for readability */
.page-virtual-lab .section .lead {
    color: var(--eduskill-text-dark);
    /* Default to dark for readability */
}

/* Set the text in the "About" section specifically to white */
.page-virtual-lab .about-section .lead {
    color: var(--eduskill-text);
}

/* Set the lead text in the "How It Works" section to white */
.page-virtual-lab .how-it-works-section .lead {
    color: #fff;
}