:root {
    --primary: #2563EB;       /* Electric Blue */
    --primary-hover: #1d4ed8; /* Darker Blue */
    --dark: #0F172A;          /* Deep Slate (almost black) */
    --text: #334155;          /* Slate Grey */
    --bg: #F8FAFC;            /* Very light grey background */
    --white: #FFFFFF;
    --border: #E2E8F0;        /* Subtle borders */
}

html { scroll-behavior: smooth; }

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

/* Navbar: Clean & Technical */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    box-sizing: border-box; 
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    height: 60px;
    display: flex;
    align-items: center;
    padding-left: 2rem;
    padding-right: 2rem; /* Safe zone on the right */
}

.brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--dark);
    letter-spacing: -0.5px;
}

/* Navbar Right Link */
.nav-link-right {
    margin-left: auto;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark);
    transition: color 0.2s;
    text-decoration: none;
}
.nav-link-right:hover { color: var(--primary); }

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark), #1e293b);
    color: white;
    text-align: center;
    padding: 4rem 1rem;
    margin-bottom: 0;
}

.hero h1 {
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.hero p {
    color: #94a3b8;
    font-size: 1.1rem;
}

/* Table of Contents */
.toc-container {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
}

.toc-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    text-decoration: none;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s ease;
}

.toc-btn:hover {
    color: var(--primary);
    padding-left: 10px;
    border-bottom-color: var(--primary);
}

.toc-btn:last-child { border-bottom: none; }

/* Event Sections (Cards) */
.event-section {
    max-width: 800px;
    margin: 0 auto 4rem auto;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    scroll-margin-top: 80px;
}

/* Updated Header Layout for Location Support */
.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; 
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.event-title { 
    margin: 0; 
    color: var(--dark); 
    font-size: 1.75rem; 
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Container for Date + Location */
.event-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    margin-left: 1rem;
    text-align: right;
}

.event-location {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-date { 
    background-color: #EFF6FF;
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600; 
    font-size: 0.85rem;
    white-space: nowrap;
}

h3 { 
    color: #64748b; 
    margin-top: 2rem; 
    font-size: 0.85rem; 
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s;
    background-color: #e2e8f0;
}
.gallery-img:hover { transform: scale(1.02); }

.no-images { 
    font-size: 0.9rem; 
    color: #94a3b8; 
    background: #f1f5f9; 
    padding: 1rem; 
    border-radius: 4px; 
    text-align: center;
}

/* Team Grid Layout */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 4rem auto;
    padding: 0 1rem;
}

.team-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-color: var(--primary);
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid #f1f5f9;
}

.team-name {
    margin: 0.5rem 0 0.25rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
}

.team-title {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.container { width: 100%; }

footer { text-align: center; padding: 3rem; color: #94a3b8; font-size: 0.9rem; }