/* Modern Lab Website Styles */

/* @import url('https://fonts.googleapis.com'); */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Banner
.banner {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.banner img {
    width: auto;
    height: 100%;
    object-fit: cover;
}
*/

/* Lab Name */
.lab-name {
    background: linear-gradient(135deg, #cccccc 0%, #34495e 100%);
    color: white;
    text-align: center;
    padding: 2rem 1rem;
}

.lab-name h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 4.5rem;
    font-weight: 500;
    letter-spacing: 2px;
}

/* Navigation */
.navbar {
    background-color: #1a252f;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.navbar li {
    margin: 0;
}

.navbar a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.navbar a:hover {
    background-color: #2c3e50;
}

.navbar a.active {
    background-color: #3498db;
}

/* Carousel Section */
.carousel-section {
    background-color: #fff;
    padding: 3rem 1rem;
}

.carousel-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 400;
    color: #2c3e50;
    font-size: 1.8rem;
}

.carousel-container {
    margin: 0 auto;
    position: relative;
    width: 900px;
    max-width: 100%;
    overflow: hidden;
}

.carousel-viewport {
    position: relative;
    overflow: hidden;
    background-color: #1a1a1a;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    height: 550px;
}

.carousel-slide {
    display: none;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.carousel-slide.active {
    display: flex;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 550px;
    height: 550px;
    width: auto;
    object-fit: contain;
}

.carousel-img {
    /* Ensure the image fills the container while maintaining its aspect ratio */
    width: 100%;
    height: 100%;
    object-fit: cover; /* or 'contain', depending on desired effect */
    object-position: center; /* Center the image within the container */
}

.carousel-caption {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1rem;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 1rem;
}

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

.carousel-btn:hover {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.carousel-btn.prev {
    left: 15px;
}

.carousel-btn.next {
    right: 15px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1.5rem;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-indicator.active {
    background-color: #3498db;
}

.carousel-indicator:hover {
    background-color: #666;
}

/* News Section */
.news-section {
    background-color: #ecf0f1;
    padding: 3rem 1rem;
}

.news-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 400;
    color: #2c3e50;
    font-size: 1.8rem;
}

.news-container {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    background: white;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #3498db;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.news-item:last-child {
    margin-bottom: 0;
}

/* Footer */
.footer {
    background-color: #1a252f;
    color: #aaa;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .banner {
        height: 150px;
    }

    .lab-name h1 {
        font-size: 1.8rem;
    }

    .navbar ul {
        flex-direction: column;
    }

    .navbar a {
        text-align: center;
        padding: 0.8rem 1.5rem;
    }

    .carousel-viewport {
        height: 350px;
    }

    .carousel-slide img {
        max-height: 350px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }
}
