/* Custom styles for CS 351 Algorithms Syllabus */

/* Hero banner styling */
.hero-banner {
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 2rem;
    border-radius: 10px;
    color: white;
}

.hero-banner img {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Instructor info box */
.instructor-info {
    background-color: #f8fafc;
    border-left: 4px solid #3b82f6;
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.instructor-info strong {
    color: #1e40af;
}

/* Table styling */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0;
    font-size: 0.95rem;
}

table th {
    background-color: #1e40af;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

table td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
}

table tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

table tbody tr:hover {
    background-color: #f3f4f6;
}

/* Section headers */
h1 {
    color: #1e40af;
    border-bottom: 3px solid #3b82f6;
    padding-bottom: 0.5rem;
    margin-top: 2rem;
}

h2 {
    color: #1e40af;
    border-bottom: 2px solid #93c5fd;
    padding-bottom: 0.3rem;
    margin-top: 1.5rem;
}

h3 {
    color: #1d4ed8;
    margin-top: 1.2rem;
}

/* Special boxes for important information */
.important-box {
    background-color: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
}

.warning-box {
    background-color: #fee2e2;
    border: 1px solid #ef4444;
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
}

.info-box {
    background-color: #dbeafe;
    border: 1px solid #3b82f6;
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
}

/* Code and monospace text */
code {
    background-color: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
}

/* Links */
a {
    color: #1d4ed8;
    text-decoration: none;
}

a:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* Print-specific styles */
@media print {
    .hero-banner {
        background: #1e3a8a !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    table th {
        background-color: #1e40af !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    h1, h2 {
        color: #1e40af !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .instructor-info {
        padding: 1rem;
    }
    
    table {
        font-size: 0.85rem;
    }
    
    table th,
    table td {
        padding: 8px;
    }
}

/* Schedule table specific styling */
.schedule-table {
    font-size: 0.9rem;
}

.schedule-table th {
    background-color: #1e40af;
    color: white;
    text-align: center;
}

.schedule-table td:first-child {
    font-weight: 600;
    background-color: #f1f5f9;
}

/* Grade table styling */
.grade-table {
    max-width: 600px;
}

.grade-table th {
    text-align: center;
}

.grade-table td {
    text-align: center;
}

/* Emphasis for important dates */
.important-date {
    background-color: #fef3c7;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* Callout boxes for policies */
.policy-callout {
    background-color: #f0f9ff;
    border-left: 4px solid #0ea5e9;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    border-radius: 0 6px 6px 0;
}

.policy-callout h4 {
    color: #0c4a6e;
    margin-top: 0;
}

/* Footer styling */
.syllabus-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
    text-align: center;
    color: #6b7280;
    font-style: italic;
}