/*
Theme Name: Prime-Christian-University
Description: Complete theme with Homepage, Faculty, Alumni, Academic Programs and Admin Dashboard for Prime Christian University
Version: 1.0
*/

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
}

/* Smooth transitions for all interactive elements */
a, button, .btn {
    transition: all 0.3s ease;
}

/* Professional hover effects */
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

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

/* Header */
.site-header {
    background: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 60px;
    width: auto;
}

.logo-text h1 {
    color: #1e40af;
    font-size: 1.5rem;
    margin: 0;
}

.logo-text p {
    color: #fbbf24;
    font-size: 0.9rem;
    margin: 0;
    font-style: italic;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.main-navigation a:hover {
    color: #1e40af;
}

.main-navigation a.active {
    color: #1e40af;
    font-weight: 600;
}

.cta-button a {
    background: #1e40af;
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(30, 64, 175, 0.3);
}

.cta-button a:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(30, 64, 175, 0.4);
}

/* Responsive navigation */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .main-navigation a {
        font-size: 0.9rem;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(30, 58, 138, 0.85), rgba(30, 58, 138, 0.85)), url('images/campus-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 8rem 0 6rem;
    text-align: center;
    margin-top: 80px;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero-content .tagline {
    font-size: 1.5rem;
    color: #fbbf24;
    margin-bottom: 2rem;
    font-style: italic;
}

.hero-content .description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #fbbf24;
    color: #1e40af;
}

.btn-primary:hover {
    background: #f59e0b;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #1e40af;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Alumni Page Styles */
.alumni-page { margin-top: 100px; }
.page-header {
    background: linear-gradient(rgba(30, 58, 138, 0.95), rgba(30, 58, 138, 0.95));
    color: white !important; padding: 5rem 0; text-align: center;
    margin-top: 0;
}
.page-header h1 { font-size: 3rem; margin-bottom: 1rem; color: white !important; font-weight: bold; }
.page-header p { font-size: 1.2rem; max-width: 600px; margin: 0 auto; color: white !important; opacity: 1; }
.alumni-class { padding: 4rem 0; }
.alumni-class:nth-child(even) { background: #f8fafc; }
.alumni-class h2 { font-size: 2.5rem; color: #1e3a8a; margin-bottom: 1rem; text-align: center; }
.class-intro { text-align: center; font-size: 1.1rem; color: #666; margin-bottom: 3rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.alumni-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 2rem; }
.alumni-card { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); transition: transform 0.3s, box-shadow 0.3s; }
.alumni-card:hover { transform: translateY(-5px); box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); }
.alumni-card img { width: 100%; height: 300px; object-fit: cover; }
.alumni-placeholder { width: 100%; height: 300px; background: #e5e7eb; display: flex; align-items: center; justify-content: center; color: #9ca3af; font-size: 1.2rem; }
.alumni-info { padding: 1.5rem; }
.alumni-info h3 { font-size: 1.3rem; color: #1e3a8a; margin-bottom: 0.5rem; }
.degree { font-weight: bold; color: #f59e0b; margin-bottom: 0.5rem; }
.location { color: #666; font-size: 0.95rem; }
.alumni-impact { background: #1e3a8a; color: white; padding: 4rem 0; text-align: center; }
.alumni-impact h2 { font-size: 2.5rem; margin-bottom: 3rem; color: white; }
.impact-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; max-width: 800px; margin: 0 auto; }
.stat h3 { font-size: 3rem; color: #f59e0b; margin-bottom: 0.5rem; }
.stat p { font-size: 1.1rem; }

/* Programs page specific styles */
.programs-page { margin-top: 100px; }
.program-level { padding: 4rem 0; }
.program-level:nth-child(even) { background: #f8fafc; }
.program-level h2 { font-size: 2.5rem; color: #1e3a8a; margin-bottom: 1rem; text-align: center; }
.level-intro { text-align: center; font-size: 1.1rem; color: #666; margin-bottom: 3rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.programs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; margin-top: 2rem; }
.program-card { background: white; border-radius: 10px; padding: 2rem; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); transition: transform 0.3s, box-shadow 0.3s; }
.program-card:hover { transform: translateY(-5px); box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); }
.program-title { font-size: 1.5rem; color: #1e3a8a; margin-bottom: 1rem; font-weight: bold; }
.program-duration { color: #f59e0b; font-weight: bold; margin-bottom: 1rem; }
.program-description { color: #666; margin-bottom: 1.5rem; line-height: 1.6; }
.curriculum-list { list-style: none; padding: 0; }
.curriculum-list li { background: #f1f5f9; padding: 0.5rem 1rem; margin-bottom: 0.5rem; border-radius: 5px; border-left: 4px solid #f59e0b; }
.featured-badge { background: #f59e0b; color: white; padding: 0.3rem 0.8rem; border-radius: 15px; font-size: 0.8rem; margin-bottom: 1rem; display: inline-block; }
.program-features { background: #1e3a8a; color: white; padding: 4rem 0; text-align: center; }
.program-features h2 { font-size: 2.5rem; margin-bottom: 3rem; color: white !important; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; max-width: 1000px; margin: 0 auto; }
.feature { padding: 1.5rem; }
.feature h3 { color: #f59e0b; margin-bottom: 1rem; font-size: 1.3rem; }
.feature p { color: white !important; }

/* Global page header fixes for all pages */
.page-header * { color: white !important; }
.page-header h1, .page-header h2, .page-header h3, .page-header p { color: white !important; text-shadow: 1px 1px 2px rgba(0,0,0,0.3); }
.alumni-impact h2, .alumni-impact h3, .alumni-impact p { color: white !important; }
.program-features h2, .program-features h3, .program-features p { color: white !important; }

/* Navigation Active State */
.main-nav a.active {
    color: #f59e0b;
    font-weight: bold;
}

/* Footer Styles */
.site-footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #f59e0b;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
}

.footer-section a:hover {
    color: #f59e0b;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .tagline {
        font-size: 1.25rem;
    }
    
    .hero-content .description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .alumni-grid {
        grid-template-columns: 1fr;
    }
    
    .impact-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Faculty gradient avatars */
.gradient-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    transition: transform 0.3s ease;
}

.faculty-card:hover .gradient-avatar {
    transform: scale(1.05);
}

/* Additional Faculty Page Styles */
.faculty-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.faculty-section .faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.faculty-section .faculty-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faculty-section .faculty-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.faculty-section .section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.faculty-section .section-title span {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.faculty-section .section-title h2 {
    color: #1e3a8a;
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Enhanced Student Portal Styles */
.student-portal-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8fafc;
    min-height: 100vh;
}

.portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.portal-title h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.portal-title p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-size: 1.125rem;
}

.student-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.student-details {
    text-align: right;
}

.student-name {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.student-id {
    display: block;
    font-size: 0.875rem;
    opacity: 0.8;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 0.75rem 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
    text-decoration: none;
    transform: translateY(-2px);
}

/* Navigation Tabs */
.portal-navigation {
    display: flex;
    background: var(--white);
    border-radius: 1rem;
    padding: 0.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
}

.nav-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    font-weight: 500;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 140px;
}

.nav-tab:hover {
    background: #f1f5f9;
    color: var(--primary-blue);
}

.nav-tab.active {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Portal Content */
.portal-content {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    min-height: 600px;
}

.tab-content {
    display: none;
}

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

/* Overview Stats */
.overview-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2rem;
    border-radius: 1rem;
    border-left: 4px solid var(--primary-blue);
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-icon {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-info h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin: 0;
}

/* Program Cards */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.program-card {
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    border-left: 4px solid var(--success-green);
}

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

.program-card.status-graduated {
    border-left-color: var(--accent-gold);
}

.program-card.status-inactive {
    border-left-color: var(--error-red);
    opacity: 0.8;
}

.program-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.program-header h3 {
    margin: 0;
    color: var(--primary-navy);
    font-size: 1.25rem;
    font-weight: 600;
}

.status-badge {
    padding: 0.375rem 0.875rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--success-green);
    color: var(--white);
}

.program-details {
    padding: 1.5rem;
}

.program-details h4 {
    margin: 0 0 1rem 0;
    color: var(--primary-navy);
    font-size: 1.125rem;
}

.program-details p {
    margin: 0.5rem 0;
    color: var(--text-dark);
    font-size: 0.875rem;
}

/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.course-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.course-header h3 {
    margin: 0;
    color: var(--primary-navy);
    font-size: 1.25rem;
    font-weight: 600;
}

.course-credits {
    background: var(--accent-gold);
    color: var(--primary-navy);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.course-card h4 {
    margin: 0 0 1rem 0;
    color: var(--text-dark);
    font-size: 1.125rem;
    font-weight: 500;
}

.course-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.course-meta {
    margin-bottom: 1rem;
}

.program-tag {
    background: #e0f2fe;
    color: #0277bd;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.course-actions {
    display: flex;
    gap: 1rem;
}

/* Materials */
.materials-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.materials-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background: var(--white);
    color: var(--text-dark);
    font-size: 0.875rem;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.material-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #94a3b8;
    transition: all 0.3s ease;
}

.material-card.status-completed {
    border-left-color: var(--success-green);
}

.material-card.status-in_progress {
    border-left-color: var(--accent-gold);
}

.material-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.material-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.material-type {
    background: #f1f5f9;
    color: var(--primary-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.progress-badge {
    background: var(--primary-navy);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.material-card h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-navy);
    font-size: 1.125rem;
}

.material-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.material-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.course-tag {
    background: #e0f2fe;
    color: #0277bd;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.duration {
    background: #fef3c7;
    color: #92400e;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--success-green) 100%);
    transition: width 0.3s ease;
}

.material-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.last-accessed {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Buttons */
.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-1px);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--white);
    border-radius: 1rem;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.video-modal {
    width: 900px;
}

.reading-modal {
    width: 700px;
}

.exam-modal {
    width: 1000px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 1rem 1rem 0 0;
}

.modal-header h3 {
    margin: 0;
    color: var(--primary-navy);
    font-size: 1.25rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-modal:hover {
    background: #f1f5f9;
    color: var(--text-dark);
}

.modal-body {
    padding: 2rem;
}

/* Video Player */
.video-container {
    margin-bottom: 1.5rem;
}

#course-video {
    width: 100%;
    height: 400px;
    border-radius: 0.5rem;
}

.video-info {
    margin-top: 1rem;
}

.video-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.video-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

#video-progress-text {
    font-weight: 500;
    color: var(--primary-blue);
}

#video-duration-info {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Reading Content */
.reading-content {
    line-height: 1.8;
    max-height: 60vh;
    overflow-y: auto;
    padding: 1rem;
    background: #fafafa;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.reading-text h4 {
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.reading-controls {
    display: flex;
    justify-content: center;
}

/* Utility Classes */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    font-size: 1.125rem;
}

.loading::after {
    content: "...";
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60% { content: "..."; }
    80%, 100% { content: ""; }
}

.no-data {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    background: #f8fafc;
    border-radius: 0.75rem;
    border: 2px dashed #d1d5db;
}

.error-message {
    text-align: center;
    padding: 2rem;
    color: var(--error-red);
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.75rem;
}

.recent-activity {
    margin-bottom: 3rem;
}

.recent-activity h2 {
    color: var(--primary-navy);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .student-portal-container {
        padding: 0.5rem;
    }
    
    .portal-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1.5rem;
    }
    
    .portal-title h1 {
        font-size: 2rem;
    }
    
    .student-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .student-details {
        text-align: center;
    }
    
    .portal-navigation {
        padding: 0.25rem;
    }
    
    .nav-tab {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        min-width: auto;
    }
    
    .portal-content {
        padding: 1rem;
    }
    
    .overview-stats {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .courses-grid,
    .materials-grid,
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
        max-height: calc(100vh - 2rem);
    }
    
    .video-modal,
    .reading-modal,
    .exam-modal {
        width: auto;
    }
    
    #course-video {
        height: 250px;
    }
}

/* Content Type Containers - Distinct styling for each content type */
.content-type-container {
    margin-bottom: 1.5rem;
    border-radius: 12px;
    background: white;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

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

/* Reading Materials - Blue theme */
.reading-container {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
}

.reading-container .container-header {
    background: #3b82f6;
    color: white;
}

/* Video Content - Red theme */
.video-container {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #f8fafc 100%);
}

.video-container .container-header {
    background: #ef4444;
    color: white;
}

/* Audio Content - Purple theme */
.audio-container {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, #faf5ff 0%, #f8fafc 100%);
}

.audio-container .container-header {
    background: #8b5cf6;
    color: white;
}

/* Assignments - Orange theme */
.assignment-container {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #f8fafc 100%);
}

.assignment-container .container-header {
    background: #f59e0b;
    color: white;
}

/* Quizzes - Green theme */
.quiz-container {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #f8fafc 100%);
}

.quiz-container .container-header {
    background: #10b981;
    color: white;
}

/* Documents - Gray theme */
.document-container {
    border-color: #6b7280;
    background: linear-gradient(135deg, #f9fafb 0%, #f8fafc 100%);
}

.document-container .container-header {
    background: #6b7280;
    color: white;
}

/* Reference Materials - Indigo theme */
.reference-container {
    border-color: #6366f1;
    background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 100%);
}

.reference-container .container-header {
    background: #6366f1;
    color: white;
}

/* Discussion - Teal theme */
.discussion-container {
    border-color: #14b8a6;
    background: linear-gradient(135deg, #f0fdfa 0%, #f8fafc 100%);
}

.discussion-container .container-header {
    background: #14b8a6;
    color: white;
}

/* Images - Pink theme */
.image-container {
    border-color: #ec4899;
    background: linear-gradient(135deg, #fdf2f8 0%, #f8fafc 100%);
}

.image-container .container-header {
    background: #ec4899;
    color: white;
}

/* Other - Neutral theme */
.other-container {
    border-color: #64748b;
    background: linear-gradient(135deg, #f1f5f9 0%, #f8fafc 100%);
}

.other-container .container-header {
    background: #64748b;
    color: white;
}

/* Container Header Styles */
.container-header {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.container-icon {
    font-size: 2rem;
    opacity: 0.9;
}

.container-info {
    flex: 1;
}

.container-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.container-count {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Container Content Styles */
.container-content {
    padding: 1rem;
}

.content-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.content-item:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.content-item:last-child {
    margin-bottom: 0;
}

.item-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    opacity: 0.8;
}

.item-details {
    flex: 1;
    min-width: 0;
}

.item-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
    word-break: break-all;
}

.item-meta {
    display: flex;
    gap: 1rem;
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.item-description {
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.4;
}

.item-action {
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.content-item:hover .item-action {
    opacity: 1;
}

.action-icon {
    font-size: 1.25rem;
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container-header {
        padding: 0.875rem 1rem;
    }
    
    .container-icon {
        font-size: 1.5rem;
    }
    
    .container-title {
        font-size: 1.125rem;
    }
    
    .content-item {
        padding: 0.875rem;
        gap: 0.75rem;
    }
    
    .item-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
}