body {
    font-family: 'Inter', sans-serif;
    background-color: #F8F7F4;
    color: #1a1a1a;
}
.nav-link {
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
    border-bottom: 2px solid transparent;
}
.nav-link:hover, .nav-link.active {
    color: #8B0000;
    border-bottom-color: #8B0000;
}
.hero-gradient {
    background: linear-gradient(180deg, rgba(248,247,244,0.8) 0%, #F8F7F4 100%);
}
.card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}
.chart-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    height: 300px;
    max-height: 400px;
}
@media (min-width: 768px) {
    .chart-container {
        height: 400px;
    }
}
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 40;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    z-index: 50;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.modal-backdrop.visible, .modal-content.visible {
    display: block;
    opacity: 1;
}
.modal-content.visible {
    transform: translate(-50%, -50%) scale(1);
}
/* Tooltip Styles */
.tooltip-trigger {
    position: relative;
    /* To make the dotted border visible */
    text-decoration: none; 
}

.tooltip-trigger::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%; /* Position above the text */
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 60; /* Above modals */
    pointer-events: none; /* Allows clicks through tooltip */
}

.tooltip-trigger:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Small arrow for tooltip */
.tooltip-trigger::before {
    content: '';
    position: absolute;
    top: -5px; /* Position below tooltip text */
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    border: 5px solid transparent;
    border-top-color: #333;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 60;
    pointer-events: none;
}

.tooltip-trigger:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Timeline Item Styles */
.timeline-item {
    background-color: #fcfbf8; /* Light background for expansion */
    cursor: pointer; /* Indicate clickability */
    padding: 1.5rem; /* Add some padding for the hover effect */
    border-radius: 0.75rem; /* Match card radius */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.timeline-item:hover {
    background-color: #fff; /* White background on hover */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* Subtle shadow on hover */
}
.timeline-item.expanded {
    background-color: #fff; /* White background when expanded */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* Subtle shadow when expanded */
}
.timeline-item .expand-btn {
    display: inline-block; /* Ensure it behaves like a button */
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    padding: 0.5rem 0;
    text-align: center;
    width: auto;
}

/* Ensure text within timeline aligns correctly with expand/collapse */
.timeline-item .expanded-content p {
    margin-bottom: 1rem; /* Add spacing between paragraphs in expanded content */
}