/* University / units and departments */
.welcome .welcome-image {
    display: none;
}
.welcome .welcome-content {
    display: none;
}
div.welcome {
    padding: 0 !important;
}

.programs-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary-blue) 100%);
    color: var(--white);
}

.programs-stats {
    text-align: center;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Section Cards */
.section-card {
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-header h3 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 1.3rem;
}

.section-header h2 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 2rem;
}



.centered-header{
    text-align: center;
}
.section-subtitle {
    color: var(--light-text);
    font-size: 0.9rem;
}


.specifications-section .section-subtitle{
    margin: 0;
    text-align: left;
    margin-left: 1.5rem;
}
/* Specifications Section */
.specifications-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    /* display: grid; */
    gap: 1.5rem;
}

.specification-group h5 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.document-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.document-link {
    display: flex;
    align-items: center;
    /* padding: 0.6rem 0.8rem;
    background: var(--light);
    border-radius: 6px; */
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    /* border: 1px solid transparent; */
}

.document-link:hover {
    background: var(--white);
    border-color: var(--primary);
    text-decoration: none;
    color: var(--primary);
}

.document-link i {
    color: var(--rich-red);
    margin-right: 0.6rem;
    font-size: 1rem;
}

/* Programs List - Compact Design */
.program-category {
    margin-bottom: 2rem;
}

.category-title {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--light);
}

.category-title i {
    color: var(--accent);
}

.program-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.program-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background: var(--white);
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 7px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.program-item:hover {
    /* background: var(--light); */
    box-shadow: 0 4px 3px rgba(0, 0, 0, 0.2);
    /* border-color: var(--primary) !important; */
    transform: translateX(3px);
}

.program-item.ou-validated {
    border-left: 3px solid var(--rich-Green);
}

.program-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.program-degree-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
}

.degree {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.8rem;
    background: #e0e1e1;
    padding: 0rem 0.6rem;
    border-radius: 12px;
}

.badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.badge-ou {
    background: var(--rich-Green);
    color: var(--white);
}

.badge-arabic {
    background: var(--accent);
    color: var(--primary);
}

.program-name {
    color: var(--primary);
    font-weight: 500;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.3;
}

.program-action {
    flex-shrink: 0;
}

.btn-sm {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

.btn-outline-primary {
    border: 1px solid var(--primary);
    color: var(--primary);
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-1px);
}

/* Quick Actions - Compact */
.quick-actions {
    margin-top: 2rem;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.action-item:hover {
    background: var(--light);
    border-color: var(--primary);
}

.action-item i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.action-item h6 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
}

.action-link {
    color: var(--primary);
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: 500;
}

.action-link:hover {
    color: var(--secondary-blue);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .programs-hero .row {
        text-align: center;
    }
    
    .programs-stats {
        margin-top: 1.5rem;
    }
    
    .section-card {
        padding: 1.2rem;
    }
    
    .program-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .program-info {
        width: 100%;
    }
    
    .program-action {
        align-self: flex-end;
    }
    
    .action-item {
        padding: 0.8rem;
    }
    
    .action-item i {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .programs-hero {
        padding: 2rem 0;
    }
    
    .section-card {
        padding: 1rem;
    }
    
    .program-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .program-degree-badge {
        min-width: auto;
    }
    
    .program-name {
        font-size: 0.9rem;
    }
    
    .action-item {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .action-item div {
        text-align: center;
    }
    .specifications-grid{
        flex-wrap: wrap;
        display: grid;
    }

    .section-header h2 {
        font-size: 1.55rem;
    }
}

/* Ensure compact spacing */
.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}


/* for sharepoint */
.page-content{
    padding: 0 0.7rem;
}

@media (max-width: 576px) {
    .page-content{
        padding: 0;
    }
}