/* History Page Specific Styling */
.history-container {
    padding-top: 7rem;
    padding-bottom: 3rem;
}

.history-header {
    margin-bottom: 3rem;
}

.history-header h1 {
    color: #003366;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.author-info {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.toc-list {
    padding-left: 1.5rem;
}

.toc-list li {
    margin-bottom: 0.5rem;
}

.toc-list a {
    color: #0056b3;
    text-decoration: none;
}

.toc-list a:hover {
    text-decoration: underline;
}

.section-title {
    color: #003366;
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.5rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.subsection-title {
    color: #004080;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 2rem;
    border-left: 3px solid #0056b3;
    padding-bottom: 1rem;
}

.timeline-item:last-child {
    border-left: 3px solid transparent;
}

.timeline-item:before {
    content: "";
    position: absolute;
    left: -10px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #0056b3;
}

.timeline-year {
    font-weight: bold;
    color: #004080;
    margin-bottom: 0.5rem;
}

.timeline-content {
    padding-top: 0.5rem;
}

.time-comparison-table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
}

.time-comparison-table th,
.time-comparison-table td {
    padding: 0.75rem;
    text-align: center;
    border: 1px solid #ddd;
}

.time-comparison-table th {
    background-color: #f0f7ff;
    font-weight: 600;
}

.time-comparison-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.history-image {
    margin: 2rem 0;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.history-quote {
    font-style: italic;
    color: #555;
    margin: 2rem 0;
    padding: 1.5rem;
    border-left: 5px solid #0056b3;
    background-color: #f8f9fa;
}

.history-reference {
    font-size: 0.9rem;
    color: #666;
}

.fact-box {
    background-color: #e6f3ff;
    border-left: 5px solid #0056b3;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 5px 5px 0;
}

.fact-box h4 {
    margin-top: 0;
    color: #003366;
}

/* Print styles */
@media print {
    .navbar, .footer, .dark-mode-toggle, .breadcrumb-container, #print-page {
        display: none !important;
    }
    
    .history-container {
        padding-top: 0;
    }
    
    a[href]:after {
        content: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .container {
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .history-header h1 {
        font-size: 2rem;
    }
    
    .timeline-item {
        padding-left: 1.5rem;
    }
}

/* Dark mode adjustments */
body.dark-mode .section-title {
    color: #81b1e6;
    border-bottom-color: #444;
}

body.dark-mode .subsection-title {
    color: #a3c7eb;
}

body.dark-mode .timeline-item {
    border-left-color: #4281c9;
}

body.dark-mode .timeline-item:before {
    background-color: #4281c9;
}

body.dark-mode .timeline-year {
    color: #81b1e6;
}

body.dark-mode .time-comparison-table th {
    background-color: #2a3a4a;
}

body.dark-mode .time-comparison-table tr:nth-child(even) {
    background-color: #21252b;
}

body.dark-mode .fact-box {
    background-color: #1e2a38;
    border-left-color: #4281c9;
}

body.dark-mode .fact-box h4 {
    color: #81b1e6;
}

body.dark-mode .history-quote {
    border-left-color: #4281c9;
    background-color: #21252b;
} 