:root {
    --primary-orange: #FF6B35;
    --primary-deepred: #CC4B4B;
    --secondary-deepred-2: #A34A4A; /* lighter */
    --secondary-orange: #FFA07A;
    --text-color: #333;
    --light-gray: #f8f9fa;
}

body {
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-gray);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Ensure all elements inherit Palatino font */
* {
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
}

/* Override Bulma's default font for specific elements */
.navbar, .navbar-item, .nav-link, .button, .tag, .timeline-item, .paper-title, .paper-meta, .paper-abstract, .paper-links, .filter-button, .timeline-year {
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif !important;
}

.hero {
    background-color: var(--light-gray);
    padding: 2.5rem 1.5rem 0;
    flex: 1;
}

/* Variant for pages where content should sit near the top under the header */
.hero--no-flex {
    flex: 0;
}

.main-title {
    color: var(--primary-deepred);
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.secondary-title {
    color: var(--primary-deepred);
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.conference-title {
    color: var(--text-color);
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.abstract {
    background-color: var(--light-gray);
    padding: 2.5rem;
    border-radius: 8px;
    margin: 1rem auto 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    max-width: 90%;
}

.abstract h3 {
    color: var(--primary-deepred);
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.abstract p {
    margin-bottom: 1.5rem;
}

.author-list {
    margin: 0 0 0.5rem;
}

.author {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--text-color);
}

.affiliation {
    font-size: 0.9em;
    color: #666;
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.affiliation p {
    margin: 0;
    display: inline;
}

.affiliation-symbol {
    color: var(--primary-deepred);
    font-weight: bold;
}



.footer {
    background-color: var(--light-gray);
    padding: 1.5rem 1.5rem;
    margin-top: 0;
}
.page-spacer {
    flex: 1 1 auto;
}

.content {
    margin: 0;
}

.has-text-centered {
    text-align: center;
}

.timeline-container {
    width: 100%;
    background-color: var(--light-gray);
    padding: 1rem 0;
    overflow-x: hidden;
    position: relative;
}

.timeline-container .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.filter-buttons {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--light-gray);
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    /* border-bottom: 1px solid rgba(0,0,0,0.1); */
}

.timeline-wrapper {
    position: relative;
    padding-bottom: 2rem;
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.timeline {
    display: flex;
    gap: 2rem;
    padding: 1rem 0 3rem 0;
    min-width: max-content;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-orange);
    z-index: 1;
}

.timeline::-webkit-scrollbar {
    height: 8px;
}

.timeline::-webkit-scrollbar-track {
    background: var(--light-gray);
}

.timeline::-webkit-scrollbar-thumb {
    background-color: var(--primary-orange);
    border-radius: 4px;
}

.timeline-item {
    flex: 0 0 220px;
    background: white;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    margin-bottom: 1rem;
    border: 1px solid rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    min-height: 240px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    width: 12px;
    height: 12px;
    background-color: var(--primary-orange);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.timeline-item::before {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    width: 2px;
    height: 0.5rem;
    background-color: var(--primary-orange);
    transform: translateX(-50%);
    z-index: 2;
}

.timeline-item:first-of-type::before {
    display: none;
}

.paper-header {
    background-color: #f8f8f8;
    margin: -1.25rem -1.25rem 0.75rem -1.25rem;
    padding: 1.25rem 1.25rem 0.75rem 1.25rem;
    border-radius: 8px 8px 0 0;
}

.paper-title {
    color: var(--primary-orange);
    font-size: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.paper-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    color: #666;
    font-size: 0.9rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
}

.paper-authors {
    color: #666;
}

.paper-venue {
    color: #666;
    text-align: right;
}

.paper-date {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 1rem;
}

.paper-abstract {
    font-size: 0.8rem;
    line-height: 1.3;
    margin-bottom: 0.3rem;
    padding-bottom: 5rem;
}

.paper-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    right: 1.25rem;
}

.paper-link {
    display: inline-block;
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.8rem;
}

.paper-link:hover {
    color: var(--secondary-orange);
}

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

em {
    font-style: italic;
    color: var(--primary-orange);
}

em strong {
    font-weight: bold;
    color: var(--primary-orange);
}

.navbar {
    padding: 0.25rem 0;
    background-color: var(--light-gray);
    display: flex;
    justify-content: flex-end;
}

.navbar-end {
    margin-right: 2rem;
}

.nav-link {
    color: var(--primary-deepred);
    font-size: 1.3rem;
    font-weight: bold;
    margin-left: 1.5rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--secondary-deepred-2);
}

.filter-button {
    background: none;
    border: 2px solid var(--primary-deepred);
    color: var(--primary-deepred);
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.filter-button:hover {
    background-color: var(--primary-deepred);
    color: white;
}

.filter-button.is-active {
    background-color: var(--primary-deepred);
    color: white;
}

.paper-tags {
    margin: 0;
    display: flex;
    gap: 0.5rem;
    position: absolute;
    bottom: 3.5rem;
    left: 1.25rem;
    right: 1.25rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.tag.is-attack {
    background-color: #ffebee;
    color: #c62828;
}

.tag.is-defense {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.tag.is-benchmark {
    background-color: #e3f2fd;
    color: #1565c0;
}

.timeline-years {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    color: #666;
    font-size: 0.9rem;
}

.timeline-year {
    position: relative;
    padding: 0.25rem 0.5rem;
    background-color: var(--light-gray);
    border-radius: 4px;
}

.pdf-button {
    display: inline-block;
    color: var(--primary-deepred);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-deepred);
    border-radius: 4px;
    transition: all 0.2s ease;
    background: transparent;
}

.pdf-button:hover {
    background-color: var(--primary-deepred);
    color: white;
    text-decoration: none;
}

.author-headshots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.headshot-container {
    text-align: center;
    flex: 0 0 auto;
}

.headshot {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
/*    border: 3px solid var(--primary-orange);*/
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.headshot-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.headshot-affiliation {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.quick-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.quick-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-deepred);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.quick-link:hover {
    background-color: var(--secondary-deepred-2);
    color: white;
}

.short-abstract {
    max-width: 60%;
    margin: 2rem auto 0;
    text-align: center;
}

.short-abstract p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
}

.paper-details-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 350px;
    max-height: 400px;
    background: white;
    border: 2px solid var(--primary-deepred);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    overflow: hidden;
}

.panel-header {
    background: var(--primary-deepred);
    color: white;
    padding: 0.55rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
}

.panel-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.panel-close:hover {
    background-color: rgba(255,255,255,0.2);
}

.panel-content {
    padding: 1rem;
    max-height: 320px;
    overflow-y: auto;
}

.paper-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.paper-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.paper-title {
    font-weight: bold;
    color: var(--primary-deepred);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.paper-authors {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.paper-venue {
    color: #999;
    font-size: 0.8rem;
    font-style: italic;
}

.recent-papers-container {
    position: relative;
    max-height: 400px;
    overflow: hidden;
}

.recent-papers-list {
    max-height: 320px;
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-deepred) #f0f0f0;
}

.recent-papers-list::-webkit-scrollbar {
    width: 8px;
}

.recent-papers-list::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.recent-papers-list::-webkit-scrollbar-thumb {
    background-color: var(--primary-deepred);
    border-radius: 4px;
}

.recent-papers-list::-webkit-scrollbar-thumb:hover {
    background-color: var(--secondary-deepred-2);
}

.recent-paper-item {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    transition: all 0.2s ease;
}

.recent-paper-item:hover {
    border-color: var(--primary-deepred);
    background: #fff;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.1);
}

.recent-paper-title {
    font-weight: bold;
    color: var(--primary-deepred);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.3;
}

.recent-paper-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #666;
}

.recent-paper-authors {
    font-weight: 500;
}

.recent-paper-venue {
    color: #999;
    font-style: italic;
}

.recent-paper-date {
    color: #999;
    font-size: 0.85rem;
}

.recent-paper-abstract {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #555;
    margin: 0;
}

.scroll-indicator {
    text-align: center;
    padding: 0;
    margin-top: -0.5rem;
    opacity: 1;
    transition: opacity 0.3s ease;
    display: block;
    position: relative;
}

.scroll-indicator.hidden {
    opacity: 0;
}

.scroll-arrow {
    font-size: 1.2rem;
    color: var(--primary-deepred);
    animation: bounce 2s infinite;
    margin-bottom: 0.25rem;
}

.scroll-text {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

.disclaimer-box {
    background-color: white;
    border: 1px solid #e0e0e0;
    margin-top: 2rem;
}

.disclaimer-content {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
}

.disclaimer-content p {
    margin-bottom: 1rem;
}

.disclaimer-content ul {
    margin: 0.5rem 0 1rem 1.5rem;
    padding-left: 0;
}

.disclaimer-content li {
    margin-bottom: 0.25rem;
    color: #666;
}

.disclaimer-content strong {
    color: #333;
    font-weight: 600;
}

.disclaimer-content a {
    text-decoration: none;
    font-weight: 500;
}

.disclaimer-content a:hover {
    text-decoration: underline;
}

.search-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 1rem 0;
    min-width: 0;
    overflow-x: auto;
}

.search-categories-bottom {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.search-categories-bottom .search-category {
    display: inline-block;
    width: 250px;
    margin: 0 0.75rem;
    vertical-align: top;
}

@media (max-width: 768px) {
    .search-categories-bottom .search-category {
        width: calc(50% - 1.5rem);
        margin: 0 0.75rem;
    }
}

.search-category {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.category-title {
    color: var(--primary-deepred);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.search-category ul {
    margin: 0;
    padding-left: 1rem;
}

.search-category li {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.search-category li:last-child {
    margin-bottom: 0;
}

/* Monthly Navigation Styles */
.monthly-nav {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1rem;
    position: sticky;
    top: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.monthly-nav h5 {
    color: var(--primary-deepred);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.monthly-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.monthly-nav-item {
    font-size: 0.85rem;
}

.monthly-nav-item a {
    color: #555;
    text-decoration: none;
    display: block;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.monthly-nav-item a:hover {
    background-color: var(--primary-deepred);
    color: white;
    text-decoration: none;
}

.monthly-nav-item a:active {
    transform: translateY(1px);
}

/* Responsive adjustments for monthly nav */
@media (max-width: 768px) {
    .monthly-nav {
        position: static;
        max-height: none;
        margin-top: 1rem;
    }
    
    .monthly-nav-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .monthly-nav-item a {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
}

.schedule {
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.schedule h2 {
    font-size: 2em;
    margin-bottom: 40px;
    color: #333;
}

.schedule-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
    margin: 0 auto;
}

.session-item {
    display: flex;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    align-items: center;
    text-align: left;
}

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

.session-number {
    font-weight: bold;
    min-width: 100px;
    color: #333;
}

.session-title {
    flex: 1;
    color: #555;
}

.coffee-break {
    background: #fff3cd;
    justify-content: center;
    font-style: italic;
}

.coffee-break .session-title {
    text-align: center;
    color: #856404;
    font-weight: 500;
}

.headshot-link {
    text-decoration: none;
    color: inherit;
}

.headshot-link:hover .headshot-container {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}
