/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* EXACT LOGO COLORS */
    --primary-color: #002F5F;  /* Dark Navy from TLMRL text */
    --accent-color: #00A9B7;   /* Teal/Cyan from DNA */
    
    --text-color: #333;
    --bg-color: #fcfcfc;
    --light-gray: #f4f7f6;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* =========================================
   2. LAYOUT & TYPOGRAPHY
   ========================================= */
.content-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

h1, h2, h3, h4 {
    color: var(--primary-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
header {
    background-color: #fff;
    border-bottom: none !important; /* FORCES border removal */
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area a {
    text-decoration: none;
}

.lab-name {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
    line-height: 1.2;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

nav a {
    font-weight: 500;
    color: #555;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    text-decoration: none;
}

/* =========================================
   4. COMPONENTS & UTILITIES
   ========================================= */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.1s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:active {
    transform: scale(0.98);
}

/* Dark Blue Button */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    text-decoration: none;
    color: white;
}

/* Teal Button */
.btn-accent {
    background-color: var(--accent-color);
    color: white;
}

.btn-accent:hover {
    background-color: var(--primary-color);
    text-decoration: none;
    color: white;
}

/* Horizontal Rule */
hr {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 3rem 0;
}

/* =========================================
   5. PAGE-SPECIFIC STYLES
   ========================================= */
/* Home Page Hero */
.home-hero {
    text-align: center;
    padding: 4rem 1rem;
    background-color: var(--light-gray);
    border-radius: 8px;
    margin-bottom: 2rem;
    border-bottom: none !important; /* FORCES border removal */
}

/* People Page - Profile Cards */
.profile-card {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: flex-start;
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #eee;
    border-left: 4px solid var(--primary-color); 
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.profile-img-container {
    flex: 0 0 150px;
}

.profile-img-container img {
    width: 100%;
    border-radius: 50%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border: 3px solid var(--accent-color);
}

/* =========================================
   6. MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .home-hero div[style*="display: flex"] {
        flex-direction: column;
        gap: 0.5rem;
    }

    .profile-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        border-left: 1px solid #eee;
        border-top: 4px solid var(--primary-color);
    }

    .profile-img-container {
        margin-bottom: 1rem;
    }
}
/* =========================================
   7. LOGO SHAPE FIX (FINAL)
   ========================================= */
/* 1. Target the Header Logo specifically */
.logo-area img {
    border-radius: 50% !important; /* Force it to be round */
    border: 2px solid var(--primary-color); /* Optional: Adds a clean rim to hide jagged edges */
}

/* 2. Target the Big Home Hero Logo */
.home-hero img {
    border-radius: 50% !important;
    mix-blend-mode: multiply; /* Helps it blend into the grey background */
}

/* Fix for the About Page Image */
img[alt="Lab Environment"] {
   ...
}
/* =========================================
   8. FUNDING CAROUSEL STYLES
   ========================================= */
.funding-bar {
    background-color: #f8f9fa;
    border-top: 1px solid #ddd;
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 900px; /* Limits width so arrows stay close */
    margin: 1rem auto 0;
}

/* The scrollable area (hides scrollbar but allows movement) */
.carousel-track {
    display: flex;
    align-items: center;
    gap: 3rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    width: 100%;
    
    /* Hide scrollbar for cleaner look */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE */
}

.carousel-track::-webkit-scrollbar { 
    display: none; /* Chrome/Safari */
}

.carousel-track img {
    height: 50px;       /* Fixed height */
    width: auto;
    flex-shrink: 0;     /* Prevents squishing */
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
    mix-blend-mode: multiply;
}

.carousel-track img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Arrow Buttons */
.carousel-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0 15px;
    user-select: none;
    transition: color 0.3s;
}

.carousel-btn:hover {
    color: var(--accent-color);
}

/* =========================================
   9. DROPDOWN MENU STYLES
   ========================================= */
/* The container for the dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

/* The hidden menu box */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 100;
    top: 100%; /* Positions it right below the text */
    left: 0;
    border-top: 3px solid var(--accent-color); /* Teal top border */
    border-radius: 0 0 4px 4px;
}

/* Show the menu when hovering over the parent */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Style the links inside the dropdown */
.dropdown-content a {
    color: #333 !important; /* Force dark text */
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
    text-align: left;
}

/* Hover effect for dropdown items */
.dropdown-content a:hover {
    background-color: var(--light-gray);
    color: var(--primary-color) !important;
    border-left: 4px solid var(--primary-color);
}

/* MOBILE ADJUSTMENT: Center the dropdown on phones */
@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        box-shadow: none;
        border: 1px solid #eee;
        text-align: center;
        width: 100%;
    }
    .dropdown:hover .dropdown-content {
        display: flex;
        flex-direction: column;
    }
}
