/* ============================================ */
/* Labs Page Styles                             */
/* ============================================ */

/* Lab Card */
.lab-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.lab-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Carousel Container */
.lab-carousel {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

/* Carousel Images with Smooth Zoom Effect */
.lab-carousel-img {
    height: 280px;
    object-fit: cover;
    transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Professional Zoom Effect on Active Slide */
.lab-carousel .carousel-item.active .lab-carousel-img {
    transform: scale(1.05);
}

.lab-carousel .carousel-item-next .lab-carousel-img,
.lab-carousel .carousel-item-prev .lab-carousel-img {
    transform: scale(1);
}

/* Smooth Carousel Transitions */
.carousel-item {
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Fade Effect for Carousel */
.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

/* Overlay Gradient for Professional Look */
.lab-carousel .carousel-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    pointer-events: none;
    transition: opacity 1s ease;
}

.lab-card:hover .carousel-item::after {
    opacity: 0.5;
}

/* Carousel Indicators - Golden Theme */
.lab-carousel .carousel-indicators {
    bottom: 15px;
    margin-bottom: 0;
    gap: 8px;
}

.lab-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.3);
    opacity: 0.8;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
    padding: 0;
    backdrop-filter: blur(4px);
}

.lab-carousel .carousel-indicators button.active {
    background: #c9a84c;
    border-color: #c9a84c;
    opacity: 1;
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.5);
}

.lab-carousel .carousel-indicators button:hover {
    transform: scale(1.2);
    opacity: 1;
}

/* Carousel Controls - Professional Style */
.lab-carousel .carousel-control-prev,
.lab-carousel .carousel-control-next {
    width: 45px;
    height: 45px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.lab-card:hover .carousel-control-prev,
.lab-card:hover .carousel-control-next {
    opacity: 1;
}

.lab-carousel .carousel-control-prev {
    left: 15px;
}

.lab-carousel .carousel-control-next {
    right: 15px;
}

.lab-carousel .carousel-control-prev-icon,
.lab-carousel .carousel-control-next-icon {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.lab-carousel .carousel-control-prev:hover,
.lab-carousel .carousel-control-next:hover {
    background: rgba(201, 168, 76, 0.85);
    border-color: #c9a84c;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.3);
}

/* Card Body */
.lab-card .card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    position: relative;
}

/* Lab Badge */
.lab-badge {
    display: inline-block;
    padding: 5px 14px;
    background: linear-gradient(135deg, #c9a84c, #d4b85a);
    color: #fff;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    width: fit-content;
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.3);
    transition: all 0.3s ease;
}

.lab-card:hover .lab-badge {
    box-shadow: 0 6px 25px rgba(201, 168, 76, 0.4);
    transform: translateY(-2px);
}

/* Card Title */
.lab-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.lab-card:hover .card-title {
    color: #c9a84c;
}

.lab-card .card-title i {
    color: #c9a84c;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.lab-card:hover .card-title i {
    transform: scale(1.1) rotate(-5deg);
}

/* Card Text */
.lab-card .card-text {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    flex: 1;
}

/* Lab Features */
.lab-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem 0;
}

.lab-features li {
    padding: 5px 0;
    color: #495057;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.lab-features li:hover {
    padding-left: 5px;
    color: #2c3e50;
}

.lab-features li i {
    color: #c9a84c;
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.lab-features li:hover i {
    transform: scale(1.2);
}

/* Lab Stats */
.lab-stats {
    display: flex;
    justify-content: space-around;
    padding-top: 1.25rem;
    border-top: 2px solid #f0f0f0;
    margin-top: auto;
}

.lab-stats .stat {
    text-align: center;
    transition: all 0.3s ease;
}

.lab-stats .stat:hover {
    transform: translateY(-3px);
}

.lab-stats .stat .number {
    font-size: 1.35rem;
    font-weight: 700;
    color: #c9a84c;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.lab-stats .stat:hover .number {
    color: #d4b85a;
    transform: scale(1.05);
}

.lab-stats .stat .label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .lab-carousel-img {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .lab-carousel-img {
        height: 200px;
    }
    
    .lab-card .card-body {
        padding: 1.25rem;
    }
    
    .lab-stats .stat .number {
        font-size: 1.1rem;
    }
    
    .lab-carousel .carousel-control-prev,
    .lab-carousel .carousel-control-next {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 576px) {
    .lab-carousel-img {
        height: 200px;
    }
    
    .lab-card .card-title {
        font-size: 1.1rem;
    }
    
    .lab-features li {
        font-size: 0.85rem;
    }
    
    .lab-carousel .carousel-control-prev,
    .lab-carousel .carousel-control-next {
        width: 30px;
        height: 30px;
        opacity: 0.6;
    }
    
    .lab-carousel .carousel-control-prev {
        left: 8px;
    }
    
    .lab-carousel .carousel-control-next {
        right: 8px;
    }
    
    .lab-carousel .carousel-indicators button {
        width: 8px;
        height: 8px;
    }
}

/* Animation Keyframes for Professional Look */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lab-card {
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.lab-card:nth-child(2) {
    animation-delay: 0.2s;
}

.lab-card:nth-child(3) {
    animation-delay: 0.4s;
}