/* ===== LAB PAGE SPECIFIC STYLES ===== */

.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.page-header h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* ===== LAB SECTION ===== */
.lab-section {
    margin-bottom: 3rem;
}

.lab-section h3 {
    font-size: 1.8rem;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
    border-bottom: 3px solid #e94560;
    padding-bottom: 0.5rem;
}

.section-description {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* ===== ENHANCED GALLERY GRID (4 items per row) ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

/* Ensure 4 columns on larger screens */
@media (min-width: 1400px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1100px) and (max-width: 1399px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1099px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ENHANCED THUMBNAIL CARD ===== */
.thumbnail-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
}

.thumbnail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: 15px;
    z-index: 1;
}

.thumbnail-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

.thumbnail-card:hover::before {
    opacity: 1;
}

/* ===== THUMBNAIL IMAGE ===== */
.thumbnail-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
    position: relative;
}

.thumbnail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.thumbnail-card:hover .thumbnail-image img {
    transform: scale(1.1);
}

.lab-icon {
    font-size: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* ===== THUMBNAIL CONTENT ===== */
.thumbnail-content {
    padding: 1.8rem;
    position: relative;
    z-index: 2;
}

.thumbnail-content h3 {
    color: #1a1a2e;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.thumbnail-content p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* ===== THUMBNAIL FOOTER & BADGES ===== */
.thumbnail-footer {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.badge {
    display: inline-block;
    background-color: #e94560;
    color: white;
    padding: 0.35rem 0.95rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(233, 69, 96, 0.2);
    transition: all 0.3s ease;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.3);
}

.badge.easy {
    background-color: #28a745;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.2);
}

.badge.advanced {
    background-color: #ffc107;
    color: #333;
    box-shadow: 0 3px 10px rgba(255, 193, 7, 0.2);
}

/* ===== INFO BOX ===== */
.info-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #667eea;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 3rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.info-box h4 {
    color: #1a1a2e;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-box ul {
    list-style: none;
}

.info-box ul li {
    color: #555;
    padding: 0.5rem 0;
    border-bottom: 1px solid #dee2e6;
    line-height: 1.8;
}

.info-box ul li:last-child {
    border-bottom: none;
}

.info-box strong {
    color: #1a1a2e;
}

/* ===== ANIMATION EFFECTS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.thumbnail-card {
    animation: fadeInUp 0.6s ease-out both;
}

.thumbnail-card:nth-child(1) { animation-delay: 0.05s; }
.thumbnail-card:nth-child(2) { animation-delay: 0.1s; }
.thumbnail-card:nth-child(3) { animation-delay: 0.15s; }
.thumbnail-card:nth-child(4) { animation-delay: 0.2s; }
.thumbnail-card:nth-child(5) { animation-delay: 0.25s; }
.thumbnail-card:nth-child(6) { animation-delay: 0.3s; }
.thumbnail-card:nth-child(7) { animation-delay: 0.35s; }
.thumbnail-card:nth-child(8) { animation-delay: 0.4s; }

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .page-header h2 {
        font-size: 1.6rem;
    }

    .page-header p {
        font-size: 0.95rem;
    }

    .thumbnail-image {
        height: 180px;
    }

    .lab-icon {
        font-size: 3rem;
    }

    .thumbnail-content {
        padding: 1.5rem;
    }

    .thumbnail-content h3 {
        font-size: 1.05rem;
    }

    .thumbnail-content p {
        font-size: 0.9rem;
    }

    .info-box {
        padding: 1.5rem;
    }

    .info-box h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 2rem 1rem;
    }

    .page-header h2 {
        font-size: 1.3rem;
    }

    .thumbnail-card {
        border-radius: 12px;
    }

    .thumbnail-image {
        height: 150px;
    }

    .lab-icon {
        font-size: 2.5rem;
    }

    .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.7rem;
    }
}
