/* Site-wide styles for Steven M. Schneider Academic Profile */

body {
    font-family: "Computer Modern", "Latin Modern Roman", "Times New Roman", serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
    line-height: 1.4;
    color: #333;
}

/* Index page specific styles */
.container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.header {
    margin-bottom: 20px;
}

.name {
    font-size: 1.8em;
    font-weight: bold;
    color: #8C1515;
    margin: 0;
}

.email {
    font-size: 0.8em;
    color: #666;
    margin: 2px 0;
    font-family: "Courier New", monospace;
}

.titles {
    font-size: 0.75em;
    color: #333;
    margin: 0;
}

.fellowship {
    font-size: 0.75em;
    color: #666;
    margin: 2px 0 0 0;
}

.title-link {
    color: #8C1515;
    text-decoration: none;
}

.title-link:hover {
    text-decoration: underline;
}

.navigation {
    margin: 15px 0;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    padding: 8px 0;
}

.nav-link {
    color: #8C1515;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: bold;
    margin: 0 8px;
    cursor: pointer;
}

.nav-link:hover {
    text-decoration: underline;
}

.nav-link.active {
    color: #333;
    text-decoration: underline;
}

.content-section {
    display: none;
    text-align: left;
    padding: 20px 0;
    font-size: 0.9em;
    color: #333;
}

.content-section.active {
    display: block;
}

#content-area {
    text-align: left;
    padding: 20px 0;
    font-size: 0.9em;
    color: #333;
}

/* Content page styles */
.page-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-container p {
    font-size: 0.95em;
    margin-bottom: 1.2em;
    text-align: justify;
    hyphens: auto;
    line-height: 1.6;
}

.page-container strong {
    color: #8C1515;
}

.page-container p:first-child {
    margin-top: 0;
}

/* Drop cap styling - the beautiful first letter */
.page-container p:first-child::first-letter {
    font-size: 3.5em;
    float: left;
    line-height: 0.8;
    margin: 0.1em 0.1em 0 0;
    color: #8C1515;
    font-weight: bold;
}

/* Section headers */
.page-container h2 {
    color: #8C1515;
    font-size: 1.4em;
    margin: 1.5em 0 0.8em 0;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.3em;
}

.page-container h3 {
    color: #333;
    font-size: 1.1em;
    margin: 1.2em 0 0.6em 0;
}

/* Lists */
.page-container ul, .page-container ol {
    margin: 1em 0;
    padding-left: 2em;
}

.page-container li {
    margin-bottom: 0.5em;
}

/* Links */
.page-container a {
    color: #8C1515;
    text-decoration: none;
}

.page-container a:hover {
    text-decoration: underline;
}

/* Emphasis */
.page-container em {
    font-style: italic;
    color: #555;
}

/* Course listing styles */
.course-category {
    margin-bottom: 2em;
}

.course-category h3 {
    color: #8C1515;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.3em;
    margin-bottom: 0.8em;
}

.course-list {
    list-style: none;
    padding-left: 0;
}

.course-list li {
    padding: 0.3em 0;
    border-bottom: 1px dotted #eee;
}

.course-list li:last-child {
    border-bottom: none;
}

.year-range {
    float: right;
    font-size: 0.85em;
    color: #666;
    font-style: italic;
}

/* Statistics box */
.stats-box {
    background: linear-gradient(135deg, #8C1515, #A91D1D);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

.stats-box h3 {
    color: white;
    margin: 0 0 10px 0;
}

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

.stat-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 5px;
}

.stat-number {
    font-size: 1.5em;
    font-weight: bold;
}

.stat-label {
    font-size: 0.8em;
    opacity: 0.9;
}