/* Hero section */
.lab-hero {
    height: 400px;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                url('https://images.unsplash.com/photo-1532094349884-543bc11b234d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    margin-top: 74px;
    position: relative;
}

.lab-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(12px);
}

.hero-badge {
    background: rgba(27, 118, 10, 0.6);
    border-radius: 10px;
    position: relative;
    z-index: 2;
}

.hero-badge h1 {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Noto Sans', sans-serif;
    padding: 1rem 1.5rem;
    line-height: 1.1;
}

/* Sections styling */
.section-spacing {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 2rem;
}

.section-subtitle {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 3rem;
}

/* About section */
.about-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    padding: 2rem;
    height: 100%;
}

.about-text {
    font-size: 1.125rem;
    font-weight: 400;
    color: #2e2e2e;
    line-height: 1.3;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    height: 415px;
}

/* Services cards */
.service-card {
    background: #faf9f6;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 2rem 1.5rem;
    height: 250px;
    display: flex;
    align-items: end;
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-title {
    font-size: 1.375rem;
    font-weight: 500;
    color: #2e7d32;
    line-height: 1.2;
    margin: 0;
}

.service-icon {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 109px;
    height: 109px;
    background: rgba(46, 125, 50, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Labs section */
.lab-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.lab-card:hover {
    transform: translateY(-5px);
}

.lab-image {
    height: 107px;
    overflow: hidden;
}

.lab-content {
    padding: 2rem;
}

.lab-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: #2e7d32;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.lab-description {
    font-size: 0.875rem;
    font-weight: 400;
    color: #2e2e2e;
    line-height: 1.1;
}



/* Contact section */
.contact-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    padding: 2rem;
}

.contact-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 2rem;
}

.contact-section {
    margin-bottom: 2rem;
}

.contact-label {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2e2e2e;
    margin-bottom: 0.5rem;
}

.contact-info {
    font-size: 1rem;
    font-weight: 400;
    color: #2e2e2e;
    line-height: 1.25;
}

.contact-divider {
    width: 1px;
    height: 160px;
    background: #000;
    margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .lab-hero {
        height: 300px;
        margin-top: 60px;
    }
    
    .hero-badge h1 {
        font-size: 2rem;
        padding: 0.75rem 1rem;
    }
    
    .section-spacing {
        padding: 2.5rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .service-card {
        height: 200px;
    }
    
    .slider-container {
        height: 300px;
    }
    
    .slider-main {
        width: 250px;
        height: 300px;
    }
    
    .slider-side {
        width: 200px;
        height: 250px;
        top: 25px;
    }
    
    .contact-divider {
        height: 1px;
        width: 100%;
        margin: 1rem 0;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Testimonials section */
.testimonials-section {
    padding: 60px 0 60px;
    background-color: #f9f9f9;
    margin-bottom: 60px;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: 550px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    margin: 40px auto 0;
}

.card {
    position: absolute;
    width: 450px;
    height: 640px; /* more proportional for the certificate image */
    background: #fff;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.8);
}

.card.active {
    opacity: 1;
    transform: scale(1) translateX(0);
    z-index: 3;
    filter: blur(0px);
}

.card.left {
    opacity: 0.6;
    transform: scale(0.85) translateX(-320px);
    z-index: 1;
    filter: blur(2px);
}

.card.right {
    opacity: 0.6;
    transform: scale(0.85) translateX(320px);
    z-index: 1;
    filter: blur(2px);
}

.card.entering-left {
    opacity: 0;
    transform: scale(0.7) translateX(-550px);
    animation: slideInLeft 0.6s ease-out forwards;
}

.card.entering-right {
    opacity: 0;
    transform: scale(0.7) translateX(550px);
    animation: slideInRight 0.6s ease-out forwards;
}

.card.exiting-left {
    animation: slideOutLeft 0.6s ease-in forwards;
}

.card.exiting-right {
    animation: slideOutRight 0.6s ease-in forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 0.6;
        transform: scale(0.85) translateX(-280px);
    }
}

@keyframes slideInRight {
    to {
        opacity: 0.6;
        transform: scale(0.85) translateX(280px);
    }
}

@keyframes slideOutLeft {
    to {
        opacity: 0;
        transform: scale(0.7) translateX(-550px);
    }
}

@keyframes slideOutRight {
    to {
        opacity: 0;
        transform: scale(0.7) translateX(550px);
    }
}

.card-image {
    width: 100%;
    height: 100%;
    display: flex;
}

.certificate-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: #333;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-button:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
}

.nav-button:active {
    transform: translateY(-50%) scale(0.95);
}

.nav-button.prev {
    left: 60px;
}

.nav-button.next {
    right: 60px;
}



/* Responsive adjustments for testimonials */
@media (max-width: 1400px) {
    .carousel-container {
        max-width: 1200px;
        height: 600px;
    }
    
    .card {
        width: 420px;
        height: 600px;
    }
    
    .card.left {
        transform: scale(0.85) translateX(-300px);
    }
    
    .card.right {
        transform: scale(0.85) translateX(300px);
    }
    
    .nav-button.prev {
        left: 40px;
    }
    
    .nav-button.next {
        right: 40px;
    }
}

@media (max-width: 1200px) {
    .carousel-container {
        max-width: 1000px;
        height: 550px;
    }
    
    .card {
        width: 400px;
        height: 570px;
        padding: 0;
    }
    
    .card.left {
        transform: scale(0.85) translateX(-280px);
    }
    
    .card.right {
        transform: scale(0.85) translateX(280px);
    }
    
    .nav-button.prev {
        left: 30px;
    }
    
    .nav-button.next {
        right: 30px;
    }
}

@media (max-width: 992px) {
    .carousel-container {
        height: 520px;
    }
    
    .card {
        width: 370px;
        height: 520px;
        padding: 0;
    }
    
    .card.left {
        transform: scale(0.8) translateX(-250px);
    }
    
    .card.right {
        transform: scale(0.8) translateX(250px);
    }
    
    .nav-button.prev {
        left: 20px;
    }
    
    .nav-button.next {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .carousel-container {
        height: 500px;
    }
    
    .card {
        width: 340px;
        padding: 0;
        height: 480px;
    }
    
    .card.left, .card.right {
        display: none;
    }
    
    .nav-button {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 470px;
    }
    
    .card {
        width: 300px;
        padding: 0;
        height: 430px;
    }
    
    .nav-button {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}