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

body {
    font-family: 'Gentium Plus', serif;
    background-color: #FAF9F5;
    color: #343433;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: #606c38;
    color: #FAF9F5;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.header.hidden {
    transform: translateY(-100%);
}

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

.logo a {
    color: #FAF9F5;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #FAF9F5;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.8;
}

.bluesky-icon {
    display: inline-flex;
    align-items: center;
    transition: opacity 0.3s ease;
}

.bluesky-icon:hover {
    opacity: 0.8;
}

.bluesky-icon svg {
    width: 24px;
    height: 24px;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #FAF9F5;
    margin: 3px 0;
    transition: 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Main Content */
.main-content {
    flex: 1;
    padding-top: 80px;
    padding-bottom: 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #606c38;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #656d4a;
    text-decoration: underline;
}

a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    padding: 3rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    align-items: center;
}

.hero-text {
    text-align: left;
}

.hero-text h1 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.4rem;
    line-height: 1.8;
    text-align: justify;
    text-justify: inter-word;
}

.hero-image {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.image-source {
    font-size: 0.5rem;
    color: #656d4a;
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 0;
    font-style: italic;
}

/* Events Grid */
.upcoming-events {
    margin: 3rem 0;
}

.events-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.featured-event {
    background: rgba(51, 61, 41, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
}

.event-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-events {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-item {
    background: rgba(51, 61, 41, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
}

.event-date {
    color: #656d4a;
    font-weight: 600;
    margin: 0;
}

/* About Page */
.about-section {
    margin: 3rem 0;
}

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

.team-member {
    background: rgba(51, 61, 41, 0.08);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    overflow: hidden;
    background: #ddd;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-name {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.member-role {
    color: #656d4a;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.member-university {
    margin-bottom: 1rem;
}

/* Events Page */
.events-callout {
    background: rgba(51, 61, 41, 0.05);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.imminent-event {
    margin-bottom: 2rem;
}

.upcoming-events-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.past-events {
    margin-top: 3rem;
}

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

/* Individual Event Page */
.event-page-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.event-abstract {
    background: rgba(51, 61, 41, 0.05);
    padding: 2rem;
    border-radius: 8px;
}

.speaker-info {
    background: rgba(51, 61, 41, 0.05);
    padding: 2rem;
    border-radius: 8px;
}

.speaker-photo {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.speaker-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-link {
    display: inline-block;
    background: #333d29;
    color: #FAF9F5;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 1rem;
}

.poster-link:hover {
    background: #656d4a;
    color: #FAF9F5;
}

/* Members Page */
.members-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.member-item {
    background: rgba(51, 61, 41, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
}

.member-item h3 {
    margin-bottom: 0.5rem;
}

.member-affiliation {
    color: #656d4a;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.member-email {
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background-color: #FAF9F5;
    color: #343433;
    padding: 1.5rem 0;
    text-align: center;
    margin-top: auto;
}

/* Mobile Styles */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-image img {
        max-width: 300px;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-text h1 {
        text-align: center;
    }
    
    .hero-text p {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #333d29;
        border-top: 1px solid rgba(250, 249, 245, 0.2);
    }

    .nav.active {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        padding: 1rem 20px;
        gap: 1rem;
        align-items: center;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .event-page-content {
        grid-template-columns: 1fr;
    }

    .speaker-info {
        order: -1;
    }

    .team-members {
        grid-template-columns: 1fr;
    }

    .upcoming-events-list {
        grid-template-columns: 1fr;
    }

    .events-list {
        grid-template-columns: 1fr;
    }

    .members-list {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero {
        padding: 2rem 0;
    }
    
    .hero-text p {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .header-content {
        padding: 1rem 15px;
    }

    .featured-event,
    .event-item,
    .team-member,
    .member-item,
    .event-abstract,
    .speaker-info,
    .events-callout {
        padding: 1rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }
    
    .hero-content {
        gap: 1.5rem;
    }
    
    .hero-image img {
        max-width: 250px;
    }
}
