/**
 * Programs Page Styles
 * تنسيقات صفحة البرامج
 * 
 * @package OMU_Child
 */

/* ============================================
   1. Programs Hero Section
   ============================================ */

.programs-hero {
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.programs-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.programs-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.programs-hero .container {
    position: relative;
    z-index: 2;
}

.programs-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.programs-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.programs-hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.95;
}

.programs-quick-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.quick-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    min-width: 150px;
}

.quick-stat-item .stat-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.quick-stat-item .stat-label {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .programs-hero {
        min-height: 350px;
    }
    
    .programs-hero-title {
        font-size: 2.5rem;
    }
    
    .programs-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .programs-quick-stats {
        gap: 1.5rem;
    }
    
    .quick-stat-item .stat-number {
        font-size: 2.5rem;
    }
}

/* ============================================
   2. Filters Section
   ============================================ */

.programs-filters-section {
    padding: 3rem 0 2rem;
    background: #f8f9fa;
}

.programs-search-bar {
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    color: #7f8c8d;
    font-size: 1.3rem;
    pointer-events: none;
}

[dir="rtl"] .search-icon {
    left: auto;
    right: 1.5rem;
}

.program-search-input {
    width: 100%;
    padding: 1.2rem 4rem 1.2rem 4.5rem;
    font-size: 1.1rem;
    border: 2px solid #ddd;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

[dir="rtl"] .program-search-input {
    padding: 1.2rem 4.5rem 1.2rem 4rem;
}

.program-search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.search-clear {
    position: absolute;
    right: 1.5rem;
    background: none;
    border: none;
    color: #95a5a6;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

[dir="rtl"] .search-clear {
    right: auto;
    left: 1.5rem;
}

.search-clear:hover {
    color: #e74c3c;
}

/* Advanced Filters */
.advanced-filters {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    margin-bottom: 2rem;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.filters-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.filters-reset {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: 1px solid #e74c3c;
    border-radius: 8px;
    color: #e74c3c;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filters-reset:hover {
    background: #e74c3c;
    color: #fff;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-weight: 600;
    color: #34495e;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-label i {
    color: #667eea;
    font-size: 1rem;
}

.filter-select {
    padding: 0.8rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #fff;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-select:hover {
    border-color: #bdc3c7;
}

/* Toolbar */
.programs-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.results-count {
    font-size: 0.95rem;
    color: #7f8c8d;
}

.results-count strong {
    color: #2c3e50;
    font-weight: 600;
}

.sort-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.sort-group label {
    font-weight: 500;
    color: #34495e;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.sort-select {
    padding: 0.6rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #fff;
    cursor: pointer;
}

.view-toggle {
    display: flex;
    gap: 0.3rem;
    background: #f8f9fa;
    padding: 0.3rem;
    border-radius: 8px;
}

.view-btn {
    padding: 0.6rem 1rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #7f8c8d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn:hover {
    color: #2c3e50;
    background: #e9ecef;
}

.view-btn.active {
    background: #667eea;
    color: #fff;
}

.compare-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.compare-toggle-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    opacity: 0.6;
}

.compare-toggle-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.compare-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border: 2px solid #fff;
}

@media (max-width: 768px) {
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .programs-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .toolbar-left,
    .toolbar-right {
        justify-content: center;
    }
}

/* ============================================
   3. Programs Grid
   ============================================ */

.programs-grid-section {
    padding: 3rem 0 5rem;
    background: #fff;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* List View */
.programs-grid.list-view {
    grid-template-columns: 1fr;
}

.programs-grid.list-view .program-card {
    display: flex;
    flex-direction: row;
}

.programs-grid.list-view .program-card-header {
    flex-shrink: 0;
    width: 250px;
}

.programs-grid.list-view .program-card-body {
    flex: 1;
}

.programs-grid.list-view .program-meta {
    flex-direction: row;
    flex-wrap: wrap;
}

/* Program Card */
.program-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    position: relative;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.program-card.hidden {
    display: none;
}

.program-card-header {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.program-degree-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[dir="rtl"] .program-degree-badge {
    left: auto;
    right: 1rem;
}

.deadline-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    padding: 0.4rem 0.9rem;
    background: #f39c12;
    color: #fff;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

[dir="rtl"] .deadline-badge {
    right: auto;
    left: 1rem;
}

.deadline-badge.urgent {
    background: #e74c3c;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.program-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.program-card:hover .program-image img {
    transform: scale(1.1);
}

.program-icon-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.program-icon-placeholder i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
}

.compare-checkbox {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    z-index: 3;
}

[dir="rtl"] .compare-checkbox {
    right: auto;
    left: 0.8rem;
}

.compare-input {
    display: none;
}

.compare-input + label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.compare-input + label i {
    color: #7f8c8d;
    font-size: 1rem;
}

.compare-input:checked + label {
    background: #667eea;
}

.compare-input:checked + label i {
    color: #fff;
}

.program-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.program-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.program-card-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.program-card-title a:hover {
    color: #667eea;
}

.program-faculty-link {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.program-faculty-link i {
    color: #667eea;
}

.program-faculty-link a {
    color: #7f8c8d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.program-faculty-link a:hover {
    color: #667eea;
}

.program-card-excerpt {
    font-size: 0.95rem;
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.program-meta {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: #34495e;
}

.meta-item i {
    color: #667eea;
    font-size: 1rem;
    width: 20px;
}

.program-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.stat-label {
    font-size: 0.75rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
}

.program-card-footer {
    padding: 1.5rem;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.program-card-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.program-card-btn:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

[dir="rtl"] .program-card-btn:hover {
    transform: translateX(-5px);
}

.program-card-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    color: #7f8c8d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #667eea;
    border-color: #667eea;
    color: #fff;
    transform: scale(1.1);
}

.action-btn.bookmarked {
    background: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
}

.action-btn.bookmarked i {
    font-weight: 900;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 5rem 2rem;
    color: #7f8c8d;
}

.no-results i {
    font-size: 5rem;
    color: #bdc3c7;
    margin-bottom: 1.5rem;
}

.no-results h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.no-results p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn-reset-filters {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset-filters:hover {
    background: #764ba2;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .programs-grid.list-view .program-card {
        flex-direction: column;
    }
    
    .programs-grid.list-view .program-card-header {
        width: 100%;
    }
}

/* ============================================
   4. Comparison Modal
   ============================================ */

.program-comparison-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.program-comparison-modal.active {
    display: block;
}

.comparison-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.comparison-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.comparison-header {
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comparison-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.comparison-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comparison-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.comparison-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.comparison-empty {
    text-align: center;
    padding: 5rem 2rem;
    color: #7f8c8d;
}

.comparison-empty i {
    font-size: 4rem;
    color: #bdc3c7;
    margin-bottom: 1rem;
}

.comparison-empty p {
    font-size: 1.2rem;
}

.comparison-table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

[dir="rtl"] .comparison-table th,
[dir="rtl"] .comparison-table td {
    text-align: right;
}

.comparison-table thead th {
    background: #f8f9fa;
    font-weight: 700;
    color: #2c3e50;
    position: sticky;
    top: 0;
    z-index: 10;
}

.feature-column {
    width: 200px;
    font-weight: 600;
    background: #f8f9fa !important;
}

.feature-name {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.feature-name i {
    color: #667eea;
    font-size: 1.1rem;
}

.program-column {
    min-width: 250px;
    text-align: center;
}

.program-header {
    position: relative;
}

.remove-program {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e74c3c;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-program:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.program-title {
    font-weight: 600;
    color: #2c3e50;
    padding: 0.5rem;
}

.program-data {
    text-align: center;
}

.action-row {
    background: #f8f9fa;
}

.program-link {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: #667eea;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.program-link:hover {
    background: #764ba2;
}

.comparison-footer {
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

/* ============================================
   5. Single Program Page
   ============================================ */

.single-program-wrapper {
    background: #f8f9fa;
}

.program-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 3rem 0 4rem;
}

.program-header .breadcrumbs {
    margin-bottom: 2rem;
}

.program-header .breadcrumbs a,
.program-header .breadcrumbs .separator,
.program-header .breadcrumbs .current {
    color: rgba(255, 255, 255, 0.9);
}

.program-header-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.program-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.program-faculty {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.program-faculty a {
    color: #fff;
    text-decoration: underline;
}

.program-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.program-meta-info .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
}

.program-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.program-quick-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.8rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #fff;
    color: #667eea;
}

.btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.highlights-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.highlights-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.highlight-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.highlight-item:last-child {
    border-bottom: none;
}

.highlight-item i {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-radius: 10px;
    font-size: 1.2rem;
}

.highlight-item div {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.highlight-item strong {
    font-size: 0.85rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.highlight-item span {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

.deadline-warning {
    display: inline-block;
    margin-top: 0.3rem;
    padding: 0.3rem 0.7rem;
    background: #e74c3c;
    color: #fff;
    font-size: 0.8rem;
    border-radius: 12px;
    font-weight: 700;
}

.highlight-item.success i {
    background: linear-gradient(135deg, #27ae60, #229954);
}

.success-rate {
    color: #27ae60 !important;
    font-size: 1.3rem !important;
}

/* Program Content */
.program-main-content {
    padding: 4rem 0;
}

.program-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    align-items: start;
}

.program-content-main {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

.program-tabs-nav {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    min-width: 150px;
    padding: 1.2rem 1rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #7f8c8d;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    white-space: nowrap;
}

.tab-btn:hover {
    background: rgba(102, 126, 234, 0.05);
    color: #667eea;
}

.tab-btn.active {
    background: #fff;
    color: #667eea;
    border-bottom-color: #667eea;
}

.program-tabs-content {
    padding: 2.5rem;
}

.tab-pane {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-pane h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #667eea;
}

.tab-content-inner {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #34495e;
}

/* Curriculum Styles */
.curriculum-overview,
.course-section {
    margin-bottom: 2.5rem;
}

.credits-distribution {
    margin: 2rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.credits-chart {
    margin-top: 1.5rem;
}

.credit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.credit-bar {
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    transition: width 0.6s ease;
}

.credit-value {
    min-width: 100px;
    font-weight: 600;
    color: #2c3e50;
}

.courses-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.course-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
}

[dir="rtl"] .course-item {
    border-left: none;
    border-right: 4px solid #27ae60;
}

.course-item.elective {
    border-left-color: #f39c12;
}

[dir="rtl"] .course-item.elective {
    border-right-color: #f39c12;
}

.course-item i {
    color: #27ae60;
    font-size: 1.1rem;
}

.course-item.elective i {
    color: #f39c12;
}

/* Accordion for Study Plan */
.accordion-item {
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-button {
    width: 100%;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border: none;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
    color: #2c3e50;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.accordion-button:hover {
    background: #e9ecef;
}

.accordion-button i {
    transition: transform 0.3s ease;
}

.accordion-button.collapsed i {
    transform: rotate(-90deg);
}

.accordion-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-collapse.show {
    max-height: 2000px;
}

.accordion-body {
    padding: 1.5rem;
}

.semester {
    margin-bottom: 2rem;
}

.semester h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 1rem;
}

.courses-table {
    width: 100%;
    border-collapse: collapse;
}

.courses-table th,
.courses-table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.courses-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

/* Career Stats */
.career-stats {
    display: flex;
    justify-content: space-around;
    gap: 3rem;
    margin: 2rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.career-stat {
    text-align: center;
}

.stat-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
}

.stat-circle .stat-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: 700;
    color: #27ae60;
}

.career-paths {
    white-space: pre-line;
    line-height: 2;
}

/* Sidebar */
.program-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    margin-bottom: 2rem;
    overflow: hidden;
}

.sidebar-widget h3 {
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 1.2rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.sidebar-widget .widget-content {
    padding: 1.5rem;
}

.apply-widget {
    text-align: center;
}

.apply-widget p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}

.btn-block {
    display: block;
    width: 100%;
    margin-bottom: 0.8rem;
}

.related-programs-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-program-item {
    display: block;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-program-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.related-program-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.related-program-item .duration {
    font-size: 0.85rem;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.social-share-buttons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.share-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.copy-link { background: #34495e; }

.download-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    color: #2c3e50;
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: #e9ecef;
    color: #667eea;
    transform: translateX(5px);
}

/* CTA Section */
.programs-cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
}

/* ============================================
   6. Responsive Design
   ============================================ */

@media (max-width: 1024px) {
    .program-layout,
    .program-header-content {
        grid-template-columns: 1fr;
    }
    
    .program-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .program-title {
        font-size: 2rem;
    }
    
    .program-tabs-nav {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 1rem 1.5rem;
    }
    
    .program-tabs-content {
        padding: 1.5rem;
    }
    
    .comparison-modal-content {
        width: 95%;
    }
    
    .comparison-table {
        font-size: 0.85rem;
    }
    
    .feature-column {
        min-width: 150px;
    }
    
    .program-column {
        min-width: 200px;
    }
}

@media (max-width: 480px) {
    .programs-quick-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .quick-stat-item {
        width: 100%;
    }
    
    .program-quick-actions {
        flex-direction: column;
    }
    
    .program-quick-actions .btn {
        width: 100%;
    }
}

/* ============================================
   7. Print Styles
   ============================================ */

@media print {
    .programs-hero,
    .programs-filters-section,
    .programs-toolbar,
    .program-card-footer,
    .program-sidebar,
    .comparison-footer,
    .programs-cta-section {
        display: none;
    }
    
    .program-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .comparison-table {
        page-break-inside: avoid;
    }
}