/* Modern Course Website Styles */

:root {
    --primary-color: #1a5490;
    --secondary-color: #ffc107;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 6px rgba(0,0,0,0.15);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

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

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c7fb8 100%);
    color: white;
    padding: 40px 0 60px 0;
    text-align: center;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.banner-image {
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto 30px auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

header h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 10px;
}

header .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Navigation */
nav {
    background-color: white;
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 15px 0;
}

nav li {
    margin: 0 20px;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
}

nav a:hover {
    color: var(--primary-color);
    background-color: var(--light-bg);
}

/* Main Content */
main {
    padding: 40px 0;
}

section {
    margin-bottom: 60px;
}

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

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.info-card {
    background-color: var(--light-bg);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.info-card ul {
    list-style: none;
}

.info-card li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.info-card li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

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

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

/* Objectives List */
.objectives-list {
    list-style: none;
    padding-left: 0;
}

.objectives-list li {
    padding: 15px;
    margin-bottom: 10px;
    background-color: var(--light-bg);
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
}

/* Schedule Table */
.schedule-table {
    overflow-x: auto;
    margin-top: 20px;
}

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

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

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

th {
    font-weight: 600;
}

tbody tr:hover {
    background-color: var(--light-bg);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* Assignments */
.assignments-list {
    display: grid;
    gap: 25px;
    margin-top: 20px;
}

.assignment-item {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

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

.assignment-item p {
    margin-bottom: 8px;
}

/* Grading */
.grading-breakdown {
    margin-top: 20px;
    margin-bottom: 30px;
}

.grading-breakdown table {
    max-width: 500px;
}

.grading-scale {
    background-color: var(--light-bg);
    padding: 25px;
    border-radius: 8px;
}

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

.grading-scale ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.grading-scale li {
    padding: 10px;
    background-color: white;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
}

/* Policies */
.policies-list {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.policy-item {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

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

/* Resources */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.resource-card {
    background-color: var(--light-bg);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

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

.resource-card ul {
    list-style: none;
    padding-left: 0;
}

.resource-card li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.resource-card li:last-child {
    border-bottom: none;
}

.resource-card a {
    color: var(--primary-color);
    text-decoration: none;
}

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

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 30px 0;
    margin-top: 60px;
    text-align: center;
}

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

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

.footer-links {
    margin-top: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    header h2 {
        font-size: 1.5rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav li {
        margin: 5px 0;
    }
    
    section h2 {
        font-size: 1.5rem;
    }
    
    .info-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    header {
        padding: 40px 0;
    }
    
    main {
        padding: 20px 0;
    }
}

/* Banner tweaks: remove edge, shrink to 80
/* Banner tweaks: remove edge, shrink to 80% */
.banner-image {
    width: 50%;
    max-width: 50%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    max-height: 400px;
    object-fit: contain;
    border: 0;
    outline: none;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}
