/* ============================================
   RIHEL LAB WEBSITE STYLES
   ============================================
   
   QUICK EDIT GUIDE:
   - Colors: Edit the :root variables below
   - Fonts: Change font-family in :root
   - Spacing: Adjust container max-width and padding
   - Images: Replace image paths in HTML
   ============================================ */

/* CSS Variables for Easy Customization */
:root {
    /* EDIT THESE COLORS TO MATCH YOUR BRAND */
    --primary-color: #0033FF;        /* Links and accents */
    --secondary-color: #003366;      /* Dark blue */
    --text-color: #000000;           /* Main text */
    --text-light: #666666;           /* Secondary text */
    --background: #FFFFFF;           /* Page background */
    --background-alt: #F8F9FA;       /* Alternate section background */
    --border-color: #E0E0E0;         /* Borders */
    --hover-color: #999900;          /* Link hover color */
    
    /* EDIT THESE FONTS */
    --font-main: Verdana, Arial, Helvetica, sans-serif;
    --font-heading: Verdana, Arial, Helvetica, sans-serif;
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px 20px;
    --border-radius: 8px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.15);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--background);
    background-image: url('../images/drugtraces2.png');
    background-attachment: fixed;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--hover-color);
}

/* ============================================
   NAVIGATION BAR
   ============================================ */

.navbar {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-color);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    padding: 1rem 0;
}


.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 1.5rem 0;
    display: block;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.nav-link img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 6px;
}

.nav-link:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--secondary-color);
    transition: 0.3s;
}

/* ============================================
   SECTIONS & CONTAINERS
   ============================================ */

.section {
    padding: var(--section-padding);
    min-height: 400px;
}

.alt-section {
    background-color: var(--background-alt);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-icon {
    width: 30px;
    height: auto;
}

/* ============================================
   HOME/HERO SECTION
   ============================================ */

.hero-section {
    text-align: center;
    padding-top: 40px;
}

.lab-banner {
    width: 100%;          /* ADD THIS */
    max-width: 800px;
    margin: 0 auto 2rem;
}

.hero-title {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.twitter-feed {
    max-width: 600px;
    margin: 3rem auto;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.project-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.btn-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-link:hover {
    gap: 1rem;
}

/* ============================================
   PEOPLE SECTION
   ============================================ */

.people-section h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin: 3rem 0 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.person-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.person-card.featured {
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
}

.person-photo {
    width: 180px;
    min-width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.person-info h4 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.person-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.person-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.person-links a {
    font-weight: 500;
}

/* People Grid for current members */
.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Alumni Grid - more compact */
.alumni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.person-card.compact {
    padding: 1.5rem;
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.person-card.compact .person-photo {
    width: 120px;
    min-width: 120px;
    height: 120px;
    margin-bottom: 1rem;
}

.person-card.compact h4 {
    font-size: 1.1rem;
}

.person-card.compact .person-title {
    font-size: 0.9rem;
}

/* ============================================
   PUBLICATIONS SECTION
   ============================================ */

.publications-list {
    max-width: 900px;
}

.year-group {
    margin-bottom: 3rem;
}

.year-group h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.publication {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--primary-color);
}

.publication p {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.publication strong {
    color: var(--secondary-color);
}

.pub-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.publication-note {
    background: var(--background-alt);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
}

/* ============================================
   POSITIONS SECTION
   ============================================ */

.positions-content h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.program-list {
    margin: 2rem 0;
}

.program-item {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.program-logo {
    height: 50px;
    width: auto;
}

.contact-box {
    background: var(--primary-color);
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: 2rem;
}

.contact-box a {
    color: white;
    text-decoration: underline;
}

.contact-box a:hover {
    color: #FFD700;
}

/* ============================================
   PHOTOS SECTION
   ============================================ */

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.photo-item {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.photo-item:hover {
    transform: scale(1.03);
}

.photo-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.photo-caption {
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ============================================
   FUNDING SECTION
   ============================================ */

.funding-content h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.funding-item {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 2rem;
    align-items: start;
}

.funding-years {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.funding-details p {
    margin-bottom: 1rem;
}

.funding-logo {
    max-height: 80px;
    width: auto;
    margin-bottom: 1rem;
}

.funding-logo.small {
    max-height: 50px;
    display: inline-block;
    margin-right: 1rem;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.contact-info h3:first-child {
    margin-top: 0;
}

.ucl-logo {
    margin-top: 2rem;
}

.ucl-logo img {
    max-width: 200px;
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--secondary-color);
    color: white;
    padding: 3rem 20px 2rem;
    margin-top: 4rem;
}

.footer h3 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer h4 {
    color: #FFD700;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.link-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer a {
    color: white;
    opacity: 0.9;
}

.footer a:hover {
    color: #FFD700;
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
    opacity: 0.8;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        padding: 1rem;
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    
    .nav-link:hover {
        border-left-color: var(--primary-color);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    /* Sections */
    .section {
        padding: 40px 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Hero */
	.hero-section .container {
    padding: 0;
}
    .hero-title {
        font-size: 1.4rem;
    }
    
    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    /* People */
    .person-card {
        flex-direction: column;
        text-align: center;
    }
    
    .person-photo {
        width: 150px;
        min-width: 150px;
        height: 150px;
        margin: 0 auto;
    }
    
    .people-grid,
    .alumni-grid {
        grid-template-columns: 1fr;
    }
    
    /* Funding */
    .funding-item {
        grid-template-columns: 1fr;
    }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-title {
        font-size: 1.2rem;
    }
    
    .photo-gallery {
        grid-template-columns: 1fr;
    }
}
