/* Updated: 2025-08-29 - Fixed final projects section styling */
:root {
    --primary-color: #003262;
    --secondary-color: #FDB515;
    --text-primary: #333333;
    --text-secondary: #666666;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --border-color: #dee2e6;
    --link-color: #0066cc;
    --link-hover: #003d7a;
    --card-shadow: 0 2px 4px rgba(0,0,0,0.1);
    --nav-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: var(--primary-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
}

.nav-brand h1 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.nav-subtitle {
    color: var(--secondary-color);
    font-size: 0.9rem;
    display: block;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: all 0.3s;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 10px;
    border-radius: 4px;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255,255,255,0.1);
    color: var(--secondary-color);
}

/* Main Content */
.main-content {
    margin-top: var(--nav-height);
    padding: 40px 0;
    min-height: calc(100vh - var(--nav-height) - 100px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: 60px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.hero-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.course-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.info-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    border-left: 4px solid var(--secondary-color);
}

.info-card h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.info-card p {
    color: var(--text-secondary);
    margin: 5px 0;
}

.info-card a {
    color: var(--link-color);
    text-decoration: none;
}

.info-card a:hover {
    text-decoration: underline;
}

/* Announcements */
.announcements-section {
    margin-bottom: 40px;
}

.announcements-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.announcement-card {
    background: var(--bg-secondary);
    border-left: 4px solid var(--secondary-color);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 4px;
    display: flex;
    gap: 20px;
}

.announcement-date {
    color: var(--text-secondary);
    font-weight: 600;
    min-width: 140px;
    font-size: 0.9rem;
}

.announcement-content h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.announcement-content p {
    color: var(--text-primary);
    margin: 5px 0;
}

/* Syllabus Section */
.syllabus-section {
    margin-bottom: 40px;
}

.syllabus-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.lead {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.syllabus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.syllabus-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    border-top: 3px solid var(--primary-color);
}

.syllabus-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.syllabus-card ul {
    list-style-position: inside;
    color: var(--text-secondary);
}

.syllabus-card li {
    margin: 10px 0;
    line-height: 1.6;
}

/* Grading Tables */
.grading-tables {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 20px 0;
}

.grade-table {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.grade-table h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.grade-table table {
    width: 100%;
    border-collapse: collapse;
}

.grade-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
}

.grade-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--primary-color);
}

/* Schedule Section */
.schedule-section {
    margin-bottom: 40px;
}

.schedule-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.schedule-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

.schedule-table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    box-shadow: var(--card-shadow);
    border-radius: 8px;
    overflow: hidden;
}

.schedule-table thead {
    background-color: var(--primary-color);
    color: white;
}

.schedule-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.schedule-table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.schedule-table tbody tr:hover {
    background-color: var(--bg-secondary);
}

.schedule-table td {
    padding: 15px;
    color: var(--text-primary);
}

.schedule-table a {
    color: var(--link-color);
    text-decoration: none;
}

.schedule-table a:hover {
    text-decoration: underline;
}

/* Resources Section */
.resources-section {
    margin-bottom: 40px;
}

.resources-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.resource-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 3px solid var(--secondary-color);
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.resource-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.resource-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.materials-list {
    list-style-position: inside;
    margin: 20px 0;
}

.materials-list li {
    margin: 10px 0;
    color: var(--text-primary);
}

.materials-list a {
    color: var(--link-color);
    text-decoration: none;
}

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

/* Staff Section */
.staff-section {
    margin-bottom: 40px;
}

.staff-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.staff-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    text-align: center;
    border-top: 3px solid var(--primary-color);
}

.staff-card h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.staff-title {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 15px;
}

.staff-card p {
    color: var(--text-primary);
    margin: 8px 0;
}

.staff-card a {
    color: var(--link-color);
    text-decoration: none;
}

.staff-card a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
}

.footer p {
    margin: 5px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--nav-height);
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        display: block;
        padding: 10px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .course-info-grid {
        grid-template-columns: 1fr;
    }

    .announcement-card {
        flex-direction: column;
        gap: 10px;
    }

    .announcement-date {
        min-width: auto;
    }

    .syllabus-grid {
        grid-template-columns: 1fr;
    }

    .grading-tables {
        grid-template-columns: 1fr;
    }

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

    .schedule-table th,
    .schedule-table td {
        padding: 10px 5px;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    .staff-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .main-content {
        padding: 20px 0;
    }
}

/* Course Structure Elements */
.highlight-box {
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f8ff 100%);
    border: 2px solid var(--secondary-color);
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    position: relative;
}

.highlight-box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.highlight-box p {
    margin: 8px 0;
    color: var(--text-primary);
}

.highlight-box strong {
    color: var(--primary-color);
}

/* Assignment Overview */
.assignments-overview {
    margin: 20px 0;
}

.assignment-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.assignment-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.assignment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.assignment-card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* AI Policy Styles */
.ai-policy-highlight {
    background: linear-gradient(135deg, #fff3cd 0%, #fef9e7 100%);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
}

.ai-policy-highlight h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.policy-stage {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: border-color 0.3s;
}

.policy-stage:hover {
    border-color: var(--secondary-color);
}

.policy-stage h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.policy-stage p {
    margin: 5px 0;
    color: var(--text-secondary);
}

.policy-stage strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Assignment Details */
.assignment-details {
    margin: 30px 0;
}

.assignment-detail-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--card-shadow);
    border-left: 6px solid var(--secondary-color);
}

.assignment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.assignment-header h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin: 0;
}

.assignment-timeline {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.assignment-skills {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
}

.assignment-skills h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.assignment-skills ul {
    margin: 0;
    padding-left: 20px;
}

.assignment-skills li {
    margin: 5px 0;
    color: var(--text-primary);
}

/* Grading Rubric */
.grading-rubric {
    background: var(--bg-secondary);
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
    border-left: 4px solid var(--primary-color);
}

.grading-rubric h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.grading-rubric ul {
    margin: 0;
    padding-left: 20px;
}

.grading-rubric li {
    margin: 8px 0;
    color: var(--text-primary);
}

.grading-rubric strong {
    color: var(--primary-color);
}

/* Materials Grid */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 25px 0;
}

.material-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s;
}

.material-card:hover {
    transform: translateY(-2px);
}

.material-card h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.material-card h4 a {
    color: var(--link-color);
    text-decoration: none;
}

.material-card h4 a:hover {
    text-decoration: underline;
}

.material-card p {
    margin: 8px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* O'Reilly Access */
.oreilly-access {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid var(--secondary-color);
}

.oreilly-access h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.oreilly-access ol {
    margin: 0;
    padding-left: 20px;
}

.oreilly-access li {
    margin: 10px 0;
    color: var(--text-primary);
}

.oreilly-access a {
    color: var(--link-color);
    text-decoration: none;
}

.oreilly-access a:hover {
    text-decoration: underline;
}

/* Office Hours Note */
.office-hours-note {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid var(--secondary-color);
}

.office-hours-note p {
    margin: 0;
    color: var(--text-primary);
}

.office-hours-note strong {
    color: var(--primary-color);
}

/* Footer Links */
.footer-links {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-links a {
    color: var(--secondary-color);
    text-decoration: none;
    margin: 0 5px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Schedule Enhancements */
.schedule-intro {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 25px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 6px;
    border-left: 4px solid var(--secondary-color);
}

/* Current week highlighting */
.current-week {
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f8ff 100%);
    border-left: 4px solid var(--primary-color) !important;
}

.current-week td {
    font-weight: 600;
    color: var(--primary-color);
}

/* Assignment weeks - no special highlighting */
.assignment-week {
    background-color: white !important;
}

.assignment-week td {
    background-color: transparent !important;
}

/* Class Prep Section */
.class-prep-section {
    margin: 40px 0;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.class-prep-section h3 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.4rem;
}

.prep-strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.prep-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    border-top: 4px solid var(--secondary-color);
}

.prep-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.prep-card ul {
    margin: 0;
    padding-left: 20px;
}

.prep-card li {
    margin: 8px 0;
    color: var(--text-primary);
}

.prep-card strong {
    color: var(--primary-color);
}

/* Final Projects Section */
.final-projects {
    margin: 40px 0;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 2px solid var(--primary-color);
}

.final-projects h3 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.4rem;
}

.final-project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.final-project-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    border-left: 6px solid var(--secondary-color);
}

.final-project-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.project-timeline {
    background: var(--bg-secondary);
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}

.project-timeline p {
    margin: 8px 0;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.project-timeline strong {
    color: var(--primary-color);
}

.final-project-card p {
    margin: 10px 0;
    color: var(--text-primary);
}

.final-project-card strong {
    color: var(--primary-color);
}

/* Responsive Styles for Additional Elements */
@media (max-width: 768px) {
    .assignment-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .policy-grid {
        grid-template-columns: 1fr;
    }
    
    .materials-grid {
        grid-template-columns: 1fr;
    }
    
    .prep-strategy-grid {
        grid-template-columns: 1fr;
    }
    
    .assignment-cards {
        grid-template-columns: 1fr;
    }
    
    .final-project-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .highlight-box,
    .ai-policy-highlight,
    .class-prep-section {
        padding: 20px;
        margin: 20px 0;
    }
    
    .assignment-detail-card {
        padding: 20px;
    }
}