/* CSS Variables */
:root {
    --primary-color: #1a365d;
    --secondary-color: #2b6cb0;
    --accent-color: #4299e1;
    --text-color: #2d3748;
    --text-light: #718096;
    --bg-color: #f7fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --header-bg: linear-gradient(135deg, #1a365d 0%, #2b6cb0 100%);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --max-width: 1200px;
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

/* Header */
.site-header {
    background: var(--header-bg);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.header-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.site-title a {
    color: white;
}

.site-title a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.site-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Navigation */
.main-nav {
    background: var(--card-bg);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-list li a {
    display: block;
    padding: 1rem 1.25rem;
    color: var(--text-color);
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.nav-list li a:hover,
.nav-list li a.active {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
    background: rgba(43, 108, 176, 0.05);
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    padding: 1rem;
    cursor: pointer;
    color: var(--text-color);
}

/* Main Content */
.main-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

/* Cards & Sections */
.content-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Schedule Table */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.schedule-table th,
.schedule-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.schedule-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.schedule-table tr:hover {
    background: rgba(66, 153, 225, 0.05);
}

.schedule-table tr:last-child td {
    border-bottom: none;
}

/* Reading List */
.reading-section {
    margin-bottom: 2rem;
}

.reading-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.reading-list {
    list-style: none;
    counter-reset: reading-counter;
}

.reading-list li {
    counter-increment: reading-counter;
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

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

.reading-list li::before {
    content: counter(reading-counter) ".";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 600;
}

.reading-list li a {
    word-break: break-word;
}

/* People Section */
.people-grid {
    display: grid;
    gap: 1.5rem;
}

.person-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 8px;
}

.person-icon {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    flex-shrink: 0;
}

.person-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.person-info p {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Agenda/Syllabus */
.agenda-section {
    margin-bottom: 1.5rem;
}

.agenda-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.agenda-section ul {
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.agenda-section li {
    margin-bottom: 0.25rem;
}

.note-box {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.note-box p {
    margin: 0;
    color: #92400e;
}

/* Course-offerings landing page */
.landing-nav {
    flex-wrap: wrap;
}

.offering-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem 2rem;
    align-items: center;
}

.offering-term {
    color: var(--secondary-color);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.offering-card .section-title {
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
}

.offering-meta {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.offering-action {
    white-space: nowrap;
}

.offering-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    grid-column: 1 / -1;
    list-style: none;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.offering-links a {
    font-weight: 500;
}

/* Footer */
.site-footer {
    background: var(--primary-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-content p {
    opacity: 0.8;
    font-size: 0.875rem;
}

.footer-content p + p {
    margin-top: 0.4rem;
}

.footer-link {
    color: white;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.footer-link:hover {
    color: white;
    opacity: 0.85;
}

/* Button */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--secondary-color);
    color: white;
    border-radius: 6px;
    font-weight: 500;
    transition: var(--transition);
}

.btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-title {
        font-size: 1.75rem;
    }

    .site-subtitle {
        font-size: 0.875rem;
    }

    .nav-toggle {
        display: block;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        padding-bottom: 1rem;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list li a {
        padding: 0.75rem 1rem;
        border-bottom: none;
        border-left: 3px solid transparent;
    }

    .nav-list li a:hover,
    .nav-list li a.active {
        border-bottom: none;
        border-left-color: var(--secondary-color);
    }

    .page-title {
        font-size: 1.5rem;
    }

    .content-card {
        padding: 1rem 1.25rem;
    }

    .schedule-table {
        font-size: 0.875rem;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 0.75rem 0.5rem;
    }

    .landing-nav {
        display: flex;
        flex-direction: row;
        padding-bottom: 0;
    }

    .landing-nav li a {
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: 0.85rem 0.75rem;
    }

    .landing-nav li a:hover,
    .landing-nav li a.active {
        border-left: none;
        border-bottom-color: var(--secondary-color);
    }

    .offering-card {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .offering-action {
        white-space: normal;
    }

    .offering-action .btn {
        text-align: center;
        width: 100%;
    }

    .offering-links {
        grid-column: 1;
    }
}

@media (max-width: 480px) {
    .schedule-table {
        display: block;
        overflow-x: auto;
    }
}
