/* AI for Epistemics & Coordination - Minimalist Design */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.6;
    scroll-behavior: smooth;
}

body {
    font-family: Georgia, 'Times New Roman', Times, serif;
    color: #000;
    background-color: #fff;
    margin: 0;
    padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 1rem 0;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    margin: 2rem 0 1rem 0;
}

h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 0.5rem 0;
}

p {
    margin: 0 0 1.5rem 0;
}

ul, ol {
    margin: 0 0 1.5rem 0;
    padding-left: 2rem;
}

li {
    margin: 0 0 0.5rem 0;
    line-height: 1.6;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.main-content {
    max-width: 1000px;
    margin: 0 auto;
}

/* Main Navigation */
.main-nav {
    padding: 2rem 0 1rem 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 2rem;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    justify-content: center;
}

.main-nav a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Header */
header {
    padding: 3rem 0;
    border-bottom: 1px solid #e0e0e0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

nav a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    text-align: center;
    border: 2px solid #000;
    margin: 3rem 0;
    position: relative;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #333;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-decorations {
    position: absolute;
    width: 40px;
    height: 40px;
}

.hero-decorations.top-left {
    top: -20px;
    left: -20px;
}

.hero-decorations.top-right {
    top: -20px;
    right: -20px;
}

.hero-decorations.bottom-left {
    bottom: -20px;
    left: -20px;
}

.hero-decorations.bottom-right {
    bottom: -20px;
    right: -20px;
}

/* Decorative Elements */
.network-icon {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 2px solid #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Content Sections */
.section {
    margin: 3rem 0;
    padding: 1rem 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin: 2rem 0;
}

/* Beacon Projects Grid */
.beacon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.beacon-card {
    border: 2px solid #000;
    padding: 2rem;
    text-align: center;
    position: relative;
    background: #fff;
}

.beacon-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.beacon-card p {
    font-size: 0.9rem;
    color: #666;
    max-width: none;
}

.beacon-icon {
    width: 60px;
    height: 60px;
    background: #f0f0f0;
    border: 2px solid #000;
    border-radius: 50%;
    margin: 0 auto 1rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 2px solid #000;
}

.btn:hover {
    background: #fff;
    color: #000;
}

.btn-outline {
    background: #fff;
    color: #000;
    border: 2px solid #000;
}

.btn-outline:hover {
    background: #000;
    color: #fff;
}

/* Footer */
footer {
    border-top: 1px solid #e0e0e0;
    padding: 3rem 0;
    margin-top: 4rem;
    text-align: center;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .two-column {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .beacon-grid {
        grid-template-columns: 1fr;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Work in Progress Feel */
.wip-note {
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
    margin: 1rem 0;
}

/* Fellowship Page */
.fellowship-header {
    text-align: center;
    padding: 2rem 0;
}

.fellowship-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.header-line {
    width: 80px;
    height: 4px;
    background: #000;
    margin: 0 auto;
}

.fellowship-description-section {
    padding: 2rem 0 3rem 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 2rem;
}

.fellowship-description-section .content {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.fellowship-description-section p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.fellowship-description-section ul {
    margin: 1rem 0 1.5rem 2rem;
    list-style-type: disc;
}

.fellowship-description-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.fellows-section {
    padding: 2rem 0 3rem 0;
}

.fellows-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.fellow-card {
    border: 0.5px solid #000;
    padding: 1rem;
    text-align: center;
    background: #fff;
    transition: all 0.2s ease;
}


.fellow-portrait {
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: center;
    height: 120px;
    align-items: center;
}

.fellow-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.portrait-placeholder {
    width: 60px;
    height: 60px;
    border: 1px solid #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
}

.fellow-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fellow-description {
    color: #666;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.3;
    max-width: none;
    margin-bottom: 0;
}

.fellow-card {
    cursor: pointer;
}

.fellow-card:hover {
    box-shadow: 2px 2px 0 #000;
    transform: translateY(-1px);
}

/* Advisor Cards */
.advisor-card {
    border: 0.5px solid #666;
    padding: 1rem;
    text-align: center;
    background: #f8f8f8;
    position: relative;
}

.advisor-placeholder {
    opacity: 0.7;
}

.advisor-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.fellows-header {
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 3rem 0 2rem 0;
    color: #000;
}

/* Mailing List Section */
.mailing-list-section {
    background-color: #f8f8f8;
    padding: 4rem 0;
    text-align: center;
}

.mailing-list-content {
    max-width: 600px;
    margin: 0 auto;
}

.mailing-list-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #666;
    max-width: none;
}

.mailing-list-form {
    display: flex;
    justify-content: center;
    gap: 0;
}

.form-group {
    display: flex;
    border: 2px solid #000;
    background: #fff;
    max-width: 500px;
    width: 100%;
}

.email-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    background: transparent;
    outline: none;
}

.email-input::placeholder {
    color: #999;
}

.subscribe-btn {
    border-left: 2px solid #000;
    margin: 0;
    border-radius: 0;
    padding: 1rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .form-group {
        flex-direction: column;
        max-width: 350px;
    }
    
    .subscribe-btn {
        border-left: none;
        border-top: 2px solid #000;
    }
    
    .mailing-list-content p {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

/* Responsive Design for Fellowship */
@media (max-width: 768px) {
    .fellows-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 0 1rem;
    }
    
    .fellowship-title {
        font-size: 1.5rem;
    }
}

/* Projects Pages */
.projects-header {
    text-align: center;
    padding: 2rem 0;
}

.projects-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.projects-section {
    padding: 3rem 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.project-card {
    border: 2px solid #000;
    padding: 2rem;
    text-align: center;
    background: #fff;
    text-decoration: none;
    color: #000;
    transition: all 0.2s ease;
}

.project-card:hover {
    box-shadow: 4px 4px 0 #000;
    transform: translateY(-2px);
}

.project-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

/* Individual Project Page */
.project-hero {
    padding: 3rem 0;
    display: flex;
    justify-content: center;
}

.project-border {
    border: 3px solid #000;
    padding: 3rem;
    max-width: 800px;
    text-align: center;
    position: relative;
}

.project-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.project-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.project-diagram {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}

/* Foundational Capabilities */
.capabilities-section {
    padding: 3rem 0;
}

.capability-count {
    font-weight: normal;
    color: #666;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.capability-card {
    border: 2px solid #000;
    padding: 2rem;
    background: #f8f8f8;
}

.capability-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.capability-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #333;
    max-width: none;
}

/* Fellowship Research */
.research-section {
    padding: 2rem 0 3rem 0;
}

.research-accordion {
    margin: 2rem 0;
}

.research-accordion-item {
    margin-bottom: 1rem;
    border: 2px solid #000;
    background: #fff;
}

.research-header {
    padding: 1.5rem;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease;
}

.research-header:hover {
    background-color: #f8f8f8;
}

.research-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    padding-right: 2rem;
}

.research-short-description {
    font-style: italic;
    color: #666;
    line-height: 1.4;
    font-size: 0.9rem;
    max-width: none;
    margin: 0;
    padding-right: 2rem;
}

.accordion-toggle {
    position: absolute;
    top: 50%;
    right: 1.5rem;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
    user-select: none;
}

.research-content {
    display: none;
    border-top: 1px solid #e0e0e0;
    background: #f9f9f9;
}

.research-detail {
    padding: 2rem;
    line-height: 1.6;
}

.research-detail h1 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.research-detail h2 {
    font-size: 1.3rem;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.research-detail h3 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.5rem 0;
    font-weight: 600;
}

.research-detail h4 {
    font-size: 1rem;
    margin: 1rem 0 0.5rem 0;
    font-weight: 600;
}

.research-detail ul, .research-detail ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.research-detail li {
    margin-bottom: 0.5rem;
}

.research-detail p {
    margin-bottom: 1rem;
    max-width: none;
}

.research-detail strong {
    font-weight: 600;
}

/* Responsive Design for Projects */
@media (max-width: 768px) {
    .project-border {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .project-title {
        font-size: 1.5rem;
    }
    
    .capabilities-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
}

/* Theory Page */
.theory-header {
    text-align: center;
    padding: 3rem 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 3rem;
}

.theory-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.theory-description {
    font-size: 1.2rem;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.theory-intro {
    margin-bottom: 4rem;
}

.theory-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.theory-content h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.theory-content h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1.5rem 0;
    font-weight: 600;
}

.theory-content p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    max-width: none;
}

.theory-section {
    margin-bottom: 6rem;
    padding: 2rem 0;
}

.theory-section-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: start;
}

.theory-text {
    max-width: none;
}

.theory-section-body {
    line-height: 1.7;
    font-size: 1rem;
}

.theory-section-body h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.theory-section-body h2 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.theory-section-body h3 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.8rem 0;
    font-weight: 600;
}

.theory-section-body p {
    margin-bottom: 1.5rem;
    max-width: none;
}

.theory-section-body ul, .theory-section-body ol {
    margin: 1rem 0 1.5rem 2rem;
}

.theory-section-body li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.theory-section-body strong {
    font-weight: 600;
}

.theory-diagram {
    position: sticky;
    top: 2rem;
}

.diagram-container {
    text-align: center;
    padding: 2rem;
    border: 2px solid #000;
    background: #f9f9f9;
}

.diagram-container svg {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.diagram-label {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

/* Responsive Design for Theory Page */
@media (max-width: 1024px) {
    .theory-section-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .theory-diagram {
        position: static;
        order: -1;
    }
    
    .diagram-container {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .theory-title {
        font-size: 2rem;
    }
    
    .theory-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .theory-content {
        padding: 0 1rem;
    }
    
    .diagram-container {
        padding: 1rem;
    }
    
    .diagram-container svg {
        max-width: 100%;
        height: auto;
    }
}

/* Link Styles */
a {
    color: #000;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}

a:hover {
    text-decoration-thickness: 3px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #fff;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #000;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 2px solid #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f8f8;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-close {
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
    border: none;
    background: none;
}

.modal-close:hover {
    color: #666;
}

.modal-body {
    padding: 2rem;
    line-height: 1.6;
}

.modal-fellow-image-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.modal-fellow-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #000;
}

.modal-body h2 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #000;
}

.modal-body p {
    margin-bottom: 1.5rem;
}

.modal-body ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 2px solid #000;
    display: flex;
    justify-content: space-between;
    background-color: #f8f8f8;
}

.modal-footer button {
    padding: 0.75rem 1.5rem;
    border: 2px solid #000;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

.modal-footer button:hover {
    background: #000;
    color: #fff;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translate(-50%, -50%) translateY(-20px);
    }
    to { 
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0);
    }
}

/* Modal responsive design */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-header, .modal-body, .modal-footer {
        padding: 1rem;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 1rem;
    }
    
    .modal-footer button {
        width: 100%;
    }
}

/* Project Modal Specific Styles */
.capability-item {
    margin: 1.5rem 0;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    background: #f8f8f8;
}

.capability-item h4 {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.5rem 0;
    color: #000;
}

.capability-item p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
}

/* Read More / Collapsible Content Styles */
.read-more-container {
    margin: 2rem 0;
}

.read-more-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0;
}

.read-more-btn:hover {
    background: #333;
}

.collapsible-content {
    display: none;
    margin-top: 1.5rem;
    animation: fadeIn 0.3s ease-in-out;
}

.collapsible-content.expanded {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Controls */
.section-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0 1rem 0;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

/* Mode Toggle Switch */
.mode-toggle {
    display: flex;
    align-items: center;
}

.toggle-switch {
    position: relative;
    display: inline-flex;
    background: #f0f0f0;
    border: 2px solid #000;
    border-radius: 0;
    overflow: hidden;
}

.toggle-switch input[type="radio"] {
    display: none;
}

.toggle-switch label {
    padding: 0.75rem 1.5rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    background: transparent;
    color: #666;
    border: none;
    transition: all 0.2s ease;
    position: relative;
    z-index: 2;
    flex: 1;
    text-align: center;
    white-space: nowrap;
}

.toggle-switch input[type="radio"]:checked + label {
    color: #fff;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: #000;
    transition: transform 0.2s ease;
    z-index: 1;
}

.toggle-switch input[type="radio"][value="projects"]:checked ~ .toggle-slider {
    transform: translateX(100%);
}


/* Dynamic Header */
.dynamic-header {
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 2rem 0 1rem 0;
    text-align: center;
}

/* Grid Styles */
.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    margin: 2rem 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

/* Project Cards */
.project-card {
    border: 2px solid #000;
    padding: 1.5rem;
    background: #fff;
    transition: all 0.2s ease;
    cursor: pointer;
}

.project-card:hover {
    background: #f8f8f8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.project-icon svg {
    color: #666;
}

.project-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

.project-description {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #666;
    text-align: center;
    margin: 0;
}

/* Filter Classes */
.people-item.hidden {
    display: none;
}

.project-item.hidden {
    display: none;
}

/* Responsive Design for Controls */
@media (max-width: 768px) {
    .section-controls {
        justify-content: center;
    }

    .mode-toggle {
        justify-content: center;
    }

    .people-grid,
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
}

/* Presentations Section */
.presentations-section {
    padding: 3rem 0;
    max-width: 900px;
    margin: 0 auto;
}

.presentations-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.presentation-row {
    border: 2px solid #000;
    background: #fff;
}

/* Link-style presentation row (for direct external links) */
a.presentation-row.presentation-link-row {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

a.presentation-row.presentation-link-row:hover {
    background-color: #f8f8f8;
    box-shadow: 2px 2px 0 #000;
    transform: translateY(-1px);
}

a.presentation-row.presentation-link-row .presentation-header {
    cursor: pointer;
}

.presentation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.presentation-header:hover {
    background-color: #f8f8f8;
}

.presentation-info {
    flex: 1;
}

.presentation-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
}

.presentation-fellows {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

.presentation-toggle {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.presentation-toggle.expanded {
    transform: rotate(180deg);
}

.presentation-toggle svg {
    width: 24px;
    height: 24px;
}

.presentation-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-top: 0;
}

.presentation-content.expanded {
    max-height: 800px;
    min-height: 100px;
    border-top: 2px solid #000;
    background-color: #f9f9f9;
}

.presentation-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.presentation-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.presentation-links {
    padding: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    border-top: 1px solid #e0e0e0;
}

.presentation-link {
    padding: 0.5rem 1rem;
    border: 2px solid #000;
    text-decoration: none;
    color: #000;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
}

.presentation-link:hover {
    background-color: #000;
    color: #fff;
}

.no-presentations,
.no-video {
    padding: 2rem;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Responsive adjustments for presentations */
@media (max-width: 768px) {
    .presentations-section {
        padding: 2rem 1rem;
    }

    .presentation-header {
        padding: 1rem;
    }

    .presentation-title {
        font-size: 1.1rem;
    }

    .presentation-fellows {
        font-size: 0.875rem;
    }

    .presentation-links {
        padding: 1rem;
        flex-direction: column;
    }

    .presentation-link {
        text-align: center;
    }
}