/* Modern Program Detail Styles */
.program-hero-section {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    color: white;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    margin: 0px;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: -60px;
    padding-top: 120px;
}

.program-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.8) 0%, rgba(59, 130, 246, 0.8) 50%, rgba(96, 165, 250, 0.8) 100%);
    z-index: 1;
}

.program-hero-content {
    position: relative;
    z-index: 2;
}

.program-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.program-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ffffff;
    margin: 0 0 30px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.program-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.badge {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-primary {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.badge-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-info {
    background: rgba(6, 182, 212, 0.2);
    color: #06b6d4;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.program-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: #ffffff;
}

.meta-item i {
    opacity: 0.9;
    color: #ffffff;
}

.action-buttons {
    margin-bottom: 30px;
}

.action-buttons .btn {
    margin-bottom: 12px;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.action-buttons .btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.action-buttons .btn-primary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.action-buttons .btn-outline-primary {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: #0c4a6e;
    border: 2px solid #0ea5e9;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.2);
}

.action-buttons .btn-outline-primary:hover {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    border-color: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
}

.action-buttons .btn-outline-secondary {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #475569;
    border: 2px solid #94a3b8;
    box-shadow: 0 4px 15px rgba(148, 163, 184, 0.2);
}

.action-buttons .btn-outline-secondary:hover {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    border-color: #475569;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(71, 85, 105, 0.3);
}

.program-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 0.85rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* Content Section */
.program-content-section {
    padding: 60px 0;
    background: #f8fafc;
    min-height: 50vh;
}

.content-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    overflow: hidden;
}

.card-header-modern {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 25px 30px;
    border-bottom: 1px solid #e2e8f0;
}

.card-header-modern h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
}

.card-body-modern {
    padding: 30px;
}

.requirement-section {
    margin-bottom: 30px;
}

.requirement-section:last-child {
    margin-bottom: 0;
}

.requirement-section h4 {
    color: #3b82f6;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.requirement-content {
    line-height: 1.7;
    color: #475569;
}

/* Academic Structure */
.semesters-timeline {
    display: grid;
    gap: 20px;
}

.semester-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.semester-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
}

.semester-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.semester-header h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
}

.semester-badges {
    display: flex;
    gap: 8px;
}

.semester-description {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 15px;
}

.semester-details {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #334155;
    font-weight: 500;
}

/* Course Curriculum */
.semester-section {
    margin-bottom: 40px;
}

.semester-title {
    color: #1e293b;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.course-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.course-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

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

.course-header h6 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.course-details {
    margin-bottom: 10px;
}

.course-instructor {
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 8px;
    font-weight: 500;
}

.course-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.course-code {
    background: #f1f5f9;
    color: #0369a1;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.course-credits {
    background: #dcfce7;
    color: #166534;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.course-level {
    background: #fef3c7;
    color: #d97706;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.course-description {
    color: #475569;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Sidebar */
.sidebar-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    overflow: hidden;
}

.sidebar-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 20px 25px;
}

.sidebar-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Specific Sidebar Header Colors */
.sidebar-card:nth-child(1) .sidebar-header {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
}

.sidebar-card:nth-child(1) .sidebar-header h4 i {
    color: #ffffff;
}

.sidebar-card:nth-child(2) .sidebar-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.sidebar-card:nth-child(2) .sidebar-header h4 i {
    color: #ffffff;
}

.sidebar-card:nth-child(3) .sidebar-header {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.sidebar-card:nth-child(3) .sidebar-header h4 i {
    color: #ffffff;
}

.sidebar-body {
    padding: 25px;
}

/* Documents */
.documents-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.document-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.document-item:hover {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-color: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.2);
}

.document-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.document-info h6 {
    margin: 0 0 5px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0c4a6e;
}

.document-description {
    margin: 0;
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.4;
}

/* Sessions */
.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.session-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.session-item:hover {
    border-color: #3b82f6;
    background: #f1f5f9;
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.session-header h6 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
}

.session-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.session-dates,
.session-fee,
.session-deadline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #475569;
    font-weight: 500;
}

.session-description {
    margin: 10px 0 0 0;
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.4;
}

/* Quick Actions */
.action-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    border: 1px solid #f59e0b;
    border-radius: 10px;
    text-decoration: none;
    color: #92400e;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

.action-link:hover {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
    border-color: #d97706;
    color: #78350f;
    transform: translateX(8px) translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
}

.action-link i {
    font-size: 1.1rem;
    color: #d97706;
}

/* Responsive Design */
@media (max-width: 991px) {
    .program-hero-section {
        padding: 40px 0;
    }
    
    .program-title {
        font-size: 2rem;
    }
    
    .program-meta {
        gap: 20px;
    }
    
    .program-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .courses-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .program-hero-section {
        padding: 30px 0;
    }
    
    .program-title {
        font-size: 1.5rem;
    }
    
    .program-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .program-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .program-content-section {
        padding: 40px 0;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .card-body-modern,
    .sidebar-body {
        padding: 20px;
    }
    
    .card-header-modern,
    .sidebar-header {
        padding: 15px 20px;
    }
}

@media (max-width: 576px) {
    .program-hero-section {
        padding: 20px 0;
    }
    
    .program-title {
        font-size: 1.3rem;
    }
    
    .program-badges {
        gap: 8px;
    }
    
    .badge {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .action-buttons .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .stat-box {
        padding: 15px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .description-toggle {
        text-decoration: none;
        font-size: 0.9rem;
        transition: all 0.2s ease;
        color: #d97706 !important;
        font-weight: 500;
    }
    
    .description-toggle:hover {
        text-decoration: underline;
        opacity: 0.8;
        color: #b45309 !important;
    }
    
    .description-toggle i {
        color: #d97706 !important;
    }
    
    .program-description .description-toggle {
        color: #d97706 !important;
    }
    
    .program-description .description-toggle:hover {
        color: #b45309 !important;
    }
    
    .program-description .description-toggle i {
        color: #d97706 !important;
    }
    
    .description-content {
        line-height: 1.6;
        font-size: 1rem;
        color: #374151;
    }
    
    .modal-header {
        background: linear-gradient(135deg, #059669, #10b981);
        color: white;
    }
    
    .modal-header .btn-close {
        filter: invert(1);
    }
}
