/* Course Detail Page Specific Styles */
.course-main { padding: 110px 0 60px; background: #fff; }
/* Smaller header for course page to avoid overlap */
.course-page .navbar { padding: 0.6rem 0; }
.course-page .logo { width: 90px; max-width: 90px; }
.course-page .nav-menu { gap: 1rem; }
.course-page .brand-text { margin-left: 0.25rem; display: flex; align-items: center; }
.course-page .brand-text .logo-text { transform: translateY(2px); }

@media (max-width: 768px) {
  .course-main { padding-top: 100px; }
  .course-page .logo { width: 72px; max-width: 72px; }
}
.course-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.video-container { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 40px rgba(255,105,180,0.15); }
.video-container video { width: 100%; display: block; background: #000; }
.video-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.play-button { width: 84px; height: 84px; border-radius: 50%; background: rgba(255,105,180,0.9); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px; box-shadow: 0 10px 30px rgba(255,105,180,0.4); transform: scale(1); transition: transform .2s ease; pointer-events: auto; cursor: pointer; }
.play-button:hover { transform: scale(1.05); }
.course-info { margin-top: 1rem; }
.course-info h1 { margin-bottom: .5rem; }
.course-meta { display: flex; gap: 1rem; color: #6b7280; font-size: .95rem; margin: .5rem 0 1rem; }
.course-progress { margin: .5rem 0 0; }
.progress-bar { height: 10px; background: #f3f4f6; border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(135deg, #FF69B4, #FF1493); border-radius: 999px; width: 0; transition: width .4s ease; }
.course-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.course-modules { background: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.06); padding: 1rem; }
.module-list { display: flex; flex-direction: column; gap: .5rem; max-height: 520px; overflow: auto; }
.module-item { background: #f9fafb; border-radius: 12px; padding: .75rem 1rem; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .75rem; cursor: pointer; transition: background .2s ease; }
.module-item:hover { background: #eef2ff; }
.module-item.active { background: #eef2ff; border: 1px solid #dbeafe; }
.module-header { display: flex; align-items: center; gap: .6rem; color: #374151; }
.module-duration { color: #6b7280; font-size: .9rem; }
.course-actions { background: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.06); padding: 1rem; display: grid; gap: .75rem; }
.course-description { background: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.06); padding: 1.5rem; margin-top: 2rem; }

/* Materials Section Styles */
.course-materials { 
    background: #fff; 
    border-radius: 16px; 
    box-shadow: 0 10px 30px rgba(0,0,0,.06); 
    padding: 1.5rem; 
    margin-top: 2rem; 
}

.course-materials h2 { 
    margin-bottom: 1.5rem; 
    color: #1f2937; 
    font-size: 1.5rem; 
    font-weight: 600; 
}

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

.material-card { 
    background: #f9fafb; 
    border-radius: 12px; 
    padding: 1.5rem; 
    border: 1px solid #e5e7eb; 
    transition: all 0.3s ease; 
    display: flex; 
    align-items: flex-start; 
    gap: 1rem; 
}

.material-card:hover { 
    background: #f3f4f6; 
    border-color: #d1d5db; 
    transform: translateY(-2px); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
}

.material-icon { 
    flex-shrink: 0; 
    width: 50px; 
    height: 50px; 
    background: linear-gradient(135deg, #FF69B4, #FF1493); 
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: white; 
    font-size: 1.2rem; 
}

.material-info { 
    flex: 1; 
    min-width: 0; 
}

.material-info h3 { 
    margin: 0 0 0.5rem 0; 
    color: #1f2937; 
    font-size: 1.1rem; 
    font-weight: 600; 
    line-height: 1.4; 
}

.material-info p { 
    margin: 0 0 1rem 0; 
    color: #6b7280; 
    font-size: 0.9rem; 
    line-height: 1.5; 
}

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

.type-badge { 
    background: #dbeafe; 
    color: #1e40af; 
    padding: 0.25rem 0.75rem; 
    border-radius: 999px; 
    font-size: 0.75rem; 
    font-weight: 500; 
    text-transform: uppercase; 
}

.status-badge { 
    background: #dcfce7; 
    color: #166534; 
    padding: 0.25rem 0.75rem; 
    border-radius: 999px; 
    font-size: 0.75rem; 
    font-weight: 500; 
}

.upload-date { 
    background: #f3e8ff; 
    color: #7c3aed; 
    padding: 0.25rem 0.75rem; 
    border-radius: 999px; 
    font-size: 0.75rem; 
    font-weight: 500; 
}

.material-actions { 
    flex-shrink: 0; 
}

.material-actions .btn { 
    padding: 0.5rem 1rem; 
    font-size: 0.875rem; 
    border-radius: 8px; 
    text-decoration: none; 
    display: inline-flex; 
    align-items: center; 
    gap: 0.5rem; 
    transition: all 0.2s ease; 
}

.material-actions .btn:hover { 
    transform: translateY(-1px); 
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); 
}

.no-materials { 
    text-align: center; 
    color: #6b7280; 
    font-style: italic; 
    padding: 2rem; 
    background: #f9fafb; 
    border-radius: 12px; 
    border: 2px dashed #d1d5db; 
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .materials-grid { 
        grid-template-columns: 1fr; 
    }
    
    .material-card { 
        flex-direction: column; 
        text-align: center; 
    }
    
    .material-icon { 
        align-self: center; 
    }
    
    .material-actions { 
        align-self: center; 
    }
}

.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 2000; }
.modal-content { background: #fff; border-radius: 16px; max-width: 800px; margin: 10vh auto; box-shadow: 0 20px 60px rgba(0,0,0,.2); overflow: hidden; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid #f3f4f6; }
.modal-body { padding: 1.25rem; }
.close { cursor: pointer; font-size: 1.25rem; }

@media (max-width: 992px) { .course-layout { grid-template-columns: 1fr; } }

