/* Historical Hero Section */
.historical-hero {
    background: linear-gradient(rgba(10, 37, 64, 0.85), rgba(10, 37, 64, 0.85)), 
                url('https://images.unsplash.com/photo-1611974789855-9c2a0a7236a3?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') no-repeat center center/cover;
    color: white;
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
}

a {
    color: var(--text-medium);
    text-decoration: none;
    transition: color 0.4s ease-in-out;
}

a:hover { color: white; }

/* Timeline Section */
.timeline-section {
    padding: 80px 0;
    background-color: white;
}

.timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: rgba(0, 122, 141, 0.2);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background-color: white;
    border: 4px solid var(--accent);
    border-radius: 50%;
    top: 15px;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::after {
    right: -12px;
}

.right::after {
    left: -12px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.timeline-desc {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 15px;
}

.timeline-stats {
    display: flex;
    gap: 15px;
}

.timeline-stat {
    text-align: center;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .timeline-container::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 18px;
    }

    .left::after, .right::after {
        left: 18px;
    }

    .right {
        left: 0%;
    }
}
/* Annual Performance Section */
.annual-section {
    padding: 80px 0;
    background-color: #f8fafc;
}

.performance-toggle {
    display: flex;
    gap: 10px;
    margin: 30px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.toggle-btn {
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.03);
    border: none;
    border-radius: 6px;
    font-weight: 500;
    color: var(--text-medium);
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background: var(--accent);
    color: white;
}

.table-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.table-responsive {
    overflow-x: auto;
}

.performance-table {
    width: 100%;
    border-collapse: collapse;
    display: none;
}

.performance-table.active {
    display: table;
}

.performance-table th {
    background: var(--primary);
    color: white;
    padding: 15px 20px;
    text-align: left;
    font-weight: 500;
}

.performance-table td {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.performance-table tr:last-child td {
    border-bottom: none;
}

.performance-table tr:hover td {
    background: rgba(0, 122, 141, 0.03);
}

.highlight-row {
    background: rgba(0, 122, 141, 0.05);
}

.highlight-row td:first-child {
    font-weight: 600;
}

.positive {
    color: #00a86b;
    font-weight: 500;
}

.negative {
    color: #ff4d4f;
    font-weight: 500;
}

.performance-footnotes {
    margin-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.btn-disclosures {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--accent);
    font-weight: 500;
    margin-top: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-disclosures:hover {
    color: var(--hover-accent);
}

/* Growth Chart Section */
.growth-section {
    padding: 80px 0;
    background-color: white;
}

.chart-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.chart-container {
    height: 400px;
    position: relative;
}

.chart-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.legend-color {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 6px;
}

.legend-color.tcd {
    background-color: var(--accent);
}

.legend-color.sp500 {
    background-color: var(--text-light);
}

.legend-color.hfri {
    background-color: #7c3aed;
}

.chart-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.time-periods {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.period-btn {
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.03);
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-medium);
    cursor: pointer;
}

.period-btn.active {
    background: var(--accent);
    color: white;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.2);
}

.chart-footnotes {
    margin-top: 30px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-medium);
}

@media (max-width: 768px) {
    .annual-section,
    .growth-section {
        padding: 60px 0;
    }

    .performance-table th,
    .performance-table td {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .chart-container {
        height: 300px;
    }

    .chart-controls {
        flex-direction: column;
        align-items: flex-start;
    }
}