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

body {
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #1a202c;
    line-height: 1.8;
    min-height: 100vh;
}

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

/* Main Content */
.main-content {
    padding: 2rem 0 4rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #718096;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #764ba2;
}

/* Program Layout */
.program-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}

/* Video Section */
.video-section {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.video-placeholder {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
}

.video-placeholder img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.play-btn:hover {
    transform: scale(1.1);
    background: white;
}

.play-btn svg {
    width: 32px;
    height: 32px;
    color: #667eea;
    margin-right: 4px;
}

.video-controls {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: #f7fafc;
}

.video-control-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.9rem;
    color: #4a5568;
}

.video-control-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

/* Program Header */
.program-header {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-top: 2rem;
}

.program-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.program-subtitle {
    font-size: 1.1rem;
    color: #718096;
    line-height: 1.6;
}

/* Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-top: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 12px;
}

.stat-item svg {
    width: 28px;
    height: 28px;
    color: #667eea;
}

.stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a202c;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: #718096;
}

/* Tabs Section */
.tabs-section {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-top: 2rem;
    overflow: hidden;
}

.tabs-header {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    padding: 0 2rem;
    overflow-x: auto;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1.5rem 2rem;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #718096;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.tab-btn:hover {
    color: #667eea;
}

.tab-btn.active {
    color: #667eea;
}

.tab-btn.active::after {
    width: 100%;
}

.tabs-content {
    padding: 2rem;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Content Section */
.content-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
}

.content-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin: 2rem 0 1rem;
}

.content-section p {
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
    display: grid;
    gap: 1rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-list li:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(-5px);
}

.feature-list svg {
    width: 24px;
    height: 24px;
    color: #48bb78;
    flex-shrink: 0;
    margin-top: 2px;
}

.requirement-list {
    list-style: none;
    display: grid;
    gap: 0.75rem;
    color: #4a5568;
}

.requirement-list li {
    padding-right: 1.5rem;
    position: relative;
}

.requirement-list li::before {
    content: '•';
    position: absolute;
    right: 0;
    color: #667eea;
    font-size: 1.5rem;
}

/* Curriculum Section */
.curriculum-section {
    display: grid;
    gap: 1rem;
}

.curriculum-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.curriculum-item:hover {
    border-color: #667eea;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.1);
}

.curriculum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #f7fafc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.curriculum-header:hover {
    background: rgba(102, 126, 234, 0.05);
}

.curriculum-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: #2d3748;
}

.curriculum-title svg {
    width: 20px;
    height: 20px;
    color: #667eea;
}

.curriculum-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: #718096;
}

.collapse-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.curriculum-item.open .collapse-icon {
    transform: rotate(180deg);
}

.curriculum-lessons {
    display: none;
    padding: 1rem;
    background: white;
}

.curriculum-item.open .curriculum-lessons {
    display: block;
}

.lesson-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.lesson-item:hover {
    background: rgba(102, 126, 234, 0.05);
}

.lesson-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #4a5568;
}

.lesson-info svg {
    width: 18px;
    height: 18px;
    color: #667eea;
}

.lesson-duration {
    color: #718096;
    font-size: 0.9rem;
}

/* Instructor Section */
.instructor-card {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 16px;
}

.instructor-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.instructor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructor-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.instructor-title {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 1rem;
}

.instructor-stats {
    display: flex;
    gap: 2rem;
    margin: 1.5rem 0;
}

.instructor-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4a5568;
    font-size: 0.95rem;
}

.instructor-stat svg {
    width: 18px;
    height: 18px;
    color: #667eea;
}

.instructor-bio {
    color: #4a5568;
    line-height: 1.8;
}

/* Reviews Section */
.reviews-summary {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.rating-overview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.rating-number {
    font-size: 4rem;
    font-weight: 800;
    color: #667eea;
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
}

.rating-stars svg {
    width: 24px;
    height: 24px;
}

.star-filled {
    color: #f6ad55;
    fill: #f6ad55;
}

.star-half {
    color: #f6ad55;
}

.rating-count {
    color: #718096;
    font-size: 0.95rem;
}

.review-item {
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.review-item:hover {
    border-color: #667eea;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.1);
}

.review-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

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

.review-stars {
    display: flex;
    gap: 0.125rem;
}

.review-stars svg {
    width: 14px;
    height: 14px;
}

.review-date {
    font-size: 0.85rem;
    color: #a0aec0;
}

.review-text {
    color: #4a5568;
    line-height: 1.7;
}

/* FAQ Section */
.faq-section {
    display: grid;
    gap: 1rem;
}

.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #667eea;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #f7fafc;
    cursor: pointer;
    font-weight: 600;
    color: #2d3748;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(102, 126, 234, 0.05);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.faq-item.open .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 1.5rem;
    color: #4a5568;
    line-height: 1.7;
    background: white;
}

.faq-item.open .faq-answer {
    display: block;
}

/* Syllabi Section */
.syllabi-section {
    display: grid;
    gap: 1rem;
}

.syllabi-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.syllabi-item:hover {
    border-color: #667eea;
}

.syllabi-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #f7fafc;
    cursor: pointer;
    font-weight: 600;
    color: #2d3748;
    transition: all 0.3s ease;
}

.syllabi-title:hover {
    background: rgba(102, 126, 234, 0.05);
}

.syllabi-title svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.syllabi-item.open .syllabi-title svg {
    transform: rotate(180deg);
}

.syllabi-description {
    display: none;
    padding: 1.5rem;
    color: #4a5568;
    line-height: 1.7;
    background: white;
}

.syllabi-item.open .syllabi-description {
    display: block;
}

/* Related Section */
.related-section {
    margin-top: 3rem;
}

.related-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.related-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.related-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-content {
    padding: 1.5rem;
}

.related-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.related-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.related-price {
    color: #667eea;
    font-weight: 700;
    font-size: 1.1rem;
}

.related-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #f6ad55;
    font-weight: 600;
}

.related-rating svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Sidebar */
.program-sidebar {
    position: sticky;
    top: 20px;
    display: grid;
    gap: 1.5rem;
}

.price-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.price-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.price-amount {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.price-old {
    color: #a0aec0;
    text-decoration: line-through;
    font-size: 1rem;
}

.price-current {
    color: #1a202c;
    font-size: 1.75rem;
    font-weight: 800;
}

.price-discount {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-purchase {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1.25rem;
    border-radius: 14px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.btn-purchase:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.price-features {
    display: grid;
    gap: 1rem;
}

.price-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #4a5568;
    font-size: 0.95rem;
}

.price-feature svg {
    width: 20px;
    height: 20px;
    color: #48bb78;
}

/* Share Card */
.share-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.share-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
}

.share-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn svg {
    width: 20px;
    height: 20px;
    color: white;
}

.share-btn.telegram {
    background: linear-gradient(135deg, #0088cc 0%, #0066aa 100%);
}

.share-btn.twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0c85d0 100%);
}

.share-btn.link {
    background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Assignments Section */
.assignments-section {
    padding: 1rem 0;
}

.assignments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.assignment-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: start;
}

.assignment-card:hover {
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.assignment-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.assignment-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

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

.assignment-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.assignment-course {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.assignment-status {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.status-pending {
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.2);
}

.status-accepted {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-rejected {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.assignment-details-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.meta-label {
    font-size: 12px;
    color: #999;
}

.meta-value {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.assignment-description {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    padding: 15px;
    margin-top: 10px;
}

.assignment-description h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.assignment-description p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.assignment-description.feedback {
    background: rgba(34, 197, 94, 0.05);
}

.btn-download {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.2);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s;
    text-decoration: none;
    cursor: pointer;
}

.btn-download:hover {
    background: rgba(102, 126, 234, 0.2);
}

.btn-attachment {
    color: #2563eb;
    text-decoration: underline;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    transition: color 0.3s;
}

.btn-attachment:hover {
    color: #1d4ed8;
}

/* Exams Section */
.exams-section {
    padding: 1rem 0;
}

.exams-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.exam-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
}

.exam-card:hover {
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.exam-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.exam-info {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    flex: 1;
}

.exam-details h3 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.exam-course {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.exam-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.exam-badge {
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
}

.difficulty-easy {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.difficulty-medium {
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
}

.difficulty-hard {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.score-badge {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.exam-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.exam-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 200px;
}

.status-badge {
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.status-completed {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-in-progress {
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.2);
}

.status-not-started {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.exam-enter-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    text-decoration: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.exam-enter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.exam-result-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: #555;
}

/* Certificates Section */
.certificates-section {
    padding: 1rem 0;
}

.certificates-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.certificate-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.certificate-card:hover {
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.certificate-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
}

.certificate-icon {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.2) 0%, rgba(251, 191, 36, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.certificate-info {
    flex: 1;
}

.certificate-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.certificate-course {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.certificate-instructor {
    color: #999;
    font-size: 12px;
}

.certificate-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    min-width: 250px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    font-size: 12px;
    color: #999;
}

.detail-value {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.detail-value.score {
    color: #667eea;
}

.detail-value.number {
    font-family: monospace;
}

.certificate-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 200px;
}

.status-badge {
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.status-issued {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-pending {
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.2);
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-view {
    background: transparent;
    border: 2px solid #e0e0e0;
    color: #666;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    text-decoration: none;
    cursor: pointer;
}

.btn-view:hover {
    border-color: #667eea;
    color: #667eea;
}

.btn-view:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .assignment-card {
        grid-template-columns: 1fr;
    }
    .assignment-details-section {
        grid-template-columns: 1fr;
    }
    .assignment-header {
        flex-direction: column;
        align-items: flex-start !important;
    }
    .assignment-header > div:last-child {
        width: 100%;
        justify-content: flex-start;
    }
    .exam-card {
        grid-template-columns: 1fr;
    }
    .exam-info {
        grid-template-columns: 1fr;
    }
    .exam-actions {
        min-width: 100%;
    }
    .certificate-content {
        grid-template-columns: 1fr;
    }
    .certificate-details {
        grid-template-columns: 1fr;
    }
    .certificate-actions {
        min-width: 100%;
    }
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.6);
}

.scroll-top svg {
    width: 24px;
    height: 24px;
    color: white;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .program-layout {
        grid-template-columns: 1fr;
    }

    .program-sidebar {
        position: static;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .tabs-header {
        padding: 0 1rem;
    }

    .tab-btn {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }

    .tabs-content {
        padding: 1.5rem;
    }

    .stats-bar {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

    .curriculum-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .instructor-card {
        flex-direction: column;
        text-align: center;
    }

    .instructor-avatar {
        margin: 0 auto;
    }

    .instructor-stats {
        justify-content: center;
        flex-wrap: wrap;
    }

    .program-title {
        font-size: 1.5rem;
    }

    .price-card {
        padding: 1.5rem;
    }
}
