* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: #333;
    background-color: #fafafa;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px;
}

/* Header */
.header {
    margin-bottom: 60px;
}

.site-title {
    font-size: 2.2rem;
    font-weight: 300;
    color: #000;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.site-description {
    color: #666;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 40px;
}

/* Navigation */
.nav {
    margin-bottom: 50px;
    position: relative;
}

/* TCF20 gene structure inspired design */
.nav::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 100%;
    height: 8px;
    background: 
        /* Exon blocks (representing TCF20 exon structure) */
        linear-gradient(90deg, 
            transparent 0%, 
            #ddd 5%, #ddd 15%, 
            transparent 15%, transparent 20%, 
            #bbb 20%, #bbb 25%, 
            transparent 25%, transparent 35%, 
            #ddd 35%, #ddd 50%, 
            transparent 50%, transparent 55%, 
            #bbb 55%, #bbb 60%, 
            transparent 60%, transparent 70%, 
            #ddd 70%, #ddd 85%, 
            transparent 85%, transparent 90%, 
            #bbb 90%, #bbb 95%, 
            transparent 95%, transparent 100%);
        /* Intron line */
        border-bottom: 1px solid #eee;
}

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

.nav-links li {
    margin-right: 30px;
    margin-left: 8px;
}

.nav-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #000;
}

.nav-links a.active {
    color: #000;
}

/* Events List */
.events-list {
    padding-top: 12px;
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.year-group {
    margin-bottom: 40px;
    margin-left: 30px;
}

.year-header {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 15px;
    padding-left: 0;
    position: relative;
}

/* TCF20 protein domain structure beside year headers */
.year-header::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 6px;
    background: 
        /* Domain blocks representing TCF20 functional domains */
        linear-gradient(90deg, 
            #c8c8c8 0%, #c8c8c8 25%, 
            transparent 25%, transparent 30%, 
            #b8b8b8 30%, #b8b8b8 55%, 
            transparent 55%, transparent 60%, 
            #d0d0d0 60%, #d0d0d0 80%, 
            transparent 80%, transparent 85%, 
            #c0c0c0 85%, #c0c0c0 100%);
    border: 1px solid #eee;
    border-radius: 2px;
}

.event-item {
    display: flex;
    margin-bottom: 3px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: baseline;
    margin-left: -10px;
}

.event-item:last-child {
    border-bottom: none;
}

.year-group:last-child .event-item:last-child {
    border-bottom: none;
}


.event-date {
    width: 80px;
    flex-shrink: 0;
    font-size: 0.9rem;
    color: #999;
    font-variant-numeric: tabular-nums;
}

.event-title {
    flex: 1;
    margin-right: 20px;
}

.event-title a {
    color: #000;
    text-decoration: none;
    font-weight: 400;
}

.event-title a:hover {
    text-decoration: underline;
}

.event-location {
    color: #666;
    font-size: 0.9rem;
    min-width: 160px;
    text-align: right;
}

.reservation-text {
    color: #a0344a;
}

.reservation-text a {
    color: #a0344a;
    text-decoration: none;
}

.reservation-text a::before {
    content: "→ ";
    margin-right: 4px;
}

.reservation-text a:hover {
    text-decoration: underline;
}

.highlight-date {
    color: #a0344a;
}

.compact-spacing {
    margin-bottom: -1px;
    padding: 3px 0;
}

/* Event Detail Pages */
.event-detail {
    margin-bottom: 60px;
}

.flyer-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
    padding: 40px 0;
    gap: 20px;
}

.flyer-image {
    max-height: 70vh;
    max-width: 100%;
    object-fit: contain;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

.back-link a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.back-link a:hover {
    color: #000;
}

.event-header {
    margin-bottom: 40px;
    text-align: center;
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}

.event-main-title {
    font-size: 2rem;
    font-weight: 300;
    color: #000;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.event-subtitle {
    color: #666;
    font-size: 1rem;
    font-weight: 400;
}

.event-header-reservation {
    margin-top: 20px;
}

.header-reservation-link {
    display: inline-block;
    padding: 8px 16px;
    background: #a0344a;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.header-reservation-link:hover {
    background: #8b2d3e;
}

.event-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    padding: 30px 0;
    padding-bottom: 30px;
    border-bottom: 3px solid #e0e0e0;
}

.info-section {
    text-align: center;
}

.info-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

.info-reservation {
    margin-top: 15px;
}

.info-reservation-link {
    display: inline-block;
    padding: 10px 16px;
    background: #a0344a;
    color: white !important;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(160, 52, 74, 0.2);
}

.info-reservation-link:hover {
    background: #8b2d3e;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(160, 52, 74, 0.3);
    color: white !important;
}

.lineup-section {
    margin-bottom: 40px;
}

.staff-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 3px solid #e0e0e0;
}

.artist-list {
    list-style: none;
    margin-top: 20px;
    margin-left: 10px;
    padding-left: 10px;
}

.artist-item {
    display: flex;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px solid #f8f8f8;
}

.artist-item:last-child {
    border-bottom: none;
}

.artist-name {
    font-weight: 500;
    color: #000;
    margin-right: 15px;
}

.artist-name a {
    color: #000;
    text-decoration: none;
}

.artist-name a:hover {
    text-decoration: underline;
}

.artist-name::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 10px;
    background: linear-gradient(90deg, 
        transparent 0%, transparent 10%, 
        #c0c0c0 12%, #c0c0c0 15%, 
        transparent 20%, transparent 25%, 
        #c0c0c0 27%, #c0c0c0 30%, 
        transparent 35%, transparent 40%, 
        #c0c0c0 42%, #c0c0c0 45%, 
        transparent 50%, transparent 55%, 
        #c0c0c0 57%, #c0c0c0 60%, 
        transparent 65%, transparent 70%, 
        #c0c0c0 72%, #c0c0c0 75%, 
        transparent 80%, transparent 100%);
    border: 1px solid #eee;
    border-radius: 2px;
}

.artist-item {
    position: relative;
    padding-left: 10px;
}

.artist-affiliation {
    color: #666;
    font-size: 0.9rem;
}

.staff-section {
    margin-bottom: 40px;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.staff-item {
    text-align: center;
}

.staff-role {
    font-size: 0.85rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

.role-subtitle {
    font-size: 0.75rem;
    font-weight: 400;
    color: #666;
    text-transform: none;
    letter-spacing: 0.02em;
    display: block;
    margin-top: 3px;
}

.staff-name {
    color: #555;
    font-size: 0.9rem;
}

.staff-name a {
    color: #555;
    text-decoration: none;
}

.staff-name a:hover {
    text-decoration: underline;
}

.services-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 3px solid #e0e0e0;
}

.service-group {
    text-align: center;
}

.service-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-list {
    list-style: none;
}

.service-list li {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.sponsor-section {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #f0f0f0;
    margin-top: 40px;
}

.sponsor-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sponsor-name {
    color: #555;
    font-size: 1rem;
    font-weight: 500;
}

.sponsor-name a {
    color: #555;
    text-decoration: none;
}

.sponsor-name a:hover {
    text-decoration: underline;
}

.reservation-section {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #f0f0f0;
    margin-top: 40px;
}

.reservation-link-detail {
    display: inline-block;
}

.reservation-link-detail a {
    display: inline-block;
    padding: 12px 24px;
    background: #a0344a;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.reservation-link-detail a:hover {
    background: #8b2d3e;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(160, 52, 74, 0.3);
}

/* Detail page navigation adjustments */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* About Section */
.about {
    margin-bottom: 60px;
    position: relative;
}

/* TCF20 chromosome location indicator */
.about::before {
    content: '';
    position: absolute;
    top: -10px;
    right: 0;
    width: 60px;
    height: 4px;
    background: 
        /* Chromosome 20 representation */
        linear-gradient(90deg, 
            #f0f0f0 0%, #f0f0f0 30%, 
            #e8e8e8 30%, #e8e8e8 40%, 
            #ddd 40%, #ddd 60%, 
            #e8e8e8 60%, #e8e8e8 70%, 
            #f0f0f0 70%, #f0f0f0 100%);
    border-radius: 2px;
    opacity: 0.7;
}

.about-content {
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
}

.about-content p {
    margin-bottom: 20px;
}

/* Newsletter Section */
.newsletter {
    margin-bottom: 60px;
}

.newsletter-form {
    margin-top: 20px;
    max-width: 400px;
}

.form-row {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 0.9rem;
    border-radius: 0;
    -webkit-appearance: none;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #999;
}

.newsletter-form button {
    padding: 12px 20px;
    background: #000;
    color: #fff;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 0;
}

.newsletter-form button:hover {
    background: #333;
}

.newsletter-message {
    margin-top: 15px;
    padding: 10px 12px;
    border-radius: 3px;
    font-size: 0.9rem;
    display: none;
    width: 100%;
}

.newsletter-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.newsletter-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.community-links {
    margin-top: 30px;
}

.community-links a {
    color: #000;
    text-decoration: none;
    margin-right: 25px;
    font-size: 0.95rem;
}

.community-links a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    border-top: 1px solid #eee;
    padding-top: 40px;
    margin-top: 80px;
    position: relative;
}

/* TCF20 gene expression pattern in footer */
.footer::after {
    content: '';
    position: absolute;
    bottom: -9px;
    left: 0;
    right: 0;
    height: 2px;
    background: 
        /* Gene expression levels pattern */
        linear-gradient(90deg, 
            transparent 0%, transparent 10%, 
            rgba(200, 200, 200, 0.3) 12%, rgba(200, 200, 200, 0.5) 15%, rgba(200, 200, 200, 0.3) 18%, 
            transparent 20%, transparent 25%, 
            rgba(200, 200, 200, 0.4) 27%, rgba(200, 200, 200, 0.7) 30%, rgba(200, 200, 200, 0.4) 33%, 
            transparent 35%, transparent 40%, 
            rgba(200, 200, 200, 0.2) 42%, rgba(200, 200, 200, 0.6) 45%, rgba(200, 200, 200, 0.2) 48%, 
            transparent 50%, transparent 55%, 
            rgba(200, 200, 200, 0.5) 57%, rgba(200, 200, 200, 0.8) 60%, rgba(200, 200, 200, 0.5) 63%, 
            transparent 65%, transparent 70%, 
            rgba(200, 200, 200, 0.3) 72%, rgba(200, 200, 200, 0.4) 75%, rgba(200, 200, 200, 0.3) 78%, 
            transparent 80%, transparent 100%);
}

.footer-links {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #666;
}

.footer-info {
    color: #999;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Show All Link */
.show-all {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    margin-left: 10px;
}

.show-all:hover {
    color: #000;
}

/* Clickable event styling */
.clickable-event {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.clickable-event:hover {
    background-color: #f8f8f8;
}

/* 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.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 2% auto;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fafafa;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #000;
}

.image-counter {
    font-size: 0.9rem;
    color: #666;
    font-variant-numeric: tabular-nums;
}

.modal-body {
    padding: 0;
    position: relative;
}

.image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    background-color: #f5f5f5;
}

.image-container img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #666;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    z-index: 20;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.close:hover {
    color: #000;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 20px 20px;
    }

    .header {
        margin-bottom: 40px;
    }

    .site-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .nav {
        margin-bottom: 30px;
    }

    .nav-links {
        flex-direction: row;
        gap: 20px;
    }

    .nav-links li {
        margin-right: 0;
        margin-bottom: 0;
    }

    .nav-links a {
        font-size: 0.9rem;
        padding: 4px 0;
    }

    .event-item {
        flex-direction: row;
        align-items: baseline;
        padding: 5px 0;
        margin-left: -17px;
    }

    .event-date {
        width: 15%;
        min-width: 40px;
        font-size: 0.8rem;
    }

    .event-title {
        flex: 1;
        margin-right: 8px;
    }

    .event-location {
        text-align: right;
        font-size: 0.8rem;
    }

    .newsletter-form {
        flex-direction: column;
        max-width: none;
    }

    .newsletter-form input,
    .newsletter-form button {
        margin-bottom: 10px;
    }

    .community-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .community-links a {
        margin-right: 0;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .modal-header {
        padding: 15px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }

    .close {
        top: 10px;
        right: 15px;
        font-size: 24px;
    }

    /* Event detail responsive adjustments */
    .flyer-container {
        padding: 20px 0;
        margin-bottom: 30px;
    }

    .flyer-image {
        max-height: 50vh;
    }

    .event-main-title {
        font-size: 1.5rem;
    }

    .event-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .staff-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .services-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .artist-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        width: 100%;
        margin-bottom: 20px;
    }

    .back-link {
        align-self: flex-end;
    }

    .header {
        margin-bottom: 30px;
    }

    .site-title {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    .nav-links {
        gap: 2px;
    }

    .nav-links li {
        margin-bottom: 2px;
    }

    .nav-links a {
        font-size: 0.9rem;
        padding: 4px 0;
    }

    .back-link a {
        font-size: 0.9rem;
    }
}